Skip to content
Permalink
Browse files

first commit

  • Loading branch information...
xianmin committed Dec 18, 2017
0 parents commit ae7d00e2df695d07bbfc7047b253968504cca611
Showing with 13,354 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +20 −0 LICENSE.md
  3. +1 −0 README-zh.md
  4. +1 −0 README.md
  5. +23 −0 archetypes/default.md
  6. +42 −0 data/jane/default.toml
  7. +42 −0 data/jane/en.toml
  8. +42 −0 data/jane/zh-CN.toml
  9. +124 −0 exampleSite/config.toml
  10. +24 −0 exampleSite/content/about.md
  11. +93 −0 exampleSite/content/post/chinese-preview.md
  12. +1,158 −0 exampleSite/content/post/english-preview.md
  13. +174 −0 exampleSite/content/post/even-preview.md
  14. +47 −0 exampleSite/content/post/japanese-preview.md
  15. +107 −0 exampleSite/content/post/syntax-highlighting.md
  16. +42 −0 exampleSite/data/jane/default.toml
  17. BIN images/screenshot.png
  18. +18 −0 layouts/404.html
  19. +39 −0 layouts/_default/baseof.html
  20. +56 −0 layouts/_default/section.html
  21. +7 −0 layouts/_default/single.html
  22. +1 −0 layouts/_default/single.md
  23. +47 −0 layouts/_default/taxonomy.html
  24. +45 −0 layouts/_default/terms.html
  25. +25 −0 layouts/index.html
  26. +35 −0 layouts/partials/comments.html
  27. +33 −0 layouts/partials/footer.html
  28. +90 −0 layouts/partials/head.html
  29. +19 −0 layouts/partials/header.html
  30. +31 −0 layouts/partials/post/copyright.html
  31. +22 −0 layouts/partials/post/reward.html
  32. +9 −0 layouts/partials/post/toc.html
  33. +58 −0 layouts/partials/scripts.html
  34. +25 −0 layouts/partials/slideout.html
  35. +68 −0 layouts/post/single.html
  36. +29 −0 layouts/post/summary.html
  37. +2 −0 layouts/robots.txt
  38. +62 −0 layouts/shortcodes/music.html
  39. +11 −0 layouts/sitemap.xml
  40. +10 −0 src/.babelrc
  41. +106 −0 src/css/_base.scss
  42. +156 −0 src/css/_common/_animation.scss
  43. +427 −0 src/css/_common/_normalize.scss
  44. +23 −0 src/css/_common/_utils.scss
  45. +4 −0 src/css/_custom/_custom.scss
  46. +110 −0 src/css/_iconfont.scss
  47. +25 −0 src/css/_partial/_404.scss
  48. +101 −0 src/css/_partial/_archive.scss
  49. +24 −0 src/css/_partial/_back-to-top.scss
  50. +43 −0 src/css/_partial/_categories.scss
  51. +10 −0 src/css/_partial/_footer.scss
  52. +23 −0 src/css/_partial/_footer/_copyright.scss
  53. +19 −0 src/css/_partial/_footer/_social.scss
  54. +18 −0 src/css/_partial/_header.scss
  55. +20 −0 src/css/_partial/_header/_logo.scss
  56. +33 −0 src/css/_partial/_header/_menu.scss
  57. +77 −0 src/css/_partial/_mobile.scss
  58. +36 −0 src/css/_partial/_pagination.scss
  59. +41 −0 src/css/_partial/_post.scss
  60. +140 −0 src/css/_partial/_post/_code.scss
  61. +128 −0 src/css/_partial/_post/_content.scss
  62. +29 −0 src/css/_partial/_post/_copyright.scss
  63. +74 −0 src/css/_partial/_post/_footer.scss
  64. +49 −0 src/css/_partial/_post/_header.scss
  65. +54 −0 src/css/_partial/_post/_reward.scss
  66. +67 −0 src/css/_partial/_post/_toc.scss
  67. +33 −0 src/css/_partial/_slideout.scss
  68. +46 −0 src/css/_partial/_tags.scss
  69. +336 −0 src/css/_variables.scss
  70. +19 −0 src/css/style.scss
  71. BIN src/fonts/chancery/apple-chancery-webfont.eot
  72. +228 −0 src/fonts/chancery/apple-chancery-webfont.svg
  73. BIN src/fonts/chancery/apple-chancery-webfont.ttf
  74. BIN src/fonts/chancery/apple-chancery-webfont.woff
  75. BIN src/fonts/chancery/apple-chancery-webfont.woff2
  76. BIN src/fonts/iconfont/iconfont.eot
  77. +93 −0 src/fonts/iconfont/iconfont.svg
  78. BIN src/fonts/iconfont/iconfont.ttf
  79. BIN src/fonts/iconfont/iconfont.woff
  80. +210 −0 src/js/jane.js
  81. +13 −0 src/js/main.js
  82. +7,279 −0 src/package-lock.json
  83. +30 −0 src/package.json
  84. +7 −0 src/postcss.config.js
  85. +54 −0 src/webpack.config.js
  86. BIN static/dist/fonts/chancery/apple-chancery-webfont.eot
  87. +228 −0 static/dist/fonts/chancery/apple-chancery-webfont.svg
  88. BIN static/dist/fonts/chancery/apple-chancery-webfont.ttf
  89. BIN static/dist/fonts/chancery/apple-chancery-webfont.woff
  90. BIN static/dist/fonts/chancery/apple-chancery-webfont.woff2
  91. BIN static/dist/fonts/iconfont/iconfont.eot
  92. +93 −0 static/dist/fonts/iconfont/iconfont.svg
  93. BIN static/dist/fonts/iconfont/iconfont.ttf
  94. BIN static/dist/fonts/iconfont/iconfont.woff
  95. +4 −0 static/dist/jane.min.css
  96. +1 −0 static/dist/jane.min.css.map
  97. +2 −0 static/dist/jane.min.js
  98. +1 −0 static/dist/jane.min.js.map
  99. BIN static/favicon.ico
  100. +1 −0 static/lib/fancybox/jquery.fancybox-3.1.20.min.css
  101. +12 −0 static/lib/fancybox/jquery.fancybox-3.1.20.min.js
  102. +2 −0 static/lib/highlight/highlight.pack.js
  103. +4 −0 static/lib/jquery/jquery-3.2.1.min.js
  104. +1 −0 static/lib/slideout/slideout-1.0.1.min.js
  105. +115 −0 static/sitemap.xsl
  106. +21 −0 theme.toml
