Update README.md

This commit is contained in:
Руслан 2023-07-31 00:46:09 +06:00 committed by GitHub
parent 61f6745860
commit e5bd653904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,99 +1,91 @@
## Demo ## Демонстрация
[Check the Demo](https://fruw.org) [Посмотреть демо](https://fruw.org)
## Feature ## Установка
- Google Analytics Script В директории веб-сайта Hugo клонируйте репозиторий:
- Callouts
- Tags
- Cache busting for CSS files
## Installation
In your Hugo website directory, create a new folder named themes and clone the repo
```bash ```bash
$ mkdir themes
$ git submodule add https://github.com/fruworg/themu themes/themu $ git submodule add https://github.com/fruworg/themu themes/themu
``` ```
Edit the `config.toml` file with `theme="themu"` Отредактируйте файл `config.toml`, добавив строку `theme="themu"`.
For more information read the official [setup guide](https://gohugo.io/installation/) of Hugo. Дополнительную информацию можно найти в официальном [руководстве по установке](https://gohugo.io/installation/) Hugo.
## Writing Posts ## Создание статей
Create a new `.md` file in the *content/posts* folder Необходимо создать новый файл с расширением `.md` в папке *content/posts*:
```yml ```yml
--- ---
title: Title of the post title: Заголовок статьи
description: description: Описание
date: date: 2006-01-01T01:08:00+05:00
draft: true/false (optional) draft: true/false (необязательно)
tags: [tag names] (optional) tags: [названия тегов] (необязательно)
--- ---
``` ```
## Config Options ## Настройки конфигурации
### Custom CSS ### Пользовательские CSS-стили
Custom CSS files can be included though the `customcss` config parameter. Пользовательские CSS-файлы можно добавить с помощью параметра конфигурации `customcss`.
Note: CSS files should be placed under the `assets` directory e.g. `assets/css/first.css`. Примечание: CSS-файлы следует размещать в папке `assets`, например, `assets/css/first.css`.
```toml ```toml
[params] [params]
customcss = ["css/first.css", "css/second.css"] customcss = ["css/first.css", "css/second.css"]
``` ```
## Настройки демонстрационного сайта
## Config of the Demo Site
```toml ```toml
baseURL = "https://<name>.github.io" baseURL = "https://<имя>.github.io"
languageCode = "en-us" languageCode = "en-us"
title = "<name>" title = "<имя>"
theme="themu" theme="themu"
# Code Highlight # Подсветка кода
pygmentsstyle = "monokai" pygmentsstyle = "monokai"
pygmentscodefences = true pygmentscodefences = true
pygmentscodefencesguesssyntax = true pygmentscodefencesguesssyntax = true
paginate=3 # articles per page paginate=3 # статей на страницу
[params] [params]
subtitle = "Minimal and Clean [blog theme for Hugo](https://github.com/fruworg)" subtitle = "Минимальная и чистая [тема блога для Hugo](https://github.com/fruworg)"
# Social Tags # Социальные ссылки
[[params.social]] [[params.social]]
name = "GitHub" name = "GitHub"
icon = "github" icon = "github"
url = "https://github.com/<name>" url = "https://github.com/<имя>"
[[params.social]] [[params.social]]
name = "Twitter" name = "Twitter"
icon = "twitter" icon = "twitter"
url = "https://twitter.com/<name>" url = "https://twitter.com/<имя>"
[[params.social]] [[params.social]]
name = "GitLab" name = "GitLab"
icon = "gitlab" icon = "gitlab"
url = "https://gitlab.com/<name>" url = "https://gitlab.com/<имя>"
# Main menu Items # Пункты главного меню
[[menu.main]] [[menu.main]]
name = "Home" name = "Главная"
url = "/" url = "/"
weight = 1 weight = 1
[[menu.main]] [[menu.main]]
name = "All posts" name = "Все статьи"
url = "/posts" url = "/posts"
weight = 2 weight = 2
[[menu.main]] [[menu.main]]
name = "About" name = "О сайте"
url = "/about" url = "/about"
weight = 3 weight = 3
[[menu.main]] [[menu.main]]
name = "Tags" name = "Теги"
url = "/tags" url = "/tags"
weight = 4 weight = 4
``` ```