Refactor theme (#1)

This commit is contained in:
Dave Gallant
2020-03-16 21:25:08 -04:00
committed by GitHub
parent 2c3ba62ee1
commit c0700ec4cf
255 changed files with 714 additions and 11426 deletions

View File

@@ -1,109 +1,39 @@
baseurl = "https://davegallant.github.io"
languageCode = "en"
defaultContentLanguage = "en" # en / zh-cn / ... (This field determines which i18n file to use)
title = "Dave Gallant"
enableRobotsTXT = true
enableEmoji = true
theme = "ehlxr"
preserveTaxonomyNames = true
hasCJKLanguage = true # has chinese/japanese/korean?
paginate = 5
baseurl = "/"
languageCode = "en-us"
title = "davegallant.github.io - tech micro-blog"
theme = "xmin"
googleAnalytics = "UA-98710982-2"
disqusShortname = "https-davegallant-github-io"
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
preserveTaxonomyNames = true
footnotereturnlinkcontents = "↩"
enableRobotsTXT = true
canonifyURLs = true
[author] # essential
name = "Dave Gallant"
[sitemap] # essential
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"
[permalinks]
post = "/blog/:year/:month/:day/:slug/"
note = "/note/:year/:month/:day/:slug/"
[[menu.main]]
name = "Home"
weight = 10
identifier = "home"
url = "/"
name = "Home"
url = "/"
weight = 1
[[menu.main]]
name = "Archives"
weight = 20
identifier = "archives"
url = "/post/"
name = "About"
url = "/about/"
weight = 2
[[menu.main]]
name = "Tags"
weight = 30
identifier = "tags"
url = "/tags/"
name = "Categories"
url = "/categories/"
weight = 3
[[menu.main]]
name = "Categories"
weight = 40
identifier = "categories"
url = "/categories/"
name = "Tags"
url = "/tags/"
weight = 4
[[menu.main]]
name = "Subscribe"
url = "/index.xml"
[params]
version = "3.x" # Used to give a friendly message when you have an incompatible update
debug = false # If true, load `eruda.min.js`. See https://github.com/liriliri/eruda
since = "2018" # Site creation time # 站点建立时间
# site info (optional) # 站点信息(可选,不需要的可以直接注释掉)
logoTitle = "Dave Gallant" # default: the title value # 默认值: 上面设置的title值
keywords = ["Hugo", "theme","even"]
description = "Dave Gallant's micro-tech blog."
# paginate of archives, tags and categories # 归档、标签、分类每页显示的文章数目,建议修改为一个较大的值
archivePaginate = 5
# show 'xx Posts In Total' in archive page ? # 是否在归档页显示文章的总数
showArchiveCount = false
# The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/
dateFormatToUse = "2006-01-02"
# show word count and read time ? # 是否显示字数统计与阅读时间
moreMeta = true
# Some global options, you can also close or open something in front matter for a single post, see more information from `archetypes/default.md`.
toc = true
autoCollapseToc = false # Auto expand and collapse toc
fancybox = true # see https://github.com/fancyapps/fancybox
mathjax = false # see https://www.mathjax.org/
mathjaxEnableSingleDollar = false
mathjaxEnableAutoNumber = false
postMetaInFooter = true # contain author, lastMod, markdown link, license # 包含作者上次修改时间markdown链接许可信息
linkToMarkDown = false # Only effective when hugo will output .md files. # 链接到markdown原始文件仅当允许hugo生成markdown文件时有效
contentCopyright = '' # e.g. '<a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank">CC BY-NC-ND 4.0</a>'
google_verification = "" # Google_Verification
# Link custom CSS and JS assets
# (relative to /static/css and /static/js respectively)
customCSS = []
customJS = []
[params.publicCDN] # load these files from public cdn # 启用公共CDN需自行定义
enable = false
jquery = '<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>'
slideout = '<script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>'
fancyboxJs = '<script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>'
fancyboxCss = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">'
timeagoJS = '<script src="https://cdn.jsdelivr.net/npm/timeago.js@3.0.2/dist/timeago.min.js" integrity="sha256-jwCP0NAdCBloaIWTWHmW4i3snUNMHUNO+jr9rYd2iOI=" crossorigin="anonymous"></script>'
timeagoLocalesJS = '<script src="https://cdn.jsdelivr.net/npm/timeago.js@3.0.2/dist/timeago.locales.min.js" integrity="sha256-ZwofwC1Lf/faQCzN7nZtfijVV6hSwxjQMwXL4gn9qU8=" crossorigin="anonymous"></script>'
# Display a message at the beginning of an article to warn the readers that it's content may be outdated.
[params.outdatedInfoWarning]
enable = false
hint = 30 # Display hint if the last modified time is more than these days ago. # 如果文章最后更新于这天数之前,显示提醒
warn = 180 # Display warning if the last modified time is more than these days ago. # 如果文章最后更新于这天数之前,显示警告
[params.social] # 社交链接
a-email = "mailto:dave.gallant@outlook.com"
c-twitter = "https://twitter.com/__dave_g__"
e-linkedin = "https://www.linkedin.com/in/dave-gallant-8523772a"
g-github = "https://github.com/davegallant"
[params.disqus]
name = "https-davegallant-github-io" # disqus_shortname
lazy = false # lazy to load disqus
description = "A website built through Hugo and blogdown."
footer = "&copy; Dave Gallant 2018 | [Github](https://github.com/davegallant) | [Twitter](https://twitter.com/__dave_g__)"