@@ -0,0 +1,2 @@
/src/node_modules/
/.idea/
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2017 olOwOlo

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
# hugo-theme-jane
@@ -0,0 +1 @@
# hugo-theme-jane
@@ -0,0 +1,23 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
lastmod: {{ .Date }}
draft: true
keywords: []
description: ""
tags: []
categories: []
author: ""

# You can also close(false) or open(true) something for this content.
# P.S. comment can only be closed
comment: false
toc: false
autoCollapseToc: false
# You can also define another contentCopyright. e.g. contentCopyright: "This is another copyright."
contentCopyright: false
reward: false
mathjax: false
---

<!--more-->
@@ -0,0 +1,42 @@
archive = "归档"
tags = "标签"
categories = "分类"

[footer]
powered = "由 %s 强力驱动"
theme = "主题"

[posts]
prev = "上一页"
next = "下一页"
prev_post = "上一篇"
next_post = "下一篇"
toc = "文章目录"
readmore = "阅读更多"
reward = "赞赏支持"
rewardAlipay = "支付宝打赏"
rewardWechat = "微信打赏"
seeMarkDown = "查看本文 Markdown 版本 »"

[posts.header]
wordCount = "约 %d 字"
readingTime = "预计阅读 %d 分钟"

[copyright]
author = "文章作者"
lastMod = "上次更新"
markdown = "原始文档"
license = "许可协议"

[counter]
[counter.archives]
zero = "暂无文章"
other = "共计 %d 篇文章"

[counter.tagcloud]
zero = "暂无标签"
other = "共计 %d 个标签"

[counter.categories]
zero = "暂无分类"
other = "共计 %d 个分类"
@@ -0,0 +1,42 @@
archive = "Archive"
tags = "Tags"
categories = "Categories"

[footer]
powered = "Powered by %s"
theme = "Theme"

[posts]
prev = "Prev"
next = "Next"
prev_post = "Prev"
next_post = "Next"
toc = "Contents"
readmore = "Read more.."
reward = "Reward"
rewardAlipay = "alipay"
rewardWechat = "wechat"
seeMarkDown = "The Markdown version »"

[posts.header]
wordCount = "%d word"
readingTime = "%d min read"

[copyright]
author = "Author"
lastMod = "LastMod"
markdown = "Markdown"
license = "License"

[counter]
[counter.archives]
zero = "No Posts"
other = "%d Posts In Total"

[counter.tagcloud]
zero = "No tags"
other = "%d Tags In Total"

[counter.categories]
zero = "No Categories"
other = "%d Categories In Total"
@@ -0,0 +1,42 @@
archive = "归档"
tags = "标签"
categories = "分类"

[footer]
powered = "由 %s 强力驱动"
theme = "主题"

[posts]
prev = "上一页"
next = "下一页"
prev_post = "上一篇"
next_post = "下一篇"
toc = "文章目录"
readmore = "阅读更多"
reward = "赞赏支持"
rewardAlipay = "支付宝打赏"
rewardWechat = "微信打赏"
seeMarkDown = "查看本文 Markdown 版本 »"

[posts.header]
wordCount = "约 %d 字"
readingTime = "预计阅读 %d 分钟"

[copyright]
author = "文章作者"
lastMod = "上次更新"
markdown = "原始文档"
license = "许可协议"

[counter]
[counter.archives]
zero = "暂无文章"
other = "共计 %d 篇文章"

