Code Monkey home page Code Monkey logo

themu's Introduction

Демонстрация

Посмотреть демо

Установка

В директории веб-сайта Hugo клонируйте репозиторий:

git submodule add https://github.com/fruworg/themu themes/themu

Нужно отредактировать файл config.toml, добавив строку theme="themu". Дополнительную информацию можно найти в официальном руководстве по установке Hugo.

Создание статей

Необходимо создать новый файл с расширением .md в папке content/posts:

---
title: Заголовок статьи
description: Описание
date: 2006-01-01T01:08:00+05:00
draft: true/false (необязательно)
tags: [названия тегов] (необязательно)
---

Настройки конфигурации

Пользовательские CSS-стили

Пользовательские CSS-файлы можно добавить с помощью параметра конфигурации customcss.

Примечание: CSS-файлы следует размещать в папке assets, например, assets/css/first.css.

[params]
customcss = ["css/first.css", "css/second.css"]

Настройки демонстрационного сайта

baseURL = "https://<имя>.github.io"
languageCode = "en-us"
title = "<имя>"
theme="themu"

# Подсветка кода
pygmentsstyle = "monokai"
pygmentscodefences = true
pygmentscodefencesguesssyntax = true

paginate=3 # статей на страницу

[params]
description = themu description
subtitlefile = true # описание из partials/subtitle.html
subtitle = "Минимальная и чистая [тема блога для Hugo](https://github.com/fruworg/themu)" # текстовое описание
og_image = "image.png"
favicon = "favicon.ico"

# Социальные ссылки

[[params.social]]
name = "GitHub"
icon = "github"
url = "https://github.com/<имя>"

[[params.social]]
name = "Twitter"
icon = "twitter"
url = "https://twitter.com/<имя>"

[[params.social]]
name = "GitLab"
icon = "gitlab"
url = "https://gitlab.com/<имя>"

# Пункты главного меню

[[menu.main]]
name = "Главная"
url = "/"
weight = 1

[[menu.main]]
name = "Все статьи"
url = "/posts"
weight = 2

[[menu.main]]
name = "О сайте"
url = "/about"
weight = 3

[[menu.main]]
name = "Теги"
url = "/tags"
weight = 4

Спасибо

athul и jse.li

themu's People

Contributors

fruworg avatar athul avatar robbinespu avatar arongergely avatar davidwittman avatar francisbarton avatar hsand avatar 9x9x9x avatar adswt518 avatar aalsuwaidi avatar skyzh avatar a-ungurianu avatar rad96 avatar th-in-gs avatar juliusrickert avatar marbuka avatar codebruva avatar samhattangady avatar samp42 avatar sebasrp avatar sarg avatar adibaulia avatar dadosch avatar lxxxvi avatar yochidros avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.