Hugo 主题
Soho
Soho 是一个基于 Hyde 的简约双栏 Hugo 主题,灵感来自 Flex 的成功。
特性
- 移动优先
- 响应式
- 语义化
- SEO 最佳实践
- Open Graph
- Schema.org(微数据和 JSON-LD)
- Twitter 卡片
- 分页
- 可自定义
- 支持所有 Hugo 内部功能
集成
- Disqus
- Google Analytics
安装
要将 Soho 安装为默认主题,请首先将此存储库安装在 themes/
目录中
$ cd themes/
$ git submodule add https://github.com/alexandrevicenzi/soho.git
其次,在 config.toml
文件中将 soho
指定为默认主题。只需添加以下行
theme = "soho"
在文件的顶部。
配置
baseURL = "https://example.com"
title = "Soho"
languageCode = "en"
enableInlineShortcodes = true
summarylength = 10
enableEmoji = true
[params]
author = "Author Name"
description = "My Blog"
## Set one of:
# gravatar = "[email protected]"
profilePicture = "images/profile.png"
copyright = "Author Name"
license = "CC BY-SA 4.0"
licenseURL = "https://creativecommons.org/licenses/by-sa/4.0"
## Set custom theme color.
# themeColor = "#fc2803"
## Set custom CSS and/or JS to override site defaults.
customCss = ["css/blog.css"]
customJs = ["js/blog.js"]
## Set as many as you want.
[[params.socialIcons]]
icon = "fa-linkedin"
title = "Linkedin"
url = "#"
[[params.socialIcons]]
icon = "fa-github"
title = "GitHub"
url = "#"
[[params.socialIcons]]
icon = "fa-twitter"
title = "Twitter"
url = "#"
[menu]
[[menu.main]]
name = "Posts"
weight = 100
identifier = "posts"
url = "/posts/"
[[menu.main]]
name = "About"
identifier = "about"
weight = 300
url = "/about/"
[taxonomies]
category = "categories"
series = "series"
tag = "tags"
[markup]
[markup.highlight]
codeFences = true
guessSyntax = false
hl_Lines = ""
lineNoStart = 1
lineNos = false
lineNumbersInTable = true
noClasses = true # if false, you need to provide you own custom CSS
style = "monokai"
tabWidth = 4
许可证
MIT