[counter.tagcloud]
zero = "暂无标签"
other = "共计 %d 个标签"

[counter.categories]
zero = "暂无分类"
other = "共计 %d 个分类"
@@ -0,0 +1,124 @@
baseURL = "http://localhost:1313/"
languageCode = "en"
defaultContentLanguage = "en"
title = "Jane - A super concise theme for Hugo"
enableRobotsTXT = true
enableEmoji = true
theme = "jane"

hasCJKLanguage = true # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文
paginate = 3 # 首页每页显示的文章数
disqusShortname = "" # disqus_shortname
googleAnalytics = "" # UA-XXXXXXXX-X
copyright = "" # default: author.name ↓ # 默认为下面配置的author.name ↓

[author] # essential # 必需
name = "olOwOlo"

[sitemap] # essential # 必需
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"

[[menu.main]] # config your menu # 配置目录
name = "Home"
weight = 10
identifier = "home"
url = "/"
[[menu.main]]
name = "Archives"
weight = 20
identifier = "archives"
url = "/post/"
[[menu.main]]
name = "Tags"
weight = 30
identifier = "tags"
url = "/tags/"
[[menu.main]]
name = "Categories"
weight = 40
identifier = "categories"
url = "/categories/"

[params]
debug = false # If true, load `eruda.min.js`. See https://github.com/liriliri/eruda

since = "2017" # Site creation time # 站点建立时间

# site info (optional) # 站点信息(可选,不需要的可以直接注释掉)
logoTitle = "Jane" # default: the title value # 默认值: 上面设置的title值
keywords = ["Hugo", "theme","jane"]
description = "Hugo theme jane example site."

# paginate of archives, tags and categories # 归档、标签、分类每页显示的文章数目,建议修改为一个较大的值
archive-paginate = 3

# 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 = false

# 一些全局开关,你也可以在每一篇内容的 front matter 中针对单篇内容关闭或开启某些功能,在 archetypes/default.md 查看更多信息。
# 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 # 是否启用fancybox(图片可点击)
bootcdn = false # In china. @Deprecated: use [params.publicCDN] # 是否使用bootcdn(@Deprecated: 请使用[params.publicCDN])
mathjax = false # see https://www.mathjax.org/ # 是否使用mathjax(数学公式)
linkToMarkDown = false # if you config contentCopyright and hugo output .md files. # 是否在链接到markdown原始文件(如果你配置了下面的许可协议并允许hugo生成markdown文件)

contentCopyright = '<a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank">CC BY-NC-ND 4.0</a>'

changyanAppid = "" # Changyan app id # 畅言
changyanAppkey = "" # Changyan app key
baidu_push = false # baidu push # 百度
baidu_analytics = "" # Baidu Analytics
baidu_verification = "" # Baidu Verification
google_verification = "" # Google_Verification # 谷歌

[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">'

[params.reward] # 文章打赏
enable = false
wechat = "/path/to/your/wechat-qr-code.png" # 微信二维码
alipay = "/path/to/your/alipay-qr-code.png" # 支付宝二维码

[params.social] # 社交链接
a-email = "mailto:your@email.com"
b-stack-overflow = "http://localhost:1313"
c-twitter = "http://localhost:1313"
d-facebook = "http://localhost:1313"
e-linkedin = "http://localhost:1313"
f-google = "http://localhost:1313"
g-github = "http://localhost:1313"
h-weibo = "http://localhost:1313"
i-zhihu = "http://localhost:1313"
j-douban = "http://localhost:1313"
k-pocket = "http://localhost:1313"
l-tumblr = "http://localhost:1313"
m-instagram = "http://localhost:1313"

# 将下面这段配置取消注释可以使 hugo 生成 .md 文件
# Uncomment these options to make hugo output .md files.
#[mediaTypes]
# [mediaTypes."text/plain"]
# suffix = "md"
#
#[outputFormats.MarkDown]
# mediaType = "text/plain"
# isPlainText = true
# isHTML = false
#
#[outputs]
# home = ["HTML", "RSS"]
# page = ["HTML", "MarkDown"]
# section = ["HTML", "RSS"]
# taxonomy = ["HTML", "RSS"]
# taxonomyTerm = ["HTML"]
@@ -0,0 +1,24 @@
---
title: "About"
date: 2017-08-20T21:38:52+08:00
lastmod: 2017-08-28T21:41:52+08:00
menu: "main"
weight: 50

# you can close something for this content if you open it in config.toml.
comment: false
mathjax: false
---

Hugo is a static site engine written in Go.


It makes use of a variety of open source projects including:

* [Cobra](https://github.com/spf13/cobra)
* [Viper](https://github.com/spf13/viper)
* [J Walter Weatherman](https://github.com/spf13/jWalterWeatherman)
* [Cast](https://github.com/spf13/cast)

Learn more and contribute on [GitHub](https://github.com/gohugoio).

Oops, something went wrong.

0 comments on commit ae7d00e

Please sign in to comment.
You can’t perform that action at this time.