Hugo. Шаблон для научных работников
Hugo. Шаблон для научных работников
2021-07-02
·
2 мин. для прочтения
- Тема Hugo Academic CV Theme.
- Бывшая тема Wowchemy.
- Бывшая тема Academic.
Содержание
1 Информация
- Сайт: https://hugoblox.com/
- Репозиторий темы: https://github.com/HugoBlox/theme-academic-cv
- Репозитории вариантов тем: https://github.com/HugoBlox
- Репозиторий модулей тем: https://github.com/HugoBlox/kit
1.1 На основе bootstrap
- До 2023 года включительно.
- Документация по сайту на bootstrap: https://bootstrap.hugoblox.com/
1.2 На основе tailwind
- С 2024 года.
- Документация: https://docs.hugoblox.com/
2 Обновление шаблонов Wowchemy
3 Устранение проблем
3.1 Ошибка: нарушение безопасности
- После обновления до 0.91 возникла следующая ошибка при генерации сайта:
hugo v0.91.0+extended linux/amd64 BuildDate=2021-12-22T12:45:46+03:00 VendorInfo=Gentoo ERROR render of "page" failed: execute of template failed: template: project/single.html:5:3: executing "project/single.html" at <partial "site_head" .>: error calling partial: "/home/dharma/work/blog/git/resources/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5@v5.0.0-20211221220555-87f69f8c265e/layouts/partials/site_head.html:207:13": execute of template failed: template: partials/site_head.html:207:13: executing "partials/site_head.html" at <getenv "WC_POST_CSS">: error calling getenv: access denied: "WC_POST_CSS" is not whitelisted in policy "security.funcs.getenv"; the current security configuration is: [security] enableInlineShortcodes = false [security.exec] allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$'] osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$'] [security.funcs] getenv = ['^HUGO_'] [security.http] methods = ['(?i)GET|POST'] urls = ['.*'] - Необходимо добавить строчки в белый список для переменной среды
WC_POST_CSS. - Для
config/_default/config.toml(в формате TOML):[security.funcs] getenv = [ "^HUGO_", "^WC_",] - Для
config/_default/config.yaml(в формате YAML):security: funcs: getenv: - ^HUGO_ - ^WC_
4 Элементы шаблонов Wowchemy
5 Типы контента Wowchemy
6 Полезности
Authors
Профессор кафедры теории вероятностей и кибербезопасности
Мои научные интересы включают физику, администрирование Unix и сетей.