Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md28
-rw-r--r--README.zh-cn.md795
-rw-r--r--config-examples/en-us/config.toml1083
-rw-r--r--config-examples/zh-cn/config.toml1062
-rw-r--r--images/homepage-layout-footage.png (renamed from images/home-layout-footage.png)bin575838 -> 575838 bytes
-rw-r--r--images/homepage-layout-poetry.png (renamed from images/home-layout-poetry.png)bin93051 -> 93051 bytes
-rw-r--r--images/homepage-layout-posts.png (renamed from images/home-layout-posts.png)bin142527 -> 142527 bytes
7 files changed, 2175 insertions, 793 deletions
diff --git a/README.md b/README.md
index 31c3f88..79d1a2d 100644
--- a/README.md
+++ b/README.md
@@ -33,13 +33,13 @@ You can check this [report](https://www.webpagetest.org/result/190827_95_55731f5
## Details
-### Home page layout
+### Homepage layout
-For home page layout, MemE has three different kinds: posts, poetry, footage.
+For homepage layout, MemE has three different types: posts, poetry, footage.
-1. [Posts](https://raw.githubusercontent.com/reuixiy/hugo-theme-meme/master/images/home-layout-posts.png), live demo: https://meme-test.netlify.com
-2. [Poetry](https://raw.githubusercontent.com/reuixiy/hugo-theme-meme/master/images/home-layout-poetry.png), live demo: https://io-oi.me
-3. [Footage](https://raw.githubusercontent.com/reuixiy/hugo-theme-meme/master/images/home-layout-footage.png), live demo: https://yixiuer.me
+1. [Posts](https://raw.githubusercontent.com/reuixiy/hugo-theme-meme/master/images/homepage-layout-posts.png), live demo: https://meme-test.netlify.com
+2. [Poetry](https://raw.githubusercontent.com/reuixiy/hugo-theme-meme/master/images/homepage-layout-poetry.png), live demo: https://io-oi.me
+3. [Footage](https://raw.githubusercontent.com/reuixiy/hugo-theme-meme/master/images/homepage-layout-footage.png), live demo: https://yixiuer.me
Also, you can set `homeLayout` equal to `page` and add `_index.md` to site’s content folder, which will get a layout like normal page/post.
@@ -102,11 +102,16 @@ How to update MemE to the latest version?
### Blogging
-1. Replace `config.toml` with demo site’s [config.toml](https://github.com/reuixiy/meme-test/blob/master/config.toml).
+1. Replace `config.toml` with [config.toml](https://github.com/reuixiy/hugo-theme-meme/blob/master/config-examples/en-us/config.toml).
-2. Add some files to `content` directory or just copy demo site’s [content](https://github.com/reuixiy/meme-test/tree/master/content).
+2. Create a new post and the about page:
+ ```
+ ~/blog $ hugo new "posts/hello-world.md"
+ ~/blog $ hugo new "about/_index.md"
+ ```
-3. ```
+3. Now:
+ ```
~/blog $ hugo server -D
```
@@ -114,7 +119,7 @@ How to update MemE to the latest version?
#### Basic
-See [config.toml](https://github.com/reuixiy/meme-test/blob/master/config.toml).
+See [config.toml](https://github.com/reuixiy/hugo-theme-meme/blob/master/config-examples/en-us/config.toml).
#### Service Worker
@@ -154,16 +159,15 @@ gitinfo | display post-gitinfo | boolean, override `displayPostGitInfo` in `conf
related | display related-posts | boolean, override `displayRelatedPosts` in `config.toml`, theme only
katex | add KaTeX support | boolean, override `enableKaTeX` in `config.toml`, theme only
comments | set `false` to disable comments in postSections or set `true` to enable comments in non-postSections | boolean, theme only
-original | original? You can add the following 9 terms if you set `false`. The `author` is required, other optional | boolean, override `original` in `config.toml`, theme only
+original | original? You can add the following 8 terms if you set `false`. The `author` is required, other optional | boolean, override `original` in `config.toml`, theme only
author | author of original post | string, theme only
link | link of original post | string, URL, theme only
copyright | license of the post | string, Markdown supported, theme only
website | author’s website | string, theme only
email | author’s email | string, theme only
-motto | author’s description | string, Markdown supported, theme only
+motto | author’s description | string, theme only
avatar | author’s avatar | string, URL, theme only
twitter | author’s twitter id | string, theme only
-facebook | author’s facebook id | string, theme only
smallCaps | small caps? | boolean, override `enableSmallCaps` in `config.toml`, theme only
dropCap | drop cap? | boolean, override `enableDropCap` in `config.toml`, theme only
dropCapAfterHr | drop cap after every horizontal rule tag? | boolean, override `enableDropCapAfterHr` in `config.toml`, theme only
diff --git a/README.zh-cn.md b/README.zh-cn.md
index bbea03a..2fc3475 100644
--- a/README.zh-cn.md
+++ b/README.zh-cn.md
@@ -37,9 +37,9 @@ MemE 是一个强大且可高度定制的 [GoHugo](https://github.com/gohugoio/h
对于首页布局,MemE 主题提供了三种不同的样式:文章摘要(posts)、诗意人生(poetry)、视频片段(footage)。
-1. [文章摘要](https://raw.githubusercontent.com/reuixiy/hugo-theme-meme/master/images/home-layout-posts.png),在线预览:https://meme-test.netlify.com
-2. [诗意人生](https://raw.githubusercontent.com/reuixiy/hugo-theme-meme/master/images/home-layout-poetry.png),在线预览:https://io-oi.me
-3. [视频片段](https://raw.githubusercontent.com/reuixiy/hugo-theme-meme/master/images/home-layout-footage.png),在线预览:https://yixiuer.me
+1. [文章摘要](https://raw.githubusercontent.com/reuixiy/hugo-theme-meme/master/images/homepage-layout-posts.png),在线预览:https://meme-test.netlify.com
+2. [诗意人生](https://raw.githubusercontent.com/reuixiy/hugo-theme-meme/master/images/homepage-layout-poetry.png),在线预览:https://io-oi.me
+3. [视频片段](https://raw.githubusercontent.com/reuixiy/hugo-theme-meme/master/images/homepage-layout-footage.png),在线预览:https://yixiuer.me
同时,你也可以通过设置 `homeLayout` 为 `page`,并在站点的 content 文件夹下添加 `_index.md` 文件,以得到一个类似普通页面╱文章的首页布局。
@@ -102,11 +102,16 @@ https://gohugo.io/getting-started/quick-start/
### 写作
-1. 将 `config.toml` 替换为预览站点的 [config.toml](https://github.com/reuixiy/meme-test/blob/master/config.toml)。
+1. 将 `config.toml` 替换为 [config.toml](https://github.com/reuixiy/hugo-theme-meme/blob/master/config-examples/zh-cn/config.toml)。
-2. 添加一些文章到站点的 `content` 目录内,或者,你也可以直接复制预览站点的 [content](https://github.com/reuixiy/meme-test/tree/master/content)。
+2. 新建一篇文章和一个关于页面:
+ ```
+ ~/blog $ hugo new "posts/hello-world.md"
+ ~/blog $ hugo new "about/_index.md"
+ ```
-3. ```
+3. 现在:
+ ```
~/blog $ hugo server -D
```
@@ -114,778 +119,7 @@ https://gohugo.io/getting-started/quick-start/
#### 基本
-请查看 [config.toml](https://github.com/reuixiy/meme-test/blob/master/config.toml)。
-
-由于文档还在码字中,为了中文用户的方便,先贴出 MemE 主题的单语言示例配置的简体中文版本:
-
-```toml
-baseURL = "https://example.com/"
-theme = "meme"
-title = "Hugo Theme MemE"
-languageCode = "zh-CN"
-copyright = "[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh)"
-hasCJKLanguage = true
-
-defaultContentLanguage = "zh-cn"
-defaultContentLanguageInSubdir = false
-
-# 是否启用 Git 版本信息
-enableGitInfo = false
-
-# 是否复数化列表的标题
-pluralizeListTitles = false
-
-# 摘要文字的字数
-summaryLength = 42
-
-# 是否生成 robots.txt 文件
-enableRobotsTXT = true
-
-# 代码高亮相关配置
-pygmentsCodefences = true
-pygmentsUseClasses = true
-pygmentsCodefencesGuessSyntax = true
-pygmentsOptions = "linenos=table"
-
-# 是否开启 GitHub 风格的 Emoji 书写方式
-enableEmoji = true
-
-# 脚注的返回链接
-footnoteReturnLinkContents = "↩"
-
-# 分页设置
-paginate = 5
-
-# 相关文章设置
-[related]
-threshold = 80
-includeNewer = true
-toLower = true
-[[related.indices]]
-name = "series"
-weight = 100
-[[related.indices]]
-name = "categories"
-weight = 100
-[[related.indices]]
-name = "tags"
-weight = 95
-[[related.indices]]
-name = "keywords"
-weight = 90
-[[related.indices]]
-name = "date"
-weight = 10
-pattern = "2006"
-
-# 修改时间的设置
-[frontmatter]
-lastmod = ["lastmod", ":git", ":fileModTime", ":default"]
-
-# Markdown 渲染器的设置
-[blackfriday]
-smartypants = false
-fractions = false
-hrefTargetBlank = true
-extensionsmask = ["hardLineBreak", "backslashLineBreak"]
-
-# 是否使用丑 URL(以 `.html` 结尾)
-# uglyURLs = true
-
-# URL 结构
-[permalinks]
-categories = "/categories/:slug/"
-tags = "/tags/:slug/"
-
-# 类别
-[taxonomies]
-category = "categories"
-tag = "tags"
-
-# Atom 输出设置
-[mediaTypes."application/atom+xml"]
-suffixes = ["xml"]
-
-# Atom 输出设置
-[outputFormats.SectionsAtom]
-mediaType = "application/atom+xml"
-baseName = "atom"
-
-# RSS 输出设置
-[outputFormats.SectionsRSS]
-mediaType = "application/rss+xml"
-baseName = "rss"
-
-# 输出设置
-[outputs]
-page = ["HTML"]
-home = ["HTML", "SectionsAtom", "SectionsRSS"]
-section = ["HTML"]
-taxonomyTerm = ["HTML"]
-taxonomy = ["HTML"]
-
-# 作者信息
-[author]
-name = "reuixiy"
-email = "reuixiy@gmail.com"
-motto = "Viva La Vida"
-avatar = "/icons/apple-touch-icon.png"
-website = "https://io-oi.me/"
-twitter = "reuixiy"
-facebook = "reuixiy"
-
-# RSS & Atom 文章数设置
-[services.rss]
-limit = -1
-
-# 菜单设置
-
-# 菜单栏
-[[menu.main]]
-url = "/home/"
-name = "Home"
-weight = 1
-pre = "internal"
-post = "home"
-identifier = "home"
-
-[[menu.main]]
-url = "/archives/"
-name = "Archives"
-weight = 2
-pre = "internal"
-post = "archive"
-identifier = "archives"
-
-[[menu.main]]
-url = "/posts/"
-name = "Posts"
-weight = 3
-pre = "internal"
-post = "wpexplorer"
-identifier = "posts"
-
-[[menu.main]]
-url = "/poetry/"
-name = "Poetry"
-weight = 4
-pre = "internal"
-post = "grav"
-identifier = "poetry"
-
-[[menu.main]]
-url = "/categories/"
-name = "Categories"
-weight = 5
-pre = "internal"
-post = "th"
-identifier = "categories"
-
-[[menu.main]]
-url = "/tags/"
-name = "Tags"
-weight = 6
-pre = "internal"
-post = "tags"
-identifier = "tags"
-
-[[menu.main]]
-url = "/about/"
-name = "About"
-weight = 7
-pre = "internal"
-post = "user-circle"
-identifier = "about"
-
-# 「诗意人生」首页布局的底部链接(图标形式)
-# [[menu.home]]
-# url = "/life/"
-# weight = 1
-# pre = "internal"
-# post = "grav"
-# identifier = "life"
-
-# [[menu.home]]
-# url = "/tech/"
-# weight = 2
-# pre = "internal"
-# post = "wpexplorer"
-# identifier = "tech"
-
-# [[menu.home]]
-# url = "/about/"
-# weight = 3
-# pre = "internal"
-# post = "user-circle"
-# identifier = "about"
-
-# 「诗意人生」首页布局的底部链接(文字形式)
-# [[menu.home]]
-# url = "/life/"
-# name = "Life"
-# weight = 1
-# pre = "internal"
-# identifier = "life"
-
-# [[menu.home]]
-# url = "https://t.me/yixiuer"
-# name = "Telegram"
-# weight = 2
-# pre = "external"
-# identifier = "telegram"
-
-# [[menu.home]]
-# url = "/atom.xml"
-# name = "Feed"
-# weight = 3
-# pre = "external"
-# identifier = "feed"
-
-# 关于页面的极简页脚的左边部分
-[[menu.socials]]
-url = "https://github.com/reuixiy"
-name = "GitHub"
-weight = 1
-pre = "external"
-identifier = "github"
-
-[[menu.socials]]
-url = "https://twitter.com/reuixiy"
-name = "Twitter"
-weight = 2
-pre = "external"
-identifier = "twitter"
-
-[[menu.socials]]
-url = "https://www.spotify.com/"
-name = "Music"
-weight = 3
-pre = "external"
-identifier = "music"
-
-# 关于页面的极简页脚的右边部分
-[[menu.links]]
-url = "/"
-name = "HOME"
-weight = 1
-pre = "internal"
-identifier = "home"
-
-[[menu.links]]
-url = "/series/"
-name = "Series"
-weight = 2
-pre = "internal"
-identifier = "series"
-
-[[menu.links]]
-url = "/atom.xml"
-name = "Feed"
-weight = 3
-pre = "external"
-identifier = "feed"
-
-# 主题设置
-[params]
-# 是否显示顶栏
-enableHeader = true
-# 是否在首页显示顶栏
-displayHeaderInHome = true
-
-# 是否显示菜单栏
-enableMenu = true
-# 是否在首页显示菜单栏
-displayMenuInHome = true
-
-# 是否用 SVG 作为站点的品牌栏(在顶栏内)
-# 如果是,请将你的 SVG 放到 `SVG.toml` 文件内
-# 如果否,则会使用你的站点标题作为默认值
-# 单位:px
-siteBrandSVG = true
-siteBrandSVGWidth = 250
-siteBrandSVGHeight = 100
-siteBrandSVGFill = "#fff"
-
-# 当使用站点标题作为站点的品牌栏时
-# 字体的大小和颜色
-# 单位:em
-siteBrandFontSize = 5
-siteBrandFontColor = "#fff"
-
-# 品牌栏的背景色
-# siteBrandBackgroundColor = "hsl(240, 8%, 12%)"
-# 品牌栏的背景图片
-siteBrandBackgroundImage = "linear-gradient(90deg, #f79533 0, #f37055 15%, #ef4e7b 30%, #a166ab 44%, #5073b8 58%, #1098ad 72%, #07b39b 86%, #6dba82 100%)"
-
-# 首页布局
-# poetry, footage, posts, page
-homeLayout = "posts"
-
-# 「诗意人生」首页布局的设置
-# 诗句,支持 Markdown
-homePoetry = []
-# 链接的内间距,单位:em
-homeLinksPadding = 1
-
-# 「视频片段」首页布局的设置
-homePoster = ""
-homeVideoWebm = ""
-homeVideoMp4 = ""
-homeLogo = ""
-homeLogoLink = ""
-homeTitle = ""
-homeMotto = ""
-homeDescription = ""
-homeKeywords = ""
-homeLinksDelimiter = ""
-
-# 站点的 LOGO,用于 JSON-LD, Twitter Cards, Open Graph
-siteLogo = "/icons/apple-touch-icon.png"
-# 站点的描述,用于 HTML 的头部元数据
-siteDescription = "MemE is a powerful and highly customizable GoHugo theme for personal blogs."
-# 站点的关键词,如果为空,则会取站点的所有类别名作为默认值
-siteKeywords = []
-# 站点的创建时间,请保持此格式,更改数字
-siteCreatedTime = "1969-07-20T20:17:43+00:00"
-# 站点的推特帐号,用于 Twitter Cards
-siteTwitter = "reuixiy"
-# 站点的脸书帐号,用于 Open Graph
-siteFacebook = "reuixiy"
-
-# 分类方式
-# sections or categories
-# 注意:如果你设置为 `sections`,
-# 请务必将此配置文件中的类别(taxonomies)中的 `categories` 删除
-categoryBy = "categories"
-
-# 分类页面
-# 是否开启树状分类
-# 注意:如果你设置 categoryBy 为 `sections`,则无法关闭树状分类
-enableTree = true
-# 是否显示文章
-displayPosts = true
-# 是否显示每一分类下的文章数
-displayPostsCount = true
-
-# 标签页面
-# 是否开始标签云
-enableTagCloud = true
-fontUnit = "em"
-largestFontSize = 2.5
-smallestFontSize = 1
-
-# 列表的宽度,单位:em
-# 如果为空(""),则用 42 作为默认值
-listWidth = 30
-# 是否显示列表的标题
-displayListTitle = true
-# 列表的日期格式
-# 请遵循格式:https://gohugo.io/functions/format/
-listDateFormat = "January 2"
-# 列表的日期的位置,left 或 right
-listDatePosition = "right"
-# 是否按月份分隔列表
-groupByMonth = true
-# 是否开启十二生肖
-chineseZodiac = true
-# 是否翻译年份
-i18nYear = true
-# 是否翻译月份
-i18nMonth = true
-
-# 类别列表
-# 是否显示每一类别下的文章数
-displayTaxonomyTermCount = true
-
-# Override Hugo’s default value
-mainSections = ["posts"]
-
-# 文章的分区范围
-postSections = ["posts", "poetry"]
-
-# Atom & RSS
-# 订阅的分区范围
-feedSections = ["posts"]
-# 是否包括全文内容,如果否,则只会包含文章的摘要
-# 说明:你可以在文章的 Front Matter 中指定摘要,
-# `summary` 或 `description`,但后者优先级高于前者
-includeContent = true
-
-# 深色模式
-# 是否开启
-enableDarkMode = true
-# 默认模式
-defaultTheme = "light"
-# 是否隐藏模式切换开关
-# 注意:如果开启了深色模式,即使你隐藏了开关,你的读者依然可能以深色模式
-# 阅读你的博客,如果该读者的系统设置了深色模式的话(`prefers-color-scheme: dark`)
-hideThemeToggle = false
-# 是否在首页隐藏模式切换开关
-hideThemeToggleInHome = false
-
-# 网页应用
-# 前往 https://realfavicongenerator.net/ 生成相关图标和文件
-# 仅保留 android-chrome-512x512.png, apple-touch-icon.png, mstile-150x150.png,
-# safari-pinned-tab.svg, favicon.ico, site.webmanifest 这些文件,删除其余
-# 将这些文件移动到 ~/blog/static/icons/ 目录下,再将 favicon.ico, site.webmanifest 移动到 ~/blog/static/ 目录下
-# 再将 site.webmanifest 重命名为 manifest.json,并检查和修改相关内容(图标的路径)
-themeColor = "#fff"
-themeColorDark = "#1c1c21"
-safariMaskColor = "#2a6df4"
-msApplicationTileColor = "#fff"
-
-# 网页头部元数据、搜索引擎优化(SEO)、社交网络发现
-# 注意:如果你设置 twitterCards 为 `true`,请务必开启 openGraph
-# 否则,你的 Twitter Cards 信息将会不完整
-jsonLD = true
-openGraph = true
-twitterCards = true
-# 是否自动探测图片
-autoDetectImages = true
-
-# InstantClick
-enableInstantClick = true
-
-# 是否开启 Service Worker
-# 需要第三方支持,暂见:https://io-oi.me/tech/pwa-via-workbox/
-enableServiceWorker = true
-
-# 是否开启 KaTeX
-# 说明:建议在有需要的文章的 Front Matter 中设置 `katex` 为 `true`
-# 不建议在此处开启
-enableKaTeX = false
-
-# 是否开启评论
-enableComments = false
-# 是否开启 Disqus
-enableDisqus = false
-disqusShortname = ""
-
-# 是否开启谷歌分析
-enableGoogleAnalytics = false
-# 跟踪代码的类型
-# `gtag` or `analytics`
-trackingCodeType = "gtag"
-trackingID = ""
-
-googleSiteVerification = ""
-
-# https://developers.facebook.com/apps/
-# Used for Open Graph
-facebookAppID = ""
-
-# 文章设置
-
-# 超链接的颜色变化持续时间
-# 单位:秒
-duration = 0.5
-
-# 浅色模式的主色
-# HSL 颜色值
-primaryColorLight = "220, 90%, 56%"
-# 深色模式的主色
-primaryColorDark = "201, 65%, 62%"
-
-# 文章的内容宽度
-# 如果为空(""),则用 42 作为默认值
-# 单位:em
-postWidth = 32
-
-# 文章是否为原创(会影响文章的作者和版权信息)
-# 说明:如果有某篇文章为非原创,则在该文章的 Front Matter 中设置 `false`
-original = true
-
-# 是否显示文章描述
-displayPostDescription = true
-
-# 文章的相关信息
-# 是否开启
-enablePostMeta = true
-# 是否在首页开启(仅对「文章摘要」首页布局有效)
-enablePostMetaInHome = true
-# 文章的相关信息的日期格式
-postMetaDateFormat = "January 2, 2006"
-# 是否显示发布时间
-displayPublishedDate = true
-# 发布时间的图标
-publishedDateIcon = "calendar-alt"
-# 是否显示修改时间
-displayModifiedDate = true
-# 修改时间的图标
-modifiedDateIcon = "calendar-check"
-# 是否显示过期时间
-# 说明:仅当其值不为空时才会显示
-displayExpiredDate = true
-# 过期时间的图标
-expiredDateIcon = "calendar-times"
-# 是否显示分类
-displayCategory = true
-# 分类的图标
-categoryIcon = "folder"
-# 分类的分隔符
-categoryDelimiter = "/"
-# 是否显示字数统计
-displayWordCount = true
-# 字数统计的图标
-wordCountIcon = "pencil-alt"
-# 是否显示阅读时长
-displayReadingTime = true
-# 阅读时长的图标
-readingTimeIcon = "clock"
-
-# 文章的目录
-# 是否开启(全局设置)
-# 说明:文章的 Front Matter 中的 `toc` 的优先级高于此处
-enableTOC = false
-# 是否显示目录的标题
-displayTOCTitle = true
-# 是否链接文章的标题到目录
-linkHeadingsToTOC = true
-
-# 分节标题锚点╱分节标识
-# 是否开启
-enableHeadingsAnchor = true
-# 分节标题级别的范围
-# 正则格式,默认 1-6,即 1|2|3|4|5|6,即 h1-h6
-headingsOpt = "1-6"
-# 锚点符号
-# 说明:锚点图标的优先级高于锚点符号
-# 默认值:§
-anchorSymbol = "#"
-# 锚点图标
-anchorIcon = "link"
-# 是否开启锚点链接
-enableAnchorLink = true
-# 是否自动隐藏锚点
-enableAnchorAutoHide = true
-
-# 图片╱视频
-# 是否开启说明文字,如果是,则会将 `title` 用于说明文字
-enableCaption = true
-# 说明文字的前缀
-captionPrefix = "◎ "
-
-# 图片外链
-# 说明:只支持相对于站点根目录的绝对链接
-# 比如:/../../*.jpg
-# 是否开启
-enableImageHost = false
-# 图片外链地址
-imageHostURL = "https://example.com/"
-# 是否将 HTML 的头部元数据中的图片链接也替换为外链
-headAlso = false
-
-# 视频外链
-# 说明:只支持相对于站点根目录的绝对链接
-# 比如:/../../*.mp4
-# 是否开启
-enableVideoHost = false
-# 视频外链地址
-videoHostURL = "https://example.com/"
-
-# 脚注
-# 是否用方括号包裹脚注的引用链接
-squareBrackets = true
-# 替换脚注的返回链接为图标
-# 如果不为空(""),则会用图标替换 `footnoteReturnLinkContents`
-footnoteReturnLinkIcon = "angle-up"
-# 是否自行插入分隔线
-# 如果是,则会将自动添加的分隔线删除
-# 说明:实际上,你添加的分隔线会被删除。如果你喜欢在 Markdown 中插入
-# `---` 以将文章的正文内容与脚注内容分隔开来,这项设置将会非常有用
-insertHrBySelf = true
-
-# Markdown
-# 着重号,新语法 `..text..`
-# 是否开启
-enableEmphasisPoint = false
-
-# 字体排版
-
-# 字号
-# 单位:px
-fontSize = 16
-# 行间距
-# 说明:只会应用到文章的段落和目录
-lineHeight = 2
-
-# 字体
-# 说明:任何一项没有设置,则会回退到 `fontFamilyBody`
-# 品牌栏字体
-# 说明:如果你的品牌栏用的 SVG,则留空此项
-fontFamilySiteBrand = ""
-# 菜单栏字体
-fontFamilyMenu = ""
-# 文章标题字体
-fontFamilyTitle = "Comfortaa, 'Noto Serif SC', serif"
-# 分节标题字体
-fontFamilyHeadings = "Comfortaa, 'Noto Serif SC', serif"
-# 代码字体
-fontFamilyCode = "'Source Code Pro', 'Noto Serif SC', monospace"
-# 引用字体
-fontFamilyQuote = ""
-# 目录字体
-fontFamilyTOC = ""
-# 说明文字字体
-fontFamilyCaption = ""
-# 页脚字体
-fontFamilyFooter = ""
-# 主体字体
-fontFamilyBody = "'EB Garamond', 'Noto Serif SC', serif"
-
-# 字体链接
-# 前往 https://fonts.google.com/ 获取
-fontsLink = 'https://fonts.googleapis.com/css?family=EB+Garamond:400,400i,700,700i|Noto+Serif+SC:400,700|Source+Code+Pro:400,400i,700,700i|Comfortaa:700&display=swap&subset=chinese-simplified'
-
-# 是否开启中文标点符号字形纠正
-enableChinesePunctuationGlyphCorrection = true
-
-# 是否开启大型小写(仅限英文)
-# 说明:只会应用到分节标题和目录标题
-enableSmallCaps = false
-
-# 是否开启首字下沉
-enableDropCap = true
-# 是否在每一条分隔线之后首字下沉
-enableDropCapAfterHr = false
-# 是否删除首字下沉前的分隔线
-deleteHrBeforeDropCap = false
-
-# 是否开启段首缩排
-enableParagraphIndent = true
-# 分段样式(全局设置)
-# 段间距式(margin)或段首缩排(indent)
-# 文章 Front Matter 中的 `indent` 的优先级高于此处
-paragraphStyle = "margin"
-
-# 是否开启两端对齐
-enableJustify = false
-
-# 文章版权
-# 是否开启
-enablePostCopyright = true
-# 是否显示
-displayPostCopyright = true
-
-# 文章更新徽章
-# 是否开启
-enablePostUpdatedBadge = true
-# 是否显示
-displayUpdatedBadge = true
-# 是否添加 `title`
-enableBadgeTitle = true
-# `title` 的前缀
-badgeTitlePrefix = "Updated @ "
-
-# 文章的 Git 版本信息
-# 是否开启
-enablePostGitInfo = false
-# 是否显示
-displayPostGitInfo = false
-# 仓库地址
-repoURL = "https://github.com/reuixiy/meme-test"
-# 编辑地址
-# 以下或 https://github.com/reuixiy/meme-test/edit/master
-repoEditURL = "https://github.com/reuixiy/meme-test/blob/master"
-# Git 的图标
-gitIcon = "code-branch"
-# 是否显示改动哈希
-displayCommitHash = true
-# 是否显示改动信息
-displayCommitMessage = true
-# 改动信息的图标
-msgIcon = "info"
-# 是否显示反馈链接
-displayFeedback = true
-# 反馈链接的图标
-feedbackIcon = "question"
-# 反馈链接的文本
-feedbackText = "Feedback"
-# 是否显示编辑链接
-displayEditLink = true
-# 编辑链接的图标
-editIcon = "edit"
-# 编辑链接的文本
-editText = "Edit Me?"
-
-# 相关文章
-# 是否开启
-enableRelatedPosts = true
-# 是否显示
-displayRelatedPosts = true
-# 相关文章数
-relatedPostsNumber = 5
-# 相关文章图标
-relatedPostsIcon = "plus-circle"
-
-# 文章的标签
-# 是否开启
-enablePostTags = true
-# 标签的图标
-postTagsIcon = "tag"
-
-# 是否开启极简页脚
-enableMinimalFooter = false
-# 是否开启关于页面的极简页脚
-enableAboutPageMinimalFooter = true
-
-# 文章上下篇
-# 是否开启
-enablePostNav = true
-# 是否仅限于相同分区
-postNavInSection = false
-
-# 是否开启代码高亮
-enableHighlight = true
-
-# 返回顶部按钮
-# 是否开启
-enableBackToTop = true
-# 按钮图标
-backToTopIcon = "arrow-up"
-# 是否在首页显示
-displayBackToTopInHome = true
-
-# 页脚
-# 说明:「诗意人生」和「视频片段」首页布局没有页脚
-# 是否开启页脚
-enableFooter = true
-# 是否显示版权符号
-displayCopyrightSymbol = true
-# 是否显示站点的创建年份
-displaySiteCreatedYear = true
-# 年份与作者之间的图标
-iconBetweenYearAndAuthor = "heart"
-# 图标颜色
-iconColor = "#f06292"
-# 是否开启图标的跳动效果
-iconAnimation = true
-# 是否显示 Hugo 和 MemE 的链接
-displayPoweredBy = true
-# 是否显示站点的版权信息
-displaySiteCopyright = true
-# 自定义页脚(支持 Markdown)
-customFooter = ""
-
-# 多语言
-# 是否开启多语言按钮
-enableLangToggle = false
-# 是否自动隐藏多语言按钮,即仅当该文章有相应的翻译版本时才显示按钮
-autoHideLangToggle = true
-# 是否在首页隐藏多语言按钮
-hideLangToggleInHome = false
-
-# Style & Script
-enableFingerprint = false
-
-# 404 页面
-# 说明:视频地址可留空
-# 视频封面
-fofPoster = "/images/flying-clouds-720p.jpg"
-# 视频地址
-fofVideoWebm = "/videos/flying-clouds-720p.webm"
-fofVideoMp4 = "/videos/flying-clouds-720p.mp4"
-```
+请查看 [config.toml](https://github.com/reuixiy/hugo-theme-meme/blob/master/config-examples/zh-cn/config.toml)。
#### Service Worker
@@ -925,16 +159,15 @@ gitinfo | display post-gitinfo | boolean, override `displayPostGitInfo` in `conf
related | display related-posts | boolean, override `displayRelatedPosts` in `config.toml`, theme only
katex | add KaTeX support | boolean, override `enableKaTeX` in `config.toml`, theme only
comments | set `false` to disable comments in postSections or set `true` to enable comments in non-postSections | boolean, theme only
-original | original? You can add the following 9 terms if you set `false`. The `author` is required, other optional | boolean, override `original` in `config.toml`, theme only
+original | original? You can add the following 8 terms if you set `false`. The `author` is required, other optional | boolean, override `original` in `config.toml`, theme only
author | author of original post | string, theme only
link | link of original post | string, URL, theme only
copyright | license of the post | string, Markdown supported, theme only
website | author’s website | string, theme only
email | author’s email | string, theme only
-motto | author’s description | string, Markdown supported, theme only
+motto | author’s description | string, theme only
avatar | author’s avatar | string, URL, theme only
twitter | author’s twitter id | string, theme only
-facebook | author’s facebook id | string, theme only
smallCaps | small caps? | boolean, override `enableSmallCaps` in `config.toml`, theme only
dropCap | drop cap? | boolean, override `enableDropCap` in `config.toml`, theme only
dropCapAfterHr | drop cap after every horizontal rule tag? | boolean, override `enableDropCapAfterHr` in `config.toml`, theme only
diff --git a/config-examples/en-us/config.toml b/config-examples/en-us/config.toml
new file mode 100644
index 0000000..61e2de5
--- /dev/null
+++ b/config-examples/en-us/config.toml
@@ -0,0 +1,1083 @@
+##########################################
+# Site Settings
+
+baseURL = "https://example.com/"
+title = "Hugo Theme MemE"
+languageCode = "en-US"
+hasCJKLanguage = false
+# Copyright information (Markdown supported)
+copyright = "[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en)"
+
+# Name of theme
+theme = "meme"
+
+# i18n
+defaultContentLanguage = "en-us"
+defaultContentLanguageInSubdir = false
+
+# Pluralize titles in lists?
+pluralizeListTitles = false
+
+# The length of text in words to show in summary
+summaryLength = 42
+
+# Enable Emoji emoticons support?
+enableEmoji = false
+
+# Text to display for footnote return links
+footnoteReturnLinkContents = "↩"
+
+# Enable `.GitInfo` object for each page?
+enableGitInfo = false
+
+# Enable generation of `robots.txt` file?
+enableRobotsTXT = true
+
+# Number of items per page in paginated
+# lists (valid for the `posts` homepage
+# layout in MemE)
+paginate = 5
+
+# GitHub flavoured code fences
+pygmentsCodefences = true
+pygmentsUseClasses = true
+pygmentsCodefencesGuessSyntax = true
+pygmentsOptions = "linenos=table"
+
+# URL related
+disablePathToLower = false
+uglyURLs = false
+
+# URL structure
+[permalinks]
+ categories = "/categories/:slug/"
+ tags = "/tags/:slug/"
+
+# Taxonomies
+[taxonomies]
+ category = "categories"
+ tag = "tags"
+
+# Modified date
+[frontmatter]
+ lastmod = ["lastmod", ":git", ":fileModTime", ":default"]
+
+# Markdown rendering engine
+[blackfriday]
+ # Enable smart punctuation substitutions?
+ smartypants = true
+ # Open external links in a new window or tab?
+ hrefTargetBlank = true
+ # Disable some Blackfriday’s Markdown extensions
+ extensionsmask = ["hardLineBreak", "backslashLineBreak"]
+
+# Author’s information
+[author]
+ # Name
+ name = "reuixiy"
+ # Email
+ email = "reuixiy@gmail.com"
+ # Motto or introduction
+ motto = "Viva La Vida"
+ # Avatar
+ avatar = "/icons/apple-touch-icon.png"
+ # Personal website, default: baseURL
+ website = "https://io-oi.me/"
+ # Twitter
+ twitter = "reuixiy"
+
+# Related content
+[related]
+ threshold = 80
+ includeNewer = true
+ toLower = true
+ [[related.indices]]
+ name = "categories"
+ weight = 100
+ [[related.indices]]
+ name = "tags"
+ weight = 95
+ [[related.indices]]
+ name = "date"
+ weight = 10
+ pattern = "2006"
+
+# MIME type of Atom
+[mediaTypes."application/atom+xml"]
+ suffixes = ["xml"]
+
+# Custom Atom template of MemE
+[outputFormats.SectionsAtom]
+ mediaType = "application/atom+xml"
+ baseName = "atom"
+
+# Custom RSS template of MemE
+[outputFormats.SectionsRSS]
+ mediaType = "application/rss+xml"
+ baseName = "rss"
+
+# Hugo’s output control
+[outputs]
+ page = ["HTML"]
+ home = ["HTML", "SectionsAtom", "SectionsRSS"]
+ section = ["HTML"]
+ # Taxonomy
+ taxonomyTerm = ["HTML", "RSS"]
+ # Taxonomy term
+ taxonomy = ["HTML"]
+ # Note: https://github.com/gohugoio/hugo/issues/4528#issuecomment-508488859
+
+# Maximum number of items in the Atom & RSS feed
+[services.rss]
+ limit = -1
+
+
+
+##########################################
+# Menu Settings
+
+# MemE supports the following four menus:
+# 1. main Menu bar below the header
+# 2. home Links at the bottom of the
+# homepage (valid for the
+# `poetry` and `footage`
+# homepage layout)
+# 3. socials Social bar (minimal footer
+# in about page)
+# 4. links Link bar (minimal footer
+# in about page)
+
+# The configuration instructions in the
+# menu are as follows:
+# url URL
+# name Text (won’t display if it
+# is left empty("") or does
+# not exist)
+# weight Position
+# pre Type of link (internal or
+# external)
+# post Icon (won’t display if it
+# is left empty("") or does
+# not exist)
+# identifier Icon’s class name (invalid
+# for the `main` menu)
+
+[menu]
+ ## Menu bar
+ [[menu.main]]
+ url = "/"
+ name = "Home"
+ weight = 1
+ pre = "internal"
+ post = "home"
+ [[menu.main]]
+ url = "/posts/"
+ name = "Posts"
+ weight = 2
+ pre = "internal"
+ post = "archive"
+ [[menu.main]]
+ url = "/categories/"
+ name = "Categories"
+ weight = 3
+ pre = "internal"
+ post = "th"
+ [[menu.main]]
+ url = "/tags/"
+ name = "Tags"
+ weight = 4
+ pre = "internal"
+ post = "tags"
+ [[menu.main]]
+ url = "/about/"
+ name = "About"
+ weight = 5
+ pre = "internal"
+ post = "user-circle"
+
+
+
+##########################################
+# Theme Settings
+
+[params]
+ ######################################
+ # Header
+
+ enableHeader = true
+
+ displayHeaderInHome = true
+
+
+ ######################################
+ # Brand Bar (inside header)
+
+ # Use SVG?
+ siteBrandSVG = true
+ # If true, put your SVG in the `SVG.toml`
+ # file and configure the following options.
+ # Unit: px
+ siteBrandSVGWidth = 250
+ siteBrandSVGHeight = 100
+ siteBrandSVGFill = "#fff"
+ # If false, your site title will be
+ # used as the default and displayed as
+ # text. The font size and font color
+ # can be configured below. The font
+ # family can be configured in typography
+ # section at the bottom of this file.
+ # Unit: em
+ siteBrandFontSize = 5
+ siteBrandFontColor = "#fff"
+
+ # siteBrandBackgroundColor = "hsl(240, 8%, 12%)"
+ siteBrandBackgroundImage = "linear-gradient(90deg, #f79533 0, #f37055 15%, #ef4e7b 30%, #a166ab 44%, #5073b8 58%, #1098ad 72%, #07b39b 86%, #6dba82 100%)"
+ # ATTENTION: These two items cannot be
+ # set together!
+
+
+ ######################################
+ # Menu Bar
+
+ enableMenu = true
+
+ displayMenuInHome = true
+
+ # Highlight current menu item by section?
+ activeInSection = false
+ # Note: if true, the menu item in the
+ # post page will be highlighted
+ # also if that post’s section is
+ # the `url` of that menu item
+
+
+ ######################################
+ # Homepage Layout
+
+ # For homepage layout, MemE has the
+ # following four different types:
+ # 1. poetry A few lines of verse
+ # 2. footage With fullscreen background videos
+ # 3. posts List of post’s summary
+ # 4. page Normal page/post
+
+ homeLayout = "posts"
+
+ ## Poetry
+ # Verse (Markdown supported)
+ homePoetry = []
+ # Padding of links at the bottom
+ # Unit: em
+ homeLinksPadding = 1
+
+ ## Footage
+ homePoster = ""
+ homeVideoWebm = ""
+ homeVideoMp4 = ""
+ homeLogo = ""
+ homeLogoLink = ""
+ homeTitle = ""
+ homeMotto = ""
+ homeDescription = ""
+ homeKeywords = ""
+ homeLinksDelimiter = ""
+
+
+ ######################################
+ # Site Info
+
+ siteLogo = "/icons/apple-touch-icon.png"
+ # Note: used for JSON-LD, Open Graph
+
+ siteDescription = "MemE is a powerful and highly customizable GoHugo theme for personal blogs."
+ # Note: used for HTML head meta, JSON-LD,
+ # Open Graph, Atom, RSS
+
+ siteKeywords = []
+ # Note: all taxonomy terms and sections
+ # name (if category by sections)
+ # of the site will be taken as
+ # default if it is left empty([])
+
+ siteCreatedTime = "1969-07-20T20:17:43+00:00"
+ # ATTENTION: keep this format, change
+ # the number
+
+ siteTwitter = "reuixiy"
+ # Note: used for Twitter Cards
+
+
+ ######################################
+ # Category By
+
+ # MemE supports category by:
+ # 1. sections
+ # 2. categories
+ # The sections is based on the site’s
+ # `content` directory structure; the
+ # categories is based on the post’s
+ # Front Matter. First of all, category
+ # means tree structure (nested, with
+ # sub-category). To achieve it, Hexo
+ # uses the second method, while Hugo
+ # uses the first method. Due to the
+ # different design philosophy, the
+ # difference between Hexo and Hugo has
+ # been made. Therefore, this option
+ # was designed here to be user friendly
+ # to those who come from Hexo. But note
+ # that the second method cannot be
+ # implemented perfectly in Hugo. I
+ # recommended you adapt to Hugo’s design
+ # philosophy if you want to keep the
+ # tree organization structure of your
+ # posts.
+
+ categoryBy = "categories"
+ # ATTENTION: If you set it to `sections`,
+ # be sure to delete `categories`
+ # in `taxonomies` at the top
+ # of this file. Otherwise,
+ # the categories page will
+ # be invalid.
+
+
+ ######################################
+ # Categories Page
+
+ # Enable tree structure layout?
+ enableTree = true
+ # ATTENTION: This option cannot be
+ # disabled if you set
+ # `categoryBy` to `sections`
+
+ # Display title of posts?
+ displayPosts = true
+
+ # Display count of posts under each
+ # category?
+ displayPostsCount = true
+
+
+ ######################################
+ # Tags Page
+
+ enableTagCloud = true
+
+ fontUnit = "em"
+ largestFontSize = 2.5
+ smallestFontSize = 1
+
+
+ ######################################
+ # List Page
+
+ listWidth = 30
+ # Note: you can leave it empty("") to
+ # fallback to the default value: 42
+ # Unit: em
+
+ displayListTitle = true
+
+ listDateFormat = "January 2"
+ # ATTENTION: be sure to follow the
+ # specified format
+ # https://gohugo.io/functions/format/
+
+ listDatePosition = "right"
+ # Note: left or right
+
+ # Separate the list by month?
+ groupByMonth = true
+
+ # Enable Chinese zodiac?
+ chineseZodiac = true
+
+ # Translate the year? (valid for title)
+ i18nYear = false
+ # Translate the month? (valid for title)
+ i18nMonth = false
+
+
+ ######################################
+ # Taxonomy List Page
+
+ # Note: for categories page, you can
+ # set `enableTree` to false to
+ # get a normal taxonomy list
+ # page; for tags page, you can
+ # set `enableTagCloud` to false
+ # to get a normal taxonomy list
+ # page.
+
+ # Display count of posts in each
+ # taxonomy term?
+ displayTaxonomyTermCount = true
+
+
+ ######################################
+ # Sections
+
+ # Note: the name of the section is the
+ # name of the folder under the
+ # site’s `content` directory.
+
+ postSections = ["posts"]
+
+ mainSections = ["posts"]
+ # Note: MemE does not use this object,
+ # but some of Hugo’s built-in
+ # templates (such as RSS) may
+ # use this. So keep this same
+ # as `postSections` if you need
+ # to use Hugo’s built-in
+ # templates extra.
+
+
+ ######################################
+ # Atom & RSS
+
+ feedSections = ["posts"]
+
+ # Include full content?
+ includeContent = true
+ # Note: If false, only the summary of
+ # the post will be included. The
+ # summary, Hugo automatically
+ # takes the first 70 words (you
+ # can customize this via
+ # `summaryLength`) of your content
+ # as its summary by default.
+ # Alternatively, you may use the
+ # <!--more--> (with no whitespace)
+ # summary divider to split summary
+ # manually. Or use the `summary`
+ # variable in post’s Front
+ # Matter to assign it manually.
+ # The priority of them: assign
+ # manually > split manually >
+ # split automatically. Additionally,
+ # `description` in post’s Front
+ # Matter has a higher priority
+ # than assign manually in the
+ # custom Atom & RSS template of
+ # MemE.
+
+
+ ######################################
+ # Dark Mode
+
+ enableDarkMode = true
+
+ defaultTheme = "light"
+ # Note: light or dark
+
+ hideThemeToggle = false
+ hideThemeToggleInHome = false
+ # Note: If dark mode is enabled and
+ # theme toggle is hidden, your
+ # readers may still read your
+ # blog in dark mode if the
+ # reader’s system is set to dark
+ # mode. Similarly, if dark mode
+ # is enabled and is set to the
+ # default theme, your readers
+ # may still read your blog in
+ # light mode, even if you have
+ # hidden the theme toggle.
+
+
+ ######################################
+ # Web App
+
+ # Note: go to https://realfavicongenerator.net/
+ # to generate related icons and
+ # files, unzip after downloading,
+ # and keep only android-chrome-512x512.png,
+ # apple-touch-icon.png, mstile-150x150.png,
+ # safari-pinned-tab.svg, favicon.ico,
+ # site.webmanifest these files,
+ # delete the rest. Then move
+ # these files to the ~/blog/static/icons/
+ # directory, move favicon.ico,
+ # site.webmanifest to the ~/blog/static/
+ # directory, and finally rename
+ # site.webmanifest to manifest.json,
+ # and check and modify related
+ # content (the path of the icons).
+
+ themeColor = "#fff"
+ themeColorDark = "#1c1c21"
+ safariMaskColor = "#2a6df4"
+ msApplicationTileColor = "#fff"
+
+
+ ######################################
+ # HTML Head Meta, SEO & Social Discovery
+
+ jsonLD = true
+ openGraph = true
+ twitterCards = true
+ # ATTENTION: If you set twitterCards
+ # to `true`, be sure to
+ # enable openGraph also.
+ # Otherwise, the Twitter
+ # Cards info will be
+ # incomplete.
+
+ autoDetectImages = true
+ # Note: It is recommended to enable it.
+ # Otherwise, you must manually
+ # specify `images` in post’s
+ # Front Matter or links you
+ # shared on social networks or
+ # APPs will not be able to
+ # display a summary view with a
+ # large image.
+
+
+ ######################################
+ # InstantClick
+
+ enableInstantClick = true
+
+
+ ######################################
+ # Service Worker
+
+ # Note: render only in production
+ # environment
+
+ enableServiceWorker = false
+ # Note: need third-party support, see
+ # https://io-oi.me/tech/pwa-via-workbox/
+
+
+ ######################################
+ # KaTeX (chemical equation supported)
+
+ enableKaTeX = false
+ # Note: *global settings*
+ # `katex` in post’s Front Matter
+ # has a higher priority than here
+
+
+ ######################################
+ # Comments
+
+ # Note: render only in production
+ # environment
+
+ enableComments = false
+ # Note: *global settings*
+ # `comments` in post’s Front Matter
+ # has a higher priority than here
+
+ ## Disqus
+ enableDisqus = false
+ disqusShortname = ""
+
+
+ ######################################
+ # Google Analytics
+
+ # Note: render only in production
+ # environment
+
+ enableGoogleAnalytics = false
+
+ trackingCodeType = "gtag"
+ # Note: gtag or analytics
+
+ trackingID = ""
+
+
+ ######################################
+ # Google Site Verification
+
+ googleSiteVerification = ""
+
+
+ ######################################
+ # Post Settings
+
+ # The color change duration of the
+ # hyperlink (in seconds)
+ duration = 0.5
+
+ # Primary color of light mode
+ primaryColorLight = "220, 90%, 56%"
+ # Primary color of dark mode
+ primaryColorDark = "201, 65%, 62%"
+ # ATTENTION: only HSL color values ​​are
+ # supported
+
+ # The content width of the post
+ postWidth = 32
+ # Note: you can leave it empty("") to
+ # fallback to the default value: 42
+ # Unit: em
+
+ # Is the post original?
+ original = true
+ # Note: will affect the author and
+ # copyright information of the
+ # post
+ # *global settings*
+ # `original` in post’s Front Matter
+ # has a higher priority than here
+
+
+ ######################################
+ # Post Description
+
+ displayPostDescription = true
+
+
+ ######################################
+ # Post Meta Info
+
+ enablePostMeta = true
+ # Note: *global settings*
+ # `meta` in post’s Front Matter
+ # has a higher priority than here
+
+ enablePostMetaInHome = true
+ # Note: valid for the `posts` and
+ # `page` homepage layout only
+
+ postMetaDateFormat = "2006.1.2"
+ # ATTENTION: be sure to follow the
+ # specified format
+ # https://gohugo.io/functions/format/
+
+ displayPublishedDate = true
+ publishedDateIcon = "calendar-alt"
+
+ displayModifiedDate = true
+ modifiedDateIcon = "calendar-check"
+
+ displayExpiredDate = true
+ expiredDateIcon = "calendar-times"
+
+ displayCategory = true
+ categoryIcon = "folder"
+ categoryDelimiter = "/"
+
+ displayWordCount = true
+ wordCountIcon = "pencil-alt"
+
+ displayReadingTime = true
+ readingTimeIcon = "clock"
+
+
+ ######################################
+ # Table of Contents
+
+ enableTOC = false
+ # Note: *global settings*
+ # `toc` in post’s Front Matter
+ # has a higher priority than here
+
+ displayTOCTitle = true
+
+ linkHeadingsToTOC = true
+
+
+ ######################################
+ # Headings Anchor
+
+ enableHeadingsAnchor = true
+
+ # Level range of headings
+ headingsOpt = "1-6"
+ # Note: regex format, default value
+ # is 1-6, which is 1|2|3|4|5|6,
+ # which is h1 to h6.
+
+ anchorSymbol = "#"
+ # Note: the anchorIcon has a higher
+ # priority than anchorSybol
+ # Default: §
+
+ anchorIcon = "link"
+ # Note: you can leave it empty("") to
+ # fallback to the anchorSymbol
+
+ enableAnchorLink = true
+
+ enableAnchorAutoHide = true
+
+
+ ######################################
+ # Caption
+
+ enableCaption = true
+
+ captionPrefix = "◎ "
+
+
+ ######################################
+ # Image Hosting
+
+ # Note: render only in production
+ # environment
+ #
+ # only support absolute URLs
+ # relative to root, e.g.
+ # /images/meme.jpg
+
+ enableImageHost = false
+
+ imageHostURL = "https://example.com/"
+
+ # Replace the image link in the HTML
+ # head meta also?
+ headAlso = false
+
+
+ ######################################
+ # Video Hosting
+
+ # Note: render only in production
+ # environment
+ #
+ # only support absolute URLs
+ # relative to root, e.g.
+ # /videos/meme.mp4
+
+ enableVideoHost = false
+
+ videoHostURL = "https://example.com/"
+
+
+ ######################################
+ # Footnotes
+
+ # Use the square brackets to wrap
+ # the reference number?
+ squareBrackets = true
+
+ # Replace the text in footnote return
+ # link with icon?
+ footnoteReturnLinkIcon = "angle-up"
+ # Note: will replace
+ # `footnoteReturnLinkContents`
+ # with icon if it’s not
+ # empty("")
+
+ # Insert horizontal rule by yourself?
+ insertHrBySelf = true
+ # Note: If true, the automatically
+ # generated horizontal rule
+ # (<hr>) will be removed. In
+ # fact, the horizontal rule you
+ # added will be removed. This
+ # option is very useful if you
+ # prefer to add `---` to separate
+ # the content from the footnote
+ # in the Markdown file.
+
+
+ ######################################
+ # Typography
+
+ ######################################
+ ## Font Family
+
+ # Note: any option is empty(""),
+ # fallback to `fontFamilyBody`
+ # it will. Therefore, it is not
+ # necessary to set all.
+ # Additionally, you can leave
+ # `fontFamilySiteBrand` empty("")
+ # if you use SVG as your site
+ # brand.
+
+ # Site brand
+ fontFamilySiteBrand = ""
+ # Menu bar
+ fontFamilyMenu = ""
+ # Post title, post subtitle, list title, year and month title of the list, related posts title, previous/next post title
+ fontFamilyTitle = "Comfortaa, sans-serif"
+ # Headings, toc title
+ fontFamilyHeadings = "Comfortaa, sans-serif"
+ # Code, superscript, post meta info, post updated badge, post gitinfo, minimal footer
+ fontFamilyCode = "'Source Code Pro', monospace"
+ # Blockquotes
+ fontFamilyQuote = ""
+ # Table of contents
+ fontFamilyTOC = ""
+ # Caption
+ fontFamilyCaption = ""
+ # Footer
+ fontFamilyFooter = ""
+ # Body
+ fontFamilyBody = "'IBM Plex Serif', serif"
+
+ # Embed fonts link
+ fontsLink = "https://fonts.googleapis.com/css?family=IBM+Plex+Serif:400,400i,500,700,700i|Source+Code+Pro:400,400i,700,700i|Comfortaa:700&display=swap"
+ # Note: In order for the reader to
+ # experience the fonts you set,
+ # it is best to use web fonts.
+ # MemE currently only supports
+ # Google Fonts, please go to
+ # https://fonts.google.com/ to
+ # get the link. If this is left
+ # empty(""), web fonts will not
+ # be used.
+
+ ######################################
+ ## Font Size (unit: px)
+
+ fontSize = 20
+
+ ######################################
+ ## Line Height
+
+ lineHeight = 1.618
+ # Note: apply to post paragraph & toc
+ # only
+
+ ######################################
+ ## Paragraph Indents
+
+ enableParagraphIndent = true
+
+ paragraphStyle = "margin"
+ # Note: margin or indent
+ # *global settings*
+ # `indent` in post’s Front Matter
+ # has a higher priority than here
+
+ ######################################
+ ## Text Justification
+
+ enableJustify = false
+ # Note: *global settings*
+ # `align` in post’s Front Matter
+ # has a higher priority than here
+
+ ######################################
+ ## Drop Cap
+
+ enableDropCap = true
+ # Note: *global settings*
+ # `dropCap` in post’s Front Matter
+ # has a higher priority than here
+
+ # Enable drop cap after every
+ # horizontal rule tag?
+ enableDropCapAfterHr = false
+ # Note: *global settings*
+ # `dropCapAfterHr` in post’s Front Matter
+ # has a higher priority than here
+
+ # Delete horizontal rule tag before
+ # drop cap?
+ deleteHrBeforeDropCap = false
+ # Note: *global settings*
+ # `deleteHrBeforeDropCap` in post’s Front Matter
+ # has a higher priority than here
+
+ ######################################
+ ## Small Caps
+
+ enableSmallCaps = true
+ # Note: apply to headings & post toc
+ # title only
+ # *global settings*
+ # `smallCaps` in post’s Front Matter
+ # has a higher priority than here
+
+ ######################################
+ ## Emphasis Point (Chinese)
+
+ # Note: new Markdown syntax created by MemE
+ # `..文本..`
+
+ enableEmphasisPoint = false
+
+ ######################################
+ ## Chinese Punctuation Glyph Correction
+
+ enableChinesePunctuationGlyphCorrection = false
+
+
+ ######################################
+ # Post Copyright
+
+ enablePostCopyright = true
+
+ displayPostCopyright = true
+ # Note: *global settings*
+ # `displayCopyright` in post’s Front Matter
+ # has a higher priority than here
+
+
+ ######################################
+ # Post Updated Badge
+
+ enablePostUpdatedBadge = true
+
+ displayUpdatedBadge = true
+ # Note: *global settings*
+ # `badge` in post’s Front Matter
+ # has a higher priority than here
+
+ # Add `title` attribute?
+ enableBadgeTitle = true
+ badgeTitlePrefix = "Updated @ "
+
+
+ ######################################
+ # Post Gitinfo
+
+ enablePostGitInfo = false
+
+ displayPostGitInfo = false
+ # Note: *global settings*
+ # `gitinfo` in post’s Front Matter
+ # has a higher priority than here
+
+ repoURL = ""
+ repoEditURL = ""
+
+ gitIcon = "code-branch"
+ displayCommitHash = true
+
+ displayCommitMessage = true
+ msgIcon = "info"
+
+ displayFeedback = true
+ feedbackIcon = "question"
+ feedbackText = "Feedback"
+
+ displayEditLink = true
+ editIcon = "edit"
+ editText = "Edit Me?"
+
+
+ ######################################
+ # Related Posts
+
+ enableRelatedPosts = true
+
+ displayRelatedPosts = true
+ # Note: *global settings*
+ # `related` in post’s Front Matter
+ # has a higher priority than here
+
+ relatedPostsNumber = 5
+
+ relatedPostsIcon = "plus-circle"
+
+
+ ######################################
+ # Post Tags
+
+ enablePostTags = true
+
+ postTagsIcon = "tag"
+
+
+ ######################################
+ # Previous/Next Post
+
+ # Note: In MemE, it is designed from a
+ # spatial perspective rather
+ # than a time perspective like
+ # most other themes do.
+ # Therefore, you will get a
+ # newer post if you click prev
+ # on the left; you will get an
+ # older post if you click next
+ # on the right.
+
+ enablePostNav = true
+
+ # Apply to posts that below the same
+ # top level section only?
+ postNavInSection = true
+
+
+ ######################################
+ # Minimal Footer
+
+ enableMinimalFooter = false
+
+ enableAboutPageMinimalFooter = false
+
+
+ ######################################
+ # Back to Top
+
+ enableBackToTop = true
+
+ displayBackToTopInHome = true
+
+ backToTopIcon = "arrow-up"
+
+
+ ######################################
+ # Footer
+
+ enableFooter = true
+ # Note: homepage layout `poetry`,
+ # `footage`, and 404 page have
+ # no footer
+
+ displayCopyrightSymbol = true
+
+ displaySiteCreatedYear = true
+
+ iconBetweenYearAndAuthor = "heart"
+ iconColor = "#f06292"
+ # Enable heartbeat animation?
+ iconAnimation = true
+
+ # Display links to Hugo and MemE?
+ displayPoweredBy = true
+
+ displaySiteCopyright = true
+
+ # Custom Footer (Markdown supported)
+ customFooter = ""
+
+
+ ######################################
+ # Multilingual
+
+ enableLangToggle = false
+
+ hideLangToggleInHome = false
+
+ autoHideLangToggle = true
+ # Note: in other words, the toggle is
+ # displayed only when the post
+ # has a translated version
+
+
+ ######################################
+ # Syntax Highlighting
+
+ enableHighlight = true
+
+
+ ######################################
+ # Fingerprinting and SRI
+
+ enableFingerprint = true
+ # Note: valid for CSS and JS generated
+ # by MemE only
+
+
+ ######################################
+ # 404 Page
+
+ fofPoster = ""
+
+ fofVideoWebm = ""
+ fofVideoMp4 = ""
+ # Note: you can leave these two
+ # options empty("") \ No newline at end of file
diff --git a/config-examples/zh-cn/config.toml b/config-examples/zh-cn/config.toml
new file mode 100644
index 0000000..cfcd62e
--- /dev/null
+++ b/config-examples/zh-cn/config.toml
@@ -0,0 +1,1062 @@
+##########################################
+# 站点配置
+
+baseURL = "https://example.com/"
+title = "Hugo 主题 MemE"
+languageCode = "zh-CN"
+hasCJKLanguage = true
+# 版权信息(支持 Markdown)
+copyright = "[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh)"
+
+# 主题选择
+theme = "meme"
+
+# i18n
+defaultContentLanguage = "zh-cn"
+defaultContentLanguageInSubdir = false
+
+# 是否复数化列表页面的标题
+pluralizeListTitles = false
+
+# 摘要的字数限制
+summaryLength = 42
+
+# 是否开启 GitHub 风格的 Emoji 书写方式
+enableEmoji = false
+
+# 脚注的返回链接中的文本
+footnoteReturnLinkContents = "↩"
+
+# 是否启用 Git 版本信息
+enableGitInfo = false
+
+# 是否生成 robots.txt 文件
+enableRobotsTXT = true
+
+# 每一分页的文章数(仅对「文章摘要」首页布局有效)
+paginate = 5
+
+# 代码高亮
+pygmentsCodefences = true
+pygmentsUseClasses = true
+pygmentsCodefencesGuessSyntax = true
+pygmentsOptions = "linenos=table"
+
+# URL 相关
+disablePathToLower = false
+uglyURLs = false
+
+# URL 结构
+[permalinks]
+ categories = "/categories/:slug/"
+ tags = "/tags/:slug/"
+
+# 类别
+[taxonomies]
+ category = "categories"
+ tag = "tags"
+
+# 修改时间
+[frontmatter]
+ lastmod = ["lastmod", ":git", ":fileModTime", ":default"]
+
+# Markdown 渲染器
+[blackfriday]
+ # 是否开启智能标点符号替换
+ smartypants = false
+ # 是否在新标签页打开外链
+ hrefTargetBlank = true
+ # 屏蔽的扩展
+ extensionsmask = ["hardLineBreak", "backslashLineBreak"]
+
+# 作者信息
+[author]
+ # 名字
+ name = "reuixiy"
+ # 邮箱
+ email = "reuixiy@gmail.com"
+ # 座右铭或简介
+ motto = "Viva La Vida"
+ # 头像
+ avatar = "/icons/apple-touch-icon.png"
+ # 网站(默认值:baseURL)
+ website = "https://io-oi.me/"
+ # 推特
+ twitter = "reuixiy"
+
+# 相关文章
+[related]
+ threshold = 80
+ includeNewer = true
+ toLower = true
+ [[related.indices]]
+ name = "categories"
+ weight = 100
+ [[related.indices]]
+ name = "tags"
+ weight = 95
+ [[related.indices]]
+ name = "date"
+ weight = 10
+ pattern = "2006"
+
+# Atom 文件格式的媒体类型
+[mediaTypes."application/atom+xml"]
+ suffixes = ["xml"]
+
+# MemE 主题自定义的 Atom 模板
+[outputFormats.SectionsAtom]
+ mediaType = "application/atom+xml"
+ baseName = "atom"
+
+# MemE 主题自定义的 RSS 模板
+[outputFormats.SectionsRSS]
+ mediaType = "application/rss+xml"
+ baseName = "rss"
+
+# Hugo 的输出控制
+[outputs]
+ page = ["HTML"]
+ home = ["HTML", "SectionsAtom", "SectionsRSS"]
+ section = ["HTML"]
+ # 类别
+ taxonomyTerm = ["HTML"]
+ # 类别项
+ taxonomy = ["HTML"]
+ # 说明:https://github.com/gohugoio/hugo/issues/4528#issuecomment-508488859
+
+# RSS & Atom 文章数限制
+[services.rss]
+ limit = -1
+
+
+
+##########################################
+# 菜单配置
+
+# MemE 主题支持以下四种菜单:
+# 1. main 顶栏下方的菜单栏
+# 2. home 首页的底部链接(适用于「诗意
+# 人生」和「视频片段」布局)
+# 3. socials 社交栏(关于页面的极简页脚)
+# 4. links 链接栏(关于页面的极简页脚)
+
+# 菜单内的配置说明如下:
+# url 链接地址
+# name 文本(留空("")则无)
+# weight 位置
+# pre 内链或外链
+# post 图标(留空("")则无)
+# identifier 图标的 Class 名(菜单栏无效)
+
+[menu]
+ ## 菜单栏
+ [[menu.main]]
+ url = "/"
+ name = "首页"
+ weight = 1
+ pre = "internal"
+ post = "home"
+ [[menu.main]]
+ url = "/posts/"
+ name = "文章"
+ weight = 2
+ pre = "internal"
+ post = "archive"
+ [[menu.main]]
+ url = "/categories/"
+ name = "分类"
+ weight = 3
+ pre = "internal"
+ post = "th"
+ [[menu.main]]
+ url = "/tags/"
+ name = "标签"
+ weight = 4
+ pre = "internal"
+ post = "tags"
+ [[menu.main]]
+ url = "/about/"
+ name = "关于"
+ weight = 5
+ pre = "internal"
+ post = "user-circle"
+
+
+
+##########################################
+# 主题配置
+
+[params]
+ ######################################
+ # 顶栏
+
+ # 是否开启
+ enableHeader = true
+
+ # 是否在首页显示
+ displayHeaderInHome = true
+
+
+ ######################################
+ # 品牌栏(在顶栏内)
+
+ # 是否使用 SVG 图片
+ siteBrandSVG = true
+ # 如果是,请将你的 SVG 放到 `SVG.toml` 文
+ # 件内,并配置以下项。单位:px。
+ siteBrandSVGWidth = 250
+ siteBrandSVGHeight = 100
+ siteBrandSVGFill = "#fff"
+ # 如果否,则会使用你的站点标题作为默认值,并
+ # 以文字的形式显示,下方可配置字号和字色。字
+ # 体请到底部的字体部分配置。单位:em。
+ siteBrandFontSize = 5
+ siteBrandFontColor = "#fff"
+
+ # 背景色
+ # siteBrandBackgroundColor = "hsl(240, 8%, 12%)"
+ # 背景图片
+ siteBrandBackgroundImage = "linear-gradient(90deg, #f79533 0, #f37055 15%, #ef4e7b 30%, #a166ab 44%, #5073b8 58%, #1098ad 72%, #07b39b 86%, #6dba82 100%)"
+ # 注意:背景色和背景图片只能二选一
+
+
+ ######################################
+ # 菜单栏
+
+ # 是否开启
+ enableMenu = true
+
+ # 是否在首页显示
+ displayMenuInHome = true
+
+ # 是否按文章分区高亮当前菜单项
+ activeInSection = false
+ # 说明:如果开启,那么当某一文章的分区名是某
+ # 一菜单项中的 `url` 时,该文章页面中
+ # 的该菜单项也会被高亮
+
+
+ ######################################
+ # 首页布局
+
+ # MemE 主题有以下四种首页布局:
+ # 1. poetry 诗意人生
+ # 2. footage 视频片段
+ # 3. posts 文章摘要
+ # 4. page 普通页面
+
+ homeLayout = "posts"
+
+ ## 「诗意人生」
+ # 诗句,支持 Markdown
+ homePoetry = []
+ # 底部链接的内间距,单位:em
+ homeLinksPadding = 1
+
+ ## 「视频片段」
+ homePoster = ""
+ homeVideoWebm = ""
+ homeVideoMp4 = ""
+ homeLogo = ""
+ homeLogoLink = ""
+ homeTitle = ""
+ homeMotto = ""
+ homeDescription = ""
+ homeKeywords = ""
+ homeLinksDelimiter = ""
+
+
+ ######################################
+ # 站点信息
+
+ # 站点的 LOGO
+ siteLogo = "/icons/apple-touch-icon.png"
+ # 说明:用于 JSON-LD、Open Graph
+
+ # 站点的描述
+ siteDescription = "MemE 是一个强大且可高度定制的 GoHugo 博客主题,专为个人博客设计。"
+ # 说明:用于 HTML 的头部元数据、JSON-LD、
+ # Open Graph、Atom、RSS
+
+ # 站点的关键词
+ siteKeywords = []
+ # 说明:如果留空([]),则会取站点的所有类别名、分
+ # 区名(如果按分区分类)作为默认值
+
+ # 站点的创建时间
+ siteCreatedTime = "1969-07-20T20:17:43+00:00"
+ # 注意:请保持此格式,更改数字
+
+ # 站点的推特帐号
+ siteTwitter = "reuixiy"
+ # 说明:用于 Twitter Cards
+
+
+ ######################################
+ # 分类方式
+
+ # MemE 主题支持以下两种分类方式:
+ # 1. sections 分区
+ # 2. categories 部类
+ # 其中,分区是基于站点的 content 目录下的
+ # 文件夹和子文件夹;部类是基于文章的 Front
+ # Matter。分类即树状分类,Hexo 是基于文章
+ # 的 Front Matter,Hugo 则是基于文件系统
+ # 的结构。由于设计理念的不同,导致了 Hexo
+ # 与 Hugo 的这个差异,故在此设计这个选项,
+ # 以对从 Hexo 过来的用户友好。但是请注意:
+ # Hugo 中无法完全实现基于 Front Matter
+ # 的树状分类,故如需保留树状分类,建议适应
+ # Hugo 的设计理念——分区。
+
+ categoryBy = "categories"
+ # 注意:如果你设置为 `sections`,请务必将
+ # 此配置文件中的类别(taxonomies)中
+ # 的 `categories` 删除,不然分类页
+ # 面会失效。
+
+
+ ######################################
+ # 分类页面
+
+ # 是否开启树状布局
+ enableTree = true
+ # 注意:如果你设置 categoryBy 为
+ # `sections`,则无法关闭树状布局
+
+ # 是否显示文章标题
+ displayPosts = true
+
+ # 是否显示每一分类下的文章数
+ displayPostsCount = true
+
+
+ ######################################
+ # 标签页面
+
+ # 是否开启标签云
+ enableTagCloud = true
+ # 字号单位
+ fontUnit = "em"
+ # 最大字号
+ largestFontSize = 2.5
+ # 最小字号
+ smallestFontSize = 1
+
+
+ ######################################
+ # 列表页面
+
+ # 宽度
+ listWidth = 36
+ # 说明:如果留空(""),则用 42 作为默认值
+ # 单位:em
+
+ # 是否显示列表标题
+ displayListTitle = true
+
+ # 日期的格式
+ listDateFormat = "1 月 2 日"
+ # 注意:请遵循格式 https://gohugo.io/functions/format/
+
+ # 日期的位置
+ listDatePosition = "right"
+ # 说明:left(左边)或 right(右边)
+
+ # 是否按月份分隔列表
+ groupByMonth = true
+
+ # 是否开启十二生肖
+ chineseZodiac = true
+
+ # 是否翻译年份(仅对年份标题有效)
+ i18nYear = true
+ # 是否翻译月份(仅对月份标题有效)
+ i18nMonth = true
+
+
+ ######################################
+ # 类别列表页面
+
+ # 说明:对于分类页面,你可以设置 `enableTree`
+ # 为 false 以得到一个普通的类别列表页
+ # 面;对于标签页面,你可以设置
+ # `enableTagCloud` 为 false 以得到
+ # 一个普通的类别列表页面。
+
+ # 是否显示每一类别项下的文章数
+ displayTaxonomyTermCount = true
+
+
+ ######################################
+ # 分区范围
+
+ # 说明:分区的名字即站点的 content 目录下
+ # 的文件夹的名字。
+
+ # 文章分区
+ postSections = ["posts"]
+
+ # 主分区
+ mainSections = ["posts"]
+ # 说明:MemE 主题没有使用此项,但 Hugo 的
+ # 一些内建模板(比如 RSS)可能使用了
+ # 此项。故如果你需额外地使用 Hugo 的
+ # 内建模板,请将此项与 postSections
+ # 保持一致。
+
+
+ ######################################
+ # Atom & RSS
+
+ # 订阅的分区范围
+ feedSections = ["posts"]
+
+ # 是否包括全文内容
+ includeContent = true
+ # 说明:如果否,则只会包含文章的摘要。关于摘
+ # 要,Hugo 能按你设置的字数限制自动截
+ # 取,你也可以在文章中通过
+ # `<!--more-->`(没有空格)手动控制,
+ # 或者在文章的 Front Matter 中通过
+ # `summary` 手动指定。其中,应用的优
+ # 先级顺序:手动指定 > 手动控制 > 自
+ # 动截取。还需要注意的是,在 MemE 主
+ # 题自定义的 Atom 和 RSS 的模板中,
+ # 有一个比手动指定更高的优先级——
+ # Front Matter 中的 `description`。
+
+
+ ######################################
+ # 深色模式
+
+ # 是否开启
+ enableDarkMode = true
+
+ # 默认模式
+ defaultTheme = "light"
+ # 说明:light(浅色模式)或 dark(深色模式)
+
+ # 是否隐藏模式切换开关
+ hideThemeToggle = false
+ # 是否在首页隐藏模式切换开关
+ hideThemeToggleInHome = false
+ # 说明:如果开启了深色模式,即使你隐藏了开关,
+ # 你的读者依然可能以深色模式阅读你的博
+ # 客,如果该读者的系统设置为深色模式的
+ # 话。类似,如果你开启深色模式并将默认
+ # 模式修改为它,即使你隐藏开关,你的读
+ # 者依然可能以浅色模式模式阅读你的博客。
+
+
+ ######################################
+ # 网页应用
+
+ # 说明:前往 https://realfavicongenerator.net/
+ # 生成相关图标和文件,下载后解压,仅保留
+ # android-chrome-512x512.png、
+ # apple-touch-icon.png、
+ # mstile-150x150.png、
+ # safari-pinned-tab.svg、favicon.ico、
+ # site.webmanifest 这些文件,删除其余。
+ # 然后将这些文件移动到 ~/blog/static/icons/
+ # 目录下,再将 favicon.ico、site.webmanifest
+ # 移动到 ~/blog/static/ 目录下,
+ # 最后将 site.webmanifest 重命名为
+ # manifest.json,并检查和修改相关内容
+ # (图标的路径)。
+
+ themeColor = "#fff"
+ themeColorDark = "#1c1c21"
+ safariMaskColor = "#2a6df4"
+ msApplicationTileColor = "#fff"
+
+
+ ######################################
+ # 网页头部元数据、搜索引擎优化(SEO)、社交网络发现
+
+ jsonLD = true
+ openGraph = true
+ twitterCards = true
+ # 注意:如果你设置 twitterCards 为 `true`,
+ # 请务必开启 openGraph。否则,网页的
+ # Twitter Cards 信息将会不完整。
+
+ # 是否自动探测图片
+ autoDetectImages = true
+ # 说明:建议开启,否则,你必须在文章的 Front
+ # Matter 中手动指定 `images`,不然,
+ # 你在社交网络或 APP 上分享的链接将无
+ # 法显示带大图的摘要视图。
+
+
+ ######################################
+ # InstantClick
+
+ enableInstantClick = true
+
+
+ ######################################
+ # Service Worker
+
+ # 说明:仅在生产环境(production)下渲染
+
+ enableServiceWorker = false
+ # 说明:需要第三方支持,暂见:
+ # https://io-oi.me/tech/pwa-via-workbox/
+
+
+ ######################################
+ # KaTeX 公式支持(包括化学方程式)
+
+ # 是否开启(全局设置)
+ enableKaTeX = false
+ # 说明:文章的 Front Matter 中的 `katex`
+ # 的优先级高于此处
+
+
+ ######################################
+ # 评论
+
+ # 说明:仅在生产环境(production)下渲染
+
+ # 是否开启(全局设置)
+ enableComments = false
+ # 说明:文章的 Front Matter 中的 `comments`
+ # 的优先级高于此处
+
+ ## Disqus
+ enableDisqus = false
+ disqusShortname = ""
+
+
+ ######################################
+ # Google Analytics
+
+ # 说明:仅在生产环境(production)下渲染
+
+ enableGoogleAnalytics = false
+
+ # 跟踪代码的类型
+ trackingCodeType = "gtag"
+ # 说明:gtag 或 analytics
+
+ trackingID = ""
+
+
+ ######################################
+ # Google Site Verification
+
+ googleSiteVerification = ""
+
+
+ ######################################
+ # 文章设置
+
+ # 超链接的颜色变化持续时间(单位:秒)
+ duration = 0.5
+
+ # 浅色模式的主色
+ primaryColorLight = "220, 90%, 56%"
+ # 深色模式的主色
+ primaryColorDark = "201, 65%, 62%"
+ # 注意:只支持 HSL 颜色值
+
+ # 文章的内容宽度
+ postWidth = 36
+ # 说明:如果留空(""),则用 42 作为默认值
+ # 单位:em
+
+ # 文章是否为原创(全局设置)
+ original = true
+ # 说明:会影响文章的作者信息和版权信息
+ # 文章的 Front Matter 中的 `original`
+ # 的优先级高于此处
+
+
+ ######################################
+ # 文章描述
+
+ # 是否显示
+ displayPostDescription = true
+
+
+ ######################################
+ # 文章元信息
+
+ # 是否开启(全局设置)
+ enablePostMeta = true
+ # 说明:文章的 Front Matter 中的 `meta`
+ # 的优先级高于此处
+
+ # 是否在首页开启
+ enablePostMetaInHome = true
+ # 说明:仅对「文章摘要」和「普通页面」
+ # 首页布局有效
+
+ # 日期格式
+ postMetaDateFormat = "2006.1.2"
+ # 注意:请遵循格式 https://gohugo.io/functions/format/
+
+ # 是否显示发布时间
+ displayPublishedDate = true
+ # 发布时间的图标
+ publishedDateIcon = "calendar-alt"
+
+ # 是否显示修改时间
+ displayModifiedDate = true
+ # 修改时间的图标
+ modifiedDateIcon = "calendar-check"
+
+ # 是否显示过期时间
+ displayExpiredDate = true
+ # 过期时间的图标
+ expiredDateIcon = "calendar-times"
+
+ # 是否显示分类
+ displayCategory = true
+ # 分类的图标
+ categoryIcon = "folder"
+ # 分类之间的分隔符
+ categoryDelimiter = "/"
+
+ # 是否显示字数统计
+ displayWordCount = true
+ # 字数统计的图标
+ wordCountIcon = "pencil-alt"
+
+ # 是否显示阅读时长
+ displayReadingTime = true
+ # 阅读时长的图标
+ readingTimeIcon = "clock"
+
+
+ ######################################
+ # 文章目录
+
+ # 是否开启(全局设置)
+ enableTOC = false
+ # 说明:文章的 Front Matter 中的 `toc`
+ # 的优先级高于此处
+
+ # 是否显示目录标题
+ displayTOCTitle = true
+
+ # 是否链接文章的分节标题到目录
+ linkHeadingsToTOC = true
+
+
+ ######################################
+ # 分节标题锚点
+
+ # 是否开启
+ enableHeadingsAnchor = true
+
+ # 分节标题的级别范围
+ headingsOpt = "1-6"
+ # 说明:正则格式,默认 1-6,即 1|2|3|4|5|6,
+ # 即 h1 到 h6。
+
+ # 锚点符号
+ anchorSymbol = "#"
+ # 说明:锚点图标的优先级高于锚点符号
+ # 默认值:§
+
+ # 锚点图标
+ anchorIcon = "link"
+ # 说明:留空("")则回退到锚点符号
+
+ # 是否开启锚点链接
+ enableAnchorLink = true
+
+ # 是否自动隐藏锚点
+ enableAnchorAutoHide = true
+
+
+ ######################################
+ # 说明文字
+
+ # 是否开启
+ enableCaption = true
+
+ # 说明文字的前缀
+ captionPrefix = "◎ "
+
+
+ ######################################
+ # 图片外链
+
+ # 说明:仅在生产环境(production)下渲染
+ #
+ # 只支持相对于站点根目录的绝对链接
+ # 比如:/images/meme.jpg
+
+ # 是否开启
+ enableImageHost = false
+
+ # 图片外链地址
+ imageHostURL = "https://example.com/"
+
+ # 是否将 HTML 的头部元数据中的图片链接也替换为外链
+ headAlso = false
+
+
+ ######################################
+ # 视频外链
+
+ # 说明:仅在生产环境(production)下渲染
+ #
+ # 只支持相对于站点根目录的绝对链接
+ # 比如:/videos/meme.mp4
+
+ # 是否开启
+ enableVideoHost = false
+
+ # 视频外链地址
+ videoHostURL = "https://example.com/"
+
+
+ ######################################
+ # 脚注
+
+ # 是否用方括号包裹脚注的引用序号
+ squareBrackets = true
+
+ # 替换脚注的返回链接中的文本为图标
+ footnoteReturnLinkIcon = "angle-up"
+ # 说明:如果不为空(""),则会用图标替换
+ # `footnoteReturnLinkContents`
+
+ # 是否自行插入分隔线
+ insertHrBySelf = true
+ # 说明:如果是,则会将自动生成的分隔线删除。
+ # 实际上,你自己添加的分隔线会被删除。
+ # 如果你喜欢在 Markdown 中手动插入
+ # `---` 以将文章的正文内容与脚注内容
+ # 分隔开来,那么这项设置将会非常有用。
+
+
+ ######################################
+ # 字体排版
+
+ ######################################
+ ## 字体
+
+ # 说明:任何一项留空,浏览器都会回退到主体字
+ # 体 `fontFamilyBody`,故没必要全部
+ # 设置。此外,如果你的品牌栏用的 SVG,
+ # 则可留空品牌栏字体。
+
+ # 品牌栏
+ fontFamilySiteBrand = ""
+ # 菜单栏
+ fontFamilyMenu = ""
+ # 文章标题、文章副标题、列表标题、列表的年份和月份标题、相关文章标题、文章上下篇标题
+ fontFamilyTitle = "'Noto Serif SC', serif"
+ # 分节标题、目录标题
+ fontFamilyHeadings = "'Noto Serif SC', serif"
+ # 代码、上标、文章元信息、文章更新徽章、文章的 Git 版本信息、极简页脚
+ fontFamilyCode = "'Source Code Pro', 'Noto Serif SC', monospace"
+ # 引用
+ fontFamilyQuote = ""
+ # 文章目录
+ fontFamilyTOC = ""
+ # 说明文字
+ fontFamilyCaption = ""
+ # 页脚
+ fontFamilyFooter = ""
+ # 主体
+ fontFamilyBody = "'EB Garamond', 'Noto Serif SC', serif"
+
+ # 网络字体链接
+ fontsLink = "https://fonts.googleapis.com/css?family=EB+Garamond:400,400i,500,700,700i|Noto+Serif+SC:400,500,700|Source+Code+Pro:400,400i,700,700i&display=swap&subset=chinese-simplified"
+ # 说明:要想读者一定体验到你设置的字体,最好
+ # 采用网络字体。MemE 主题目前仅支持
+ # Google Fonts 的链接,请前往
+ # https://fonts.google.com/ 获取。
+ # 此项留空,则不会采用网络字体。
+
+ ######################################
+ ## 字号(单位:px)
+
+ fontSize = 16
+
+ ######################################
+ ## 行间距
+
+ lineHeight = 2
+ # 说明:只会应用到文章的段落和目录
+
+ ######################################
+ ## 段首缩排
+
+ # 是否开启
+ enableParagraphIndent = true
+
+ # 分段样式(全局设置)
+ paragraphStyle = "margin"
+ # 说明:段间距式(margin)或段首缩排(indent)
+ # 文章的 Front Matter 中的 `indent`
+ # 的优先级高于此处
+
+ ######################################
+ ## 两端对齐
+
+ # 是否开启(全局设置)
+ enableJustify = true
+ # 说明:文章的 Front Matter 中的 `align`
+ # 的的优先级高于此处
+
+ ######################################
+ ## 首字下沉
+
+ # 是否开启(全局设置)
+ enableDropCap = false
+ # 说明:文章的 Front Matter 中的 `dropCap`
+ # 的的优先级高于此处
+
+ # 是否在每一分隔线之后首字下沉(全局设置)
+ enableDropCapAfterHr = false
+ # 说明:文章的 Front Matter 中的 `dropCapAfterHr`
+ # 的的优先级高于此处
+
+ # 是否删除首字下沉前的分隔线(全局设置)
+ deleteHrBeforeDropCap = false
+ # 说明:文章的 Front Matter 中的 `deleteHrBeforeDropCap`
+ # 的的优先级高于此处
+
+ ######################################
+ ## 大型小写(英文)
+
+ # 是否开启(全局设置)
+ enableSmallCaps = false
+ # 说明:只会应用到分节标题和目录标题
+ # 文章的 Front Matter 中的 `smallCaps`
+ # 的的优先级高于此处
+
+ ######################################
+ ## 着重号
+
+ # 说明:MemE 主题自创的新 Markdown 语法
+ # `..文本..`
+
+ # 是否开启
+ enableEmphasisPoint = true
+
+ ######################################
+ ## 中文标点符号字形纠正
+
+ # 是否开启
+ enableChinesePunctuationGlyphCorrection = true
+
+
+ ######################################
+ # 文章版权
+
+ # 是否开启
+ enablePostCopyright = true
+
+ # 是否显示(全局设置)
+ displayPostCopyright = true
+ # 说明:文章的 Front Matter 中的 `displayCopyright`
+ # 的的优先级高于此处
+
+
+ ######################################
+ # 文章更新徽章
+
+ # 是否开启
+ enablePostUpdatedBadge = true
+
+ # 是否显示(全局设置)
+ displayUpdatedBadge = true
+ # 说明:文章的 Front Matter 中的 `badge`
+ # 的的优先级高于此处
+
+ # 是否添加 `title`
+ enableBadgeTitle = true
+ # `title` 的前缀
+ badgeTitlePrefix = "Updated @ "
+
+
+ ######################################
+ # 文章的 Git 版本信息
+
+ # 是否开启
+ enablePostGitInfo = false
+
+ # 是否显示(全局设置)
+ displayPostGitInfo = false
+ # 说明:文章的 Front Matter 中的 `gitinfo`
+ # 的的优先级高于此处
+
+ # 仓库地址
+ repoURL = ""
+ # 编辑地址
+ repoEditURL = ""
+
+ # Git 的图标
+ gitIcon = "code-branch"
+ # 是否显示改动哈希
+ displayCommitHash = true
+
+ # 是否显示改动信息
+ displayCommitMessage = true
+ # 改动信息的图标
+ msgIcon = "info"
+
+ # 是否显示反馈链接
+ displayFeedback = true
+ # 反馈链接的图标
+ feedbackIcon = "question"
+ # 反馈链接的文本
+ feedbackText = "Feedback"
+
+ # 是否显示编辑链接
+ displayEditLink = true
+ # 编辑链接的图标
+ editIcon = "edit"
+ # 编辑链接的文本
+ editText = "Edit Me?"
+
+
+ ######################################
+ # 相关文章
+
+ # 是否开启
+ enableRelatedPosts = true
+
+ # 是否显示(全局设置)
+ displayRelatedPosts = true
+ # 说明:文章的 Front Matter 中的 `related`
+ # 的的优先级高于此处
+
+ # 相关文章数
+ relatedPostsNumber = 5
+
+ # 相关文章标题右边的图标
+ relatedPostsIcon = "plus-circle"
+
+
+ ######################################
+ # 文章的标签
+
+ # 是否开启
+ enablePostTags = true
+
+ # 标签的图标
+ postTagsIcon = "tag"
+
+
+ ######################################
+ # 文章上下篇
+
+ # 说明:在 MemE 主题中,文章上下篇是从空间
+ # 位置角度设计的,而不是像大多数其它主
+ # 题所做的那样——从时间角度设计。因此,
+ # 如果你点击左边的上篇,跳转的是一篇更
+ # 新的文章;如果你点击右边的下篇,跳转
+ # 的是一篇更旧的文章。
+
+ # 是否开启
+ enablePostNav = true
+
+ # 是否仅限于相同的文章分区
+ postNavInSection = true
+
+
+ ######################################
+ # 极简页脚
+
+ # 是否开启
+ enableMinimalFooter = false
+
+ # 是否开启关于页面的极简页脚
+ enableAboutPageMinimalFooter = false
+
+
+ ######################################
+ # 返回顶部按钮
+
+ # 是否开启
+ enableBackToTop = true
+
+ # 是否在首页显示
+ displayBackToTopInHome = true
+
+ # 按钮图标
+ backToTopIcon = "arrow-up"
+
+
+ ######################################
+ # 页脚
+
+ # 是否开启
+ enableFooter = true
+ # 说明:「诗意人生」和「视频片段」首页布局
+ # 的首页没有页脚
+
+ # 是否显示版权符号(©)
+ displayCopyrightSymbol = true
+
+ # 是否显示站点的创建年份
+ displaySiteCreatedYear = true
+
+ # 年份与作者之间的图标
+ iconBetweenYearAndAuthor = "heart"
+ # 图标颜色
+ iconColor = "#f06292"
+ # 是否开启图标的跳动效果
+ iconAnimation = true
+
+ # 是否显示 Hugo 和 MemE 的链接
+ displayPoweredBy = true
+
+ # 是否显示站点的版权信息
+ displaySiteCopyright = true
+
+ # 自定义页脚(支持 Markdown)
+ customFooter = ""
+
+
+ ######################################
+ # 多语言
+
+ # 是否开启多语言按钮
+ enableLangToggle = false
+
+ # 是否在首页隐藏多语言按钮
+ hideLangToggleInHome = false
+
+ # 是否自动隐藏多语言按钮
+ autoHideLangToggle = true
+ # 说明:即仅当该文章有相应的翻译版本时才显
+ # 示按钮
+
+
+ ######################################
+ # 代码高亮
+
+ # 是否开启
+ enableHighlight = true
+
+
+ ######################################
+ # 文件指纹和子资源完整性(SRI)
+
+ # 是否开启
+ enableFingerprint = true
+ # 说明:仅对 MemE 生成的 CSS 和 JS 有效
+
+
+ ######################################
+ # 404 页面
+
+ # 视频封面
+ fofPoster = ""
+
+ # 视频地址
+ fofVideoWebm = ""
+ fofVideoMp4 = ""
+ # 说明:视频地址可留空 \ No newline at end of file
diff --git a/images/home-layout-footage.png b/images/homepage-layout-footage.png
index 64621e3..64621e3 100644
--- a/images/home-layout-footage.png
+++ b/images/homepage-layout-footage.png
Binary files differ
diff --git a/images/home-layout-poetry.png b/images/homepage-layout-poetry.png
index 8454932..8454932 100644
--- a/images/home-layout-poetry.png
+++ b/images/homepage-layout-poetry.png
Binary files differ
diff --git a/images/home-layout-posts.png b/images/homepage-layout-posts.png
index 1d19fc7..1d19fc7 100644
--- a/images/home-layout-posts.png
+++ b/images/homepage-layout-posts.png
Binary files differ