From a62a3e7755579d93ce3a87243dd277575930fffe Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Mon, 5 Nov 2018 21:49:16 -0500 Subject: init --- .gitignore | 1 + archetypes/default.md | 6 + config.toml | 171 +++ .../post/2014-02-24-tmux-session-coloring.markdown | 40 + list.html | 35 + ...e.scss_5ad6f408b0e3e473c748aac88af0ea18.content | 520 +++++++++ ...tale.scss_5ad6f408b0e3e473c748aac88af0ea18.json | 1 + static/css/logo.css | 3 + themes/even/.gitignore | 2 + themes/even/CHANGELOG.md | 74 ++ themes/even/LICENSE.md | 20 + themes/even/README-zh.md | 90 ++ themes/even/README.md | 90 ++ themes/even/archetypes/default.md | 43 + themes/even/exampleSite/config.toml | 176 +++ themes/even/exampleSite/content/about.md | 21 + .../exampleSite/content/post/chinese-preview.md | 84 ++ .../exampleSite/content/post/english-preview.md | 1150 ++++++++++++++++++++ .../even/exampleSite/content/post/even-preview.md | 165 +++ .../even/exampleSite/content/post/hidden-post.md | 15 + .../exampleSite/content/post/japanese-preview.md | 38 + .../content/post/js-flowchart-diagrams.md | 131 +++ .../content/post/js-sequence-diagrams.md | 95 ++ themes/even/exampleSite/content/post/shortcodes.md | 136 +++ .../content/post/syntax-highlighting.md | 100 ++ themes/even/i18n/en.yaml | 102 ++ themes/even/i18n/es.yaml | 102 ++ themes/even/i18n/fr.yaml | 102 ++ themes/even/i18n/zh-CN.yaml | 102 ++ themes/even/images/screenshot.png | Bin 0 -> 47266 bytes themes/even/images/showcase.png | Bin 0 -> 208792 bytes themes/even/images/tn.png | Bin 0 -> 41999 bytes themes/even/layouts/404.html | 18 + themes/even/layouts/_default/baseof.html | 46 + themes/even/layouts/_default/section.html | 50 + themes/even/layouts/_default/single.html | 7 + themes/even/layouts/_default/single.md | 1 + themes/even/layouts/_default/taxonomy.html | 46 + themes/even/layouts/_default/terms.html | 44 + themes/even/layouts/index.html | 24 + themes/even/layouts/partials/comments.html | 109 ++ themes/even/layouts/partials/footer.html | 52 + themes/even/layouts/partials/head.html | 90 ++ themes/even/layouts/partials/header.html | 19 + themes/even/layouts/partials/post/copyright.html | 32 + .../partials/post/outdated-info-warning.html | 28 + themes/even/layouts/partials/post/reward.html | 21 + themes/even/layouts/partials/post/toc.html | 9 + themes/even/layouts/partials/scripts.html | 115 ++ themes/even/layouts/partials/slideout.html | 25 + themes/even/layouts/post/single.html | 72 ++ themes/even/layouts/post/summary.html | 28 + themes/even/layouts/robots.txt | 2 + themes/even/layouts/shortcodes/center.html | 3 + themes/even/layouts/shortcodes/left.html | 3 + themes/even/layouts/shortcodes/music.html | 62 ++ themes/even/layouts/shortcodes/right.html | 3 + themes/even/layouts/sitemap.xml | 11 + themes/even/src/.babelrc | 10 + themes/even/src/css/_base.scss | 98 ++ themes/even/src/css/_common/_animation.scss | 156 +++ themes/even/src/css/_common/_normalize.scss | 427 ++++++++ themes/even/src/css/_common/_utils.scss | 23 + themes/even/src/css/_custom/_custom.scss | 4 + themes/even/src/css/_iconfont.scss | 110 ++ themes/even/src/css/_partial/_404.scss | 25 + themes/even/src/css/_partial/_archive.scss | 100 ++ themes/even/src/css/_partial/_back-to-top.scss | 24 + themes/even/src/css/_partial/_categories.scss | 43 + themes/even/src/css/_partial/_footer.scss | 10 + .../even/src/css/_partial/_footer/_copyright.scss | 23 + themes/even/src/css/_partial/_footer/_social.scss | 19 + themes/even/src/css/_partial/_header.scss | 19 + themes/even/src/css/_partial/_header/_logo.scss | 18 + themes/even/src/css/_partial/_header/_menu.scss | 35 + themes/even/src/css/_partial/_mobile.scss | 77 ++ themes/even/src/css/_partial/_pagination.scss | 36 + themes/even/src/css/_partial/_post.scss | 24 + themes/even/src/css/_partial/_post/_code.scss | 140 +++ themes/even/src/css/_partial/_post/_content.scss | 143 +++ themes/even/src/css/_partial/_post/_copyright.scss | 29 + themes/even/src/css/_partial/_post/_footer.scss | 74 ++ themes/even/src/css/_partial/_post/_header.scss | 46 + themes/even/src/css/_partial/_post/_outdated.scss | 25 + themes/even/src/css/_partial/_post/_reward.scss | 54 + themes/even/src/css/_partial/_post/_toc.scss | 55 + themes/even/src/css/_partial/_slideout.scss | 33 + themes/even/src/css/_partial/_tags.scss | 46 + themes/even/src/css/_variables.scss | 336 ++++++ themes/even/src/css/style.scss | 19 + .../src/fonts/chancery/apple-chancery-webfont.eot | Bin 0 -> 26058 bytes .../src/fonts/chancery/apple-chancery-webfont.svg | 228 ++++ .../src/fonts/chancery/apple-chancery-webfont.ttf | Bin 0 -> 60780 bytes .../src/fonts/chancery/apple-chancery-webfont.woff | Bin 0 -> 30256 bytes .../fonts/chancery/apple-chancery-webfont.woff2 | Bin 0 -> 23532 bytes themes/even/src/fonts/iconfont/iconfont.eot | Bin 0 -> 5928 bytes themes/even/src/fonts/iconfont/iconfont.svg | 93 ++ themes/even/src/fonts/iconfont/iconfont.ttf | Bin 0 -> 5760 bytes themes/even/src/fonts/iconfont/iconfont.woff | Bin 0 -> 4160 bytes themes/even/src/js/even.js | 246 +++++ themes/even/src/js/main.js | 16 + themes/even/src/package.json | 31 + themes/even/src/postcss.config.js | 7 + themes/even/src/webpack.config.js | 54 + themes/even/static/android-chrome-192x192.png | Bin 0 -> 4930 bytes themes/even/static/android-chrome-512x512.png | Bin 0 -> 5498 bytes themes/even/static/apple-touch-icon.png | Bin 0 -> 2530 bytes themes/even/static/browserconfig.xml | 9 + themes/even/static/dist/even.min.css | 4 + themes/even/static/dist/even.min.css.map | 1 + themes/even/static/dist/even.min.js | 2 + themes/even/static/dist/even.min.js.map | 1 + .../dist/fonts/chancery/apple-chancery-webfont.eot | Bin 0 -> 26058 bytes .../dist/fonts/chancery/apple-chancery-webfont.svg | 228 ++++ .../dist/fonts/chancery/apple-chancery-webfont.ttf | Bin 0 -> 60780 bytes .../fonts/chancery/apple-chancery-webfont.woff | Bin 0 -> 30256 bytes .../fonts/chancery/apple-chancery-webfont.woff2 | Bin 0 -> 23532 bytes .../even/static/dist/fonts/iconfont/iconfont.eot | Bin 0 -> 5928 bytes .../even/static/dist/fonts/iconfont/iconfont.svg | 93 ++ .../even/static/dist/fonts/iconfont/iconfont.ttf | Bin 0 -> 5760 bytes .../even/static/dist/fonts/iconfont/iconfont.woff | Bin 0 -> 4160 bytes themes/even/static/favicon-16x16.png | Bin 0 -> 737 bytes themes/even/static/favicon-32x32.png | Bin 0 -> 1019 bytes themes/even/static/favicon.ico | Bin 0 -> 15086 bytes themes/even/static/img/reward/alipay.png | Bin 0 -> 103603 bytes themes/even/static/img/reward/wechat.png | Bin 0 -> 54031 bytes themes/even/static/img/spinner.svg | 49 + .../lib/fancybox/jquery.fancybox-3.1.20.min.css | 1 + .../lib/fancybox/jquery.fancybox-3.1.20.min.js | 12 + themes/even/static/lib/gitalk/gitalk-1.2.2.min.css | 7 + themes/even/static/lib/gitalk/gitalk-1.2.2.min.js | 19 + .../even/static/lib/gitment/gitment-0.0.3.min.css | 1 + .../even/static/lib/gitment/gitment-0.0.3.min.js | 1 + themes/even/static/lib/highlight/highlight.pack.js | 2 + themes/even/static/lib/jquery/jquery-3.2.1.min.js | 4 + .../even/static/lib/slideout/slideout-1.0.1.min.js | 1 + .../even/static/lib/timeago/timeago-3.0.2.min.js | 1 + .../lib/timeago/timeago.locales-3.0.2.min.js | 1 + themes/even/static/manifest.json | 18 + themes/even/static/mstile-150x150.png | Bin 0 -> 2556 bytes themes/even/static/safari-pinned-tab.svg | 25 + themes/even/static/sitemap.xsl | 115 ++ themes/even/theme.toml | 21 + 143 files changed, 8107 insertions(+) create mode 100644 .gitignore create mode 100644 archetypes/default.md create mode 100644 config.toml create mode 100644 content/post/2014-02-24-tmux-session-coloring.markdown create mode 100644 list.html create mode 100644 resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.content create mode 100644 resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.json create mode 100644 static/css/logo.css create mode 100644 themes/even/.gitignore create mode 100644 themes/even/CHANGELOG.md create mode 100644 themes/even/LICENSE.md create mode 100644 themes/even/README-zh.md create mode 100644 themes/even/README.md create mode 100644 themes/even/archetypes/default.md create mode 100644 themes/even/exampleSite/config.toml create mode 100644 themes/even/exampleSite/content/about.md create mode 100644 themes/even/exampleSite/content/post/chinese-preview.md create mode 100644 themes/even/exampleSite/content/post/english-preview.md create mode 100644 themes/even/exampleSite/content/post/even-preview.md create mode 100644 themes/even/exampleSite/content/post/hidden-post.md create mode 100644 themes/even/exampleSite/content/post/japanese-preview.md create mode 100644 themes/even/exampleSite/content/post/js-flowchart-diagrams.md create mode 100644 themes/even/exampleSite/content/post/js-sequence-diagrams.md create mode 100644 themes/even/exampleSite/content/post/shortcodes.md create mode 100644 themes/even/exampleSite/content/post/syntax-highlighting.md create mode 100644 themes/even/i18n/en.yaml create mode 100644 themes/even/i18n/es.yaml create mode 100644 themes/even/i18n/fr.yaml create mode 100644 themes/even/i18n/zh-CN.yaml create mode 100644 themes/even/images/screenshot.png create mode 100644 themes/even/images/showcase.png create mode 100644 themes/even/images/tn.png create mode 100644 themes/even/layouts/404.html create mode 100644 themes/even/layouts/_default/baseof.html create mode 100644 themes/even/layouts/_default/section.html create mode 100644 themes/even/layouts/_default/single.html create mode 100644 themes/even/layouts/_default/single.md create mode 100644 themes/even/layouts/_default/taxonomy.html create mode 100644 themes/even/layouts/_default/terms.html create mode 100644 themes/even/layouts/index.html create mode 100644 themes/even/layouts/partials/comments.html create mode 100644 themes/even/layouts/partials/footer.html create mode 100644 themes/even/layouts/partials/head.html create mode 100644 themes/even/layouts/partials/header.html create mode 100644 themes/even/layouts/partials/post/copyright.html create mode 100644 themes/even/layouts/partials/post/outdated-info-warning.html create mode 100644 themes/even/layouts/partials/post/reward.html create mode 100644 themes/even/layouts/partials/post/toc.html create mode 100644 themes/even/layouts/partials/scripts.html create mode 100644 themes/even/layouts/partials/slideout.html create mode 100644 themes/even/layouts/post/single.html create mode 100644 themes/even/layouts/post/summary.html create mode 100644 themes/even/layouts/robots.txt create mode 100644 themes/even/layouts/shortcodes/center.html create mode 100644 themes/even/layouts/shortcodes/left.html create mode 100644 themes/even/layouts/shortcodes/music.html create mode 100644 themes/even/layouts/shortcodes/right.html create mode 100644 themes/even/layouts/sitemap.xml create mode 100644 themes/even/src/.babelrc create mode 100644 themes/even/src/css/_base.scss create mode 100644 themes/even/src/css/_common/_animation.scss create mode 100644 themes/even/src/css/_common/_normalize.scss create mode 100644 themes/even/src/css/_common/_utils.scss create mode 100644 themes/even/src/css/_custom/_custom.scss create mode 100644 themes/even/src/css/_iconfont.scss create mode 100644 themes/even/src/css/_partial/_404.scss create mode 100644 themes/even/src/css/_partial/_archive.scss create mode 100644 themes/even/src/css/_partial/_back-to-top.scss create mode 100644 themes/even/src/css/_partial/_categories.scss create mode 100644 themes/even/src/css/_partial/_footer.scss create mode 100644 themes/even/src/css/_partial/_footer/_copyright.scss create mode 100644 themes/even/src/css/_partial/_footer/_social.scss create mode 100644 themes/even/src/css/_partial/_header.scss create mode 100644 themes/even/src/css/_partial/_header/_logo.scss create mode 100644 themes/even/src/css/_partial/_header/_menu.scss create mode 100644 themes/even/src/css/_partial/_mobile.scss create mode 100644 themes/even/src/css/_partial/_pagination.scss create mode 100644 themes/even/src/css/_partial/_post.scss create mode 100644 themes/even/src/css/_partial/_post/_code.scss create mode 100644 themes/even/src/css/_partial/_post/_content.scss create mode 100644 themes/even/src/css/_partial/_post/_copyright.scss create mode 100644 themes/even/src/css/_partial/_post/_footer.scss create mode 100644 themes/even/src/css/_partial/_post/_header.scss create mode 100644 themes/even/src/css/_partial/_post/_outdated.scss create mode 100644 themes/even/src/css/_partial/_post/_reward.scss create mode 100644 themes/even/src/css/_partial/_post/_toc.scss create mode 100644 themes/even/src/css/_partial/_slideout.scss create mode 100644 themes/even/src/css/_partial/_tags.scss create mode 100644 themes/even/src/css/_variables.scss create mode 100644 themes/even/src/css/style.scss create mode 100644 themes/even/src/fonts/chancery/apple-chancery-webfont.eot create mode 100644 themes/even/src/fonts/chancery/apple-chancery-webfont.svg create mode 100644 themes/even/src/fonts/chancery/apple-chancery-webfont.ttf create mode 100644 themes/even/src/fonts/chancery/apple-chancery-webfont.woff create mode 100644 themes/even/src/fonts/chancery/apple-chancery-webfont.woff2 create mode 100644 themes/even/src/fonts/iconfont/iconfont.eot create mode 100644 themes/even/src/fonts/iconfont/iconfont.svg create mode 100644 themes/even/src/fonts/iconfont/iconfont.ttf create mode 100644 themes/even/src/fonts/iconfont/iconfont.woff create mode 100644 themes/even/src/js/even.js create mode 100644 themes/even/src/js/main.js create mode 100644 themes/even/src/package.json create mode 100644 themes/even/src/postcss.config.js create mode 100644 themes/even/src/webpack.config.js create mode 100644 themes/even/static/android-chrome-192x192.png create mode 100644 themes/even/static/android-chrome-512x512.png create mode 100644 themes/even/static/apple-touch-icon.png create mode 100644 themes/even/static/browserconfig.xml create mode 100644 themes/even/static/dist/even.min.css create mode 100644 themes/even/static/dist/even.min.css.map create mode 100644 themes/even/static/dist/even.min.js create mode 100644 themes/even/static/dist/even.min.js.map create mode 100644 themes/even/static/dist/fonts/chancery/apple-chancery-webfont.eot create mode 100644 themes/even/static/dist/fonts/chancery/apple-chancery-webfont.svg create mode 100644 themes/even/static/dist/fonts/chancery/apple-chancery-webfont.ttf create mode 100644 themes/even/static/dist/fonts/chancery/apple-chancery-webfont.woff create mode 100644 themes/even/static/dist/fonts/chancery/apple-chancery-webfont.woff2 create mode 100644 themes/even/static/dist/fonts/iconfont/iconfont.eot create mode 100644 themes/even/static/dist/fonts/iconfont/iconfont.svg create mode 100644 themes/even/static/dist/fonts/iconfont/iconfont.ttf create mode 100644 themes/even/static/dist/fonts/iconfont/iconfont.woff create mode 100644 themes/even/static/favicon-16x16.png create mode 100644 themes/even/static/favicon-32x32.png create mode 100644 themes/even/static/favicon.ico create mode 100644 themes/even/static/img/reward/alipay.png create mode 100644 themes/even/static/img/reward/wechat.png create mode 100644 themes/even/static/img/spinner.svg create mode 100644 themes/even/static/lib/fancybox/jquery.fancybox-3.1.20.min.css create mode 100644 themes/even/static/lib/fancybox/jquery.fancybox-3.1.20.min.js create mode 100644 themes/even/static/lib/gitalk/gitalk-1.2.2.min.css create mode 100644 themes/even/static/lib/gitalk/gitalk-1.2.2.min.js create mode 100644 themes/even/static/lib/gitment/gitment-0.0.3.min.css create mode 100644 themes/even/static/lib/gitment/gitment-0.0.3.min.js create mode 100644 themes/even/static/lib/highlight/highlight.pack.js create mode 100644 themes/even/static/lib/jquery/jquery-3.2.1.min.js create mode 100644 themes/even/static/lib/slideout/slideout-1.0.1.min.js create mode 100644 themes/even/static/lib/timeago/timeago-3.0.2.min.js create mode 100644 themes/even/static/lib/timeago/timeago.locales-3.0.2.min.js create mode 100644 themes/even/static/manifest.json create mode 100644 themes/even/static/mstile-150x150.png create mode 100644 themes/even/static/safari-pinned-tab.svg create mode 100644 themes/even/static/sitemap.xsl create mode 100644 themes/even/theme.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c75eecc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/public diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..d21d69d --- /dev/null +++ b/config.toml @@ -0,0 +1,171 @@ +baseURL = "http://localhost:1313/" +languageCode = "en" +defaultContentLanguage = "en" # en / zh-cn / ... (This field determines which i18n file to use) +title = "capotej.com" +enableRobotsTXT = true +enableEmoji = true +theme = "even" + +preserveTaxonomyNames = true +hasCJKLanguage = false # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文 +paginate = 5 # 首页每页显示的文章数 +disqusShortname = "" # disqus_shortname +googleAnalytics = "" # UA-XXXXXXXX-X +copyright = "" # default: author.name ↓ # 默认为下面配置的author.name ↓ + +[author] # essential # 必需 + name = "Julio Capote" + +[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/" + +[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 = "2008" # Site creation time # 站点建立时间 + + # site info (optional) # 站点信息(可选,不需要的可以直接注释掉) + logoTitle = "@capotej" # default: the title value # 默认值: 上面设置的title值 + keywords = ["Hugo", "theme","even"] + description = "Hugo theme even example site." + + # 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 = 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(图片可点击) + mathjax = false # see https://www.mathjax.org/ # 是否使用mathjax(数学公式) + mathjaxEnableSingleDollar = false # 是否使用 $...$ 即可進行inline latex渲染 + 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. 'CC BY-NC-ND 4.0' + + changyanAppid = "" # Changyan app id # 畅言 + changyanAppkey = "" # Changyan app key + livereUID = "" # LiveRe UID # 来必力 + baidu_push = false # baidu push # 百度 + baidu_analytics = "" # Baidu Analytics + baidu_verification = "" # Baidu Verification + google_verification = "" # Google_Verification # 谷歌 + + # Link custom CSS and JS assets + # (relative to /static/css and /static/js respectively) + customCSS = ["logo.css"] + customJS = [] + + [params.publicCDN] # load these files from public cdn # 启用公共CDN,需自行定义 + enable = false + jquery = '' + slideout = '' + fancyboxJs = '' + fancyboxCss = '' + gitmentJS = '' + gitmentCSS = '' + gitalkJS = '' + gitalkCSS = '' + timeagoJS = '' + timeagoLocalesJS = '' + + # 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.gitment] # Gitment is a comment system based on GitHub issues. see https://github.com/imsun/gitment + owner = "" # Your GitHub ID + repo = "" # The repo to store comments + clientId = "" # Your client ID + clientSecret = "" # Your client secret + + [params.gitalk] # Gitalk is a comment system based on GitHub issues. see https://github.com/gitalk/gitalk + owner = "" # Your GitHub ID + repo = "" # The repo to store comments + clientId = "" # Your client ID + clientSecret = "" # Your client secret + + [params.flowchartDiagrams]# see https://blog.olowolo.com/example-site/post/js-flowchart-diagrams/ + enable = false + options = "" + + [params.sequenceDiagrams] # see https://blog.olowolo.com/example-site/post/js-sequence-diagrams/ + enable = false + options = "" # default: "{theme: 'simple'}" + + [params.busuanzi] # count web traffic by busuanzi # 是否使用不蒜子统计站点访问量 + enable = false + siteUV = true + sitePV = true + pagePV = true + + [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"] diff --git a/content/post/2014-02-24-tmux-session-coloring.markdown b/content/post/2014-02-24-tmux-session-coloring.markdown new file mode 100644 index 0000000..425648a --- /dev/null +++ b/content/post/2014-02-24-tmux-session-coloring.markdown @@ -0,0 +1,40 @@ +--- +layout: post +title: "Tmux session coloring" +date: 2014-02-24 08:30 +date: 2014-02-24T00:00:00Z +comments: true +tags: ["shell scripting", "tmux"] +--- + +Recently, I've really gotten into tmux for managing all my terminal sessions/windows. Not so much for the panes, but more for keeping a highly contextual environment per project or task. + +As the number of sessions grew, they became difficult to tell apart. For a few days now, I've had the idea of hashing the name of the session into a unique color, so that every session had its own `status-bg` color. + +First, the `tmuxHashColor` function: + +```sh +tmuxHashColor() { + local hsh=$(echo $1 | cksum | cut -d ' ' -f 1) + local num=$(expr $hsh % 255) + echo "colour$num" +} +``` + +In our `ns` function (new session), we hash the supplied session name to a color, then use `tmux send-keys` to set its `status-bg` color to it: + +```sh +ns() { + if [ -z $1 ]; then + 1=$(basename $(pwd)) + fi + tmux new-session -d -s $1 + local color=$(tmuxHashColor $1) + tmux send-keys -t $1 "tmux set-option status-bg $color" C-m + tmux send-keys -t $1 "clear" C-m + tmux attach -t $1 +} + +``` + +Now every session has it's own distinct `status-bg` color! diff --git a/list.html b/list.html new file mode 100644 index 0000000..0fcf803 --- /dev/null +++ b/list.html @@ -0,0 +1,35 @@ + +
+ {{ partial "header" . }} + {{ partial "nav" . }} +
+ {{ if .Pages }} + {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups}} +

{{ .Key }}

+ {{ range where .Pages "Section" "posts" }} +
+
+
{{ .Date.Format "Jan 2" }}
+
+
+

{{ .Title }}{{ if .Draft }} ::Draft{{ end }}

+
+ {{ .Summary | plainify | safeHTML | truncate 400 }} + {{ if .Truncated }} +
+ + + + +

more

+
+ {{ end }} +
+
+ {{ end }} + {{ end }} + {{ end }} +
+ {{ partial "pager" . }} + {{ partial "footer" . }} +
\ No newline at end of file diff --git a/resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.content b/resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.content new file mode 100644 index 0000000..372753d --- /dev/null +++ b/resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.content @@ -0,0 +1,520 @@ +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + line-height: 1.5; } + +html, +body { + color: #555; + margin: 0; + padding: 0; } + +html { + font-family: "Libre Baskerville", "Times New Roman", Times, serif; + font-size: 14px; + overflow-y: scroll; } + @media (min-width: 600px) { + html { + font-size: 16px; } } + +body { + -webkit-text-size-adjust: 100%; } + +h1, +h2, +h3, +h4, +h5, +h6 { + color: #353535; + font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; + line-height: normal; } + +a { + color: #4a9ae1; + text-decoration: none; } + +blockquote { + border-left: 0.25rem solid #e5e5e5; + color: #979797; + margin: .8rem 0; + padding: .5rem 1rem; } + blockquote p:last-child { + margin-bottom: 0; } + @media (min-width: 600px) { + blockquote { + padding: 0 5rem 0 1.25rem; } } + +img { + display: block; + margin: 0 0 1rem; + max-width: 100%; } + +td { + vertical-align: top; } + +pre, +code { + font-family: Menlo, Monaco, monospace; } + +code { + background-color: #f9f9f9; + border-radius: 3px; + color: #bf616a; + font-size: 85%; + padding: .25em .5em; } + +pre { + margin: 0 0 1rem; } + +pre code { + background-color: transparent; + color: inherit; + font-size: 100%; + padding: 0; } + +.highlight { + background-color: #f9f9f9; + border-radius: 3px; + line-height: 1.4; + margin: 0 0 1rem; + padding: 1rem; } + .highlight pre { + margin-bottom: 0; + overflow-x: auto; } + .highlight .lineno { + color: #aaa; + display: inline-block; + padding: 0 .75rem 0 .25rem; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; } + +.post { + padding: 3rem 0; } + .post-info { + color: #aaa; + font-family: Palatino, "Palatino LT STD", "Palatino Linotype", "Book Antiqua", "Georgia", serif; + letter-spacing: 0.5px; + text-align: center; } + .post-info span { + font-style: italic; } + .post-title { + color: #353535; + font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; + font-size: 4rem; + margin: 1rem 0; + text-align: center; } + .post-line { + border-top: 0.4rem solid #353535; + display: block; + margin: 0 auto 3rem; + width: 4rem; } + .post p { + margin: 0 0 1rem; + text-align: justify; } + .post a:hover { + text-decoration: underline; } + .post img { + margin: 0 auto 0.5rem; } + .post img + em { + color: #aaa; + display: block; + font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; + font-size: 0.9rem; + font-style: normal; + text-align: center; } + .post img.emoji { + display: inline-block; + left: 0; + transform: none; + width: 1rem; + height: 1rem; + vertical-align: text-top; + padding: 0; + margin: 0; } + +.highlight .hll { + background-color: #ffc; } + +.highlight .c { + color: #999; } + +/* Comment */ +.highlight .err { + color: #a00; + background-color: #faa; } + +/* Error */ +.highlight .k { + color: #069; } + +/* Keyword */ +.highlight .o { + color: #555; } + +/* Operator */ +.highlight .cm { + color: #09f; + font-style: italic; } + +/* Comment.Multiline */ +.highlight .cp { + color: #099; } + +/* Comment.Preproc */ +.highlight .c1 { + color: #999; } + +/* Comment.Single */ +.highlight .cs { + color: #999; } + +/* Comment.Special */ +.highlight .gd { + background-color: #fcc; + border: 1px solid #c00; } + +/* Generic.Deleted */ +.highlight .ge { + font-style: italic; } + +/* Generic.Emph */ +.highlight .gr { + color: #f00; } + +/* Generic.Error */ +.highlight .gh { + color: #030; } + +/* Generic.Heading */ +.highlight .gi { + background-color: #cfc; + border: 1px solid #0c0; } + +/* Generic.Inserted */ +.highlight .go { + color: #aaa; } + +/* Generic.Output */ +.highlight .gp { + color: #009; } + +/* Generic.Prompt */ +/* Generic.Strong */ +.highlight .gu { + color: #030; } + +/* Generic.Subheading */ +.highlight .gt { + color: #9c6; } + +/* Generic.Traceback */ +.highlight .kc { + color: #069; } + +/* Keyword.Constant */ +.highlight .kd { + color: #069; } + +/* Keyword.Declaration */ +.highlight .kn { + color: #069; } + +/* Keyword.Namespace */ +.highlight .kp { + color: #069; } + +/* Keyword.Pseudo */ +.highlight .kr { + color: #069; } + +/* Keyword.Reserved */ +.highlight .kt { + color: #078; } + +/* Keyword.Type */ +.highlight .m { + color: #f60; } + +/* Literal.Number */ +.highlight .s { + color: #d44950; } + +/* Literal.String */ +.highlight .na { + color: #4f9fcf; } + +/* Name.Attribute */ +.highlight .nb { + color: #366; } + +/* Name.Builtin */ +.highlight .nc { + color: #0a8; } + +/* Name.Class */ +.highlight .no { + color: #360; } + +/* Name.Constant */ +.highlight .nd { + color: #99f; } + +/* Name.Decorator */ +.highlight .ni { + color: #999; } + +/* Name.Entity */ +.highlight .ne { + color: #c00; } + +/* Name.Exception */ +.highlight .nf { + color: #c0f; } + +/* Name.Function */ +.highlight .nl { + color: #99f; } + +/* Name.Label */ +.highlight .nn { + color: #0cf; } + +/* Name.Namespace */ +.highlight .nt { + color: #2f6f9f; } + +/* Name.Tag */ +.highlight .nv { + color: #033; } + +/* Name.Variable */ +.highlight .ow { + color: #000; } + +/* Operator.Word */ +.highlight .w { + color: #bbb; } + +/* Text.Whitespace */ +.highlight .mf { + color: #f60; } + +/* Literal.Number.Float */ +.highlight .mh { + color: #f60; } + +/* Literal.Number.Hex */ +.highlight .mi { + color: #f60; } + +/* Literal.Number.Integer */ +.highlight .mo { + color: #f60; } + +/* Literal.Number.Oct */ +.highlight .sb { + color: #c30; } + +/* Literal.String.Backtick */ +.highlight .sc { + color: #c30; } + +/* Literal.String.Char */ +.highlight .sd { + color: #c30; + font-style: italic; } + +/* Literal.String.Doc */ +.highlight .s2 { + color: #c30; } + +/* Literal.String.Double */ +.highlight .se { + color: #c30; } + +/* Literal.String.Escape */ +.highlight .sh { + color: #c30; } + +/* Literal.String.Heredoc */ +.highlight .si { + color: #a00; } + +/* Literal.String.Interpol */ +.highlight .sx { + color: #c30; } + +/* Literal.String.Other */ +.highlight .sr { + color: #3aa; } + +/* Literal.String.Regex */ +.highlight .s1 { + color: #c30; } + +/* Literal.String.Single */ +.highlight .ss { + color: #fc3; } + +/* Literal.String.Symbol */ +.highlight .bp { + color: #366; } + +/* Name.Builtin.Pseudo */ +.highlight .vc { + color: #033; } + +/* Name.Variable.Class */ +.highlight .vg { + color: #033; } + +/* Name.Variable.Global */ +.highlight .vi { + color: #033; } + +/* Name.Variable.Instance */ +.highlight .il { + color: #f60; } + +/* Literal.Number.Integer.Long */ +.css .o, +.css .o + .nt, +.css .nt + .nt { + color: #999; } + +.container { + margin: 0 auto; + max-width: 800px; + width: 80%; } + +main, +footer, +.nav-container { + display: block; + margin: 0 auto; + max-width: 800px; + width: 80%; } + +.nav { + box-shadow: 0 2px 2px -2px rgba(0, 0, 0, 0.2); + overflow: auto; } + .nav-container { + margin: 1rem auto; + position: relative; + text-align: center; } + .nav-title { + -webkit-transition: all 0.2s ease-out; + -moz-transition: all 0.2s ease-out; + transition: all 0.2s ease-out; + color: #555; + display: inline-block; + margin: 0; + padding-right: .2rem; } + .nav-title:hover, .nav-title:focus { + opacity: .6; } + .nav ul { + list-style-type: none; + margin: 1rem 0 0; + padding: 0; + text-align: center; } + .nav li { + -webkit-transition: all 0.2s ease-out; + -moz-transition: all 0.2s ease-out; + transition: all 0.2s ease-out; + color: #555; + display: inline-block; + opacity: .6; + padding: 0 2rem 0 0; } + .nav li:last-child { + padding-right: 0; } + .nav li:hover, .nav li:focus { + opacity: 1; } + .nav a { + color: #555; + font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; } + +@media (min-width: 600px) { + .nav-container { + text-align: left; } + .nav ul { + bottom: 0; + position: absolute; + right: 0; } } + +footer { + font-family: Palatino, "Palatino LT STD", "Palatino Linotype", "Book Antiqua", "Georgia", serif; + padding: 2rem 0; + text-align: center; } + footer span { + color: #555; + font-size: .8rem; } + +.pagination { + border-top: 0.5px solid #e5e5e5; + font-family: Palatino, "Palatino LT STD", "Palatino Linotype", "Book Antiqua", "Georgia", serif; + padding-top: 2rem; + position: relative; + text-align: center; } + .pagination span { + color: #353535; + font-size: 1.1rem; } + .pagination .top { + -webkit-transition: all 0.3s ease-out; + -moz-transition: all 0.3s ease-out; + transition: all 0.3s ease-out; + color: #555; + font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; + font-size: 1.1rem; + opacity: .6; } + .pagination .top:hover { + opacity: 1; } + .pagination .arrow { + -webkit-transition: all 0.3s ease-out; + -moz-transition: all 0.3s ease-out; + transition: all 0.3s ease-out; + color: #555; + position: absolute; } + .pagination .arrow:hover, .pagination .arrow:focus { + opacity: .6; + text-decoration: none; } + .pagination .left { + left: 0; } + .pagination .right { + right: 0; } + +.catalogue-item { + border-bottom: 1px solid #e5e5e5; + color: #555; + display: inline-block; + padding: 2rem 0; } + .catalogue-item:hover .catalogue-line, + .catalogue-item:focus .catalogue-line { + width: 5rem; } + .catalogue-item:last-child { + border: 0; } + +.catalogue-time { + color: #aaa; + font-family: Palatino, "Palatino LT STD", "Palatino Linotype", "Book Antiqua", "Georgia", serif; + letter-spacing: .5px; } + +.catalogue-title { + color: #353535; + display: block; + font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; + font-size: 2rem; + font-weight: 700; + margin: .5rem 0; } + +.catalogue-line { + -webkit-transition: all 0.3s ease-out; + -moz-transition: all 0.3s ease-out; + transition: all 0.3s ease-out; + border-top: 0.2rem solid #353535; + display: block; + width: 2rem; } + +/*# sourceMappingURL=style.css.map */ \ No newline at end of file diff --git a/resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.json b/resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.json new file mode 100644 index 0000000..28c014b --- /dev/null +++ b/resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.json @@ -0,0 +1 @@ +{"Target":"css/style.css","MediaType":"text/css","Data":{}} \ No newline at end of file diff --git a/static/css/logo.css b/static/css/logo.css new file mode 100644 index 0000000..66acb28 --- /dev/null +++ b/static/css/logo.css @@ -0,0 +1,3 @@ +.header .logo-wrapper .logo { + font-family: sans-serif; +} diff --git a/themes/even/.gitignore b/themes/even/.gitignore new file mode 100644 index 0000000..6d8cd9d --- /dev/null +++ b/themes/even/.gitignore @@ -0,0 +1,2 @@ +/src/node_modules/ +/.idea/ diff --git a/themes/even/CHANGELOG.md b/themes/even/CHANGELOG.md new file mode 100644 index 0000000..e8eeaf8 --- /dev/null +++ b/themes/even/CHANGELOG.md @@ -0,0 +1,74 @@ + +# [3.2.0](https://github.com/olOwOlo/hugo-theme-even/compare/v3.1.1...v3.2.0) (2018-07-06) + + +### Bug Fixes + +* **gist:** css conflict ([#61](https://github.com/olOwOlo/hugo-theme-even/issues/61)) ([e1781a2](https://github.com/olOwOlo/hugo-theme-even/commit/e1781a2)) +* **section:** remove hard coded `section` ([#67](https://github.com/olOwOlo/hugo-theme-even/issues/67)) ([6766e09](https://github.com/olOwOlo/hugo-theme-even/commit/6766e09)) + + +### Features + +* **mathjax:** add auto number for mathjax ([#53](https://github.com/olOwOlo/hugo-theme-even/issues/53)) ([af22a48](https://github.com/olOwOlo/hugo-theme-even/commit/af22a48)) +* **comment:** add gitalk ([#51](https://github.com/olOwOlo/hugo-theme-even/issues/51)) ([5f8b79f](https://github.com/olOwOlo/hugo-theme-even/commit/5f8b79f)) +* **config:** add option to hide header and footer for a post ([#58](https://github.com/olOwOlo/hugo-theme-even/issues/58)) ([094cfa5](https://github.com/olOwOlo/hugo-theme-even/commit/094cfa5)) +* **config:** configure to show archive count ([2c7773b](https://github.com/olOwOlo/hugo-theme-even/commit/2c7773b)), closes [#46](https://github.com/olOwOlo/hugo-theme-even/issues/46) +* **i18n:** add Spanish(es) translation ([#48](https://github.com/olOwOlo/hugo-theme-even/issues/48)) ([d7c6059](https://github.com/olOwOlo/hugo-theme-even/commit/d7c6059)) +* **post:** add out-of-date content warning ([#68](https://github.com/olOwOlo/hugo-theme-even/issues/68)) ([9033266](https://github.com/olOwOlo/hugo-theme-even/commit/9033266)) + + + + + +# [3.1.1](https://github.com/olOwOlo/hugo-theme-even/compare/v3.1.0...v3.1.1) (2018-03-12) + +### Bug Fixes + +* release: version param ([b18086f](https://github.com/olOwOlo/hugo-theme-even/commit/b18086f)) + + +# [3.1.0](https://github.com/olOwOlo/hugo-theme-even/compare/v3.0.0...v3.1.0) (2018-03-12) + + +### Bug Fixes + +* mathjax overflow for displayed mathematics ([#32](https://github.com/olOwOlo/hugo-theme-even/issues/32)) ([2b4a373](https://github.com/olOwOlo/hugo-theme-even/commit/2b4a373)) + + +### Features + +* add gitment module ([#36](https://github.com/olOwOlo/hugo-theme-even/issues/36)) ([1da110d](https://github.com/olOwOlo/hugo-theme-even/commit/1da110d)) +* add hiddenFromHomePage param ([#37](https://github.com/olOwOlo/hugo-theme-even/issues/37)) ([5277734](https://github.com/olOwOlo/hugo-theme-even/commit/5277734)) +* generate flowchart diagrams from code blocks ([#35](https://github.com/olOwOlo/hugo-theme-even/issues/35)) ([7043881](https://github.com/olOwOlo/hugo-theme-even/commit/7043881)) +* generate sequence diagrams from code blocks ([#35](https://github.com/olOwOlo/hugo-theme-even/issues/35)) ([5bcf92d](https://github.com/olOwOlo/hugo-theme-even/commit/5bcf92d)) +* support custom css and js ([#29](https://github.com/olOwOlo/hugo-theme-even/issues/29)) ([33594c0](https://github.com/olOwOlo/hugo-theme-even/commit/33594c0)) + + +# 3.0.0 + +### Features + +* feat: add `center`, `right`, `left` shortcodes +* feat: support 'right' and 'left' class value for the built-in `figure` + +### Breaking changes + +* See [Language Support](https://github.com/olOwOlo/hugo-theme-even#language-support). +* See [Favicon](https://github.com/olOwOlo/hugo-theme-even#favicon). +* Remove deprecated `bootcdn` param, you can use `[params.publicCDN]`. +* The `archive-paginate` param rename to `archivePaginate`. +* Add a `postMetaInFooter` parameter to control the `contentCopyright` container, and now you can show the author and lastMod information without displaying the license. +* There must be a `version` param, otherwise the build process will give an error. +* Minimum version required: 0.26 -> 0.35 + +```toml +# add +version = "3.x" # Used to give a friendly message when you have an incompatible update + +# add +postMetaInFooter = true + +# rename archive-paginate +archivePaginate = 50 +``` diff --git a/themes/even/LICENSE.md b/themes/even/LICENSE.md new file mode 100644 index 0000000..755e5c1 --- /dev/null +++ b/themes/even/LICENSE.md @@ -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. diff --git a/themes/even/README-zh.md b/themes/even/README-zh.md new file mode 100644 index 0000000..cb5c133 --- /dev/null +++ b/themes/even/README-zh.md @@ -0,0 +1,90 @@ +# hugo-theme-even + +A super concise theme for Hugo + +> 该主题移植自 [hexo-theme-even](https://github.com/ahonn/hexo-theme-even) + +[在线预览 Demo](https://blog.olowolo.com/example-site/) + +## Screenshots + +![even-showcase](https://raw.githubusercontent.com/olOwOlo/hugo-theme-even/master/images/showcase.png) + +## Installation + +```bash +$ git clone https://github.com/olOwOlo/hugo-theme-even themes/even +``` + +**重要:** 在主题的 [`exampleSite`](https://github.com/olOwOlo/hugo-theme-even/tree/master/exampleSite) 目录下有一个 [`config.toml`](https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml) 文件,**将这个 [`config.toml`](https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml) 文件复制到你的站点目录下**,根据自己的需求更改即可。 + +**注意:** 对于这个主题,你应该使用 **post** 而不是 **posts**,即 `hugo new post/some-content.md`。 + +## Language Support + +> 翻译资源在 [`themes/even/i18n/`](https://github.com/olOwOlo/hugo-theme-even/tree/master/i18n) 文件夹(内置在主题中),以及站点根目录下的 `i18n/` 文件夹中。两个文件夹下的翻译资源将会被合并,且根目录下的优先级大于内置于主题中的。 + +只需要正确的设置 [`defaultContentLanguage`](https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml#L3) 的值即可使用翻译资源。 + +```toml +defaultContentLanguage = "en" # en / zh-cn / other... +``` + +同样也支持其他语言。举例来说,为支持德语,在站点根目录下创建 `/i18n/de.yaml` 文件。参考 [`en.yaml`](https://github.com/olOwOlo/hugo-theme-even/tree/master/i18n/en.yaml) 文件查看如何编写翻译资源。 + +附:在多语言模式下,当前正被用于渲染网站的语言会被用于匹配翻译资源。 + +## Favicon + +为了定制 favicon,你需要在站点根目录的 `static` 文件夹下放置下述**所有**文件,这将覆盖 [`themes/even/static/`](https://github.com/olOwOlo/hugo-theme-even/tree/master/static) 文件夹下的那些文件。 + +- android-chrome-192x192.png +- android-chrome-512x512.png +- apple-touch-icon.png +- browserconfig.xml +- favicon.ico +- favicon-16x16.png +- favicon-32x32.png +- manifest.json +- mstile-150x150.png +- safari-pinned-tab.svg + +[favicon generator (Google)](https://www.google.com/search?q=favicon+generator) 能够帮助你生成这些文件。 + +## Front Matter + +你可以通过 front-matter 针对每一篇文章单独进行设置。[`themes/even/archetypes/default.md`](https://github.com/olOwOlo/hugo-theme-even/tree/master/archetypes/default.md) 文件陈列了所有可用的参数。将该文件复制到站点根目录的 `archetypes` 文件夹下将会有所帮助。 + +## Shortcodes + +主题提供了 `center`,` right`, `left`,` music` 四种 shortcodes,并支持为内置的 `figure` 设置 `center`,` right`, `left` 这三种 class 值。点击[这里](https://blog.olowolo.com/example-site/post/shortcodes/)查看详细内容。 + +## Theme Color + +主题内置了五种颜色 ( Default | Mint Green | Cobalt Blue | Hot Pink | Dark Violet ),你可以通过改变 [`/src/css/_variable.scss`](https://github.com/olOwOlo/hugo-theme-even/blob/master/src/css/_variables.scss#L5-L8) 文件中 `$theme-color-config` 的值来改变主题的颜色。 + +## Build + +如果你更改了 `/src/` 目录下的任意文件,你需要重新编译它们。 +```bash +cd ./themes/even/src/ +npm install +npm run build +``` + +## Update Theme + +```bash +cd ./themes/even/ +git pull +``` + +## License + +Released under the [MIT](https://github.com/olOwOlo/hugo-theme-even/blob/master/LICENSE.md) License. + +## Acknowledgements + +- [ananke](https://github.com/budparr/gohugo-theme-ananke) +- [hexo-theme-even](https://github.com/ahonn/hexo-theme-even) +- [hugo-nuo](https://github.com/laozhu/hugo-nuo) diff --git a/themes/even/README.md b/themes/even/README.md new file mode 100644 index 0000000..45e43e1 --- /dev/null +++ b/themes/even/README.md @@ -0,0 +1,90 @@ +# hugo-theme-even + +A super concise theme for Hugo + +> It's a port of the [hexo-theme-even](https://github.com/ahonn/hexo-theme-even) + +[Demo](https://blog.olowolo.com/example-site/) | [中文说明](https://github.com/olOwOlo/hugo-theme-even/blob/master/README-zh.md) + +## Screenshots + +![even-showcase](https://raw.githubusercontent.com/olOwOlo/hugo-theme-even/master/images/showcase.png) + +## Installation + +```bash +$ git clone https://github.com/olOwOlo/hugo-theme-even themes/even +``` + +**Important:** Take a look inside the [`exampleSite`](https://github.com/olOwOlo/hugo-theme-even/tree/master/exampleSite) folder of this theme. You'll find a file called [`config.toml`](https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml). **To use it, copy the [`config.toml`](https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml) in the root folder of your Hugo site.** Feel free to change it. + +**NOTE:** For this theme, you should use **post** instead of **posts**, namely `hugo new post/some-content.md`. + +## Language Support + +> Translations are collected from the [`themes/even/i18n/`](https://github.com/olOwOlo/hugo-theme-even/tree/master/i18n) folder (built into the theme), as well as translations present in `i18n/` at the root of your project. The translations will be merged and take precedence over what is in the theme folder. + +To use the translations, just set a correct value for [`defaultContentLanguage`](https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml#L3). + +```toml +defaultContentLanguage = "en" # en / zh-cn / other... +``` + +Can also support any other languages as well. For example, to support german, create a file `/i18n/de.yaml` in the root folder of your Hugo site. For reference template you can see the [`en.yaml`](https://github.com/olOwOlo/hugo-theme-even/tree/master/i18n/en.yaml) file. + +P.S. In multilingual mode, the language which currently being used to render the website will be used. + +## Favicon + +In order to customize the favicon you need to place **all** the following files in the `static` folder at the root of your site, which will overwrite those files in the [`themes/even/static/`](https://github.com/olOwOlo/hugo-theme-even/tree/master/static) folder. + +- android-chrome-192x192.png +- android-chrome-512x512.png +- apple-touch-icon.png +- browserconfig.xml +- favicon.ico +- favicon-16x16.png +- favicon-32x32.png +- manifest.json +- mstile-150x150.png +- safari-pinned-tab.svg + +A [favicon generator](https://www.google.com/search?q=favicon+generator) can help you generate these files. + +## Front Matter + +You can customize something for a single content in the content's front-matter. The [`themes/even/archetypes/default.md`](https://github.com/olOwOlo/hugo-theme-even/tree/master/archetypes/default.md) shows all available params. Copy this file in the `archetypes` folder at the root of your project will be useful. + +## Shortcodes + +This theme provides `center`,` right`, `left`,` music` four shortcodes, and support `center`,` right`, `left` class for the built-in `figure`. See more information from [there](https://blog.olowolo.com/example-site/post/shortcodes/). + +## Theme Color + +There are five built-in theme colors ( Default | Mint Green | Cobalt Blue | Hot Pink | Dark Violet ), you can config it by changing the `$theme-color-config` value in [`/src/css/_variable.scss`](https://github.com/olOwOlo/hugo-theme-even/blob/master/src/css/_variables.scss#L5-L8). + +## Build + +If you changed any file under `/src/`, you need to rebuild. +```bash +cd ./themes/even/src/ +npm install +npm run build +``` + +## Update Theme + +```bash +cd ./themes/even/ +git pull +``` + +## License + +Released under the [MIT](https://github.com/olOwOlo/hugo-theme-even/blob/master/LICENSE.md) License. + +## Acknowledgements + +- [ananke](https://github.com/budparr/gohugo-theme-ananke) +- [hexo-theme-even](https://github.com/ahonn/hexo-theme-even) +- [hugo-nuo](https://github.com/laozhu/hugo-nuo) diff --git a/themes/even/archetypes/default.md b/themes/even/archetypes/default.md new file mode 100644 index 0000000..f4ff840 --- /dev/null +++ b/themes/even/archetypes/default.md @@ -0,0 +1,43 @@ +--- +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 +postMetaInFooter: false +hiddenFromHomePage: false +# You can also define another contentCopyright. e.g. contentCopyright: "This is another copyright." +contentCopyright: false +reward: false +mathjax: false +mathjaxEnableSingleDollar: false +mathjaxEnableAutoNumber: false + +# You unlisted posts you might want not want the header or footer to show +hideHeaderAndFooter: false + +# You can enable or disable out-of-date content warning for individual post. +# Comment this out to use the global config. +#enableOutdatedInfoWarning: false + +flowchartDiagrams: + enable: false + options: "" + +sequenceDiagrams: + enable: false + options: "" + +--- + + diff --git a/themes/even/exampleSite/config.toml b/themes/even/exampleSite/config.toml new file mode 100644 index 0000000..ebe80e4 --- /dev/null +++ b/themes/even/exampleSite/config.toml @@ -0,0 +1,176 @@ +baseURL = "http://localhost:1313/" +languageCode = "en" +defaultContentLanguage = "en" # en / zh-cn / ... (This field determines which i18n file to use) +title = "Even - A super concise theme for Hugo" +enableRobotsTXT = true +enableEmoji = true +theme = "even" + +preserveTaxonomyNames = true +hasCJKLanguage = true # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文 +paginate = 5 # 首页每页显示的文章数 +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] + 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 = "2017" # Site creation time # 站点建立时间 + + # site info (optional) # 站点信息(可选,不需要的可以直接注释掉) + logoTitle = "Even" # default: the title value # 默认值: 上面设置的title值 + keywords = ["Hugo", "theme","even"] + description = "Hugo theme even example site." + + # 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 = 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(图片可点击) + mathjax = false # see https://www.mathjax.org/ # 是否使用mathjax(数学公式) + mathjaxEnableSingleDollar = false # 是否使用 $...$ 即可進行inline latex渲染 + 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. 'CC BY-NC-ND 4.0' + + changyanAppid = "" # Changyan app id # 畅言 + changyanAppkey = "" # Changyan app key + livereUID = "" # LiveRe UID # 来必力 + baidu_push = false # baidu push # 百度 + baidu_analytics = "" # Baidu Analytics + baidu_verification = "" # Baidu Verification + 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 = '' + slideout = '' + fancyboxJs = '' + fancyboxCss = '' + gitmentJS = '' + gitmentCSS = '' + gitalkJS = '' + gitalkCSS = '' + timeagoJS = '' + timeagoLocalesJS = '' + + # 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.gitment] # Gitment is a comment system based on GitHub issues. see https://github.com/imsun/gitment + owner = "" # Your GitHub ID + repo = "" # The repo to store comments + clientId = "" # Your client ID + clientSecret = "" # Your client secret + + [params.gitalk] # Gitalk is a comment system based on GitHub issues. see https://github.com/gitalk/gitalk + owner = "" # Your GitHub ID + repo = "" # The repo to store comments + clientId = "" # Your client ID + clientSecret = "" # Your client secret + + [params.flowchartDiagrams]# see https://blog.olowolo.com/example-site/post/js-flowchart-diagrams/ + enable = false + options = "" + + [params.sequenceDiagrams] # see https://blog.olowolo.com/example-site/post/js-sequence-diagrams/ + enable = false + options = "" # default: "{theme: 'simple'}" + + [params.busuanzi] # count web traffic by busuanzi # 是否使用不蒜子统计站点访问量 + enable = false + siteUV = true + sitePV = true + pagePV = true + + [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"] diff --git a/themes/even/exampleSite/content/about.md b/themes/even/exampleSite/content/about.md new file mode 100644 index 0000000..0913c18 --- /dev/null +++ b/themes/even/exampleSite/content/about.md @@ -0,0 +1,21 @@ +--- +title: "About" +date: 2017-08-20T21:38:52+08:00 +lastmod: 2017-08-28T21:41:52+08:00 +menu: "main" +weight: 50 + +--- + +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). + diff --git a/themes/even/exampleSite/content/post/chinese-preview.md b/themes/even/exampleSite/content/post/chinese-preview.md new file mode 100644 index 0000000..08b3096 --- /dev/null +++ b/themes/even/exampleSite/content/post/chinese-preview.md @@ -0,0 +1,84 @@ +--- +title: "[中文] 《长恨歌》" +date: 2017-08-30T01:37:56+08:00 +lastmod: 2017-08-30T01:37:56+08:00 +draft: false +tags: ["preview", "中文", "tag-1"] +categories: ["中文"] +author: "Wikipedia" + +contentCopyright: 'Creative Commons Attribution-ShareAlike License' + +--- + +>《长恨歌》是中国唐朝诗人白居易的一首长篇叙事诗。 + +# 第一段:贵妃受宠爱 + +汉皇重色思倾国,御宇多年求不得。杨家有女初长成,养在深闺人未识。 + +天生丽质难自弃,一朝选在君王侧。回眸一笑百媚生,六宫粉黛无颜色。 + +春寒赐浴华清池,温泉水滑洗凝脂。侍儿扶起娇无力,始是新承恩泽时。 + +云鬓花颜金步摇,芙蓉帐暖度春宵。春宵苦短日高起,从此君王不早朝。 + +承欢侍宴无闲暇,春从春游夜专夜。后宫佳丽三千人,三千宠爱在一身。 + +金屋妆成娇侍夜,玉楼宴罢醉和春。姊妹弟兄皆列士,可怜光彩生门户。 + +遂令天下父母心,不重生男重生女。骊宫高处入青云,仙乐风飘处处闻。 + +缓歌慢舞凝丝竹,尽日君王看不足。渔阳鼙鼓动地来,惊破霓裳羽衣曲。 + +# 第二段:马嵬惊变 + +九重城阙烟尘生,千乘万骑西南行。翠华摇摇行复止,西出都门百余里。 + +六军不发无奈何,宛转蛾眉马前死。花钿委地无人收,翠翘金雀玉搔头。 + +君王掩面救不得,回看血泪相和流。黄埃散漫风萧索,云栈萦纡登剑阁。 + +峨嵋山下少人行,旌旗无光日色薄。蜀江水碧蜀山青,圣主朝朝暮暮情。 + +行宫见月伤心色,夜雨闻铃肠断声。 + +# 第三段:玄宗皇帝思念 + +天旋地转回龙驭,到此踌躇不能去。马嵬坡下泥土中,不见玉颜空死处。 + +君臣相顾尽霑衣,东望都门信马归。归来池苑皆依旧,太液芙蓉未央柳。 + +芙蓉如面柳如眉,对此如何不泪垂。春风桃李花开日,秋雨梧桐叶落时。 + +西宫南内多秋草,落叶满阶红不扫。梨园弟子白发新,椒房阿监青娥老。 + +夕殿萤飞思悄然,孤灯挑尽未成眠。迟迟钟鼓初长夜,耿耿星河欲曙天。 + +鸳鸯瓦冷霜华重,翡翠衾寒谁与共。悠悠生死别经年,魂魄不曾来入梦。 + +# 第四段:仙界寻妃 + +临邛道士鸿都客,能以精诚致魂魄。为感君王辗转思,遂教方士殷勤觅。 + +排空驭气奔如电,升天入地求之遍。上穷碧落下黄泉,两处茫茫皆不见。 + +忽闻海上有仙山,山在虚无缥缈间。楼阁玲珑五云起,其中绰约多仙子。 + +中有一人字太真,雪肤花貌参差是。金阙西厢叩玉扃,转教小玉报双成。 + +闻道汉家天子使,九华帐里梦魂惊。揽衣推枕起徘徊,珠箔银屏迤逦开。 + +云髻(鬓?)半偏新睡觉,花冠不整下堂来。风吹仙袂飘飘(飖)举,犹似霓裳羽衣舞。 + +玉容寂寞泪阑干,梨花一枝春带雨。含情凝睇谢君王,一别音容两渺茫。 + +昭阳殿里恩爱绝,蓬莱宫中日月长。回头下望人寰处,不见长安见尘雾。 + +唯将旧物表深情,钿合金钗寄将去。钗留一股合一扇,钗擘黄金合分钿。 + +但教心似金钿坚,天上人间会相见。临别殷勤重寄词,词中有誓两心知。 + +七月七日长生殿,夜半无人私语时。在天愿作比翼鸟,在地愿为连理枝。 + +天长地久有时尽,此恨绵绵无绝期。 diff --git a/themes/even/exampleSite/content/post/english-preview.md b/themes/even/exampleSite/content/post/english-preview.md new file mode 100644 index 0000000..02693ab --- /dev/null +++ b/themes/even/exampleSite/content/post/english-preview.md @@ -0,0 +1,1150 @@ +--- +title: "[English] Creating a New Theme" +date: 2017-08-31T15:43:48+08:00 +lastmod: 2017-08-31T15:43:48+08:00 +draft: false +tags: ["preview", "English", "tag-2"] +categories: ["English"] +author: "Michael Henderson" + +autoCollapseToc: true +contentCopyright: 'See origin' + +--- + +## Introduction + +This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I'll explain how Hugo uses templates and how you can organize your templates to create a theme. I won't cover using CSS to style your theme. + +We'll start with creating a new site with a very basic template. Then we'll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites. + +In this tutorial, commands that you enter will start with the "$" prompt. The output will follow. Lines that start with "#" are comments that I've added to explain a point. When I show updates to a file, the ":wq" on the last line means to save the file. + +Here's an example: + +``` +## this is a comment +$ echo this is a command +this is a command + +## edit the file +$vi foo.md ++++ +date = "2014-09-28" +title = "creating a new theme" ++++ + +bah and humbug +:wq + +## show it +$ cat foo.md ++++ +date = "2014-09-28" +title = "creating a new theme" ++++ + +bah and humbug +$ +``` + + +## Some Definitions + +There are a few concepts that you need to understand before creating a theme. + +### Skins + +Skins are the files responsible for the look and feel of your site. It’s the CSS that controls colors and fonts, it’s the Javascript that determines actions and reactions. It’s also the rules that Hugo uses to transform your content into the HTML that the site will serve to visitors. + +You have two ways to create a skin. The simplest way is to create it in the ```layouts/``` directory. If you do, then you don’t have to worry about configuring Hugo to recognize it. The first place that Hugo will look for rules and files is in the ```layouts/``` directory so it will always find the skin. + +Your second choice is to create it in a sub-directory of the ```themes/``` directory. If you do, then you must always tell Hugo where to search for the skin. It’s extra work, though, so why bother with it? + +The difference between creating a skin in ```layouts/``` and creating it in ```themes/``` is very subtle. A skin in ```layouts/``` can’t be customized without updating the templates and static files that it is built from. A skin created in ```themes/```, on the other hand, can be and that makes it easier for other people to use it. + +The rest of this tutorial will call a skin created in the ```themes/``` directory a theme. + +Note that you can use this tutorial to create a skin in the ```layouts/``` directory if you wish to. The main difference will be that you won’t need to update the site’s configuration file to use a theme. + +### The Home Page + +The home page, or landing page, is the first page that many visitors to a site see. It is the index.html file in the root directory of the web site. Since Hugo writes files to the public/ directory, our home page is public/index.html. + +### Site Configuration File + +When Hugo runs, it looks for a configuration file that contains settings that override default values for the entire site. The file can use TOML, YAML, or JSON. I prefer to use TOML for my configuration files. If you prefer to use JSON or YAML, you’ll need to translate my examples. You’ll also need to change the name of the file since Hugo uses the extension to determine how to process it. + +Hugo translates Markdown files into HTML. By default, Hugo expects to find Markdown files in your ```content/``` directory and template files in your ```themes/``` directory. It will create HTML files in your ```public/``` directory. You can change this by specifying alternate locations in the configuration file. + +### Content + +Content is stored in text files that contain two sections. The first section is the “front matter,” which is the meta-information on the content. The second section contains Markdown that will be converted to HTML. + +#### Front Matter + +The front matter is information about the content. Like the configuration file, it can be written in TOML, YAML, or JSON. Unlike the configuration file, Hugo doesn’t use the file’s extension to know the format. It looks for markers to signal the type. TOML is surrounded by “`+++`”, YAML by “`---`”, and JSON is enclosed in curly braces. I prefer to use TOML, so you’ll need to translate my examples if you prefer YAML or JSON. + +The information in the front matter is passed into the template before the content is rendered into HTML. + +#### Markdown + +Content is written in Markdown which makes it easier to create the content. Hugo runs the content through a Markdown engine to create the HTML which will be written to the output file. + +### Template Files + +Hugo uses template files to render content into HTML. Template files are a bridge between the content and presentation. Rules in the template define what content is published, where it's published to, and how it will rendered to the HTML file. The template guides the presentation by specifying the style to use. + +There are three types of templates: single, list, and partial. Each type takes a bit of content as input and transforms it based on the commands in the template. + +Hugo uses its knowledge of the content to find the template file used to render the content. If it can’t find a template that is an exact match for the content, it will shift up a level and search from there. It will continue to do so until it finds a matching template or runs out of templates to try. If it can’t find a template, it will use the default template for the site. + +Please note that you can use the front matter to influence Hugo’s choice of templates. + +#### Single Template + +A single template is used to render a single piece of content. For example, an article or post would be a single piece of content and use a single template. + +#### List Template + +A list template renders a group of related content. That could be a summary of recent postings or all articles in a category. List templates can contain multiple groups. + +The homepage template is a special type of list template. Hugo assumes that the home page of your site will act as the portal for the rest of the content in the site. + +#### Partial Template + +A partial template is a template that can be included in other templates. Partial templates must be called using the “partial” template command. They are very handy for rolling up common behavior. For example, your site may have a banner that all pages use. Instead of copying the text of the banner into every single and list template, you could create a partial with the banner in it. That way if you decide to change the banner, you only have to change the partial template. + +## Create a New Site + +Let's use Hugo to create a new web site. I'm a Mac user, so I'll create mine in my home directory, in the Sites folder. If you're using Linux, you might have to create the folder first. + +The "new site" command will create a skeleton of a site. It will give you the basic directory structure and a useable configuration file. + +``` +$ hugo new site ~/Sites/zafta +$ cd ~/Sites/zafta +$ ls -l +total 8 +drwxr-xr-x 7 quoha staff 238 Sep 29 16:49 . +drwxr-xr-x 3 quoha staff 102 Sep 29 16:49 .. +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes +-rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static +$ +``` + +Take a look in the content/ directory to confirm that it is empty. + +The other directories (archetypes/, layouts/, and static/) are used when customizing a theme. That's a topic for a different tutorial, so please ignore them for now. + +### Generate the HTML For the New Site + +Running the `hugo` command with no options will read all the available content and generate the HTML files. It will also copy all static files (that's everything that's not content). Since we have an empty site, it won't do much, but it will do it very quickly. + +``` +$ hugo --verbose +INFO: 2014/09/29 Using config file: config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ +WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] +WARN: 2014/09/29 Unable to locate layout: [404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 2 ms +$ +``` + +The "`--verbose`" flag gives extra information that will be helpful when we build the template. Every line of the output that starts with "INFO:" or "WARN:" is present because we used that flag. The lines that start with "WARN:" are warning messages. We'll go over them later. + +We can verify that the command worked by looking at the directory again. + +``` +$ ls -l +total 8 +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes +-rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts +drwxr-xr-x 4 quoha staff 136 Sep 29 17:02 public +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static +$ +``` + +See that new public/ directory? Hugo placed all generated content there. When you're ready to publish your web site, that's the place to start. For now, though, let's just confirm that we have what we'd expect from a site with no content. + +``` +$ ls -l public +total 16 +-rw-r--r-- 1 quoha staff 416 Sep 29 17:02 index.xml +-rw-r--r-- 1 quoha staff 262 Sep 29 17:02 sitemap.xml +$ +``` + +Hugo created two XML files, which is standard, but there are no HTML files. + + + +### Test the New Site + +Verify that you can run the built-in web server. It will dramatically shorten your development cycle if you do. Start it by running the "server" command. If it is successful, you will see output similar to the following: + +``` +$ hugo server --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ +WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] +WARN: 2014/09/29 Unable to locate layout: [404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 2 ms +Serving pages from /Users/quoha/Sites/zafta/public +Web Server is available at http://localhost:1313 +Press Ctrl+C to stop +``` + +Connect to the listed URL (it's on the line that starts with "Web Server"). If everything is working correctly, you should get a page that shows the following: + +``` +index.xml +sitemap.xml +``` + +That's a listing of your public/ directory. Hugo didn't create a home page because our site has no content. When there's no index.html file in a directory, the server lists the files in the directory, which is what you should see in your browser. + +Let’s go back and look at those warnings again. + +``` +WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] +WARN: 2014/09/29 Unable to locate layout: [404.html] +``` + +That second warning is easier to explain. We haven’t created a template to be used to generate “page not found errors.” The 404 message is a topic for a separate tutorial. + +Now for the first warning. It is for the home page. You can tell because the first layout that it looked for was “index.html.” That’s only used by the home page. + +I like that the verbose flag causes Hugo to list the files that it's searching for. For the home page, they are index.html, _default/list.html, and _default/single.html. There are some rules that we'll cover later that explain the names and paths. For now, just remember that Hugo couldn't find a template for the home page and it told you so. + +At this point, you've got a working installation and site that we can build upon. All that’s left is to add some content and a theme to display it. + +## Create a New Theme + +Hugo doesn't ship with a default theme. There are a few available (I counted a dozen when I first installed Hugo) and Hugo comes with a command to create new themes. + +We're going to create a new theme called "zafta." Since the goal of this tutorial is to show you how to fill out the files to pull in your content, the theme will not contain any CSS. In other words, ugly but functional. + +All themes have opinions on content and layout. For example, Zafta uses "post" over "blog". Strong opinions make for simpler templates but differing opinions make it tougher to use themes. When you build a theme, consider using the terms that other themes do. + + +### Create a Skeleton + +Use the hugo "new" command to create the skeleton of a theme. This creates the directory structure and places empty files for you to fill out. + +``` +$ hugo new theme zafta + +$ ls -l +total 8 +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes +-rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts +drwxr-xr-x 4 quoha staff 136 Sep 29 17:02 public +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static +drwxr-xr-x 3 quoha staff 102 Sep 29 17:31 themes + +$ find themes -type f | xargs ls -l +-rw-r--r-- 1 quoha staff 1081 Sep 29 17:31 themes/zafta/LICENSE.md +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/archetypes/default.md +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/list.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/single.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/footer.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/header.html +-rw-r--r-- 1 quoha staff 93 Sep 29 17:31 themes/zafta/theme.toml +$ +``` + +The skeleton includes templates (the files ending in .html), license file, a description of your theme (the theme.toml file), and an empty archetype. + +Please take a minute to fill out the theme.toml and LICENSE.md files. They're optional, but if you're going to be distributing your theme, it tells the world who to praise (or blame). It's also nice to declare the license so that people will know how they can use the theme. + +``` +$ vi themes/zafta/theme.toml +author = "michael d henderson" +description = "a minimal working template" +license = "MIT" +name = "zafta" +source_repo = "" +tags = ["tags", "categories"] +:wq + +## also edit themes/zafta/LICENSE.md and change +## the bit that says "YOUR_NAME_HERE" +``` + +Note that the the skeleton's template files are empty. Don't worry, we'll be changing that shortly. + +``` +$ find themes/zafta -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/list.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/single.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/footer.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/header.html +$ +``` + + + +### Update the Configuration File to Use the Theme + +Now that we've got a theme to work with, it's a good idea to add the theme name to the configuration file. This is optional, because you can always add "-t zafta" on all your commands. I like to put it the configuration file because I like shorter command lines. If you don't put it in the configuration file or specify it on the command line, you won't use the template that you're expecting to. + +Edit the file to add the theme, add a title for the site, and specify that all of our content will use the TOML format. + +``` +$ vi config.toml +theme = "zafta" +baseurl = "" +languageCode = "en-us" +title = "zafta - totally refreshing" +MetaDataFormat = "toml" +:wq + +$ +``` + +### Generate the Site + +Now that we have an empty theme, let's generate the site again. + +``` +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 2 ms +$ +``` + +Did you notice that the output is different? The warning message for the home page has disappeared and we have an additional information line saying that Hugo is syncing from the theme's directory. + +Let's check the public/ directory to see what Hugo's created. + +``` +$ ls -l public +total 16 +drwxr-xr-x 2 quoha staff 68 Sep 29 17:56 css +-rw-r--r-- 1 quoha staff 0 Sep 29 17:56 index.html +-rw-r--r-- 1 quoha staff 407 Sep 29 17:56 index.xml +drwxr-xr-x 2 quoha staff 68 Sep 29 17:56 js +-rw-r--r-- 1 quoha staff 243 Sep 29 17:56 sitemap.xml +$ +``` + +Notice four things: + +1. Hugo created a home page. This is the file public/index.html. +2. Hugo created a css/ directory. +3. Hugo created a js/ directory. +4. Hugo claimed that it created 0 pages. It created a file and copied over static files, but didn't create any pages. That's because it considers a "page" to be a file created directly from a content file. It doesn't count things like the index.html files that it creates automatically. + +#### The Home Page + +Hugo supports many different types of templates. The home page is special because it gets its own type of template and its own template file. The file, layouts/index.html, is used to generate the HTML for the home page. The Hugo documentation says that this is the only required template, but that depends. Hugo's warning message shows that it looks for three different templates: + +``` +WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] +``` + +If it can't find any of these, it completely skips creating the home page. We noticed that when we built the site without having a theme installed. + +When Hugo created our theme, it created an empty home page template. Now, when we build the site, Hugo finds the template and uses it to generate the HTML for the home page. Since the template file is empty, the HTML file is empty, too. If the template had any rules in it, then Hugo would have used them to generate the home page. + +``` +$ find . -name index.html | xargs ls -l +-rw-r--r-- 1 quoha staff 0 Sep 29 20:21 ./public/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 ./themes/zafta/layouts/index.html +$ +``` + +#### The Magic of Static + +Hugo does two things when generating the site. It uses templates to transform content into HTML and it copies static files into the site. Unlike content, static files are not transformed. They are copied exactly as they are. + +Hugo assumes that your site will use both CSS and JavaScript, so it creates directories in your theme to hold them. Remember opinions? Well, Hugo's opinion is that you'll store your CSS in a directory named css/ and your JavaScript in a directory named js/. If you don't like that, you can change the directory names in your theme directory or even delete them completely. Hugo's nice enough to offer its opinion, then behave nicely if you disagree. + +``` +$ find themes/zafta -type d | xargs ls -ld +drwxr-xr-x 7 quoha staff 238 Sep 29 17:38 themes/zafta +drwxr-xr-x 3 quoha staff 102 Sep 29 17:31 themes/zafta/archetypes +drwxr-xr-x 5 quoha staff 170 Sep 29 17:31 themes/zafta/layouts +drwxr-xr-x 4 quoha staff 136 Sep 29 17:31 themes/zafta/layouts/_default +drwxr-xr-x 4 quoha staff 136 Sep 29 17:31 themes/zafta/layouts/partials +drwxr-xr-x 4 quoha staff 136 Sep 29 17:31 themes/zafta/static +drwxr-xr-x 2 quoha staff 68 Sep 29 17:31 themes/zafta/static/css +drwxr-xr-x 2 quoha staff 68 Sep 29 17:31 themes/zafta/static/js +$ +``` + +## The Theme Development Cycle + +When you're working on a theme, you will make changes in the theme's directory, rebuild the site, and check your changes in the browser. Hugo makes this very easy: + +1. Purge the public/ directory. +2. Run the built in web server in watch mode. +3. Open your site in a browser. +4. Update the theme. +5. Glance at your browser window to see changes. +6. Return to step 4. + +I’ll throw in one more opinion: never work on a theme on a live site. Always work on a copy of your site. Make changes to your theme, test them, then copy them up to your site. For added safety, use a tool like Git to keep a revision history of your content and your theme. Believe me when I say that it is too easy to lose both your mind and your changes. + +Check the main Hugo site for information on using Git with Hugo. + +### Purge the public/ Directory + +When generating the site, Hugo will create new files and update existing ones in the ```public/``` directory. It will not delete files that are no longer used. For example, files that were created in the wrong directory or with the wrong title will remain. If you leave them, you might get confused by them later. I recommend cleaning out your site prior to generating it. + +Note: If you're building on an SSD, you should ignore this. Churning on a SSD can be costly. + +### Hugo's Watch Option + +Hugo's "`--watch`" option will monitor the content/ and your theme directories for changes and rebuild the site automatically. + +### Live Reload + +Hugo's built in web server supports live reload. As pages are saved on the server, the browser is told to refresh the page. Usually, this happens faster than you can say, "Wow, that's totally amazing." + +### Development Commands + +Use the following commands as the basis for your workflow. + +``` +## purge old files. hugo will recreate the public directory. +## +$ rm -rf public +## +## run hugo in watch mode +## +$ hugo server --watch --verbose +``` + +Here's sample output showing Hugo detecting a change to the template for the home page. Once generated, the web browser automatically reloaded the page. I've said this before, it's amazing. + + +``` +$ rm -rf public +$ hugo server --watch --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 2 ms +Watching for changes in /Users/quoha/Sites/zafta/content +Serving pages from /Users/quoha/Sites/zafta/public +Web Server is available at http://localhost:1313 +Press Ctrl+C to stop +INFO: 2014/09/29 File System Event: ["/Users/quoha/Sites/zafta/themes/zafta/layouts/index.html": MODIFY|ATTRIB] +Change detected, rebuilding site + +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 1 ms +``` + +## Update the Home Page Template + +The home page is one of a few special pages that Hugo creates automatically. As mentioned earlier, it looks for one of three files in the theme's layout/ directory: + +1. index.html +2. _default/list.html +3. _default/single.html + +We could update one of the default templates, but a good design decision is to update the most specific template available. That's not a hard and fast rule (in fact, we'll break it a few times in this tutorial), but it is a good generalization. + +### Make a Static Home Page + +Right now, that page is empty because we don't have any content and we don't have any logic in the template. Let's change that by adding some text to the template. + +``` +$ vi themes/zafta/layouts/index.html + + + +

hugo says hello!

+ + +:wq + +$ +``` + +Build the web site and then verify the results. + +``` +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 2 ms + +$ find public -type f -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 78 Sep 29 21:26 public/index.html + +$ cat public/index.html + + + +

hugo says hello!

+ +``` + +#### Live Reload + +Note: If you're running the server with the `--watch` option, you'll see different content in the file: + +``` +$ cat public/index.html + + + +

hugo says hello!

+ + +``` + +When you use `--watch`, the Live Reload script is added by Hugo. Look for live reload in the documentation to see what it does and how to disable it. + +### Build a "Dynamic" Home Page + +"Dynamic home page?" Hugo's a static web site generator, so this seems an odd thing to say. I mean let's have the home page automatically reflect the content in the site every time Hugo builds it. We'll use iteration in the template to do that. + +#### Create New Posts + +Now that we have the home page generating static content, let's add some content to the site. We'll display these posts as a list on the home page and on their own page, too. + +Hugo has a command to generate a skeleton post, just like it does for sites and themes. + +``` +$ hugo --verbose new post/first.md +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 attempting to create post/first.md of post +INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/default.md +ERROR: 2014/09/29 Unable to Cast to map[string]interface{} + +$ +``` + +That wasn't very nice, was it? + +The "new" command uses an archetype to create the post file. Hugo created an empty default archetype file, but that causes an error when there's a theme. For me, the workaround was to create an archetypes file specifically for the post type. + +``` +$ vi themes/zafta/archetypes/post.md ++++ +Description = "" +Tags = [] +Categories = [] ++++ +:wq + +$ find themes/zafta/archetypes -type f | xargs ls -l +-rw-r--r-- 1 quoha staff 0 Sep 29 21:53 themes/zafta/archetypes/default.md +-rw-r--r-- 1 quoha staff 51 Sep 29 21:54 themes/zafta/archetypes/post.md + +$ hugo --verbose new post/first.md +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 attempting to create post/first.md of post +INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/post.md +INFO: 2014/09/29 creating /Users/quoha/Sites/zafta/content/post/first.md +/Users/quoha/Sites/zafta/content/post/first.md created + +$ hugo --verbose new post/second.md +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 attempting to create post/second.md of post +INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/post.md +INFO: 2014/09/29 creating /Users/quoha/Sites/zafta/content/post/second.md +/Users/quoha/Sites/zafta/content/post/second.md created + +$ ls -l content/post +total 16 +-rw-r--r-- 1 quoha staff 104 Sep 29 21:54 first.md +-rw-r--r-- 1 quoha staff 105 Sep 29 21:57 second.md + +$ cat content/post/first.md ++++ +Categories = [] +Description = "" +Tags = [] +date = "2014-09-29T21:54:53-05:00" +title = "first" + ++++ +my first post + +$ cat content/post/second.md ++++ +Categories = [] +Description = "" +Tags = [] +date = "2014-09-29T21:57:09-05:00" +title = "second" + ++++ +my second post + +$ +``` + +Build the web site and then verify the results. + +``` +$ rm -rf public +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 found taxonomies: map[string]string{"category":"categories", "tag":"tags"} +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +2 pages created +0 tags created +0 categories created +in 4 ms +$ +``` + +The output says that it created 2 pages. Those are our new posts: + +``` +$ find public -type f -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 78 Sep 29 22:13 public/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:13 public/post/first/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:13 public/post/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:13 public/post/second/index.html +$ +``` + +The new files are empty because because the templates used to generate the content are empty. The homepage doesn't show the new content, either. We have to update the templates to add the posts. + +### List and Single Templates + +In Hugo, we have three major kinds of templates. There's the home page template that we updated previously. It is used only by the home page. We also have "single" templates which are used to generate output for a single content file. We also have "list" templates that are used to group multiple pieces of content before generating output. + +Generally speaking, list templates are named "list.html" and single templates are named "single.html." + +There are three other types of templates: partials, content views, and terms. We will not go into much detail on these. + +### Add Content to the Homepage + +The home page will contain a list of posts. Let's update its template to add the posts that we just created. The logic in the template will run every time we build the site. + +``` +$ vi themes/zafta/layouts/index.html + + + + {{ range first 10 .Data.Pages }} +

{{ .Title }}

+ {{ end }} + + +:wq + +$ +``` + +Hugo uses the Go template engine. That engine scans the template files for commands which are enclosed between "{{" and "}}". In our template, the commands are: + +1. range +2. .Title +3. end + +The "range" command is an iterator. We're going to use it to go through the first ten pages. Every HTML file that Hugo creates is treated as a page, so looping through the list of pages will look at every file that will be created. + +The ".Title" command prints the value of the "title" variable. Hugo pulls it from the front matter in the Markdown file. + +The "end" command signals the end of the range iterator. The engine loops back to the top of the iteration when it finds "end." Everything between the "range" and "end" is evaluated every time the engine goes through the iteration. In this file, that would cause the title from the first ten pages to be output as heading level one. + +It's helpful to remember that some variables, like .Data, are created before any output files. Hugo loads every content file into the variable and then gives the template a chance to process before creating the HTML files. + +Build the web site and then verify the results. + +``` +$ rm -rf public +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"} +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +2 pages created +0 tags created +0 categories created +in 4 ms +$ find public -type f -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 94 Sep 29 22:23 public/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:23 public/post/first/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:23 public/post/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:23 public/post/second/index.html +$ cat public/index.html + + + + +

second

+ +

first

+ + + +$ +``` + +Congratulations, the home page shows the title of the two posts. The posts themselves are still empty, but let's take a moment to appreciate what we've done. Your template now generates output dynamically. Believe it or not, by inserting the range command inside of those curly braces, you've learned everything you need to know to build a theme. All that's really left is understanding which template will be used to generate each content file and becoming familiar with the commands for the template engine. + +And, if that were entirely true, this tutorial would be much shorter. There are a few things to know that will make creating a new template much easier. Don't worry, though, that's all to come. + +### Add Content to the Posts + +We're working with posts, which are in the content/post/ directory. That means that their section is "post" (and if we don't do something weird, their type is also "post"). + +Hugo uses the section and type to find the template file for every piece of content. Hugo will first look for a template file that matches the section or type name. If it can't find one, then it will look in the _default/ directory. There are some twists that we'll cover when we get to categories and tags, but for now we can assume that Hugo will try post/single.html, then _default/single.html. + +Now that we know the search rule, let's see what we actually have available: + +``` +$ find themes/zafta -name single.html | xargs ls -l +-rw-r--r-- 1 quoha staff 132 Sep 29 17:31 themes/zafta/layouts/_default/single.html +``` + +We could create a new template, post/single.html, or change the default. Since we don't know of any other content types, let's start with updating the default. + +Remember, any content that we haven't created a template for will end up using this template. That can be good or bad. Bad because I know that we're going to be adding different types of content and we're going to end up undoing some of the changes we've made. It's good because we'll be able to see immediate results. It's also good to start here because we can start to build the basic layout for the site. As we add more content types, we'll refactor this file and move logic around. Hugo makes that fairly painless, so we'll accept the cost and proceed. + +Please see the Hugo documentation on template rendering for all the details on determining which template to use. And, as the docs mention, if you're building a single page application (SPA) web site, you can delete all of the other templates and work with just the default single page. That's a refreshing amount of joy right there. + +#### Update the Template File + +``` +$ vi themes/zafta/layouts/_default/single.html + + + + {{ .Title }} + + +

{{ .Title }}

+ {{ .Content }} + + +:wq + +$ +``` + +Build the web site and verify the results. + +``` +$ rm -rf public +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"} +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +2 pages created +0 tags created +0 categories created +in 4 ms + +$ find public -type f -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 94 Sep 29 22:40 public/index.html +-rw-r--r-- 1 quoha staff 125 Sep 29 22:40 public/post/first/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:40 public/post/index.html +-rw-r--r-- 1 quoha staff 128 Sep 29 22:40 public/post/second/index.html + +$ cat public/post/first/index.html + + + + first + + +

first

+

my first post

+ + + + +$ cat public/post/second/index.html + + + + second + + +

second

+

my second post

+ + + +$ +``` + +Notice that the posts now have content. You can go to localhost:1313/post/first to verify. + +### Linking to Content + +The posts are on the home page. Let's add a link from there to the post. Since this is the home page, we'll update its template. + +``` +$ vi themes/zafta/layouts/index.html + + + + {{ range first 10 .Data.Pages }} +

{{ .Title }}

+ {{ end }} + + +``` + +Build the web site and verify the results. + +``` +$ rm -rf public +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"} +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +2 pages created +0 tags created +0 categories created +in 4 ms + +$ find public -type f -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 149 Sep 29 22:44 public/index.html +-rw-r--r-- 1 quoha staff 125 Sep 29 22:44 public/post/first/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:44 public/post/index.html +-rw-r--r-- 1 quoha staff 128 Sep 29 22:44 public/post/second/index.html + +$ cat public/index.html + + + + +

second

+ +

first

+ + + + +$ +``` + +### Create a Post Listing + +We have the posts displaying on the home page and on their own page. We also have a file public/post/index.html that is empty. Let's make it show a list of all posts (not just the first ten). + +We need to decide which template to update. This will be a listing, so it should be a list template. Let's take a quick look and see which list templates are available. + +``` +$ find themes/zafta -name list.html | xargs ls -l +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/list.html +``` + +As with the single post, we have to decide to update _default/list.html or create post/list.html. We still don't have multiple content types, so let's stay consistent and update the default list template. + +## Creating Top Level Pages + +Let's add an "about" page and display it at the top level (as opposed to a sub-level like we did with posts). + +The default in Hugo is to use the directory structure of the content/ directory to guide the location of the generated html in the public/ directory. Let's verify that by creating an "about" page at the top level: + +``` +$ vi content/about.md ++++ +title = "about" +description = "about this site" +date = "2014-09-27" +slug = "about time" ++++ + +## about us + +i'm speechless +:wq +``` + +Generate the web site and verify the results. + +``` +$ find public -name '*.html' | xargs ls -l +-rw-rw-r-- 1 mdhender staff 334 Sep 27 15:08 public/about-time/index.html +-rw-rw-r-- 1 mdhender staff 527 Sep 27 15:08 public/index.html +-rw-rw-r-- 1 mdhender staff 358 Sep 27 15:08 public/post/first-post/index.html +-rw-rw-r-- 1 mdhender staff 0 Sep 27 15:08 public/post/index.html +-rw-rw-r-- 1 mdhender staff 342 Sep 27 15:08 public/post/second-post/index.html +``` + +Notice that the page wasn't created at the top level. It was created in a sub-directory named 'about-time/'. That name came from our slug. Hugo will use the slug to name the generated content. It's a reasonable default, by the way, but we can learn a few things by fighting it for this file. + +One other thing. Take a look at the home page. + +``` +$ cat public/index.html + + + +

creating a new theme

+

about

+

second

+

first

+ + +``` + +Notice that the "about" link is listed with the posts? That's not desirable, so let's change that first. + +``` +$ vi themes/zafta/layouts/index.html + + + +

posts

+ {{ range first 10 .Data.Pages }} + {{ if eq .Type "post"}} +

{{ .Title }}

+ {{ end }} + {{ end }} + +

pages

+ {{ range .Data.Pages }} + {{ if eq .Type "page" }} +

{{ .Title }}

+ {{ end }} + {{ end }} + + +:wq +``` + +Generate the web site and verify the results. The home page has two sections, posts and pages, and each section has the right set of headings and links in it. + +But, that about page still renders to about-time/index.html. + +``` +$ find public -name '*.html' | xargs ls -l +-rw-rw-r-- 1 mdhender staff 334 Sep 27 15:33 public/about-time/index.html +-rw-rw-r-- 1 mdhender staff 645 Sep 27 15:33 public/index.html +-rw-rw-r-- 1 mdhender staff 358 Sep 27 15:33 public/post/first-post/index.html +-rw-rw-r-- 1 mdhender staff 0 Sep 27 15:33 public/post/index.html +-rw-rw-r-- 1 mdhender staff 342 Sep 27 15:33 public/post/second-post/index.html +``` + +Knowing that hugo is using the slug to generate the file name, the simplest solution is to change the slug. Let's do it the hard way and change the permalink in the configuration file. + +``` +$ vi config.toml +[permalinks] + page = "/:title/" + about = "/:filename/" +``` + +Generate the web site and verify that this didn't work. Hugo lets "slug" or "URL" override the permalinks setting in the configuration file. Go ahead and comment out the slug in content/about.md, then generate the web site to get it to be created in the right place. + +## Sharing Templates + +If you've been following along, you probably noticed that posts have titles in the browser and the home page doesn't. That's because we didn't put the title in the home page's template (layouts/index.html). That's an easy thing to do, but let's look at a different option. + +We can put the common bits into a shared template that's stored in the themes/zafta/layouts/partials/ directory. + +### Create the Header and Footer Partials + +In Hugo, a partial is a sugar-coated template. Normally a template reference has a path specified. Partials are different. Hugo searches for them along a TODO defined search path. This makes it easier for end-users to override the theme's presentation. + +``` +$ vi themes/zafta/layouts/partials/header.html + + + + {{ .Title }} + + +:wq + +$ vi themes/zafta/layouts/partials/footer.html + + +:wq +``` + +### Update the Home Page Template to Use the Partials + +The most noticeable difference between a template call and a partials call is the lack of path: + +``` +{{ template "theme/partials/header.html" . }} +``` +versus +``` +{{ partial "header.html" . }} +``` +Both pass in the context. + +Let's change the home page template to use these new partials. + +``` +$ vi themes/zafta/layouts/index.html +{{ partial "header.html" . }} + +

posts

+ {{ range first 10 .Data.Pages }} + {{ if eq .Type "post"}} +

{{ .Title }}

+ {{ end }} + {{ end }} + +

pages

+ {{ range .Data.Pages }} + {{ if or (eq .Type "page") (eq .Type "about") }} +

{{ .Type }} - {{ .Title }} - {{ .RelPermalink }}

+ {{ end }} + {{ end }} + +{{ partial "footer.html" . }} +:wq +``` + +Generate the web site and verify the results. The title on the home page is now "your title here", which comes from the "title" variable in the config.toml file. + +### Update the Default Single Template to Use the Partials + +``` +$ vi themes/zafta/layouts/_default/single.html +{{ partial "header.html" . }} + +

{{ .Title }}

+ {{ .Content }} + +{{ partial "footer.html" . }} +:wq +``` + +Generate the web site and verify the results. The title on the posts and the about page should both reflect the value in the markdown file. + +## Add “Date Published” to Posts + +It's common to have posts display the date that they were written or published, so let's add that. The front matter of our posts has a variable named "date." It's usually the date the content was created, but let's pretend that's the value we want to display. + +### Add “Date Published” to the Template + +We'll start by updating the template used to render the posts. The template code will look like: + +``` +{{ .Date.Format "Mon, Jan 2, 2006" }} +``` + +Posts use the default single template, so we'll change that file. + +``` +$ vi themes/zafta/layouts/_default/single.html +{{ partial "header.html" . }} + +

{{ .Title }}

+

{{ .Date.Format "Mon, Jan 2, 2006" }}

+ {{ .Content }} + +{{ partial "footer.html" . }} +:wq +``` + +Generate the web site and verify the results. The posts now have the date displayed in them. There's a problem, though. The "about" page also has the date displayed. + +As usual, there are a couple of ways to make the date display only on posts. We could do an "if" statement like we did on the home page. Another way would be to create a separate template for posts. + +The "if" solution works for sites that have just a couple of content types. It aligns with the principle of "code for today," too. + +Let's assume, though, that we've made our site so complex that we feel we have to create a new template type. In Hugo-speak, we're going to create a section template. + +Let's restore the default single template before we forget. + +``` +$ mkdir themes/zafta/layouts/post +$ vi themes/zafta/layouts/_default/single.html +{{ partial "header.html" . }} + +

{{ .Title }}

+ {{ .Content }} + +{{ partial "footer.html" . }} +:wq +``` + +Now we'll update the post's version of the single template. If you remember Hugo's rules, the template engine will use this version over the default. + +``` +$ vi themes/zafta/layouts/post/single.html +{{ partial "header.html" . }} + +

{{ .Title }}

+

{{ .Date.Format "Mon, Jan 2, 2006" }}

+ {{ .Content }} + +{{ partial "footer.html" . }} +:wq + +``` + +Note that we removed the date logic from the default template and put it in the post template. Generate the web site and verify the results. Posts have dates and the about page doesn't. + +### Don't Repeat Yourself + +DRY is a good design goal and Hugo does a great job supporting it. Part of the art of a good template is knowing when to add a new template and when to update an existing one. While you're figuring that out, accept that you'll be doing some refactoring. Hugo makes that easy and fast, so it's okay to delay splitting up a template. diff --git a/themes/even/exampleSite/content/post/even-preview.md b/themes/even/exampleSite/content/post/even-preview.md new file mode 100644 index 0000000..8e905d0 --- /dev/null +++ b/themes/even/exampleSite/content/post/even-preview.md @@ -0,0 +1,165 @@ +--- +title: "Theme preview" +date: 2017-08-23T18:03:09+08:00 +lastmod: 2017-08-23T18:03:09+08:00 +draft: false +tags: ["preview", "Theme preview", "tag-3"] +categories: ["Theme preview", "category-2", "category-3"] +author: '米老朱' + +weight: 10 + +contentCopyright: 'See origin' + +--- +> Copy from [《Hugo 主题 Nuo 文章样式预览》](https://laozhu.me/post/hugo-nuo-post-preview/) + +这篇文章集中说明主题所支持的 Markdown 语法和 Hugo Shortcodes 插件,你也可以在这里预览到他们的样子。如果你不喜欢某些样式,可以去修改 css/ 文件夹下的 .scss 文件。 + +# 1.标题 + +# H1 +## H2 +### H3 +#### H4 +##### H5 +###### H6 + +## 2. 段落 + +使用单引号 `*` 或者单下划线 `_` 标记 *斜体强调* 或者 _斜体强调_ + +使用两个引号 `**` 或者两个下划线 `__` 标记 **加粗强调** 或者 __加粗强调__ + +引号和下划线可叠加使用 → **只是加粗 _斜体并加粗_** + +使用两个波浪线 `~~` 标记 ~~已删除文字~~ + +插入文字暂无 `Markdown` 标记,直接使用 `HTML` 标签 `` 标记 插入文字 + +行内代码使用反引号标记 → `print("hello world")` + +上标 X2 / 下标 X2 + +按键 Ctrl + +外链 [chekun's blog](https://chekun.me) + +页面内段落 [图片](#section-07) + +*注意:你可以通过 `{#section-id}` 方式自定义段落锚点* + +参考资料 [[1]](#ref01)[[2]](#ref02) + +## 3. 列表 + +以下的无序、有序和任务列表均支持二级嵌套,不建议使用二级以上嵌套。 + +### 3.1 无序列表 + +* 无序列表 + - 嵌套的无序列表 + - 嵌套的无序列表 +* 无序列表 + 1. 嵌套的有序列表 + 2. 嵌套的有序列表 +* 无序列表 + +### 3.2 有序列表 + +1. 有序列表 + 1. 嵌套的有序列表 + 2. 嵌套的有序列表 +2. 有序列表 + - 嵌套的无序列表 + - 嵌套的无序列表 +3. 有序列表 + +### 3.3 定义列表 + +CSS +: 层叠样式表 + +### 3.4 任务列表 + +- [ ] Cmd Markdown 开发 + - [ ] 改进 Cmd 渲染算法,使用局部渲染技术提高渲染效率 + - [ ] 支持以 PDF 格式导出文稿 + - [x] 新增Todo列表功能 [语法参考](https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments) + - [x] 改进 LaTex 功能 + - [x] 修复 LaTex 公式渲染问题 + - [x] 新增 LaTex 公式编号功能 [语法参考](http://docs.mathjax.org/en/latest/tex.html#tex-eq-numbers) +- [ ] 七月旅行准备 + - [ ] 准备邮轮上需要携带的物品 + - [ ] 浏览日本免税店的物品 + - [x] 购买蓝宝石公主号七月一日的船票 + +## 4. 引用 + +> 野火烧不尽,春风吹又生。 +> +> -- 白居易《赋得古原草送别》 + +## 5. 代码 + +以本站的一段 `JavaScript` 代码做演示。 + +```javascript +// Initialize video.js player +if (document.getElementById('my-player') !== null) { + /* eslint-disable no-undef */ + videojs('#my-player', { + aspectRatio: '16:9', + fluid: true, + }); +} +``` + +## 6. 分割线 + +--- + +中间能写字的分割线,如果你修改了分割线中字的内容,请配合修改 `CSS` 样式。 + +## 7. 图片 {#section-07} + +不带标题的图片,如下图👇 + +![hugo even showcase](https://raw.githubusercontent.com/olOwOlo/hugo-theme-even/master/images/showcase.png "showcase.png") + +带标题的图片,如下图👇 + +{{% figure class="center" src="https://raw.githubusercontent.com/olOwOlo/hugo-theme-even/master/images/showcase.png" alt="hugo even showcase" title="showcase.png" %}} + +## 8. 表格 + +使用 `Markdown` 画的表格,如下表👇 + +| Tables | Are | Cool | +| :------------ |:-------------:| -----:| +| col 3 is | right-aligned | $1600 | +| col 2 is | centered | $12 | +| zebra stripes | are neat | $1 | + +## 9. 数学公式 + +主题使用了 [MathJax](https://www.mathjax.org/) 开源库来实现对数学公式的支持,使用 `$$` 标记。 + +$$ evidence\_{i}=\sum\_{j}W\_{ij}x\_{j}+b\_{i} $$ + +## 10. 网易云音乐 + +主题文章中可以轻松插入 [网易云音乐](https://music.163.com/) 的指定音乐,你可以根据需要将音乐设置为自动播放,在主题目录 `layouts/shortcodes` 文件夹下的 `music.html` 对该标签进行定义。 + +{{% music "28196554" %}} + +## 11. YouTube + +由于不明原因可能无法播放。 + +{{% youtube "wC5pJm8RAu4" %}} + +## 参考资料 + +1. [Markdown Cheatsheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) +2. [Markdown 语法手册](https://www.zybuluo.com/EncyKe/note/120103) diff --git a/themes/even/exampleSite/content/post/hidden-post.md b/themes/even/exampleSite/content/post/hidden-post.md new file mode 100644 index 0000000..a2034e1 --- /dev/null +++ b/themes/even/exampleSite/content/post/hidden-post.md @@ -0,0 +1,15 @@ +--- +title: "This is a hidden post." +date: 2018-03-08T17:40:19+08:00 +lastmod: 2018-03-08T22:01:19+08:00 +draft: false +author: 'Halulu' + +hiddenFromHomePage: true +--- + +This post is hidden from the home page. + + + +But you can see it in archives, rss or other pages. \ No newline at end of file diff --git a/themes/even/exampleSite/content/post/japanese-preview.md b/themes/even/exampleSite/content/post/japanese-preview.md new file mode 100644 index 0000000..e9c715d --- /dev/null +++ b/themes/even/exampleSite/content/post/japanese-preview.md @@ -0,0 +1,38 @@ +--- +title: "[日本語] 敬語体系" +date: 2017-08-30T01:53:34+08:00 +lastmod: 2017-08-30T01:53:34+08:00 +draft: false +keywords: [] +description: "" +tags: ["preview", "日本語", "tag-4"] +categories: ["日本語"] +author: "Wikipedia" + +contentCopyright: 'Creative Commons Attribution-ShareAlike License' + +--- + +> 日本語の敬語体系は、一般に、大きく尊敬語・謙譲語・丁寧語に分類される。文化審議会国語分科会は、2007年2月に「敬語の指針」を答申し、これに丁重語および美化語を含めた5分類を示している。 + +# 尊敬語 + +尊敬語は、動作の主体を高めることで、主体への敬意を表す言い方である。動詞に「お(ご)~になる」を付けた形、また、助動詞「(ら)れる」を付けた形などが用いられる。たとえば、動詞「取る」の尊敬形として、「(先生が)お取りになる」「(先生が)取られる」などが用いられる。 + +語によっては、特定の尊敬語が対応するものもある。たとえば、「言う」の尊敬語は「おっしゃる」、「食べる」の尊敬語は「召し上がる」、「行く・来る・いる」の尊敬語は「いらっしゃる」である。 + +# 謙譲語 + +謙譲語は、古代から基本的に動作の客体への敬意を表す言い方であり、現代では「動作の主体を低める」と解釈するほうがよい場合がある。動詞に「お~する」「お~いたします」(謙譲語+丁寧語)をつけた形などが用いられる。たとえば、「取る」の謙譲形として、「お取りする」などが用いられる。 + +語によっては、特定の謙譲語が対応するものもある。たとえば、「言う」の謙譲語は「申し上げる」、「食べる」の謙譲語は「いただく」、「(相手の所に)行く」の謙譲語は「伺う」「参上する」「まいる」である。 + +なお、「夜も更けてまいりました」の「まいり」など、謙譲表現のようでありながら、誰かを低めているわけではない表現がある。これは、「夜も更けてきた」という話題を丁重に表現することによって、聞き手への敬意を表すものである。宮地裕は、この表現に使われる語を、特に「丁重語」と称している[104][105]。丁重語にはほかに「いたし(マス)」「申し(マス)」「存じ(マス)」「小生」「小社」「弊社」などがある。文化審議会の「敬語の指針」でも、「明日から海外へまいります」の「まいり」のように、相手とは関りのない自分側の動作を表現する言い方を丁重語としている。 + +# 丁寧語 + +丁寧語は、文末を丁寧にすることで、聞き手への敬意を表すものである。動詞・形容詞の終止形で終わる常体に対して、名詞・形容動詞語幹などに「です」を付けた形(「学生です」「きれいです」)や、動詞に「ます」をつけた形(「行きます」「分かりました」)等の丁寧語を用いた文体を敬体という。 + +一般に、目上の人には丁寧語を用い、同等・目下の人には丁寧語を用いないといわれる。しかし、実際の言語生活に照らして考えれば、これは事実ではない。母が子を叱るとき、「お母さんはもう知りませんよ」と丁寧語を用いる場合ももある。丁寧語が用いられる多くの場合は、敬意や謝意の表現とされるが、、稀に一歩引いた心理的な距離をとろうとする場合もある。 + +「お弁当」「ご飯」などの「お」「ご」も、広い意味では丁寧語に含まれるが、宮地裕は特に「美化語」と称して区別する[104][105]。相手への丁寧の意を示すというよりは、話し手が自分の言葉遣いに配慮した表現である。したがって、「お弁当食べようよ。」のように、丁寧体でない文でも美化語を用いることがある。文化審議会の「敬語の指針」でも「美化語」を設けている。 diff --git a/themes/even/exampleSite/content/post/js-flowchart-diagrams.md b/themes/even/exampleSite/content/post/js-flowchart-diagrams.md new file mode 100644 index 0000000..2111c52 --- /dev/null +++ b/themes/even/exampleSite/content/post/js-flowchart-diagrams.md @@ -0,0 +1,131 @@ +--- +title: "JS Flowchart Diagrams" +date: 2015-03-04T21:57:50+08:00 +draft: false + +flowchartDiagrams: + enable: true + options: "{ + 'x': 0, + 'y': 0, + 'line-width': 3, + 'line-length': 50, + 'text-margin': 10, + 'font-size': 14, + 'font-color': 'black', + 'line-color': 'black', + 'element-color': 'black', + 'fill': 'white', + 'yes-text': 'yes', + 'no-text': 'no', + 'arrow-end': 'block', + 'scale': 1, + 'i-am-a-comment-1': 'Do not use //!', + 'i-am-a-comment-2': 'style symbol types', + 'symbols': { + 'start': { + 'font-color': 'red', + 'element-color': 'green', + 'fill': 'yellow' + }, + 'end': { + 'class': 'end-element' + } + }, + 'i-am-a-comment-3': 'even flowstate support ;-)', + 'flowstate': { + 'request': {'fill': 'blue'} + } + }" +--- + +## Usage + +```flowchart +st=>start: Start|past:>http://www.google.com[blank] +e=>end: End:>http://www.google.com +op1=>operation: My Operation|past +op2=>operation: Stuff|current +sub1=>subroutine: My Subroutine|invalid +cond=>condition: Yes +or No?|approved:>http://www.google.com +c2=>condition: Good idea|rejected +io=>inputoutput: catch something...|request + +st->op1(right)->cond +cond(yes, right)->c2 +cond(no)->sub1(left)->op1 +c2(yes)->io->e +c2(no)->op2->e +``` + + + + ```flowchart + st=>start: Start|past:>http://www.google.com[blank] + e=>end: End:>http://www.google.com + op1=>operation: My Operation|past + op2=>operation: Stuff|current + sub1=>subroutine: My Subroutine|invalid + cond=>condition: Yes + or No?|approved:>http://www.google.com + c2=>condition: Good idea|rejected + io=>inputoutput: catch something...|request + + st->op1(right)->cond + cond(yes, right)->c2 + cond(no)->sub1(left)->op1 + c2(yes)->io->e + c2(no)->op2->e + ``` + +## Configuration + +Configure for all home and regular pages: + +```toml +[params.flowchartDiagrams] + enable = true + options = "" +``` + +Configure for a single post in the front matter (**Params in front matter have higher precedence**): + +```yml +flowchartDiagrams: + enable: true + options: "{ + 'x': 0, + 'y': 0, + 'line-width': 3, + 'line-length': 50, + 'text-margin': 10, + 'font-size': 14, + 'font-color': 'black', + 'line-color': 'black', + 'element-color': 'black', + 'fill': 'white', + 'yes-text': 'yes', + 'no-text': 'no', + 'arrow-end': 'block', + 'scale': 1, + 'i-am-a-comment-1': 'Do not use /​/!', + 'i-am-a-comment-2': 'style symbol types', + 'symbols': { + 'start': { + 'font-color': 'red', + 'element-color': 'green', + 'fill': 'yellow' + }, + 'end': { + 'class': 'end-element' + } + }, + 'i-am-a-comment-3': 'even flowstate support ;-)', + 'flowstate': { + 'request': {'fill': 'blue'} + } + }" +``` + +See more information from https://github.com/adrai/flowchart.js. diff --git a/themes/even/exampleSite/content/post/js-sequence-diagrams.md b/themes/even/exampleSite/content/post/js-sequence-diagrams.md new file mode 100644 index 0000000..3ca3a1c --- /dev/null +++ b/themes/even/exampleSite/content/post/js-sequence-diagrams.md @@ -0,0 +1,95 @@ +--- +title: "JS Sequence Diagrams" +date: 2015-03-04T21:57:45+08:00 +draft: false + +sequenceDiagrams: + enable: true + options: "{theme: 'hand'}" +--- + +## Usage + +```sequence +Andrew->China: Says Hello +Note right of China: China thinks\nabout it +China-->Andrew: How are you? +Andrew->>China: I am good thanks! +``` + + + + ```sequence + Andrew->China: Says Hello + Note right of China: China thinks\nabout it + China-->Andrew: How are you? + Andrew->>China: I am good thanks! + ``` + +## Configuration + +Configure for all home and regular pages: + +```toml +[params.sequenceDiagrams] + enable = true + options = "{theme: 'hand'}" +``` + +Configure for a single post in the front matter (**Params in front matter have higher precedence**): + +```yml +sequenceDiagrams: + enable: true + options: "{theme: 'hand'}" +``` + +### Options + +```js +options = { + // Change the styling of the diagram, typically one of 'simple', 'hand'. New themes can be registered with registerTheme(...). + theme: string, + + // CSS style to apply to the diagram's svg tag. (Only supported if using snap.svg) + css_class: string, +} +``` + +See more information from https://github.com/bramp/js-sequence-diagrams. + +## Examples + +```sequence +Title: Here is a title +A->B: Normal line +B-->C: Dashed line +C->>D: Open arrow +D-->>A: Dashed open arrow +``` + + ```sequence + Title: Here is a title + A->B: Normal line + B-->C: Dashed line + C->>D: Open arrow + D-->>A: Dashed open arrow + ``` + +--- + +```sequence +# Example of a comment. +Note left of A: Note to the\n left of A +Note right of A: Note to the\n right of A +Note over A: Note over A +Note over A,B: Note over both A and B +``` + + ```sequence + # Example of a comment. + Note left of A: Note to the\n left of A + Note right of A: Note to the\n right of A + Note over A: Note over A + Note over A,B: Note over both A and B + ``` diff --git a/themes/even/exampleSite/content/post/shortcodes.md b/themes/even/exampleSite/content/post/shortcodes.md new file mode 100644 index 0000000..4b05fe7 --- /dev/null +++ b/themes/even/exampleSite/content/post/shortcodes.md @@ -0,0 +1,136 @@ +--- +title: "Shortcodes" +date: 2016-08-30T16:01:23+08:00 +lastmod: 2018-02-01T18:01:23+08:00 +draft: false +tags: ["shortcodes"] +categories: ["shortcodes"] + +--- + +# center, right, left + +``` +## default +![img](/path/to/img.gif "img") + +{{%/* center */%}} +## center +![img](/path/to/img.gif "img") +{{%/* /center */%}} + +{{%/* right */%}} +## right +![img](/path/to/img.gif "img") +{{%/* /right */%}} + +{{%/* left */%}} +## left +![img](/path/to/img.gif "img") +{{%/* /left */%}} +``` + + +## default +![img](https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg "img") + +{{% center %}} +## center +![img](https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg "img") +{{% /center %}} + +{{% right %}} +## right +![img](https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg "img") +{{% /right %}} + +{{% left %}} +## left +![img](https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg "img") +{{% /left %}} + +--- + +## figure with class + +``` +{{%/* figure src="/path/to/img.gif" title="default" alt="img" */%}} +{{%/* figure class="center" src="/path/to/img.gif" title="center" alt="img" */%}} +{{%/* figure class="right" src="/path/to/img.gif" title="right" alt="img" */%}} +{{%/* figure class="left" src="/path/to/img.gif" title="left" alt="img" */%}} +``` + +{{% figure src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="default" alt="img" %}} +{{% figure class="center" src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="center" alt="img" %}} +{{% figure class="right" src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="right" alt="img" %}} +{{% figure class="left" src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="left" alt="img" %}} + +--- + +``` +{{%/* center */%}} + +## hybrid in center +{{%/* figure src="/path/to/img.gif" title="default" alt="img" */%}} +{{%/* figure class="right" src="/path/to/img.gif" title="right" alt="img" */%}} + +{{%/* left */%}} +{{%/* figure src="/path/to/img.gif" title="default in left" alt="img" */%}} +{{%/* /left */%}} + +{{%/* /center */%}} +``` + +{{% center %}} +## hybrid in center +{{% figure src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="default" alt="img" %}} +{{% figure class="right" src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="right" alt="img" %}} +{{% left %}} +{{% figure src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="default in left" alt="img" %}} +{{% /left %}} +{{% /center %}} + +--- + +# Music 163 + +## Params +- `id` + - required param + - you can extract from music url + - url format http://music.163.com/#/song?id=28196554 + +- Fiddle `auto` + - optional param + - default value 0 + - you can overwrite it with 1 + +## Examples + +- Simple + +``` +{{%/* music "28196554" */%}} +{{%/* music "28196554" "1" */%}} +``` + +- Named Params + +``` +{{%/* music id="28196554" */%}} +{{%/* music id="28196554" auto="1" */%}} +``` + +- Example + +``` +{{%/* music "28196554" */%}} +``` + +{{% music "28196554" %}} + + diff --git a/themes/even/exampleSite/content/post/syntax-highlighting.md b/themes/even/exampleSite/content/post/syntax-highlighting.md new file mode 100644 index 0000000..b2f0770 --- /dev/null +++ b/themes/even/exampleSite/content/post/syntax-highlighting.md @@ -0,0 +1,100 @@ +--- +title: "Syntax Highlighting" +date: 2011-08-30T16:01:23+08:00 +lastmod: 2017-08-30T16:01:23+08:00 +draft: false +tags: ["preview", "Syntax Highlighting", "tag-5"] +categories: ["Syntax Highlighting"] + +toc: false + +--- + + +```js +function helloWorld () { + alert("Hello, World!") +} +``` + + + +```java +public class HelloWorld { + public static void main(String[] args) { + System.out.println("Hello, World!"); + } +} +``` + +```kotlin +package hello + +fun main(args: Array) { + println("Hello World!") +} +``` + +```c +#include + +/* Hello */ +int main(void){ + printf("Hello, World!"); + return 0; +} +``` + +```cpp +// 'Hello World!' program + +#include + +int main(){ + std::cout << "Hello World!" << std::endl; + return 0; +} +``` + +```cs +using System; +class HelloWorld{ + public static void Main(){ + System.Console.WriteLine("Hello, World!"); + } +} +``` + +```html + + + Hello, World! + + +``` + +```go +package main +import fmt "fmt" + +func main() +{ + fmt.Printf("Hello, World!\n"); +} +``` + +```scala +object HelloWorld with Application { + Console.println("Hello, World!"); +} +``` + +```php + +``` + +```python +print("Hello, World!") +``` diff --git a/themes/even/i18n/en.yaml b/themes/even/i18n/en.yaml new file mode 100644 index 0000000..48870d6 --- /dev/null +++ b/themes/even/i18n/en.yaml @@ -0,0 +1,102 @@ +# ===== title ===== +archive: + other: "Archive" + +tags: + other: "Tags" + +categories: + other: "Categories" + +# ===== footer ===== +powered: + other: "Powered by %s" + +theme: + other: "Theme" + +siteUV: + other: "site uv: %s" + +sitePV: + other: "site pv: %s" + +pagePV: + other: "%s times read" + +# ===== post ===== +prevPage: + other: "Prev" + +nextPage: + other: "Next" + +prevPost: + other: "Prev" + +nextPost: + other: "Next" + +toc: + other: "Contents" + +readMore: + other: "Read more.." + +reward: + other: "Reward" + +rewardAlipay: + other: "alipay" + +rewardWechat: + other: "wechat" + +wordCount: + one: "{{ .Count }} word" + other: "{{ .Count }} words" + +readingTime: + one: "{{ .Count }} min read" + other: "{{ .Count }} mins read" + +outdatedInfoWarningBefore: + other: "[NOTE] Updated " + +outdatedInfoWarningAfter: + other: ". This article may have outdated content or subject matter." + +# ===== content license ===== +author: + other: "Author" + +lastMod: + other: "LastMod" + +markdown: + other: "Markdown" + +seeMarkDown: + other: "The Markdown version »" + +license: + other: "License" + +# ===== counter ===== +archiveCounter: + one: "{{ .Count }} Post In Total" + other: "{{ .Count }} Posts In Total" + +tagCounter: + one: "{{ .Count }} Tag In Total" + other: "{{ .Count }} Tags In Total" + +zeroTagCounter: + other: "No tags" + +categoryCounter: + one: "{{ .Count }} Category In Total" + other: "{{ .Count }} Categories In Total" + +zeroCategoryCounter: + other: "No categories" diff --git a/themes/even/i18n/es.yaml b/themes/even/i18n/es.yaml new file mode 100644 index 0000000..ea6e079 --- /dev/null +++ b/themes/even/i18n/es.yaml @@ -0,0 +1,102 @@ +# ===== title ===== +archive: + other: "Archivo" + +tags: + other: "Tags" + +categories: + other: "Categorías" + +# ===== footer ===== +powered: + other: "Creado con %s" + +theme: + other: "Tema" + +siteUV: + other: "sitio uv: %s" + +sitePV: + other: "sitio pv: %s" + +pagePV: + other: "%s leido" + +# ===== post ===== +prevPage: + other: "Previo" + +nextPage: + other: "Siguiente" + +prevPost: + other: "Previo" + +nextPost: + other: "Siguiente" + +toc: + other: "Contenidos" + +readMore: + other: "Leer mas.." + +reward: + other: "Reward" + +rewardAlipay: + other: "alipay" + +rewardWechat: + other: "wechat" + +wordCount: + one: "{{ .Count }} palabra" + other: "{{ .Count }} palabras" + +readingTime: + one: "{{ .Count }} min lectura" + other: "{{ .Count }} mins lectura" + +outdatedInfoWarningBefore: + other: "[NOTE] Updated " + +outdatedInfoWarningAfter: + other: ". This article may have outdated content or subject matter." + +# ===== content license ===== +author: + other: "Autor" + +lastMod: + other: "Ultima modificación" + +markdown: + other: "Markdown" + +seeMarkDown: + other: "Versión Markdown »" + +license: + other: "Licencia" + +# ===== counter ===== +archiveCounter: + one: "{{ .Count }} Post en Total" + other: "{{ .Count }} Posts en Total" + +tagCounter: + one: "{{ .Count }} Tag en Total" + other: "{{ .Count }} Tags en Total" + +zeroTagCounter: + other: "No tags" + +categoryCounter: + one: "{{ .Count }} Categoria en Total" + other: "{{ .Count }} Categorias en Total" + +zeroCategoryCounter: + other: "No categorias" diff --git a/themes/even/i18n/fr.yaml b/themes/even/i18n/fr.yaml new file mode 100644 index 0000000..9262efe --- /dev/null +++ b/themes/even/i18n/fr.yaml @@ -0,0 +1,102 @@ +# ===== title ===== +archive: + other: "Archive" + +tags: + other: "Tags" + +categories: + other: "Catégories" + +# ===== footer ===== +powered: + other: "Propulsé par %s" + +theme: + other: "Thème" + +siteUV: + other: "site uv: %s" + +sitePV: + other: "site pv: %s" + +pagePV: + other: "%s temps de lecture" + +# ===== post ===== +prevPage: + other: "Plus récents" + +nextPage: + other: "Plus vieux" + +prevPost: + other: "Précédent" + +nextPost: + other: "Suivant" + +toc: + other: "Contenu" + +readMore: + other: "Lire la suite..." + +reward: + other: "Reward" + +rewardAlipay: + other: "alipay" + +rewardWechat: + other: "wechat" + +wordCount: + one: "{{ .Count }} mots" + other: "{{ .Count }} mots" + +readingTime: + one: "{{ .Count }} min de lecture" + other: "{{ .Count }} mins de lecture" + +outdatedInfoWarningBefore: + other: "[NOTE] Updated " + +outdatedInfoWarningAfter: + other: ". This article may have outdated content or subject matter." + +# ===== content license ===== +author: + other: "Auteur" + +lastMod: + other: "Modifié" + +markdown: + other: "Markdown" + +seeMarkDown: + other: "Version de Markdown »" + +license: + other: "Licence" + +# ===== counter ===== +archiveCounter: + one: "{{ .Count }} Articles au total" + other: "{{ .Count }} Articles au total" + +tagCounter: + one: "{{ .Count }} Tag au total" + other: "{{ .Count }} Tags au total" + +zeroTagCounter: + other: "Aucun tag" + +categoryCounter: + one: "{{ .Count }} Catégorie au total" + other: "{{ .Count }} Catégories au total" + +zeroCategoryCounter: + other: "Aucune catégorie" diff --git a/themes/even/i18n/zh-CN.yaml b/themes/even/i18n/zh-CN.yaml new file mode 100644 index 0000000..b6ecf5c --- /dev/null +++ b/themes/even/i18n/zh-CN.yaml @@ -0,0 +1,102 @@ +# ===== title ===== +archive: + other: "归档" + +tags: + other: "标签" + +categories: + other: "分类" + +# ===== footer ===== +powered: + other: "由 %s 强力驱动" + +theme: + other: "主题" + +siteUV: + other: "本站总访客数 %s 人" + +sitePV: + other: "本站总访问量 %s 次" + +pagePV: + other: "%s 次阅读" + +# ===== post ===== +prevPage: + other: "上一页" + +nextPage: + other: "下一页" + +prevPost: + other: "上一篇" + +nextPost: + other: "下一篇" + +toc: + other: "文章目录" + +readMore: + other: "阅读更多" + +reward: + other: "赞赏支持" + +rewardAlipay: + other: "支付宝打赏" + +rewardWechat: + other: "微信打赏" + +wordCount: + one: "约 {{ .Count }} 字" + other: "约 {{ .Count }} 字" + +readingTime: + one: "预计阅读 {{ .Count }} 分钟" + other: "预计阅读 {{ .Count }} 分钟" + +outdatedInfoWarningBefore: + other: "【注意】最后更新于 " + +outdatedInfoWarningAfter: + other: ",文中内容可能已过时,请谨慎使用。" + +# ===== content license ===== +author: + other: "文章作者" + +lastMod: + other: "上次更新" + +markdown: + other: "原始文档" + +seeMarkDown: + other: "查看本文 Markdown 版本 »" + +license: + other: "许可协议" + +# ===== counter ===== +archiveCounter: + one: "共计 {{ .Count }} 篇文章" + other: "共计 {{ .Count }} 篇文章" + +tagCounter: + one: "共计 {{ .Count }} 个标签" + other: "共计 {{ .Count }} 个标签" + +zeroTagCounter: + other: "暂无标签" + +categoryCounter: + one: "共计 {{ .Count }} 个分类" + other: "共计 {{ .Count }} 个分类" + +zeroCategoryCounter: + other: "暂无分类" diff --git a/themes/even/images/screenshot.png b/themes/even/images/screenshot.png new file mode 100644 index 0000000..7e18400 Binary files /dev/null and b/themes/even/images/screenshot.png differ diff --git a/themes/even/images/showcase.png b/themes/even/images/showcase.png new file mode 100644 index 0000000..8d651cc Binary files /dev/null and b/themes/even/images/showcase.png differ diff --git a/themes/even/images/tn.png b/themes/even/images/tn.png new file mode 100644 index 0000000..7207960 Binary files /dev/null and b/themes/even/images/tn.png differ diff --git a/themes/even/layouts/404.html b/themes/even/layouts/404.html new file mode 100644 index 0000000..fcf2b37 --- /dev/null +++ b/themes/even/layouts/404.html @@ -0,0 +1,18 @@ +{{ define "title" }}404 page not found - {{ .Site.Title }}{{ end }} + +{{ define "content" }} +
+

+

/* 404 page not found. */

+ +
+ +{{ end }} diff --git a/themes/even/layouts/_default/baseof.html b/themes/even/layouts/_default/baseof.html new file mode 100644 index 0000000..0693148 --- /dev/null +++ b/themes/even/layouts/_default/baseof.html @@ -0,0 +1,46 @@ +{{ if ne .Site.Params.version "3.x" -}} +{{ errorf "\n\nThere are two possible situations that led to this error:\n 1. You haven't copied the config.toml yet. See https://github.com/olOwOlo/hugo-theme-even#installation \n 2. You have an incompatible update. See https://github.com/olOwOlo/hugo-theme-even/blob/master/CHANGELOG.md#300 \n\n有两种可能的情况会导致这个错误发生:\n 1. 你还没有复制 config.toml 参考 https://github.com/olOwOlo/hugo-theme-even/blob/master/README-zh.md#installation \n 2. 你进行了一次不兼容的更新 参考 https://github.com/olOwOlo/hugo-theme-even/blob/master/CHANGELOG.md#300 \n" -}} +{{ end -}} + + + + + + + {{- block "title" . -}} + {{ if .IsPage }}{{ .Title }} - {{ .Site.Title }}{{ else }}{{ .Site.Title }}{{ end }} + {{- end -}} + + {{ partial "head.html" . }} + + + {{ partial "slideout.html" . }} +
+ {{ if not .Params.hideHeaderAndFooter -}} + + {{- end }} + +
+
+
+ {{ block "content" . }}{{ end }} +
+ {{ partial "comments.html" . }} +
+
+ + {{ if not .Params.hideHeaderAndFooter -}} +
+ {{ partial "footer.html" . }} +
+ {{- end }} + +
+ +
+
+ {{ partial "scripts.html" . }} + + diff --git a/themes/even/layouts/_default/section.html b/themes/even/layouts/_default/section.html new file mode 100644 index 0000000..fbe80f1 --- /dev/null +++ b/themes/even/layouts/_default/section.html @@ -0,0 +1,50 @@ +{{ define "title" }}{{ T "archive" }} - {{ .Site.Title }}{{ end }} + +{{ define "content"}} +{{- $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }} +
+ {{- if and (not $paginator.HasPrev) .Site.Params.showArchiveCount }} +
+ + {{ T "archiveCounter" (len .Data.Pages) }} + +
+ {{- end -}} + + {{- range $index, $element := $paginator.Pages -}} + {{- $thisYear := $element.Date.Format "2006" }} + {{- $lastElement := $index | add -1 | index $paginator.Pages }} + {{ if or (eq $index 0) ( ne ($lastElement.Date.Format "2006") $thisYear ) }} +
+

{{ $thisYear }}

+
+ {{- end }} + +
+ + {{ $element.Date.Format "01-02" }} + + + + {{ .Title }} + + +
+ {{- end -}} +
+ + +{{ end }} diff --git a/themes/even/layouts/_default/single.html b/themes/even/layouts/_default/single.html new file mode 100644 index 0000000..a1c30fd --- /dev/null +++ b/themes/even/layouts/_default/single.html @@ -0,0 +1,7 @@ +{{ define "content" -}} +
+
+ {{ .Content }} +
+
+{{- end }} \ No newline at end of file diff --git a/themes/even/layouts/_default/single.md b/themes/even/layouts/_default/single.md new file mode 100644 index 0000000..57705e2 --- /dev/null +++ b/themes/even/layouts/_default/single.md @@ -0,0 +1 @@ +{{ .RawContent }} \ No newline at end of file diff --git a/themes/even/layouts/_default/taxonomy.html b/themes/even/layouts/_default/taxonomy.html new file mode 100644 index 0000000..d0c8d43 --- /dev/null +++ b/themes/even/layouts/_default/taxonomy.html @@ -0,0 +1,46 @@ +{{ define "title" }}{{ .Title }} · {{ .Site.Title }}{{ end }} + +{{ define "content"}} +{{ $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }} +
+ {{ if not $paginator.HasPrev }} + {{ if eq .Data.Plural "tags" }} +
+

{{ .Title }}

+
+ {{ else if eq .Data.Plural "categories" }} +
+

{{ .Title }}

+
+ {{ end }} + {{ end }} + + {{ range $paginator.Pages }} +
+ + {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} + + + + {{ .Title }} + + +
+ {{ end }} +
+ + +{{ end }} diff --git a/themes/even/layouts/_default/terms.html b/themes/even/layouts/_default/terms.html new file mode 100644 index 0000000..04b98f8 --- /dev/null +++ b/themes/even/layouts/_default/terms.html @@ -0,0 +1,44 @@ +{{ define "title" }}{{ T .Data.Plural }} - {{ .Site.Title }}{{ end }} + +{{ define "content" }} + {{ $name := .Data.Plural -}} + {{ $terms := .Data.Terms.ByCount -}} + {{ $length := len $terms -}} + {{ if eq $name "categories" }} +
+
+ {{ if eq $length 0 }} + {{ T "zeroCategoryCounter" }} + {{ else }} + {{ T "categoryCounter" $length }} + {{ end }} +
+
+ {{ range $key, $value := $terms }} + + {{ $value.Term }} + {{ len $value.Pages }} + + {{ end }} +
+
+ {{ else if eq $name "tags" }} +
+
+ {{ if eq $length 0 }} + {{ T "zeroTagCounter" }} + {{ else }} + {{ T "tagCounter" $length }} + {{ end }} +
+
+ {{ range $key, $value := $terms }} + + {{ $value.Term }} + {{ len $value.Pages }} + + {{ end }} +
+
+ {{ end }} +{{ end }} \ No newline at end of file diff --git a/themes/even/layouts/index.html b/themes/even/layouts/index.html new file mode 100644 index 0000000..26d6869 --- /dev/null +++ b/themes/even/layouts/index.html @@ -0,0 +1,24 @@ +{{ define "content" }} +
+ {{/* (index .Site.Paginate) */}} + {{ $paginator := .Paginate (where (where .Data.Pages "Type" "post") ".Params.hiddenfromhomepage" "!=" true) }} + {{ range $paginator.Pages }} + {{ .Render "summary" }} + {{ end }} +
+ + +{{ end }} \ No newline at end of file diff --git a/themes/even/layouts/partials/comments.html b/themes/even/layouts/partials/comments.html new file mode 100644 index 0000000..440240a --- /dev/null +++ b/themes/even/layouts/partials/comments.html @@ -0,0 +1,109 @@ +{{ if and .IsPage (ne .Params.comment false) }} + + {{- if .Site.DisqusShortname -}} +
+ + + {{- end -}} + + + {{- if and .Site.Params.changyanAppid .Site.Params.changyanAppkey -}} +
+ + {{- end -}} + + + {{- if .Site.Params.livereUID -}} +
+ + +
+ {{- end -}} + + + {{- if .Site.Params.gitment.owner -}} +
+ {{ if .Site.Params.publicCDN.enable -}} + {{ .Site.Params.publicCDN.gitmentCSS | safeHTML }} + {{ .Site.Params.publicCDN.gitmentJS | safeHTML }} + {{- else -}} + + + {{- end }} + + + {{- end }} + + + {{- if .Site.Params.gitalk.owner -}} +
+ {{ if .Site.Params.publicCDN.enable -}} + {{ .Site.Params.publicCDN.gitalkCSS | safeHTML }} + {{ .Site.Params.publicCDN.gitalkJS | safeHTML }} + {{- else -}} + + + {{- end }} + + + {{- end }} + +{{- end }} diff --git a/themes/even/layouts/partials/footer.html b/themes/even/layouts/partials/footer.html new file mode 100644 index 0000000..b6a1fa5 --- /dev/null +++ b/themes/even/layouts/partials/footer.html @@ -0,0 +1,52 @@ + + + \ No newline at end of file diff --git a/themes/even/layouts/partials/head.html b/themes/even/layouts/partials/head.html new file mode 100644 index 0000000..86ab6cf --- /dev/null +++ b/themes/even/layouts/partials/head.html @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + +{{- if .Description -}} + +{{ else if .IsPage }} + +{{ else if .Site.Params.description }} + +{{- end -}} + +{{- if .Keywords -}} + {{ $length := len .Keywords | add -1 -}} + +{{ else if .Site.Params.keywords }} + {{ $length := len .Site.Params.keywords | add -1 -}} + +{{- end }} + + +{{ with .Site.Params.baidu_verification }}{{ end }} +{{ with .Site.Params.google_verification }}{{ end }} + + + + + + +{{ if .RSSLink -}} + + +{{ end -}} + + + + + + + + + +{{- if .Site.Params.debug }} + + +{{- end }} + + +{{ if .Site.Params.busuanzi.enable -}} + +{{- end }} + + + +{{ if .Site.Params.publicCDN.enable -}} + {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCss | safeHTML }}{{ end }} +{{- else -}} + {{ if .Site.Params.fancybox }}{{ end }} +{{- end }} + + +{{ range .Site.Params.customCSS }} + +{{ end }} + +{{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}} +{{- template "_internal/opengraph.html" . -}} +{{- template "_internal/google_news.html" . -}} +{{- template "_internal/schema.html" . -}} +{{- template "_internal/twitter_cards.html" . -}} + + +{{ `` | safeHTML }} + +{{ `` | safeHTML }} diff --git a/themes/even/layouts/partials/header.html b/themes/even/layouts/partials/header.html new file mode 100644 index 0000000..3592e88 --- /dev/null +++ b/themes/even/layouts/partials/header.html @@ -0,0 +1,19 @@ + + + \ No newline at end of file diff --git a/themes/even/layouts/partials/post/copyright.html b/themes/even/layouts/partials/post/copyright.html new file mode 100644 index 0000000..cd42d68 --- /dev/null +++ b/themes/even/layouts/partials/post/copyright.html @@ -0,0 +1,32 @@ +{{ if or .Params.postMetaInFooter (and .Site.Params.postMetaInFooter (ne .Params.postMetaInFooter false)) -}} +
+ + + {{ if $.Site.Params.linkToMarkDown -}} + {{ with $.OutputFormats.Get "markdown" -}} + + {{- end }} + {{- end }} + {{ if or .Params.contentCopyright (and .Site.Params.contentCopyright (ne .Params.contentCopyright false)) -}} + + {{- end }} +
+{{- end }} \ No newline at end of file diff --git a/themes/even/layouts/partials/post/outdated-info-warning.html b/themes/even/layouts/partials/post/outdated-info-warning.html new file mode 100644 index 0000000..3736c13 --- /dev/null +++ b/themes/even/layouts/partials/post/outdated-info-warning.html @@ -0,0 +1,28 @@ +{{- if or .Params.enableOutdatedInfoWarning (and .Site.Params.outdatedInfoWarning.enable (ne .Params.enableOutdatedInfoWarning false)) }} + {{- $daysAgo := div (sub now.Unix .Lastmod.Unix) 86400 }} + {{- $hintThreshold := .Site.Params.outdatedInfoWarning.hint | default 30 }} + {{- $warnThreshold := .Site.Params.outdatedInfoWarning.warn | default 180 }} + + {{- $updateTime := .Lastmod }} + {{- if .GitInfo }} + {{- if lt .GitInfo.AuthorDate.Unix .Lastmod.Unix }} + {{- $updateTime := .GitInfo.AuthorDate }} + {{- end }} + {{- end -}} + + {{- if gt $daysAgo $hintThreshold }} +
+ {{- if gt $daysAgo $warnThreshold }} +
+ {{- else }} +
+ {{- end }} +

{{ T "outdatedInfoWarningBefore" -}} + + {{- dateFormat "January 2, 2006" $updateTime -}} + {{ T "outdatedInfoWarningAfter" -}} +

+
+
+ {{- end -}} +{{- end -}} diff --git a/themes/even/layouts/partials/post/reward.html b/themes/even/layouts/partials/post/reward.html new file mode 100644 index 0000000..3242854 --- /dev/null +++ b/themes/even/layouts/partials/post/reward.html @@ -0,0 +1,21 @@ +{{ if or .Params.reward (and .Site.Params.reward.enable (ne .Params.reward false)) }} +
+ + +
+ {{ $qrCode := .Site.Params.reward }} + {{ with $qrCode.wechat }} + + {{- end }} + {{ with $qrCode.alipay }} + + {{- end }} +
+
+{{- end }} \ No newline at end of file diff --git a/themes/even/layouts/partials/post/toc.html b/themes/even/layouts/partials/post/toc.html new file mode 100644 index 0000000..4fed1c7 --- /dev/null +++ b/themes/even/layouts/partials/post/toc.html @@ -0,0 +1,9 @@ +{{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }} +
+

{{ T "toc" }}

+ {{ $globalAutoCollapseToc := .Site.Params.autoCollapseToc | default false }} +
+ {{.TableOfContents}} +
+
+{{- end }} \ No newline at end of file diff --git a/themes/even/layouts/partials/scripts.html b/themes/even/layouts/partials/scripts.html new file mode 100644 index 0000000..803ac6a --- /dev/null +++ b/themes/even/layouts/partials/scripts.html @@ -0,0 +1,115 @@ + + +{{- if .Site.Params.publicCDN.enable }} + {{ .Site.Params.publicCDN.jquery | safeHTML }} + {{ .Site.Params.publicCDN.slideout | safeHTML }} + {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxJs | safeHTML }}{{ end }} +{{- else -}} + + + {{ if .Site.Params.fancybox }}{{ end }} +{{- end -}} + + +{{- if and (or .Params.enableOutdatedInfoWarning (and .Site.Params.outdatedInfoWarning.enable (ne .Params.enableOutdatedInfoWarning false))) (or .IsPage .IsHome) }} + {{- if .Site.Params.publicCDN.enable }} + {{ .Site.Params.publicCDN.timeagoJS | safeHTML }} + {{ .Site.Params.publicCDN.timeagoLocalesJS | safeHTML }} + {{- else }} + + + {{- end }} + +{{- end }} + + +{{- if and (or .Params.flowchartDiagrams.enable (and .Site.Params.flowchartDiagrams.enable (ne .Params.flowchartDiagrams.enable false))) (or .IsPage .IsHome) -}} + + + +{{- end -}} + + +{{- if and (or .Params.sequenceDiagrams.enable (and .Site.Params.sequenceDiagrams.enable (ne .Params.sequenceDiagrams.enable false))) (or .IsPage .IsHome) -}} + + + + + + +{{- end }} + + +{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }} + + +{{- end }} + + +{{- if .Site.GoogleAnalytics -}} + {{ template "_internal/google_analytics_async.html" . }} +{{- end -}} + +{{- with .Site.Params.baidu_analytics -}} + +{{- end }} + + +{{- if .Site.Params.baidu_push -}} + +{{- end }} + + +{{ range .Site.Params.customJS }} + +{{ end }} diff --git a/themes/even/layouts/partials/slideout.html b/themes/even/layouts/partials/slideout.html new file mode 100644 index 0000000..42ed13e --- /dev/null +++ b/themes/even/layouts/partials/slideout.html @@ -0,0 +1,25 @@ + + \ No newline at end of file diff --git a/themes/even/layouts/post/single.html b/themes/even/layouts/post/single.html new file mode 100644 index 0000000..61fbf8c --- /dev/null +++ b/themes/even/layouts/post/single.html @@ -0,0 +1,72 @@ +{{ define "content" -}} +
+ +
+

{{ .Title }}

+ + +
+ + + {{ partial "post/toc.html" . }} + + + {{ partial "post/outdated-info-warning.html" . }} + + +
+ {{ .Content }} +
+ + + {{ partial "post/copyright.html" . }} + + + {{ partial "post/reward.html" . }} + + +
+{{- end }} diff --git a/themes/even/layouts/post/summary.html b/themes/even/layouts/post/summary.html new file mode 100644 index 0000000..6069ca1 --- /dev/null +++ b/themes/even/layouts/post/summary.html @@ -0,0 +1,28 @@ +
+
+

{{ .Title }}

+ +
+ +
+
+ {{ .Summary }} +
+ +
+
diff --git a/themes/even/layouts/robots.txt b/themes/even/layouts/robots.txt new file mode 100644 index 0000000..e89778e --- /dev/null +++ b/themes/even/layouts/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Sitemap: {{ "sitemap.xml" | absURL }} diff --git a/themes/even/layouts/shortcodes/center.html b/themes/even/layouts/shortcodes/center.html new file mode 100644 index 0000000..e9022d0 --- /dev/null +++ b/themes/even/layouts/shortcodes/center.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
\ No newline at end of file diff --git a/themes/even/layouts/shortcodes/left.html b/themes/even/layouts/shortcodes/left.html new file mode 100644 index 0000000..c2c5102 --- /dev/null +++ b/themes/even/layouts/shortcodes/left.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
\ No newline at end of file diff --git a/themes/even/layouts/shortcodes/music.html b/themes/even/layouts/shortcodes/music.html new file mode 100644 index 0000000..22b2268 --- /dev/null +++ b/themes/even/layouts/shortcodes/music.html @@ -0,0 +1,62 @@ + {{/* + ## Music 163 + + ### Params: + + - `id` + + required param + you can extract from music url + url format "http://music.163.com/#/song?id=3950552" + + - Fiddle `auto` + + optional param + default value 0 + you can overwrite it with 1 + + ### Examples: + + - Simple + + {{% music "3950552" %}} + {{% music "3950552" "1" %}} + + - Named Params + + {{% music id="3950552" %}} + {{% music id="3950552" auto="1" %}} + + */}} + + {{- /* DEFAULTS */ -}} + {{ $auto := "0" }} + + {{- if .IsNamedParams -}} + + + + {{- else -}} + + + + {{- end -}} + \ No newline at end of file diff --git a/themes/even/layouts/shortcodes/right.html b/themes/even/layouts/shortcodes/right.html new file mode 100644 index 0000000..37a9a33 --- /dev/null +++ b/themes/even/layouts/shortcodes/right.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
\ No newline at end of file diff --git a/themes/even/layouts/sitemap.xml b/themes/even/layouts/sitemap.xml new file mode 100644 index 0000000..19dd68d --- /dev/null +++ b/themes/even/layouts/sitemap.xml @@ -0,0 +1,11 @@ +{{ "" | safeHTML }} + + {{ range .Data.Pages }} + + {{ .Permalink }}{{ if not .Lastmod.IsZero }} + {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} + {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} + {{ .Sitemap.Priority }}{{ end }} + + {{ end }} + \ No newline at end of file diff --git a/themes/even/src/.babelrc b/themes/even/src/.babelrc new file mode 100644 index 0000000..2645a84 --- /dev/null +++ b/themes/even/src/.babelrc @@ -0,0 +1,10 @@ +{ + "presets": ["es2015","stage-2"], + "plugins": [ + ["transform-runtime", { + "polyfill": false, + "regenerator": true + }] + ], + "ignore": [] +} diff --git a/themes/even/src/css/_base.scss b/themes/even/src/css/_base.scss new file mode 100644 index 0000000..0e1c342 --- /dev/null +++ b/themes/even/src/css/_base.scss @@ -0,0 +1,98 @@ +@import '_common/normalize'; + +html { + font-size: $global-font-size; + box-sizing: border-box; +} + +body { + padding: 0; + margin: 0; + font-family: $global-font-family; + font-weight: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + line-height: $global-lineheight; + color: $global-font-color; + background: $global-background; + scroll-behavior: smooth; + border-top: 3px solid $theme-color; +} + +@include max-screen() { + body { + border-top: 0; + } +} + +::selection { + background: $theme-color; + color: #fff; +} + +// ::-webkit-scrollbar { +// width: 8px; +// height: 6px; +// } + +// ::-webkit-scrollbar-thumb { +// background: lighten($theme-color, 10%); +// border-radius: 5px; +// } + +// ::-webkit-scrollbar-track { +// background: rgba(211, 211, 211, 0.4); +// border-radius: 5px; +// } + +img { + max-width: 100%; + height: auto; + display: inline-block; + vertical-align: middle; +} + +a { + color: $global-font-color; + text-decoration: none; +} + +@each $header, $size in $global-headings { + #{$header} { + font-size: $size; + font-family: $global-serif-font-family; + } +} + +.container { + margin: 0 auto; + width: $global-body-width; +} + +@include max-screen() { + .container { + width: 100%; + box-shadow: -1px -5px 5px $gray; + } +} + +.content-wrapper { + padding: $global-container-padding; +} + +// make video fluid: +// https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php +// class video-container is the wrapper used by hexo youtube tag plugin +.video-container { + position: relative; + padding-bottom: 56.25%; /* 16:9 */ + padding-top: 25px; + height: 0; +} +.video-container iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} \ No newline at end of file diff --git a/themes/even/src/css/_common/_animation.scss b/themes/even/src/css/_common/_animation.scss new file mode 100644 index 0000000..d596b16 --- /dev/null +++ b/themes/even/src/css/_common/_animation.scss @@ -0,0 +1,156 @@ +@mixin underline-from-center() { + display: inline-block; + vertical-align: middle; + transform: translateZ(0); + backface-visibility: hidden; + box-shadow: 0 0 1px transparent; + position: relative; + overflow: hidden; + + &:before { + content: ''; + position: absolute; + z-index: -1; + height: 2px; + bottom: 0; + left: 51%; + right: 51%; + background: $theme-color; + transition-duration: 0.2s; + transition-property: right, left; + transition-timing-function: ease-out; + } + + &.active, + &:active, + &:focus, + &:hover { + &:before { + right: 0; + left: 0; + } + } +} + +@mixin mobile-menu-icon() { + @keyframes clickfirst { + 0% { + transform: translateY(6px) rotate(0deg); + + } + + 100% { + transform: translateY(0) rotate(45deg); + } + } + + @keyframes clickmid { + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } + } + + @keyframes clicklast { + 0% { + transform: translateY(-6px) rotate(0deg); + } + + 100% { + transform: translateY(0) rotate(-45deg); + } + } + + @keyframes outfirst { + 0% { + transform: translateY(0) rotate(-45deg); + } + + 100% { + transform: translateY(-6px) rotate(0deg); + } + } + + @keyframes outmid { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } + } + + @keyframes outlast { + 0% { + transform: translateY(0) rotate(45deg); + } + + 100% { + transform: translateY(6px) rotate(0deg); + } + } + + span { + position: absolute; + /* fallback for browsers which still doesn't support for `calc()` */ + left: 15px; + top: 25px; + left: calc((100% - 20px) / 2); + top: calc((100% - 1px) / 2); + width: 20px; + height: 1px; + background-color: $theme-color; + + &:nth-child(1) { + transform: translateY(6px) rotate(0deg); + } + + &:nth-child(3) { + transform: translateY(-6px) rotate(0deg); + } + } + + &.icon-click { + span:nth-child(1) { + animation-duration: 0.5s; + animation-fill-mode: both; + animation-name: clickfirst; + } + + span:nth-child(2) { + animation-duration: 0.2s; + animation-fill-mode: both; + animation-name: clickmid; + } + + span:nth-child(3) { + animation-duration: 0.5s; + animation-fill-mode: both; + animation-name: clicklast; + } + } + + &.icon-out { + span:nth-child(1) { + animation-duration: 0.5s; + animation-fill-mode: both; + animation-name: outfirst; + } + + span:nth-child(2) { + animation-duration: 0.2s; + animation-fill-mode: both; + animation-name: outmid; + } + + span:nth-child(3) { + animation-duration: 0.5s; + animation-fill-mode: both; + animation-name: outlast; + } + } +} \ No newline at end of file diff --git a/themes/even/src/css/_common/_normalize.scss b/themes/even/src/css/_common/_normalize.scss new file mode 100644 index 0000000..81c6f31 --- /dev/null +++ b/themes/even/src/css/_common/_normalize.scss @@ -0,0 +1,427 @@ +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ + +/** + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-family: sans-serif; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/** + * Remove default margin. + */ + +body { + margin: 0; +} + +/* HTML5 display definitions + ========================================================================== */ + +/** + * Correct `block` display not defined for any HTML5 element in IE 8/9. + * Correct `block` display not defined for `details` or `summary` in IE 10/11 + * and Firefox. + * Correct `block` display not defined for `main` in IE 11. + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} + +/** + * 1. Correct `inline-block` display not defined in IE 8/9. + * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. + */ + +audio, +canvas, +progress, +video { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Prevent modern browsers from displaying `audio` without controls. + * Remove excess height in iOS 5 devices. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Address `[hidden]` styling not present in IE 8/9/10. + * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. + */ + +[hidden], +template { + display: none; +} + +/* Links + ========================================================================== */ + +/** + * Remove the gray background color from active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * Improve readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Address styling not present in IE 8/9/10/11, Safari, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +/** + * Address styling not present in Safari and Chrome. + */ + +dfn { + font-style: italic; +} + +/** + * Address variable `h1` font-size and margin within `section` and `article` + * contexts in Firefox 4+, Safari, and Chrome. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/** + * Address styling not present in IE 8/9. + */ + +mark { + background: #ff0; + color: #000; +} + +/** + * Address inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove border when inside `a` element in IE 8/9/10. + */ + +img { + border: 0; +} + +/** + * Correct overflow not hidden in IE 9/10/11. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Grouping content + ========================================================================== */ + +/** + * Address margin not present in IE 8/9 and Safari. + */ + +figure { + margin: 1em 40px; +} + +/** + * Address differences between Firefox and other browsers. + */ + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} + +/** + * Contain overflow in all browsers. + */ + +pre { + overflow: auto; +} + +/** + * Address odd `em`-unit font size rendering in all browsers. + */ + +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +/* Forms + ========================================================================== */ + +/** + * Known limitation: by default, Chrome and Safari on OS X allow very limited + * styling of `select`, unless a `border` property is set. + */ + +/** + * 1. Correct color not being inherited. + * Known issue: affects color of disabled elements. + * 2. Correct font properties not being inherited. + * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. + */ + +button, +input, +optgroup, +select, +textarea { + color: inherit; /* 1 */ + font: inherit; /* 2 */ + margin: 0; /* 3 */ +} + +/** + * Address `overflow` set to `hidden` in IE 8/9/10/11. + */ + +button { + overflow: visible; +} + +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. + * Correct `select` style inheritance in Firefox. + */ + +button, +select { + text-transform: none; +} + +/** + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type + * `input` and others. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ +} + +/** + * Re-set default cursor for disabled elements. + */ + +button[disabled], +html input[disabled] { + cursor: default; +} + +/** + * Remove inner padding and border in Firefox 4+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * Address Firefox 4+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +input { + line-height: normal; +} + +/** + * It's recommended that you don't attempt to style these elements. + * Firefox's implementation doesn't respect box-sizing, padding, or width. + * + * 1. Address box sizing set to `content-box` in IE 8/9/10. + * 2. Remove excess padding in IE 8/9/10. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Address `appearance` set to `searchfield` in Safari and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-appearance: textfield; /* 1 */ + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; /* 2 */ + box-sizing: content-box; +} + +/** + * Remove inner padding and search cancel button in Safari and Chrome on OS X. + * Safari (but not Chrome) clips the cancel button when the search input has + * padding (and `textfield` appearance). + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * Define consistent border, margin, and padding. + */ + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * 1. Correct `color` not being inherited in IE 8/9/10/11. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. + */ + +legend { + border: 0; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Remove default vertical scrollbar in IE 8/9/10/11. + */ + +textarea { + overflow: auto; +} + +/** + * Don't inherit the `font-weight` (applied by a rule above). + * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. + */ + +optgroup { + font-weight: bold; +} + +/* Tables + ========================================================================== */ + +/** + * Remove most spacing between table cells. + */ + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} \ No newline at end of file diff --git a/themes/even/src/css/_common/_utils.scss b/themes/even/src/css/_common/_utils.scss new file mode 100644 index 0000000..1c7b777 --- /dev/null +++ b/themes/even/src/css/_common/_utils.scss @@ -0,0 +1,23 @@ +@mixin clearfix() { + &:before, + &:after { + content: " "; + display: table; + } + + &:after { + clear: both; + } +} + +@mixin min-screen($min-width: $global-body-width) { + @media screen and (min-width: $min-width) { + @content; + } +} + +@mixin max-screen($max-width: $global-body-width) { + @media screen and (max-width: $max-width) { + @content; + } +} diff --git a/themes/even/src/css/_custom/_custom.scss b/themes/even/src/css/_custom/_custom.scss new file mode 100644 index 0000000..f7cbb5a --- /dev/null +++ b/themes/even/src/css/_custom/_custom.scss @@ -0,0 +1,4 @@ +// ============================== +// Custom style +// ============================== +// You can override the variables in _variables.scss to customize the style diff --git a/themes/even/src/css/_iconfont.scss b/themes/even/src/css/_iconfont.scss new file mode 100644 index 0000000..03efae6 --- /dev/null +++ b/themes/even/src/css/_iconfont.scss @@ -0,0 +1,110 @@ +// ============================== +// Iconfont +// ============================== + +@font-face { + font-family: 'iconfont'; /* project id 96542 */ + + src: url('../fonts/iconfont/iconfont.eot'); + src: url('../fonts/iconfont/iconfont.eot#iefix') format('embedded-opentype'), // not '?#iefix', because webpack will add '?hash=[hash]' + url('../fonts/iconfont/iconfont.woff') format('woff'), + url('../fonts/iconfont/iconfont.ttf') format('truetype'), + url('../fonts/iconfont/iconfont.svg#iconfont') format('svg'); + + // Uncomment these code and comment upper code if you want to use alicdn + // src: url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.eot'); + // src: url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.eot?#iefix') format('embedded-opentype'), + // url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.woff') format('woff'), + // url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.ttf') format('truetype'), + // url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.svg#iconfont') format('svg'); +} + +.iconfont { + font-family: "iconfont" !important; + font-style: normal; + -webkit-font-smoothing: antialiased; + -webkit-text-stroke-width: 0.2px; + -moz-osx-font-smoothing: grayscale; + cursor: pointer; +} + +.icon-instagram:before { + font-size: .95em; + content: "\e611"; + position: relative; + top: -1px; +} +.icon-douban:before { + content: "\e610"; +} +.icon-tumblr:before { + content: "\e69f"; + font-size: .85em; + position: relative; + top: -4px; +} +.icon-linkedin:before { + content: "\e60d"; + position: relative; + top: -4px; +} +.icon-twitter:before { + content: "\e600"; +} +.icon-weibo:before { + content: "\e602"; +} +.icon-stack-overflow:before { + content: "\e603"; + font-size: .85em; + position: relative; + top: -4px; +} +.icon-email:before { + content: "\e605"; + position: relative; + top: -2px; +} +.icon-facebook:before { + content: "\e601"; + font-size: .95em; + position: relative; + top: -2px; +} +.icon-github:before { + content: "\e606"; + position: relative; + top: -3px; +} +.icon-rss:before { + content: "\e604"; +} +.icon-google:before { + content: "\e609"; +} +.icon-zhihu:before { + content: "\e607"; + font-size: .9em; + position: relative; + top: -2px; +} +.icon-pocket:before { + content: "\e856"; +} + +/* Generic Icon */ +.icon-heart:before { + content: "\e608"; +} +.icon-right:before { + content: "\e60a"; +} +.icon-left:before { + content: "\e60b"; +} +.icon-up:before { + content: "\e60c"; +} +.icon-close:before { + content: "\e60f"; +} diff --git a/themes/even/src/css/_partial/_404.scss b/themes/even/src/css/_partial/_404.scss new file mode 100644 index 0000000..63eb465 --- /dev/null +++ b/themes/even/src/css/_partial/_404.scss @@ -0,0 +1,25 @@ +// ============================== +// Archive +// ============================= + +.not-found { + text-align: center; + + .error-emoji { + color: #363636; + font-size: 3rem; + } + + .error-text { + color: #797979; + font-size: 1.25rem; + } + + .error-link { + margin-top: 2rem; + + a { + color: $theme-color; + } + } +} \ No newline at end of file diff --git a/themes/even/src/css/_partial/_archive.scss b/themes/even/src/css/_partial/_archive.scss new file mode 100644 index 0000000..f1431c4 --- /dev/null +++ b/themes/even/src/css/_partial/_archive.scss @@ -0,0 +1,100 @@ +// ============================== +// Archive +// ============================= + +.archive { + margin: $archive-margin; + max-width: $archive-max-width; + + .archive-title { + font-family: $global-serif-font-family; + + &.tag, + &.category { + margin: 15px 0; + } + + .archive-name { + margin: 0; + display: inline-block; + font-weight: 400; + font-size: $archive-name-font-size; + line-height: $archive-name-font-size + 2px; + } + + .archive-post-counter { + color: $dark-gray; + } + } + + .collection-title { + font-family: $global-serif-font-family; + + .archive-year { + margin: 15px 0; + font-weight: 400; + font-size: $collection-title-font-size; + line-height: $collection-title-font-size + 2px; + } + } + + .archive-post { + padding: $archive-post-padding; + border-left: $archive-post-border-left; + + .archive-post-time { + margin-right: 10px; + color: $dark-gray; + } + + .archive-post-title { + + .archive-post-link { + color: $theme-color; + } + } + + &::first-child { + margin-top: 10px; + } + + &:hover { + border-left: $archive-post-hover-border-left; + transition: $archive-post-hover-transition; + transform: $archive-post-hover-transform; + + .archive-post-time { + color: darken($dark-gray, 10%); + } + + .archive-post-title .archive-post-link { + color: darken($theme-color, 10%); + } + } + } +} + +@include max-screen() { + .archive { + margin-left: auto; + margin-right: auto; + + .archive-title .archive-name { + font-size: $archive-name-font-size - 4px; + } + + .collection-title .archive-year { + margin: 10px 0; + font-size: $collection-title-font-size - 4px; + } + + .archive-post { + padding: $archive-post-mobile-padding; + + .archive-post-time { + font-size: $archive-post-mobile-time-font-size; + display: block; + } + } + } +} diff --git a/themes/even/src/css/_partial/_back-to-top.scss b/themes/even/src/css/_partial/_back-to-top.scss new file mode 100644 index 0000000..ee67aa2 --- /dev/null +++ b/themes/even/src/css/_partial/_back-to-top.scss @@ -0,0 +1,24 @@ +// ============================== +// Back to top +// ============================= + +.back-to-top { + display: none; + position: fixed; + right: 20px; + bottom: 20px; + transition-property: transform; + transition-timing-function: ease-out; + transition-duration: 0.3s; + z-index: 10; + + &:hover { + transform: translateY(-5px); + } +} + +@include max-screen() { + .back-to-top { + display: none !important; + } +} \ No newline at end of file diff --git a/themes/even/src/css/_partial/_categories.scss b/themes/even/src/css/_partial/_categories.scss new file mode 100644 index 0000000..f9c413d --- /dev/null +++ b/themes/even/src/css/_partial/_categories.scss @@ -0,0 +1,43 @@ + +.categories { + margin: 2em 0 3em; + text-align: center; + font-family: $global-serif-font-family; + + .categories-title { + display: inline-block; + font-size: $categories-title-size; + color: $theme-color; + border-bottom: $categories-title-border-bottom; + } + + .categories-tags { + margin: 10px 0; + + .category-link { + display: inline-block; + position: relative; + margin: $categories-tags-link-margin; + word-wrap: break-word; + transition-duration: 0.2s; + transition-property: transform; + transition-timing-function: ease-out; + + .category-count { + display: inline-block; + position: relative; + top: -8px; + right: -2px; + color: $theme-color; + font-size: $category-count-font-size; + } + + &:active, + &:focus, + &:hover { + color: $theme-color; + transform: scale(1.1); + } + } + } +} \ No newline at end of file diff --git a/themes/even/src/css/_partial/_footer.scss b/themes/even/src/css/_partial/_footer.scss new file mode 100644 index 0000000..1f8cdae --- /dev/null +++ b/themes/even/src/css/_partial/_footer.scss @@ -0,0 +1,10 @@ +// ============================== +// Post footer +// ============================= + +.footer { + margin-top: $footer-margin-top; + + @import "_footer/social"; + @import "_footer/copyright"; +} \ No newline at end of file diff --git a/themes/even/src/css/_partial/_footer/_copyright.scss b/themes/even/src/css/_partial/_footer/_copyright.scss new file mode 100644 index 0000000..7d33fe3 --- /dev/null +++ b/themes/even/src/css/_partial/_footer/_copyright.scss @@ -0,0 +1,23 @@ +// ============================== +// Copyright +// ============================= + +.copyright { + margin: $copyright-margin; + color: $dark-gray; + text-align: center; + font-family: $global-serif-font-family; + + .hexo-link, + .theme-link { + color: $theme-color; + } + + .copyright-year { + display: block; + + .heart { + font-size: 14px; + } + } +} \ No newline at end of file diff --git a/themes/even/src/css/_partial/_footer/_social.scss b/themes/even/src/css/_partial/_footer/_social.scss new file mode 100644 index 0000000..a23eb69 --- /dev/null +++ b/themes/even/src/css/_partial/_footer/_social.scss @@ -0,0 +1,19 @@ +// ============================== +// Social +// ============================= + +.social-links { + text-align: center; + + .iconfont { + font-size: $social-icon-font-size; + + & + .iconfont { + margin-left: $social-link-margin-left; + } + + &:hover { + color: $theme-color; + } + } +} \ No newline at end of file diff --git a/themes/even/src/css/_partial/_header.scss b/themes/even/src/css/_partial/_header.scss new file mode 100644 index 0000000..d81f17c --- /dev/null +++ b/themes/even/src/css/_partial/_header.scss @@ -0,0 +1,19 @@ +// ============================== +// Header +// ============================== + +.header { + @include clearfix; + padding: $header-padding; + + @import '_header/logo'; + @import '_header/menu'; +} + + +@include max-screen() { + .header { + padding: 50px 0 0; + text-align: center; + } +} diff --git a/themes/even/src/css/_partial/_header/_logo.scss b/themes/even/src/css/_partial/_header/_logo.scss new file mode 100644 index 0000000..cd6435f --- /dev/null +++ b/themes/even/src/css/_partial/_header/_logo.scss @@ -0,0 +1,18 @@ +// ============================== +// Logo +// ============================= + +.logo-wrapper { + float: left; + + .logo { + font-size: $logo-font-size; + font-family: $logo-font-family; + } +} + +@include max-screen() { + .logo-wrapper { + display: none; + } +} diff --git a/themes/even/src/css/_partial/_header/_menu.scss b/themes/even/src/css/_partial/_header/_menu.scss new file mode 100644 index 0000000..7209c80 --- /dev/null +++ b/themes/even/src/css/_partial/_header/_menu.scss @@ -0,0 +1,35 @@ +// ============================== +// Menu +// ============================= + +.site-navbar { + float: right; + + .menu { + display: inline-block; + position: relative; + padding-left: 0; + padding-right: 25px; + font-family: $global-serif-font-family; + + .menu-item { + display: inline-block; + + & + .menu-item { + margin-left: $menu-item-margin-left;; + } + + @include underline-from-center; + } + + .menu-item-link { + font-size: $menu-link-font-size; + } + } +} + +@include max-screen() { + .site-navbar { + display: none; + } +} diff --git a/themes/even/src/css/_partial/_mobile.scss b/themes/even/src/css/_partial/_mobile.scss new file mode 100644 index 0000000..26e4c76 --- /dev/null +++ b/themes/even/src/css/_partial/_mobile.scss @@ -0,0 +1,77 @@ +// ============================== +// Mobile Navbar +// ============================== + +.mobile-navbar { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: $mobile-navbar-height; + background: $white; + box-shadow: 0px 2px 2px $gray; + text-align: center; + transition: transform 300ms ease; + z-index: 99; + + &.fixed-open { + transform: translate3d(180px, 0px, 0px); + } + + .mobile-header-logo { + display: inline-block; + margin-right: 50px; + + .logo { + font-size: 22px; + line-height: $mobile-navbar-height; + font-family: $logo-font-family; + } + } + + .mobile-navbar-icon { + color: $theme-color; + height: $mobile-navbar-height; + width: $mobile-navbar-height; + font-size: 24px; + text-align: center; + float: left; + position: relative; + transition: background 0.5s; + + @include mobile-menu-icon(); + } +} + +.mobile-menu { + background-color: rgba($deputy-color, 0.5); + + .mobile-menu-list { + position: relative; + list-style: none; + margin-top: 50px; + padding: 0; + border-top: 1px solid $deputy-color; + + .mobile-menu-item { + padding: 10px 30px; + border-bottom: 1px solid $deputy-color; + } + + a { + font-size: 18px; + font-family: $global-serif-font-family; + + &:hover { + color: $theme-color; + } + } + } +} + +@include max-screen() { + .mobile-navbar { + display: block; + } +} diff --git a/themes/even/src/css/_partial/_pagination.scss b/themes/even/src/css/_partial/_pagination.scss new file mode 100644 index 0000000..c58f8db --- /dev/null +++ b/themes/even/src/css/_partial/_pagination.scss @@ -0,0 +1,36 @@ +// ============================== +// Pagination +// ============================== + +.pagination { + margin: $pagination-margin; + @include clearfix; + + .prev, + .next { + font-weight: 600; + font-size: $pagination-font-size; + font-family: $global-serif-font-family; + transition-property: transform; + transition-timing-function: ease-out; + transition-duration: 0.3s; + } + + .prev { + float: left; + + &:hover { + color: $theme-color; + transform: translateX(-4px); + } + } + + .next { + float: right; + + &:hover { + color: $theme-color; + transform: translateX(4px); + } + } +} \ No newline at end of file diff --git a/themes/even/src/css/_partial/_post.scss b/themes/even/src/css/_partial/_post.scss new file mode 100644 index 0000000..a980b29 --- /dev/null +++ b/themes/even/src/css/_partial/_post.scss @@ -0,0 +1,24 @@ +// ============================== +// Post +// ============================== + +.posts { + margin-bottom: $post-list-margin-bottom; + border-bottom: $post-border; +} + +.post { + padding: $post-padding; + + & + .post { + border-top: $post-border; + } + + @import '_post/header'; + @import '_post/toc'; + @import '_post/content'; + @import '_post/copyright'; + @import '_post/reward'; + @import '_post/footer'; + @import '_post/outdated'; +} diff --git a/themes/even/src/css/_partial/_post/_code.scss b/themes/even/src/css/_partial/_post/_code.scss new file mode 100644 index 0000000..2a23a77 --- /dev/null +++ b/themes/even/src/css/_partial/_post/_code.scss @@ -0,0 +1,140 @@ +code, pre { + padding: 7px; + font-size: $code-font-size; + font-family: $code-font-family; + background: $code-background; +} + +code { + padding: 3px 5px; + border-radius: 4px; + color: $code-color; +} + +figure.highlight { + margin: 1em 0; + border-radius: 5px; + overflow-x: auto; + box-shadow: 1px 1px 2px rgba(0,0,0,0.125); + position: relative; + + table { + position: relative; + + &::after { + position: absolute; + top: 0; + right: 0; + left: 0; + padding: 2px 7px; + font-size: $code-font-size; + font-weight: bold; + color: darken($gray, 10%); + background: darken($code-background, 3%); + content: 'Code'; + } + } + + @each $sign, $text in $code-type-list { + &.#{$sign} > table::after { + content: $text; + } + } + + .code { + pre { + margin: 0; + padding: 30px 10px 10px; + } + } + + .gutter { + width: 10px; + color: $gray; + + pre { + margin: 0; + padding: 30px 7px 10px; + } + } + + .line { + // Fix code block null line height and + // Synchronous gutter and code line highly. + height: round($code-font-size * 1.5); + } + + table, tr, td { + margin: 0; + padding: 0; + width: 100%; + border-collapse: collapse; + } + + .code { + .hljs-comment, + .hljs-quote { + color: map-get($code-highlight-color, comment); + } + + .hljs-keyword, + .hljs-selector-tag, + .hljs-addition { + color: map-get($code-highlight-color, keyword); + } + + .hljs-number, + .hljs-string, + .hljs-meta .hljs-meta-string, + .hljs-literal, + .hljs-doctag, + .hljs-regexp { + color: map-get($code-highlight-color, number); + } + + .hljs-title, + .hljs-section, + .hljs-name, + .hljs-selector-id, + .hljs-selector-class { + color: map-get($code-highlight-color, title); + } + + .hljs-attribute, + .hljs-attr, + .hljs-variable, + .hljs-template-variable, + .hljs-class .hljs-title, + .hljs-type { + color: map-get($code-highlight-color, attribute); + } + + .hljs-symbol, + .hljs-bullet, + .hljs-subst, + .hljs-meta, + .hljs-meta .hljs-keyword, + .hljs-selector-attr, + .hljs-selector-pseudo, + .hljs-link { + color: map-get($code-highlight-color, symbol); + } + + .hljs-built_in, + .hljs-deletion { + color: map-get($code-highlight-color, built_in); + } + + .hljs-formula { + background: map-get($code-highlight-color, formula); + } + + .hljs-emphasis { + font-style: italic; + } + + .hljs-strong { + font-weight: bold; + } + } +} diff --git a/themes/even/src/css/_partial/_post/_content.scss b/themes/even/src/css/_partial/_post/_content.scss new file mode 100644 index 0000000..87c788b --- /dev/null +++ b/themes/even/src/css/_partial/_post/_content.scss @@ -0,0 +1,143 @@ +// ============================== +// Post content +// ============================== + +.post-content { + word-wrap: break-word; + + @for $i from 1 through 6 { + h#{$i} { + font-weight: 400; + font-family: $global-serif-font-family; + } + } + + a { + color: $theme-color; + word-break: break-all; + + &:hover { + border-bottom: $content-link-border; + } + + &.fancybox { + border: 0; + } + } + + blockquote { + margin: 2em 0; + padding: 10px 20px; + position: relative; + color: rgba(#34495e, 0.8); + background-color: $content-blockquote-backgroud; + border-left: $content-blockquote-border-left; + box-shadow: 1px 1px 2px rgba(0,0,0,0.125); + + p { + margin: 0; + } + } + + img { + display: inline-block; + max-width: 100%; + } + + > table { + max-width: 100%; + margin: 10px 0; + border-spacing: 0; + box-shadow: 2px 2px 3px rgba(0,0,0,.125); + + thead { + background: $deputy-color; + } + + th, td { + padding: 5px 15px; + border: 1px double $content-table-border-color; + } + + tr:hover { + background-color: $deputy-color; + } + } + + @import 'code'; + + .post-summary { + margin-bottom: 1em; + } + + .read-more { + .read-more-link { + color: $theme-color; + font-size: 1.1em; + font-family: $global-serif-font-family; + + &:hover { + border-bottom: $post-readMore-border-bottom; + } + } + } + + kbd { + display: inline-block; + padding: 0.25em; + background-color: #fafafa; + border: 1px solid #dbdbdb; + border-bottom-color: #b5b5b5; + border-radius: 3px; + box-shadow: inset 0 -1px 0 #b5b5b5; + font-size: 0.8em; + line-height: 1.25; + font-family: "SFMono-Regular","Liberation Mono","Roboto Mono",Menlo,Monaco,Consolas,"Courier New",Courier,monospace; + color: #4a4a4a; + } + + dl dt::after { + content: ':'; + } + + figure { + &.center { + text-align: center; + } + + &.right { + text-align: right; + } + + &.left { + text-align: left; + } + + figcaption h4 { + color: #b5b5b5; + font-size: 0.9rem; + } + } + + .task-list { + list-style: none; + padding-left: 1.5rem; + } + + .align-center { + text-align: center; + } + + .align-right { + text-align: right; + } + + .align-left { + text-align: left; + } + + .MJXc-display { + overflow-x: auto; + overflow-y: hidden; + } +} diff --git a/themes/even/src/css/_partial/_post/_copyright.scss b/themes/even/src/css/_partial/_post/_copyright.scss new file mode 100644 index 0000000..374061f --- /dev/null +++ b/themes/even/src/css/_partial/_post/_copyright.scss @@ -0,0 +1,29 @@ +.post-copyright { + margin-top: 20px; + padding-top: 10px; + border-top: 1px dashed $light-gray; + + .copyright-item { + margin: 5px 0; + + a { + color: $theme-color; + word-wrap: break-word; + + &:hover { + border-bottom: $content-link-border; + } + } + + .item-title { + display: inline-block; + min-width: 5rem; + margin-right: .5rem; + text-align: right; + + &:after { + content: " :"; + } + } + } +} diff --git a/themes/even/src/css/_partial/_post/_footer.scss b/themes/even/src/css/_partial/_post/_footer.scss new file mode 100644 index 0000000..012110f --- /dev/null +++ b/themes/even/src/css/_partial/_post/_footer.scss @@ -0,0 +1,74 @@ +// ============================== +// Post footer +// ============================== + +.post-footer { + margin-top: $post-footer-margin-top; + border-top: $post-footer-border-top; + font-family: $global-serif-font-family; + + .post-tags { + padding: $post-tags-padding; + + a { + margin-right: 5px; + color: $theme-color; + word-break: break-all; + + &::before { + content: '#'; + } + } + } + + .post-nav { + margin: 1em 0; + @include clearfix; + + .prev, + .next { + font-weight: 600; + font-size: $post-nav-font-size; + font-family: $global-serif-font-family; + transition-property: transform; + transition-timing-function: ease-out; + transition-duration: 0.3s; + } + + .prev { + float: left; + + &:hover { + color: $theme-color; + transform: translateX(-4px); + } + } + + .next { + float: right; + + &:hover { + color: $theme-color; + transform: translateX(4px); + } + } + + .nav-mobile { + display: none; + } + } +} + +@include max-screen() { + .post-footer { + .post-nav { + .nav-default { + display: none; + } + + .nav-mobile { + display: inline; + } + } + } +} \ No newline at end of file diff --git a/themes/even/src/css/_partial/_post/_header.scss b/themes/even/src/css/_partial/_post/_header.scss new file mode 100644 index 0000000..7faf4e3 --- /dev/null +++ b/themes/even/src/css/_partial/_post/_header.scss @@ -0,0 +1,46 @@ +.post-header { + margin-bottom: 20px; + + .post-title { + margin: 0; + font-size: $post-title-font-size; + font-weight: $post-title-font-weight; + font-family: $global-serif-font-family; + } + + .post-link { + @include underline-from-center; + } + + .post-meta { + font-size: 14px; + color: $post-meta-font-color; + + .post-time { + font-size: 15px; + } + + .post-category { + display: inline; + + a { + color: inherit; + + &::before { + content: '·'; + } + + &:hover { + color: $theme-color; + } + } + } + + .more-meta { + &::before { + content: '·'; + } + } + + } +} diff --git a/themes/even/src/css/_partial/_post/_outdated.scss b/themes/even/src/css/_partial/_post/_outdated.scss new file mode 100644 index 0000000..be7b5ea --- /dev/null +++ b/themes/even/src/css/_partial/_post/_outdated.scss @@ -0,0 +1,25 @@ +.post-outdated { + .hint { + position: relative; + margin-top: 20px; + margin-bottom: 20px; + padding: 5px 10px; + border-left: 4px solid rgb(66, 172, 243); + background-color: rgb(239, 245, 255); + border-color: rgb(66, 172, 243); + } + + .warn { + position: relative; + margin-top: 20px; + margin-bottom: 20px; + padding: 5px 10px; + border-left: 4px solid #f9cf63; + background-color: #ffffc0; + border-color: #f9cf63; + } +} + + + + diff --git a/themes/even/src/css/_partial/_post/_reward.scss b/themes/even/src/css/_partial/_post/_reward.scss new file mode 100644 index 0000000..3a03a9f --- /dev/null +++ b/themes/even/src/css/_partial/_post/_reward.scss @@ -0,0 +1,54 @@ +.post-reward { + margin-top: 20px; + padding-top: 10px; + text-align: center; + border-top: 1px dashed $light-gray; + + .reward-button { + margin: 15px 0; + padding: 3px 7px; + display: inline-block; + color: $theme-color; + border: 1px solid $theme-color; + border-radius: 5px; + cursor: pointer; + + &:hover { + color: $white; + background-color: $theme-color; + transition: 0.5s; + } + } + + #reward:checked { + & ~ .qr-code { + display: block; + } + + & ~ .reward-button { + display: none; + } + } + + .qr-code { + display: none; + + .qr-code-image { + display: inline-block; + min-width: 200px; + width: 40%; + margin-top: 15px; + + span { + display: inline-block; + width: 100%; + margin: 8px 0; + } + } + + .image { + width: 200px; + height: 200px; + } + } +} \ No newline at end of file diff --git a/themes/even/src/css/_partial/_post/_toc.scss b/themes/even/src/css/_partial/_post/_toc.scss new file mode 100644 index 0000000..8327055 --- /dev/null +++ b/themes/even/src/css/_partial/_post/_toc.scss @@ -0,0 +1,55 @@ +.post-toc { + position: absolute; + width: $post-toc-width; + margin-left: $post-toc-margin-left; + padding: 10px; + font-family: $global-serif-font-family; + border-radius: 5px; + background: $post-toc-backgroud; + box-shadow: 1px 1px 2px rgba(0,0,0,0.125); + word-wrap: break-word; + box-sizing: border-box; + + .post-toc-title { + margin: 0 10px; + font-size: $post-toc-title-size; + font-weight: 400; + text-transform: uppercase; + } + + .post-toc-content { + font-size: $post-toc-content; + + &.always-active ul { + display: block; + } + + >nav>ul { + margin: 10px 0; + } + + ul { + padding-left: 20px; + list-style: $post-toc-list-style; + + ul { + padding-left: 15px; + display: none; + } + + .has-active > ul { + display: block; + } + } + + .toc-link.active { + color: $theme-color; + } + } +} + +@include max-screen($toc-max-sreen-width) { + .post-toc { + display: none; + } +} diff --git a/themes/even/src/css/_partial/_slideout.scss b/themes/even/src/css/_partial/_slideout.scss new file mode 100644 index 0000000..2dc757d --- /dev/null +++ b/themes/even/src/css/_partial/_slideout.scss @@ -0,0 +1,33 @@ +// ============================== +// slideout (https://github.com/mango/slideout) +// ============================== + +.slideout-menu { + position: fixed; + top: 0; + left: 0px; + bottom: 0; + width: 180px; + min-height: 100vh; + overflow-y: hidden; + -webkit-overflow-scrolling: touch; + z-index: 0; + display: none; +} + +.slideout-panel { + position: relative; + z-index: 1; + background-color: $white; + min-height: 100vh; +} + +.slideout-open, +.slideout-open body, +.slideout-open .slideout-panel { + overflow: hidden; +} + +.slideout-open .slideout-menu { + display: block; +} diff --git a/themes/even/src/css/_partial/_tags.scss b/themes/even/src/css/_partial/_tags.scss new file mode 100644 index 0000000..e32a90e --- /dev/null +++ b/themes/even/src/css/_partial/_tags.scss @@ -0,0 +1,46 @@ +// ============================== +// Tags +// ============================= + +.tag-cloud { + margin: 2em 0 3em; + text-align: center; + font-family: $global-serif-font-family; + + .tag-cloud-title { + display: inline-block; + font-size: $tag-cloud-title-size; + color: $theme-color; + border-bottom: $tag-cloud-title-border-bottom; + } + + .tag-cloud-tags { + margin: 10px 0; + + a { + display: inline-block; + position: relative; + margin: $tag-cloud-tags-link-margin; + word-wrap: break-word; + transition-duration: 0.2s; + transition-property: transform; + transition-timing-function: ease-out; + + .tag-count { + display: inline-block; + position: relative; + top: -8px; + right: -2px; + color: $theme-color; + font-size: $category-count-font-size; + } + + &:active, + &:focus, + &:hover { + color: $theme-color; + transform: scale(1.1); + } + } + } +} \ No newline at end of file diff --git a/themes/even/src/css/_variables.scss b/themes/even/src/css/_variables.scss new file mode 100644 index 0000000..06d7507 --- /dev/null +++ b/themes/even/src/css/_variables.scss @@ -0,0 +1,336 @@ +// ============================== +// Variables +// ============================== + +// ========== Theme Color ========== // +// Config here to change theme color +// Default | Mint Green | Cobalt Blue | Hot Pink | Dark Violet +$theme-color-config: 'Default'; + +// Default theme color map +$theme-color-map: ( + 'Default': #c05b4d #f8f5ec, + 'Mint Green': #16982B #f5f5f5, + 'Cobalt Blue': #0047AB #f0f2f5, + 'Hot Pink': #FF69B4 #f8f5f5, + 'Dark Violet': #9932CC #f5f4fa +); + +// Check theme color config. +// if it does not exist, use default theme color. +@if not(map-has-key($theme-color-map, $theme-color-config)) { + $theme-color-config: 'Default'; +} +$theme-color-list: map-get($theme-color-map, $theme-color-config); + +// Default theme color of the site. +$theme-color: nth($theme-color-list, 1) !default; + +// Deputy theme color of the site. +$deputy-color: nth($theme-color-list, 2) !default; + + +// ========== Color ========== // +$black: #0a0a0a !default; +$white: #fefefe !default; +$light-gray: #e6e6e6 !default; +$gray: #cacaca !default; +$dark-gray: #8a8a8a !default; + + +// ========== Global ========== // +// Text color of the body. +$global-font-color: #34495e !default; + +// Font size attribute applied to '' and ''. +$global-font-size: 16px !default; + +// Global width of ''. +$global-body-width: 800px !default; + +// Padding of container main +$global-container-padding: 0 20px !default; + +// Default line height for all type. `$global-lineheight` is 24px while `$global-font-size` is 16px. +$global-lineheight: 1.5 !default; + +// Font family of the site. +$global-font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif !default; + +// Serif font family of the site. +$global-serif-font-family: Athelas, STHeiti, Microsoft Yahei, serif !default; + +// Background color of the site. +$global-background: $white !default; + +// Headings font size of the site. +$global-headings: ( + h1: 26px, + h2: 24px, + h3: 20px, + h4: 16px, + h5: 14px, + h6: 14px +) !default; + + +// ========== Header ========== // +// Padding of the site header. +$header-padding: 20px 20px !default; + +// Font family: Chancery +@font-face { + font-family: 'Chancery'; + src: url('../fonts/chancery/apple-chancery-webfont.eot'); + src: local('Apple Chancery'), url('../fonts/chancery/apple-chancery-webfont.eot?#iefix') format('embedded-opentype'), + url('../fonts/chancery/apple-chancery-webfont.woff2') format('woff2'), + url('../fonts/chancery/apple-chancery-webfont.woff') format('woff'), + url('../fonts/chancery/apple-chancery-webfont.ttf') format('truetype'), + url('../fonts/chancery/apple-chancery-webfont.svg#apple-chancery') format('svg'); + font-weight: lighter; + font-style: normal; +} + +// Font size of the logo. +$logo-font-size: 48px !default; + +// Font family of the logo. +$logo-font-family: 'Chancery', cursive, LiSu, sans-serif !default; + +// Margin of menu item. +$menu-item-margin-left: 10px !default; + +// Margin of menu item in mobile. +$menu-item-mobile-margin: 5px !default; + +// Font size of menu item link. +$menu-link-font-size: 18px !default; + +// Height of the mobile header. +$mobile-navbar-height: 50px !default; + +// ========== Post ========== // +// Margin bottom of post list. +$post-list-margin-bottom: 20px !default; + +// Padding of the post. +$post-padding: 1.5em 0 !default; + +// Border top of the post + post. +$post-border: 1px solid $light-gray !default; + +// Font size of post title. +$post-title-font-size: 27px !default; + +// Font weight of post title. +$post-title-font-weight: 400 !default; + +// Margin top of the post meta (post time). +$post-meta-margin-top: 5px !default; + +// Font color of the post meta. +$post-meta-font-color: $dark-gray !default; + +// Border bottom of the read more link when hover it. +$post-readMore-border-bottom: 1px solid $theme-color !default; + +// Margin top of the post footer. +$post-footer-margin-top: 20px !default; + +// Border top of post footer. +$post-footer-border-top: 1px solid $light-gray !default; + +// Padding of the post tags. +$post-tags-padding: 15px 0 !default; + +// Font size of post pagination. +$post-nav-font-size: 18px !default; + + +// ========== TOC ========== // +// Width of the post toc. +$post-toc-width: 200px !default; + +// Backgroud color of the post toc. +$post-toc-backgroud: rgba($deputy-color, 0.6) !default; + +// Margin left of the post toc. +$post-toc-margin-left: $global-body-width - 15px !default; + +// Font size of the post toc title. +$post-toc-title-size: 20px !default; + +// Font size of the post toc content. +$post-toc-content: 15px !default; + +// List style of the post toc list. +$post-toc-list-style: square !default; + +// Max screen media of the post toc. +$toc-max-sreen-width: 2 * $post-toc-width + $post-toc-margin-left !default; + +// ========== Content ========== // +// Headings anchor. +$content-headings-anchor: "" !default; + +// Border bottom of the link when hover it. +$content-link-border: 1px solid $theme-color !default; + +// Background color of the blockquote. +$content-blockquote-backgroud: rgba($theme-color, 0.05) !default; + +// Border left of the blockquote. +$content-blockquote-border-left: 3px solid rgba($theme-color, 0.3) !default; + +// Border color of the table. +$content-table-border-color: darken($deputy-color, 3%) !default; + +// ========== Code ========== // +// Color of the code. +$code-color: #c7254e !default; + +// Font size of code. +$code-font-size: 13px !default; + +// Font family of the code. +$code-font-family: Consolas, Monaco, Menlo, Consolas, monospace !default; + +// Color of code highlight, solarized. +$code-highlight-color: ( + comment: #93a1a1, + keyword: #859900, + number: #2aa198, + title: #268bd2, + attribute: #b58900, + symbol: #cb4b16, + built_in: #dc322f, + formula: #eee8d5 +) !default; + +// Code type list. +$code-type-list: ( + // Custom code type + language-bash: "Bash", + language-c: "C", + language-cs: "C#", + language-cpp: "C++", + language-css: "CSS", + language-coffeescript: "CoffeeScript", + language-html: "HTML", + language-xml: "XML", + language-http: "HTTP", + language-json: "JSON", + language-java: "Java", + language-js: "JavaScript", + language-javascript: "JavaScript", + language-makefile: "Makefile", + language-markdown: "Markdown", + language-objectivec: "Objective-C", + language-php: "PHP", + language-perl: "Perl", + language-python: "Python", + language-ruby: "Ruby", + language-sql: "SQL", + language-shell: "Shell", + + language-erlang: "Erlang", + language-go: "Go", + language-groovy: "Groovy", + language-haskell: "Haskell", + language-kotlin: "Kotlin", + language-less: "Less", + language-lisp: "Lisp", + language-lua: "Lua", + language-matlab: "Matlab", + language-rust: "Rust", + language-scss: "Scss", + language-scala: "Scala", + language-swift: "Swift", + language-typescript: "TypeScript", + language-yml: "YAML", + language-yaml: "YAML", + language-toml: "TOML" +) !default; + +// Color of the code background. +$code-background: $deputy-color !default; + + +// ========== Pagination ========== // +// Margin of the pagination. +$pagination-margin: 2em 0 !default; + +// Font size of the pagination (Without post, post pagination see line 140). +$pagination-font-size: 20px !default; + + +// ========== Footer ========== // +// Margin top of the footer. +$footer-margin-top: 2em !default; + +// Margin left of the social link. +$social-link-margin-left: 10px !default; + +// Font size of the social icon. +$social-icon-font-size: 30px !default; + +// Margin of the copyright. +$copyright-margin: 10px 0 !default; + + +// ========== Archive ========== // +// Margin of the archive. +$archive-margin: 2em 0px !default; + +// Max width of the archive. +$archive-max-width: 550px !default; + +// Font size of the archive name. +$archive-name-font-size: 30px !default; + +// Font size of the collection title. +$collection-title-font-size: 28px !default; + +// Padding of the archive post. +$archive-post-padding: 3px 20px !default; + +// Padding of the archive post in mobile. +$archive-post-mobile-padding: 5px 10px !default; + +// Font size of the archive post time in mobile. +$archive-post-mobile-time-font-size: 13px !default; + +// Border left of the archive post, use $archive-post-hover-border-left when hover it. +$archive-post-border-left: 1px solid $gray !default; +$archive-post-hover-border-left: 3px solid $theme-color !default; + +// Transition of the archive post when hover it. +$archive-post-hover-transition: 0.2s ease-out !default; + +// Transform of the archive post when hover it. +$archive-post-hover-transform: translateX(4px) !default; + + +// ========== Tags ========== // +// Font soze of the tag cloud title. +$tag-cloud-title-size: 18px !default; + +// Border bottom of the tag cloud title. +$tag-cloud-title-border-bottom: 2px solid $theme-color !default; + +// Margin of the tag cloud tags link. +$tag-cloud-tags-link-margin: 5px 10px !default; + + +// ========== Categories ========== // +// Font soze of the categories title. +$categories-title-size: 18px !default; + +// Border bottom of the categories title. +$categories-title-border-bottom: 2px solid $theme-color !default; + +// Margin of the categories tags link. +$categories-tags-link-margin: 5px 10px !default; + +// Font size of the category count +$category-count-font-size: 12px !default; diff --git a/themes/even/src/css/style.scss b/themes/even/src/css/style.scss new file mode 100644 index 0000000..50fcf7a --- /dev/null +++ b/themes/even/src/css/style.scss @@ -0,0 +1,19 @@ +@import "_custom/custom"; +@import "_variables"; + +@import "_common/utils"; +@import "_common/animation"; + +@import "_base"; +@import "_iconfont"; +@import "_partial/header"; +@import "_partial/post"; +@import "_partial/pagination"; +@import "_partial/footer"; +@import "_partial/archive"; +@import "_partial/tags"; +@import "_partial/categories"; +@import "_partial/slideout"; +@import "_partial/mobile"; +@import "_partial/back-to-top"; +@import "_partial/404"; diff --git a/themes/even/src/fonts/chancery/apple-chancery-webfont.eot b/themes/even/src/fonts/chancery/apple-chancery-webfont.eot new file mode 100644 index 0000000..39c3936 Binary files /dev/null and b/themes/even/src/fonts/chancery/apple-chancery-webfont.eot differ diff --git a/themes/even/src/fonts/chancery/apple-chancery-webfont.svg b/themes/even/src/fonts/chancery/apple-chancery-webfont.svg new file mode 100644 index 0000000..2b18b6a --- /dev/null +++ b/themes/even/src/fonts/chancery/apple-chancery-webfont.svg @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/themes/even/src/fonts/chancery/apple-chancery-webfont.ttf b/themes/even/src/fonts/chancery/apple-chancery-webfont.ttf new file mode 100644 index 0000000..8238aa4 Binary files /dev/null and b/themes/even/src/fonts/chancery/apple-chancery-webfont.ttf differ diff --git a/themes/even/src/fonts/chancery/apple-chancery-webfont.woff b/themes/even/src/fonts/chancery/apple-chancery-webfont.woff new file mode 100644 index 0000000..e476776 Binary files /dev/null and b/themes/even/src/fonts/chancery/apple-chancery-webfont.woff differ diff --git a/themes/even/src/fonts/chancery/apple-chancery-webfont.woff2 b/themes/even/src/fonts/chancery/apple-chancery-webfont.woff2 new file mode 100644 index 0000000..922dfb3 Binary files /dev/null and b/themes/even/src/fonts/chancery/apple-chancery-webfont.woff2 differ diff --git a/themes/even/src/fonts/iconfont/iconfont.eot b/themes/even/src/fonts/iconfont/iconfont.eot new file mode 100644 index 0000000..912bca3 Binary files /dev/null and b/themes/even/src/fonts/iconfont/iconfont.eot differ diff --git a/themes/even/src/fonts/iconfont/iconfont.svg b/themes/even/src/fonts/iconfont/iconfont.svg new file mode 100644 index 0000000..a13a862 --- /dev/null +++ b/themes/even/src/fonts/iconfont/iconfont.svg @@ -0,0 +1,93 @@ + + + + + +Created by iconfont + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/themes/even/src/fonts/iconfont/iconfont.ttf b/themes/even/src/fonts/iconfont/iconfont.ttf new file mode 100644 index 0000000..f6765c5 Binary files /dev/null and b/themes/even/src/fonts/iconfont/iconfont.ttf differ diff --git a/themes/even/src/fonts/iconfont/iconfont.woff b/themes/even/src/fonts/iconfont/iconfont.woff new file mode 100644 index 0000000..526da66 Binary files /dev/null and b/themes/even/src/fonts/iconfont/iconfont.woff differ diff --git a/themes/even/src/js/even.js b/themes/even/src/js/even.js new file mode 100644 index 0000000..6b544a4 --- /dev/null +++ b/themes/even/src/js/even.js @@ -0,0 +1,246 @@ +'use strict' + +const Even = {} + +Even.backToTop = function () { + const $backToTop = $('#back-to-top') + + $(window).scroll(function () { + if ($(window).scrollTop() > 100) { + $backToTop.fadeIn(1000) + } else { + $backToTop.fadeOut(1000) + } + }) + + $backToTop.click(function () { + $('body,html').animate({ scrollTop: 0 }) + }) +} + +Even.mobileNavbar = function () { + const $mobileNav = $('#mobile-navbar') + const $mobileNavIcon = $('.mobile-navbar-icon') + const slideout = new Slideout({ + 'panel': document.getElementById('mobile-panel'), + 'menu': document.getElementById('mobile-menu'), + 'padding': 180, + 'tolerance': 70 + }) + slideout.disableTouch() + + $mobileNavIcon.click(function () { + slideout.toggle() + }) + + slideout.on('beforeopen', function () { + $mobileNav.addClass('fixed-open') + $mobileNavIcon.addClass('icon-click').removeClass('icon-out') + }) + + slideout.on('beforeclose', function () { + $mobileNav.removeClass('fixed-open') + $mobileNavIcon.addClass('icon-out').removeClass('icon-click') + }) + + $('#mobile-panel').on('touchend', function () { + slideout.isOpen() && $mobileNavIcon.click() + }) +} + +Even._initToc = function () { + const SPACING = 20 + const $toc = $('.post-toc') + const $footer = $('.post-footer') + + if ($toc.length) { + const minScrollTop = $toc.offset().top - SPACING + const maxScrollTop = $footer.offset().top - $toc.height() - SPACING + + const tocState = { + start: { + 'position': 'absolute', + 'top': minScrollTop + }, + process: { + 'position': 'fixed', + 'top': SPACING + }, + end: { + 'position': 'absolute', + 'top': maxScrollTop + } + } + + $(window).scroll(function () { + const scrollTop = $(window).scrollTop() + + if (scrollTop < minScrollTop) { + $toc.css(tocState.start) + } else if (scrollTop > maxScrollTop) { + $toc.css(tocState.end) + } else { + $toc.css(tocState.process) + } + }) + } + + const HEADERFIX = 30 + const $toclink = $('.toc-link') + const $headerlink = $('.headerlink') + const $tocLinkLis = $('.post-toc-content li') + + const headerlinkTop = $.map($headerlink, function (link) { + return $(link).offset().top + }) + + const headerLinksOffsetForSearch = $.map(headerlinkTop, function (offset) { + return offset - HEADERFIX + }) + + const searchActiveTocIndex = function (array, target) { + for (let i = 0; i < array.length - 1; i++) { + if (target > array[i] && target <= array[i + 1]) return i + } + if (target > array[array.length - 1]) return array.length - 1 + return -1 + } + + $(window).scroll(function () { + const scrollTop = $(window).scrollTop() + const activeTocIndex = searchActiveTocIndex(headerLinksOffsetForSearch, scrollTop) + + $($toclink).removeClass('active') + $($tocLinkLis).removeClass('has-active') + + if (activeTocIndex !== -1) { + $($toclink[activeTocIndex]).addClass('active') + let ancestor = $toclink[activeTocIndex].parentNode + while (ancestor.tagName !== 'NAV') { + $(ancestor).addClass('has-active') + ancestor = ancestor.parentNode.parentNode + } + } + }) +} + +Even.fancybox = function () { + if ($.fancybox) { + $('.post-content').each(function () { + $(this).find('img').each(function () { + $(this).wrap(``) + }) + }) + + $('.fancybox').fancybox({ + selector: '.fancybox', + protect: true + }) + } +} + +Even.highlight = function () { + const blocks = document.querySelectorAll('pre code') + for (let i = 0; i < blocks.length; i++) { + const block = blocks[i] + const rootElement = block.parentElement + const lineCodes = block.innerHTML.split(/\n/) + if (lineCodes[lineCodes.length - 1] === '') lineCodes.pop() + const lineLength = lineCodes.length + + let codeLineHtml = '' + for (let i = 0; i < lineLength; i++) { + codeLineHtml += `
${i + 1}
` + } + + let codeHtml = '' + for (let i = 0; i < lineLength; i++) { + codeHtml += `
${lineCodes[i]}
` + } + + block.className += ' highlight' + const figure = document.createElement('figure') + figure.className = block.className + figure.innerHTML = `
${codeLineHtml}
${codeHtml}
` + + rootElement.parentElement.replaceChild(figure, rootElement) + } +} + +Even.toc = function () { + const tocContainer = document.getElementById('post-toc') + if (tocContainer !== null) { + const toc = document.getElementById('TableOfContents') + if (toc === null) { + // toc = true, but there are no headings + tocContainer.parentNode.removeChild(tocContainer) + } else { + this._refactorToc(toc) + this._linkToc() + this._initToc() + } + } +} + +Even._refactorToc = function (toc) { + // when headings do not start with `h1` + const oldTocList = toc.children[0] + let newTocList = oldTocList + let temp + while (newTocList.children.length === 1 && (temp = newTocList.children[0].children[0]).tagName === 'UL') newTocList = temp + + if (newTocList !== oldTocList) toc.replaceChild(newTocList, oldTocList) +} + +Even._linkToc = function () { + const links = document.querySelectorAll('#TableOfContents a:first-child') + for (let i = 0; i < links.length; i++) links[i].className += ' toc-link' + + for (let num = 1; num <= 6; num++) { + const headers = document.querySelectorAll('.post-content>h' + num) + for (let i = 0; i < headers.length; i++) { + const header = headers[i] + header.innerHTML = `${header.innerHTML}` + } + } +} + +Even.flowchart = function () { + if (!window.flowchart) return + + const blocks = document.querySelectorAll('pre code.language-flowchart') + for (let i = 0; i < blocks.length; i++) { + const block = blocks[i] + const rootElement = block.parentElement + + const container = document.createElement('div') + const id = `js-flowchart-diagrams-${i}` + container.id = id + container.className = 'align-center' + rootElement.parentElement.replaceChild(container, rootElement) + + const diagram = flowchart.parse(block.childNodes[0].nodeValue) + diagram.drawSVG(id, window.flowchartDiagramsOptions ? window.flowchartDiagramsOptions : {}) + } +} + +Even.sequence = function () { + if (!window.Diagram) return + + const blocks = document.querySelectorAll('pre code.language-sequence') + for (let i = 0; i < blocks.length; i++) { + const block = blocks[i] + const rootElement = block.parentElement + + const container = document.createElement('div') + const id = `js-sequence-diagrams-${i}` + container.id = id + container.className = 'align-center' + rootElement.parentElement.replaceChild(container, rootElement) + + const diagram = Diagram.parse(block.childNodes[0].nodeValue) + diagram.drawSVG(id, window.sequenceDiagramsOptions ? window.sequenceDiagramsOptions : {theme: 'simple'}) + } +} + +export {Even} diff --git a/themes/even/src/js/main.js b/themes/even/src/js/main.js new file mode 100644 index 0000000..289b8dc --- /dev/null +++ b/themes/even/src/js/main.js @@ -0,0 +1,16 @@ +import {Even} from './even.js' + +import '../css/style.scss' + +$(document).ready(function () { + Even.backToTop() + Even.mobileNavbar() + Even.toc() + Even.fancybox() +}) + +Even.flowchart() +Even.sequence() + +hljs.initHighlighting() +Even.highlight() diff --git a/themes/even/src/package.json b/themes/even/src/package.json new file mode 100644 index 0000000..2f436b7 --- /dev/null +++ b/themes/even/src/package.json @@ -0,0 +1,31 @@ +{ + "name": "even-src", + "version": "1.0.0", + "description": "even source file", + "main": "index.js", + "scripts": { + "start": "webpack", + "build": "webpack" + }, + "author": "ahonn, olOwOlo", + "license": "MIT", + "devDependencies": { + "autoprefixer": "^7.2.4", + "babel-core": "^6.26.0", + "babel-loader": "^7.1.2", + "babel-plugin-transform-runtime": "^6.23.0", + "babel-preset-es2015": "^6.24.1", + "babel-preset-stage-2": "^6.24.1", + "css-loader": "^0.28.8", + "expose-loader": "^0.7.4", + "extract-text-webpack-plugin": "^3.0.2", + "file-loader": "^1.1.6", + "node-sass": "^4.7.2", + "postcss-loader": "^2.0.10", + "sass-loader": "^6.0.6", + "style-loader": "^0.19.1", + "uglifyjs-webpack-plugin": "^1.1.6", + "url-loader": "^0.6.2", + "webpack": "^3.10.0" + } +} diff --git a/themes/even/src/postcss.config.js b/themes/even/src/postcss.config.js new file mode 100644 index 0000000..7c5b1be --- /dev/null +++ b/themes/even/src/postcss.config.js @@ -0,0 +1,7 @@ +module.exports = { + plugins: [ + require('autoprefixer')({ + browsers: ['> 1%', 'last 2 versions', 'ie >= 9'] + }) + ] +} \ No newline at end of file diff --git a/themes/even/src/webpack.config.js b/themes/even/src/webpack.config.js new file mode 100644 index 0000000..f2218be --- /dev/null +++ b/themes/even/src/webpack.config.js @@ -0,0 +1,54 @@ +const path = require('path') +const ExtractTextPlugin = require('extract-text-webpack-plugin') +const UglifyJSPlugin = require('uglifyjs-webpack-plugin') + +const extractSass = new ExtractTextPlugin({ + filename: `even.min.css` +}) + +module.exports = { + devtool: 'source-map', + entry: { + even: './js/main.js' + }, + output: { + path: path.join(__dirname, '../static/dist'), + filename: `[name].min.js` + }, + module: { + rules: [ + { + test: /\.js$/, + exclude: /node_modules/, + loader: 'babel-loader' + }, + { + test: /\.scss$/, + use: extractSass.extract({ + use: [{ + loader: 'css-loader', options: {minimize: true, sourceMap: true} + }, { + loader: 'postcss-loader', options: {sourceMap: true} + }, { + loader: 'sass-loader', options: {sourceMap: true} + }], + fallback: 'style-loader' + }) + }, + { + test: /iconfont\.(woff|woff2|eot|ttf|otf|svg)$/, + use: ['file-loader?name=[path][name].[ext]?hash=[hash:7]'] + }, + { + test: /apple-chancery-webfont\.(woff|woff2|eot|ttf|otf|svg)$/, + use: ['file-loader?name=[path][name].[ext]'] + } + ] + }, + plugins: [ + extractSass, + new UglifyJSPlugin({ + sourceMap: true + }) + ] +} diff --git a/themes/even/static/android-chrome-192x192.png b/themes/even/static/android-chrome-192x192.png new file mode 100644 index 0000000..939d110 Binary files /dev/null and b/themes/even/static/android-chrome-192x192.png differ diff --git a/themes/even/static/android-chrome-512x512.png b/themes/even/static/android-chrome-512x512.png new file mode 100644 index 0000000..5d0adb6 Binary files /dev/null and b/themes/even/static/android-chrome-512x512.png differ diff --git a/themes/even/static/apple-touch-icon.png b/themes/even/static/apple-touch-icon.png new file mode 100644 index 0000000..140d7f6 Binary files /dev/null and b/themes/even/static/apple-touch-icon.png differ diff --git a/themes/even/static/browserconfig.xml b/themes/even/static/browserconfig.xml new file mode 100644 index 0000000..e8b57e5 --- /dev/null +++ b/themes/even/static/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #b91d47 + + + diff --git a/themes/even/static/dist/even.min.css b/themes/even/static/dist/even.min.css new file mode 100644 index 0000000..53b3a8f --- /dev/null +++ b/themes/even/static/dist/even.min.css @@ -0,0 +1,4 @@ +@font-face{font-family:Chancery;src:url(fonts/chancery/apple-chancery-webfont.eot);src:local("Apple Chancery"),url(fonts/chancery/apple-chancery-webfont.eot?#iefix) format("embedded-opentype"),url(fonts/chancery/apple-chancery-webfont.woff2) format("woff2"),url(fonts/chancery/apple-chancery-webfont.woff) format("woff"),url(fonts/chancery/apple-chancery-webfont.ttf) format("truetype"),url(fonts/chancery/apple-chancery-webfont.svg#apple-chancery) format("svg");font-weight:lighter;font-style:normal} + +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}html{font-size:16px;-webkit-box-sizing:border-box;box-sizing:border-box}body{padding:0;margin:0;font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;color:#34495e;background:#fefefe;scroll-behavior:smooth;border-top:3px solid #c05b4d}@media screen and (max-width:800px){body{border-top:0}}::-moz-selection{background:#c05b4d;color:#fff}::selection{background:#c05b4d;color:#fff}img{max-width:100%;height:auto;display:inline-block;vertical-align:middle}a{color:#34495e;text-decoration:none}h1{font-size:26px}h1,h2{font-family:Athelas,STHeiti,Microsoft Yahei,serif}h2{font-size:24px}h3{font-size:20px}h3,h4{font-family:Athelas,STHeiti,Microsoft Yahei,serif}h4{font-size:16px}h5,h6{font-size:14px;font-family:Athelas,STHeiti,Microsoft Yahei,serif}.container{margin:0 auto;width:800px}@media screen and (max-width:800px){.container{width:100%;-webkit-box-shadow:-1px -5px 5px #cacaca;box-shadow:-1px -5px 5px #cacaca}}.content-wrapper{padding:0 20px}.video-container{position:relative;padding-bottom:56.25%;padding-top:25px;height:0}.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont/iconfont.eot?hash=c2af3bb);src:url(fonts/iconfont/iconfont.eot?hash=c2af3bb#iefix) format("embedded-opentype"),url(fonts/iconfont/iconfont.woff?hash=5d21a10) format("woff"),url(fonts/iconfont/iconfont.ttf?hash=0e6028a) format("truetype"),url(fonts/iconfont/iconfont.svg?hash=568ae3a#iconfont) format("svg")}.iconfont{font-family:iconfont!important;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;-moz-osx-font-smoothing:grayscale;cursor:pointer}.icon-instagram:before{font-size:.95em;content:"\E611";position:relative;top:-1px}.icon-douban:before{content:"\E610"}.icon-tumblr:before{content:"\E69F";font-size:.85em;position:relative;top:-4px}.icon-linkedin:before{content:"\E60D";position:relative;top:-4px}.icon-twitter:before{content:"\E600"}.icon-weibo:before{content:"\E602"}.icon-stack-overflow:before{content:"\E603";font-size:.85em;position:relative;top:-4px}.icon-email:before{content:"\E605";position:relative;top:-2px}.icon-facebook:before{content:"\E601";font-size:.95em;position:relative;top:-2px}.icon-github:before{content:"\E606";position:relative;top:-3px}.icon-rss:before{content:"\E604"}.icon-google:before{content:"\E609"}.icon-zhihu:before{content:"\E607";font-size:.9em;position:relative;top:-2px}.icon-pocket:before{content:"\E856"}.icon-heart:before{content:"\E608"}.icon-right:before{content:"\E60A"}.icon-left:before{content:"\E60B"}.icon-up:before{content:"\E60C"}.icon-close:before{content:"\E60F"}.header{padding:20px}.header:after,.header:before{content:" ";display:table}.header:after{clear:both}.header .logo-wrapper{float:left}.header .logo-wrapper .logo{font-size:48px;font-family:Chancery,cursive}@media screen and (max-width:800px){.header .logo-wrapper{display:none}}.header .site-navbar{float:right}.header .site-navbar .menu{display:inline-block;position:relative;padding-left:0;padding-right:25px;font-family:Athelas,STHeiti,Microsoft Yahei,serif}.header .site-navbar .menu .menu-item{display:inline-block;vertical-align:middle;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden}.header .site-navbar .menu .menu-item+.menu-item{margin-left:10px}.header .site-navbar .menu .menu-item:before{content:"";position:absolute;z-index:-1;height:2px;bottom:0;left:51%;right:51%;background:#c05b4d;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:right,left;transition-property:right,left;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.header .site-navbar .menu .menu-item.active:before,.header .site-navbar .menu .menu-item:active:before,.header .site-navbar .menu .menu-item:focus:before,.header .site-navbar .menu .menu-item:hover:before{right:0;left:0}.header .site-navbar .menu .menu-item-link{font-size:18px}@media screen and (max-width:800px){.header .site-navbar{display:none}}@media screen and (max-width:800px){.header{padding:50px 0 0;text-align:center}}.posts{margin-bottom:20px;border-bottom:1px solid #e6e6e6}.post{padding:1.5em 0}.post+.post{border-top:1px solid #e6e6e6}.post .post-header{margin-bottom:20px}.post .post-header .post-title{margin:0;font-size:27px;font-weight:400;font-family:Athelas,STHeiti,Microsoft Yahei,serif}.post .post-header .post-link{display:inline-block;vertical-align:middle;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-box-shadow:0 0 1px transparent;box-shadow:0 0 1px transparent;position:relative;overflow:hidden}.post .post-header .post-link:before{content:"";position:absolute;z-index:-1;height:2px;bottom:0;left:51%;right:51%;background:#c05b4d;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:right,left;transition-property:right,left;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.post .post-header .post-link.active:before,.post .post-header .post-link:active:before,.post .post-header .post-link:focus:before,.post .post-header .post-link:hover:before{right:0;left:0}.post .post-header .post-meta{font-size:14px;color:#8a8a8a}.post .post-header .post-meta .post-time{font-size:15px}.post .post-header .post-meta .post-category{display:inline}.post .post-header .post-meta .post-category a{color:inherit}.post .post-header .post-meta .post-category a:before{content:"\B7"}.post .post-header .post-meta .post-category a:hover{color:#c05b4d}.post .post-header .post-meta .more-meta:before{content:"\B7"}.post .post-toc{position:absolute;width:200px;margin-left:785px;padding:10px;font-family:Athelas,STHeiti,Microsoft Yahei,serif;border-radius:5px;background:hsla(45,46%,95%,.6);-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.125);box-shadow:1px 1px 2px rgba(0,0,0,.125);word-wrap:break-word;-webkit-box-sizing:border-box;box-sizing:border-box}.post .post-toc .post-toc-title{margin:0 10px;font-size:20px;font-weight:400;text-transform:uppercase}.post .post-toc .post-toc-content{font-size:15px}.post .post-toc .post-toc-content.always-active ul{display:block}.post .post-toc .post-toc-content>nav>ul{margin:10px 0}.post .post-toc .post-toc-content ul{padding-left:20px;list-style:square}.post .post-toc .post-toc-content ul ul{padding-left:15px;display:none}.post .post-toc .post-toc-content ul .has-active>ul{display:block}.post .post-toc .post-toc-content .toc-link.active{color:#c05b4d}@media screen and (max-width:1185px){.post .post-toc{display:none}}.post .post-content{word-wrap:break-word}.post .post-content h1,.post .post-content h2,.post .post-content h3,.post .post-content h4,.post .post-content h5,.post .post-content h6{font-weight:400;font-family:Athelas,STHeiti,Microsoft Yahei,serif}.post .post-content a{color:#c05b4d;word-break:break-all}.post .post-content a:hover{border-bottom:1px solid #c05b4d}.post .post-content a.fancybox{border:0}.post .post-content blockquote{margin:2em 0;padding:10px 20px;position:relative;color:rgba(52,73,94,.8);background-color:rgba(192,91,77,.05);border-left:3px solid rgba(192,91,77,.3);-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.125);box-shadow:1px 1px 2px rgba(0,0,0,.125)}.post .post-content blockquote p{margin:0}.post .post-content img{display:inline-block;max-width:100%}.post .post-content>table{max-width:100%;margin:10px 0;border-spacing:0;-webkit-box-shadow:2px 2px 3px rgba(0,0,0,.125);box-shadow:2px 2px 3px rgba(0,0,0,.125)}.post .post-content>table thead{background:#f8f5ec}.post .post-content>table td,.post .post-content>table th{padding:5px 15px;border:1px double #f4efe1}.post .post-content>table tr:hover{background-color:#f8f5ec}.post .post-content code,.post .post-content pre{padding:7px;font-size:13px;font-family:Consolas,Monaco,Menlo,monospace;background:#f8f5ec}.post .post-content code{padding:3px 5px;border-radius:4px;color:#c7254e}.post .post-content figure.highlight{margin:1em 0;border-radius:5px;overflow-x:auto;-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.125);box-shadow:1px 1px 2px rgba(0,0,0,.125);position:relative}.post .post-content figure.highlight table{position:relative}.post .post-content figure.highlight table:after{position:absolute;top:0;right:0;left:0;padding:2px 7px;font-size:13px;font-weight:700;color:#b1b1b1;background:#f4efe1;content:"Code"}.post .post-content figure.highlight.language-bash>table:after{content:"Bash"}.post .post-content figure.highlight.language-c>table:after{content:"C"}.post .post-content figure.highlight.language-cs>table:after{content:"C#"}.post .post-content figure.highlight.language-cpp>table:after{content:"C++"}.post .post-content figure.highlight.language-css>table:after{content:"CSS"}.post .post-content figure.highlight.language-coffeescript>table:after{content:"CoffeeScript"}.post .post-content figure.highlight.language-html>table:after{content:"HTML"}.post .post-content figure.highlight.language-xml>table:after{content:"XML"}.post .post-content figure.highlight.language-http>table:after{content:"HTTP"}.post .post-content figure.highlight.language-json>table:after{content:"JSON"}.post .post-content figure.highlight.language-java>table:after{content:"Java"}.post .post-content figure.highlight.language-javascript>table:after,.post .post-content figure.highlight.language-js>table:after{content:"JavaScript"}.post .post-content figure.highlight.language-makefile>table:after{content:"Makefile"}.post .post-content figure.highlight.language-markdown>table:after{content:"Markdown"}.post .post-content figure.highlight.language-objectivec>table:after{content:"Objective-C"}.post .post-content figure.highlight.language-php>table:after{content:"PHP"}.post .post-content figure.highlight.language-perl>table:after{content:"Perl"}.post .post-content figure.highlight.language-python>table:after{content:"Python"}.post .post-content figure.highlight.language-ruby>table:after{content:"Ruby"}.post .post-content figure.highlight.language-sql>table:after{content:"SQL"}.post .post-content figure.highlight.language-shell>table:after{content:"Shell"}.post .post-content figure.highlight.language-erlang>table:after{content:"Erlang"}.post .post-content figure.highlight.language-go>table:after{content:"Go"}.post .post-content figure.highlight.language-groovy>table:after{content:"Groovy"}.post .post-content figure.highlight.language-haskell>table:after{content:"Haskell"}.post .post-content figure.highlight.language-kotlin>table:after{content:"Kotlin"}.post .post-content figure.highlight.language-less>table:after{content:"Less"}.post .post-content figure.highlight.language-lisp>table:after{content:"Lisp"}.post .post-content figure.highlight.language-lua>table:after{content:"Lua"}.post .post-content figure.highlight.language-matlab>table:after{content:"Matlab"}.post .post-content figure.highlight.language-rust>table:after{content:"Rust"}.post .post-content figure.highlight.language-scss>table:after{content:"Scss"}.post .post-content figure.highlight.language-scala>table:after{content:"Scala"}.post .post-content figure.highlight.language-swift>table:after{content:"Swift"}.post .post-content figure.highlight.language-typescript>table:after{content:"TypeScript"}.post .post-content figure.highlight.language-yaml>table:after,.post .post-content figure.highlight.language-yml>table:after{content:"YAML"}.post .post-content figure.highlight.language-toml>table:after{content:"TOML"}.post .post-content figure.highlight .code pre{margin:0;padding:30px 10px 10px}.post .post-content figure.highlight .gutter{width:10px;color:#cacaca}.post .post-content figure.highlight .gutter pre{margin:0;padding:30px 7px 10px}.post .post-content figure.highlight .line{height:20px}.post .post-content figure.highlight table,.post .post-content figure.highlight td,.post .post-content figure.highlight tr{margin:0;padding:0;width:100%;border-collapse:collapse}.post .post-content figure.highlight .code .hljs-comment,.post .post-content figure.highlight .code .hljs-quote{color:#93a1a1}.post .post-content figure.highlight .code .hljs-addition,.post .post-content figure.highlight .code .hljs-keyword,.post .post-content figure.highlight .code .hljs-selector-tag{color:#859900}.post .post-content figure.highlight .code .hljs-doctag,.post .post-content figure.highlight .code .hljs-literal,.post .post-content figure.highlight .code .hljs-meta .hljs-meta-string,.post .post-content figure.highlight .code .hljs-number,.post .post-content figure.highlight .code .hljs-regexp,.post .post-content figure.highlight .code .hljs-string{color:#2aa198}.post .post-content figure.highlight .code .hljs-name,.post .post-content figure.highlight .code .hljs-section,.post .post-content figure.highlight .code .hljs-selector-class,.post .post-content figure.highlight .code .hljs-selector-id,.post .post-content figure.highlight .code .hljs-title{color:#268bd2}.post .post-content figure.highlight .code .hljs-attr,.post .post-content figure.highlight .code .hljs-attribute,.post .post-content figure.highlight .code .hljs-class .hljs-title,.post .post-content figure.highlight .code .hljs-template-variable,.post .post-content figure.highlight .code .hljs-type,.post .post-content figure.highlight .code .hljs-variable{color:#b58900}.post .post-content figure.highlight .code .hljs-bullet,.post .post-content figure.highlight .code .hljs-link,.post .post-content figure.highlight .code .hljs-meta,.post .post-content figure.highlight .code .hljs-meta .hljs-keyword,.post .post-content figure.highlight .code .hljs-selector-attr,.post .post-content figure.highlight .code .hljs-selector-pseudo,.post .post-content figure.highlight .code .hljs-subst,.post .post-content figure.highlight .code .hljs-symbol{color:#cb4b16}.post .post-content figure.highlight .code .hljs-built_in,.post .post-content figure.highlight .code .hljs-deletion{color:#dc322f}.post .post-content figure.highlight .code .hljs-formula{background:#eee8d5}.post .post-content figure.highlight .code .hljs-emphasis{font-style:italic}.post .post-content figure.highlight .code .hljs-strong{font-weight:700}.post .post-content .post-summary{margin-bottom:1em}.post .post-content .read-more .read-more-link{color:#c05b4d;font-size:1.1em;font-family:Athelas,STHeiti,Microsoft Yahei,serif}.post .post-content .read-more .read-more-link:hover{border-bottom:1px solid #c05b4d}.post .post-content kbd{display:inline-block;padding:.25em;background-color:#fafafa;border:1px solid #dbdbdb;border-bottom-color:#b5b5b5;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 #b5b5b5;box-shadow:inset 0 -1px 0 #b5b5b5;font-size:.8em;line-height:1.25;font-family:SFMono-Regular,Liberation Mono,Roboto Mono,Menlo,Monaco,Consolas,Courier New,Courier,monospace;color:#4a4a4a}.post .post-content dl dt:after{content:":"}.post .post-content figure.center{text-align:center}.post .post-content figure.right{text-align:right}.post .post-content figure.left{text-align:left}.post .post-content figure figcaption h4{color:#b5b5b5;font-size:.9rem}.post .post-content .task-list{list-style:none;padding-left:1.5rem}.post .post-content .align-center{text-align:center}.post .post-content .align-right{text-align:right}.post .post-content .align-left{text-align:left}.post .post-content .MJXc-display{overflow-x:auto;overflow-y:hidden}.post .post-copyright{margin-top:20px;padding-top:10px;border-top:1px dashed #e6e6e6}.post .post-copyright .copyright-item{margin:5px 0}.post .post-copyright .copyright-item a{color:#c05b4d;word-wrap:break-word}.post .post-copyright .copyright-item a:hover{border-bottom:1px solid #c05b4d}.post .post-copyright .copyright-item .item-title{display:inline-block;min-width:5rem;margin-right:.5rem;text-align:right}.post .post-copyright .copyright-item .item-title:after{content:" :"}.post .post-reward{margin-top:20px;padding-top:10px;text-align:center;border-top:1px dashed #e6e6e6}.post .post-reward .reward-button{margin:15px 0;padding:3px 7px;display:inline-block;color:#c05b4d;border:1px solid #c05b4d;border-radius:5px;cursor:pointer}.post .post-reward .reward-button:hover{color:#fefefe;background-color:#c05b4d;-webkit-transition:.5s;transition:.5s}.post .post-reward #reward:checked~.qr-code{display:block}.post .post-reward #reward:checked~.reward-button,.post .post-reward .qr-code{display:none}.post .post-reward .qr-code .qr-code-image{display:inline-block;min-width:200px;width:40%;margin-top:15px}.post .post-reward .qr-code .qr-code-image span{display:inline-block;width:100%;margin:8px 0}.post .post-reward .qr-code .image{width:200px;height:200px}.post .post-footer{margin-top:20px;border-top:1px solid #e6e6e6;font-family:Athelas,STHeiti,Microsoft Yahei,serif}.post .post-footer .post-tags{padding:15px 0}.post .post-footer .post-tags a{margin-right:5px;color:#c05b4d;word-break:break-all}.post .post-footer .post-tags a:before{content:"#"}.post .post-footer .post-nav{margin:1em 0}.post .post-footer .post-nav:after,.post .post-footer .post-nav:before{content:" ";display:table}.post .post-footer .post-nav:after{clear:both}.post .post-footer .post-nav .next,.post .post-footer .post-nav .prev{font-weight:600;font-size:18px;font-family:Athelas,STHeiti,Microsoft Yahei,serif;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;-webkit-transition-duration:.3s;transition-duration:.3s}.post .post-footer .post-nav .prev{float:left}.post .post-footer .post-nav .prev:hover{color:#c05b4d;-webkit-transform:translateX(-4px);-ms-transform:translateX(-4px);transform:translateX(-4px)}.post .post-footer .post-nav .next{float:right}.post .post-footer .post-nav .next:hover{color:#c05b4d;-webkit-transform:translateX(4px);-ms-transform:translateX(4px);transform:translateX(4px)}.post .post-footer .post-nav .nav-mobile{display:none}@media screen and (max-width:800px){.post .post-footer .post-nav .nav-default{display:none}.post .post-footer .post-nav .nav-mobile{display:inline}}.post .post-outdated .hint{border-left:4px solid #42acf3;background-color:#eff5ff;border-color:#42acf3}.post .post-outdated .hint,.post .post-outdated .warn{position:relative;margin-top:20px;margin-bottom:20px;padding:5px 10px}.post .post-outdated .warn{border-left:4px solid #f9cf63;background-color:#ffffc0;border-color:#f9cf63}.pagination{margin:2em 0}.pagination:after,.pagination:before{content:" ";display:table}.pagination:after{clear:both}.pagination .next,.pagination .prev{font-weight:600;font-size:20px;font-family:Athelas,STHeiti,Microsoft Yahei,serif;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;-webkit-transition-duration:.3s;transition-duration:.3s}.pagination .prev{float:left}.pagination .prev:hover{color:#c05b4d;-webkit-transform:translateX(-4px);-ms-transform:translateX(-4px);transform:translateX(-4px)}.pagination .next{float:right}.pagination .next:hover{color:#c05b4d;-webkit-transform:translateX(4px);-ms-transform:translateX(4px);transform:translateX(4px)}.footer{margin-top:2em}.footer .social-links{text-align:center}.footer .social-links .iconfont{font-size:30px}.footer .social-links .iconfont+.iconfont{margin-left:10px}.footer .social-links .iconfont:hover{color:#c05b4d}.footer .copyright{margin:10px 0;color:#8a8a8a;text-align:center;font-family:Athelas,STHeiti,Microsoft Yahei,serif}.footer .copyright .hexo-link,.footer .copyright .theme-link{color:#c05b4d}.footer .copyright .copyright-year{display:block}.footer .copyright .copyright-year .heart{font-size:14px}.archive{margin:2em 0;max-width:550px}.archive .archive-title{font-family:Athelas,STHeiti,Microsoft Yahei,serif}.archive .archive-title.category,.archive .archive-title.tag{margin:15px 0}.archive .archive-title .archive-name{margin:0;display:inline-block;font-weight:400;font-size:30px;line-height:32px}.archive .archive-title .archive-post-counter{color:#8a8a8a}.archive .collection-title{font-family:Athelas,STHeiti,Microsoft Yahei,serif}.archive .collection-title .archive-year{margin:15px 0;font-weight:400;font-size:28px;line-height:30px}.archive .archive-post{padding:3px 20px;border-left:1px solid #cacaca}.archive .archive-post .archive-post-time{margin-right:10px;color:#8a8a8a}.archive .archive-post .archive-post-title .archive-post-link{color:#c05b4d}.archive .archive-post::first-child{margin-top:10px}.archive .archive-post:hover{border-left:3px solid #c05b4d;-webkit-transition:.2s ease-out;transition:.2s ease-out;-webkit-transform:translateX(4px);-ms-transform:translateX(4px);transform:translateX(4px)}.archive .archive-post:hover .archive-post-time{color:#717171}.archive .archive-post:hover .archive-post-title .archive-post-link{color:#a14639}@media screen and (max-width:800px){.archive{margin-left:auto;margin-right:auto}.archive .archive-title .archive-name{font-size:26px}.archive .collection-title .archive-year{margin:10px 0;font-size:24px}.archive .archive-post{padding:5px 10px}.archive .archive-post .archive-post-time{font-size:13px;display:block}}.tag-cloud{margin:2em 0 3em;text-align:center;font-family:Athelas,STHeiti,Microsoft Yahei,serif}.tag-cloud .tag-cloud-title{display:inline-block;font-size:18px;color:#c05b4d;border-bottom:2px solid #c05b4d}.tag-cloud .tag-cloud-tags{margin:10px 0}.tag-cloud .tag-cloud-tags a{display:inline-block;position:relative;margin:5px 10px;word-wrap:break-word;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.tag-cloud .tag-cloud-tags a .tag-count{display:inline-block;position:relative;top:-8px;right:-2px;color:#c05b4d;font-size:12px}.tag-cloud .tag-cloud-tags a:active,.tag-cloud .tag-cloud-tags a:focus,.tag-cloud .tag-cloud-tags a:hover{color:#c05b4d;-webkit-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1)}.categories{margin:2em 0 3em;text-align:center;font-family:Athelas,STHeiti,Microsoft Yahei,serif}.categories .categories-title{display:inline-block;font-size:18px;color:#c05b4d;border-bottom:2px solid #c05b4d}.categories .categories-tags{margin:10px 0}.categories .categories-tags .category-link{display:inline-block;position:relative;margin:5px 10px;word-wrap:break-word;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.categories .categories-tags .category-link .category-count{display:inline-block;position:relative;top:-8px;right:-2px;color:#c05b4d;font-size:12px}.categories .categories-tags .category-link:active,.categories .categories-tags .category-link:focus,.categories .categories-tags .category-link:hover{color:#c05b4d;-webkit-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1)}.slideout-menu{position:fixed;top:0;left:0;bottom:0;width:180px;min-height:100vh;overflow-y:hidden;-webkit-overflow-scrolling:touch;z-index:0;display:none}.slideout-panel{position:relative;z-index:1;background-color:#fefefe;min-height:100vh}.slideout-open,.slideout-open .slideout-panel,.slideout-open body{overflow:hidden}.slideout-open .slideout-menu{display:block}.mobile-navbar{display:none;position:fixed;top:0;left:0;width:100%;height:50px;background:#fefefe;-webkit-box-shadow:0 2px 2px #cacaca;box-shadow:0 2px 2px #cacaca;text-align:center;-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;transition:transform .3s ease;transition:transform .3s ease,-webkit-transform .3s ease;z-index:99}.mobile-navbar.fixed-open{-webkit-transform:translate3d(180px,0,0);transform:translate3d(180px,0,0)}.mobile-navbar .mobile-header-logo{display:inline-block;margin-right:50px}.mobile-navbar .mobile-header-logo .logo{font-size:22px;line-height:50px;font-family:Chancery,cursive}.mobile-navbar .mobile-navbar-icon{color:#c05b4d;height:50px;width:50px;font-size:24px;text-align:center;float:left;position:relative;-webkit-transition:background .5s;transition:background .5s}@-webkit-keyframes clickfirst{0%{-webkit-transform:translateY(6px) rotate(0deg);transform:translateY(6px) rotate(0deg)}to{-webkit-transform:translateY(0) rotate(45deg);transform:translateY(0) rotate(45deg)}}@keyframes clickfirst{0%{-webkit-transform:translateY(6px) rotate(0deg);transform:translateY(6px) rotate(0deg)}to{-webkit-transform:translateY(0) rotate(45deg);transform:translateY(0) rotate(45deg)}}@-webkit-keyframes clickmid{0%{opacity:1}to{opacity:0}}@keyframes clickmid{0%{opacity:1}to{opacity:0}}@-webkit-keyframes clicklast{0%{-webkit-transform:translateY(-6px) rotate(0deg);transform:translateY(-6px) rotate(0deg)}to{-webkit-transform:translateY(0) rotate(-45deg);transform:translateY(0) rotate(-45deg)}}@keyframes clicklast{0%{-webkit-transform:translateY(-6px) rotate(0deg);transform:translateY(-6px) rotate(0deg)}to{-webkit-transform:translateY(0) rotate(-45deg);transform:translateY(0) rotate(-45deg)}}@-webkit-keyframes outfirst{0%{-webkit-transform:translateY(0) rotate(-45deg);transform:translateY(0) rotate(-45deg)}to{-webkit-transform:translateY(-6px) rotate(0deg);transform:translateY(-6px) rotate(0deg)}}@keyframes outfirst{0%{-webkit-transform:translateY(0) rotate(-45deg);transform:translateY(0) rotate(-45deg)}to{-webkit-transform:translateY(-6px) rotate(0deg);transform:translateY(-6px) rotate(0deg)}}@-webkit-keyframes outmid{0%{opacity:0}to{opacity:1}}@keyframes outmid{0%{opacity:0}to{opacity:1}}@-webkit-keyframes outlast{0%{-webkit-transform:translateY(0) rotate(45deg);transform:translateY(0) rotate(45deg)}to{-webkit-transform:translateY(6px) rotate(0deg);transform:translateY(6px) rotate(0deg)}}@keyframes outlast{0%{-webkit-transform:translateY(0) rotate(45deg);transform:translateY(0) rotate(45deg)}to{-webkit-transform:translateY(6px) rotate(0deg);transform:translateY(6px) rotate(0deg)}}.mobile-navbar .mobile-navbar-icon span{position:absolute;left:15px;top:25px;left:calc((100% - 20px) / 2);top:calc((100% - 1px) / 2);width:20px;height:1px;background-color:#c05b4d}.mobile-navbar .mobile-navbar-icon span:first-child{-webkit-transform:translateY(6px) rotate(0deg);-ms-transform:translateY(6px) rotate(0deg);transform:translateY(6px) rotate(0deg)}.mobile-navbar .mobile-navbar-icon span:nth-child(3){-webkit-transform:translateY(-6px) rotate(0deg);-ms-transform:translateY(-6px) rotate(0deg);transform:translateY(-6px) rotate(0deg)}.mobile-navbar .mobile-navbar-icon.icon-click span:first-child{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:clickfirst;animation-name:clickfirst}.mobile-navbar .mobile-navbar-icon.icon-click span:nth-child(2){-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:clickmid;animation-name:clickmid}.mobile-navbar .mobile-navbar-icon.icon-click span:nth-child(3){-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:clicklast;animation-name:clicklast}.mobile-navbar .mobile-navbar-icon.icon-out span:first-child{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:outfirst;animation-name:outfirst}.mobile-navbar .mobile-navbar-icon.icon-out span:nth-child(2){-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:outmid;animation-name:outmid}.mobile-navbar .mobile-navbar-icon.icon-out span:nth-child(3){-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:outlast;animation-name:outlast}.mobile-menu{background-color:hsla(45,46%,95%,.5)}.mobile-menu .mobile-menu-list{position:relative;list-style:none;margin-top:50px;padding:0;border-top:1px solid #f8f5ec}.mobile-menu .mobile-menu-list .mobile-menu-item{padding:10px 30px;border-bottom:1px solid #f8f5ec}.mobile-menu .mobile-menu-list a{font-size:18px;font-family:Athelas,STHeiti,Microsoft Yahei,serif}.mobile-menu .mobile-menu-list a:hover{color:#c05b4d}@media screen and (max-width:800px){.mobile-navbar{display:block}}.back-to-top{display:none;position:fixed;right:20px;bottom:20px;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;-webkit-transition-duration:.3s;transition-duration:.3s;z-index:10}.back-to-top:hover{-webkit-transform:translateY(-5px);-ms-transform:translateY(-5px);transform:translateY(-5px)}@media screen and (max-width:800px){.back-to-top{display:none!important}}.not-found{text-align:center}.not-found .error-emoji{color:#363636;font-size:3rem}.not-found .error-text{color:#797979;font-size:1.25rem}.not-found .error-link{margin-top:2rem}.not-found .error-link a{color:#c05b4d} +/*# sourceMappingURL=even.min.css.map*/ \ No newline at end of file diff --git a/themes/even/static/dist/even.min.css.map b/themes/even/static/dist/even.min.css.map new file mode 100644 index 0000000..65448b7 --- /dev/null +++ b/themes/even/static/dist/even.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_variables.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_common/_normalize.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/style.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_base.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_common/_utils.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_iconfont.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_header.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_header/_logo.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_header/_menu.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_common/_animation.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_header.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_toc.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_content.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_code.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_copyright.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_reward.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_footer.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_outdated.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_pagination.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_footer.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_footer/_social.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_footer/_copyright.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_archive.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_tags.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_categories.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_slideout.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_mobile.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_back-to-top.scss","webpack:///./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_404.scss"],"names":[],"mappings":"AAiFA,WACE,qBACA,kCACA,8QAKA,oBACA,iBAAkB;;AC1FpB,4DAQA,KACE,uBACA,0BACA,6BAA8B,CAqBhC,2FAaE,aAAc,CAQhB,4BAIE,qBACA,uBAAwB,CAQ1B,sBACE,aACA,QAAS,CCQX,kBDEE,YAAa,CAUf,EACE,4BAA6B,CAO/B,iBAEE,SAAU,CAUZ,YACE,wBAAyB,CAO3B,SAEE,eAAiB,CAOnB,IACE,iBAAkB,CAQpB,GACE,cACA,cAAgB,CAOlB,KACE,gBACA,UAAW,CAOb,MACE,aAAc,CAOhB,QAEE,cACA,cACA,kBACA,uBAAwB,CAG1B,IACE,SAAW,CAGb,IACE,aAAe,CAUjB,IACE,QAAS,CAOX,eACE,eAAgB,CAUlB,OACE,eAAgB,CAOlB,GAEE,+BAAuB,uBACvB,QAAS,CAOX,IACE,aAAc,CAOhB,kBAIE,gCACA,aAAc,CAkBhB,sCAKE,cACA,aACA,QAAS,CAOX,OACE,gBAAiB,CAUnB,cAEE,mBAAoB,CAWtB,oEAIE,0BACA,cAAe,CAOjB,sCAEE,cAAe,CAOjB,iDAEE,SACA,SAAU,CAQZ,MACE,kBAAmB,CAWrB,uCAEE,8BAAsB,sBACtB,SAAU,CASZ,4FAEE,WAAY,CASd,mBACE,6BAEA,+BACA,sBAAuB,CASzB,+FAEE,uBAAwB,CAO1B,SACE,wBACA,aACA,0BAA8B,CAQhC,OACE,SACA,SAAU,CAOZ,SACE,aAAc,CAQhB,SACE,eAAiB,CAUnB,MACE,yBACA,gBAAiB,CAGnB,MAEE,SAAU,CEvaZ,KACE,eACA,8BAAsB,sBAGxB,KACE,UACA,SACA,4DACA,gBACA,mCACA,kCACA,gBACA,cACA,mBACA,uBACA,4BHPkB,CIQjB,oCDGD,KACE,YAAa,CACd,CAGH,iBACE,mBACA,UAAW,CACZ,YAFC,mBACA,UAAW,CAkBb,IACE,eACA,YACA,qBACA,qBAAsB,CAGxB,EACE,cACA,oBAAqB,CAIrB,GACE,cHMM,CGJP,MADC,iDHF+D,CGGhE,GAFC,cHOM,CGLP,GAFC,cHQM,CGNP,MADC,iDHF+D,CGGhE,GAFC,cHSM,CGPP,MAFC,eACA,iDHF+D,CGMnE,WACE,cACA,WHpBuB,CI7BtB,oCDqDD,WACE,WACA,yEHtCU,CGuCX,CAGH,iBACE,cH5B+B,CGkCjC,iBACC,kBACA,sBACA,iBACA,QAAS,CAEV,wBACC,kBACA,MACA,OACA,WACA,WAAY,CE5Fb,WACE,qBAEA,kCACA,wMAG4D,CAU9D,UACE,+BACA,kBACA,mCACA,+BACA,kCACA,cAAe,CAGjB,uBACE,gBACA,gBACA,kBACA,QAAS,CAEX,oBACE,eAAgB,CAElB,oBACE,gBACA,gBACA,kBACA,QAAS,CAEX,sBACE,gBACA,kBACA,QAAS,CAEX,qBACE,eAAgB,CAElB,mBACE,eAAgB,CAElB,4BACE,gBACA,gBACA,kBACA,QAAS,CAEX,mBACE,gBACA,kBACA,QAAS,CAEX,sBACE,gBACA,gBACA,kBACA,QAAS,CAEX,oBACE,gBACA,kBACA,QAAS,CAEX,iBACE,eAAgB,CAElB,oBACE,eAAgB,CAElB,mBACE,gBACA,eACA,kBACA,QAAS,CAEX,oBACE,eAAgB,CAIlB,mBACE,eAAgB,CAElB,mBACE,eAAgB,CAElB,kBACE,eAAgB,CAElB,gBACE,eAAgB,CAElB,mBACE,eAAgB,CCxGlB,QAEE,YNwEwB,CMpEzB,6BFPG,YACA,aAAc,CAGhB,cACE,UAAW,CEJf,sBCCE,UAAW,CAMZ,4BAHG,eACA,4BPwFoD,COvFrD,oCDNH,sBCWI,YAAa,CACd,sBCXD,WAAY,CAuBb,2BApBG,qBACA,kBACA,eACA,mBACA,iDRgD+D,CQjChE,sCC1BD,qBACA,sBACA,gCAAwB,wBACxB,mCAA2B,2BAC3B,uCAA+B,+BAC/B,kBACA,eAAgB,CDeb,iDAJG,gBRkFoB,CQjFrB,6CCTH,WACA,kBACA,WACA,WACA,SACA,SACA,UACA,mBACA,gCAAyB,wBACzB,uCAAgC,+BAChC,4CAAoC,oCACrC,8MAOG,QACA,MAAO,CACR,2CDLC,cRiFoB,CQhFrB,oCFtBL,qBE4BI,YAAa,CACd,qCFnBD,QACE,iBACA,iBAAkB,CACnB,CIbH,OACE,mBACA,+BV6BkB,CU1BpB,MACE,eV0GoB,CU7FrB,YAVG,4BVsBgB,CUrBjB,mBCbD,kBAAmB,CA4CpB,+BAzCG,SACA,eACA,gBACA,iDXqD+D,CWpDhE,8BFPD,qBACA,sBACA,gCAAwB,wBACxB,mCAA2B,2BAC3B,uCAA+B,+BAC/B,kBACA,eAAgB,CEKf,qCFFC,WACA,kBACA,WACA,WACA,SACA,SACA,UACA,mBACA,gCAAyB,wBACzB,uCAAgC,+BAChC,4CAAoC,oCCXxC,8KDmBM,QACA,MAAO,CCpBb,8BCMI,eACA,aXqBe,CWOhB,yCAzBG,cAAe,CAChB,6CAGC,cAAe,CAahB,+CAVG,aAAc,CASf,sDANG,aAAa,sDAIb,aXtBU,CWuBX,gDAMD,aAAa,iBCvCnB,kBACA,YACA,kBACA,aACA,kDACA,kBACA,+BACA,gDAAyC,wCACzC,qBACA,8BAAsB,sBAsCvB,gCAnCG,cACA,eACA,gBACA,wBAAyB,CAC1B,kCAGC,cZ+ImB,CYpHpB,mDAxBG,aAAc,CACf,yCAGC,aAAc,CACf,qCAGC,kBACA,iBZsIsB,CY5HvB,wCAPG,kBACA,YAAa,CACd,oDAGC,aAAc,CACf,mDAID,aZlCc,CYmCf,qCFrCL,gBE2CI,YAAa,CACd,qBChDD,oBAAqB,CAyItB,0IArIK,gBACA,iDbkD6D,CajD9D,sBAID,cACA,oBAAqB,CAStB,4BANG,+BbRc,CaSf,+BAGC,QAAS,CACV,+BAID,aACA,kBACA,kBACA,wBACA,qCACA,yCACA,gDAAyC,wCAK1C,iCAFG,QAAS,CACV,wBAID,qBACA,cAAe,CAChB,0BAGC,eACA,cACA,iBACA,gDAAwC,wCAczC,gCAXG,kBb1CsB,Ca2CvB,0DAGC,iBACA,yBb+HgD,Ca9HjD,mCAGC,wBbnDsB,CaoDvB,iDC9DH,YACA,eACA,4CACA,kBdO0B,CcN3B,yBAGC,gBACA,kBACA,admLkB,CclLnB,qCAGC,aACA,kBACA,gBACA,gDAAyC,wCACzC,iBAAkB,CAyHnB,2CAtHG,iBAAkB,CAcnB,iDAXG,kBACA,MACA,QACA,OACA,gBACA,eACA,gBACA,cACA,mBACA,cAAe,CAChB,+DAKC,cd6KiB,Cc5KlB,4DADC,Wd8KW,Cc7KZ,6DADC,Yd+Ka,Cc9Kd,8DADC,adgLe,Cc/KhB,8DADC,adiLe,CchLhB,uEADC,sBdkLiC,CcjLlC,+DADC,cdmLiB,CclLlB,8DADC,adoLe,CcnLhB,+DADC,cdqLiB,CcpLlB,+DADC,cdsLiB,CcrLlB,+DADC,cduLiB,CctLlB,kIADC,oBdyL6B,CcxL9B,mEADC,kBd0LyB,CczL1B,mEADC,kBd2LyB,Cc1L1B,qEADC,qBd4L8B,Cc3L/B,8DADC,ad6Le,Cc5LhB,+DADC,cd8LiB,Cc7LlB,iEADC,gBd+LqB,Cc9LtB,+DADC,cdgMiB,Cc/LlB,8DADC,adiMe,CchMhB,gEADC,edkMmB,CcjMpB,iEADC,gBdoMqB,CcnMtB,6DADC,YdqMa,CcpMd,iEADC,gBdsMqB,CcrMtB,kEADC,iBduMuB,CctMxB,iEADC,gBdwMqB,CcvMtB,+DADC,cdyMiB,CcxMlB,+DADC,cd0MiB,CczMlB,8DADC,ad2Me,Cc1MhB,iEADC,gBd4MqB,Cc3MtB,+DADC,cd6MiB,Cc5MlB,+DADC,cd8MiB,Cc7MlB,gEADC,ed+MmB,Cc9MpB,gEADC,edgNmB,Cc/MpB,qEADC,oBdiN6B,CchN9B,6HADC,cdmNiB,CclNlB,+DADC,cdoNiB,CcnNlB,+CAKC,SACA,sBAAuB,CACxB,6CAID,WACA,adhBU,CcsBX,iDAHG,SACA,qBAAsB,CACvB,2CAMD,WAAoC,CACrC,2HAGC,SACA,UACA,WACA,wBAAyB,CAC1B,gHAKG,ad2HY,Cc1Hb,iLAKC,adsHY,CcrHb,iWAQC,ad8GW,Cc7GZ,mSAOC,aduGU,CctGX,uWAQC,ad+Fc,Cc9Ff,udAUC,adqFW,CcpFZ,oHAIC,adiFa,CchFd,yDAGC,kBd8EY,Cc7Eb,0DAGC,iBAAkB,CACnB,wDAGC,eAAiB,CAClB,kCDpED,iBAAkB,CACnB,+CAIG,cACA,gBACA,iDbhB6D,CaqB9D,qDAFG,+BbpEY,CaqEb,wBAKH,qBACA,cACA,yBACA,yBACA,4BACA,kBACA,0CAAkC,kCAClC,eACA,iBACA,2GACA,aAAc,CACf,gCAGC,WAAY,CACb,kCAIG,iBAAkB,CACnB,iCAGC,gBAAiB,CAClB,gCAGC,eAAgB,CACjB,yCAGC,cACA,eAAiB,CAClB,+BAID,gBACA,mBAAoB,CACrB,kCAGC,iBAAkB,CACnB,iCAGC,gBAAiB,CAClB,gCAGC,eAAgB,CACjB,kCAGC,gBACA,iBAAkB,CACnB,sBE5ID,gBACA,iBACA,6BfgCkB,CePnB,sCAtBG,YAAa,CAqBd,wCAlBG,cACA,oBAAqB,CAKtB,8CAFG,+BfFY,CeGb,kDAID,qBACA,eACA,mBACA,gBAAiB,CAKlB,wDAFG,YAAa,CACd,mBCxBL,gBACA,iBACA,kBACA,6BhB+BkB,CgBkBnB,kCA9CG,cACA,gBACA,qBACA,cACA,yBACA,kBACA,cAAe,CAOhB,wCAJG,cACA,yBACA,uBAAgB,eACjB,4CAKC,aAAc,CACf,8EAQD,YAAa,CAmBd,2CAhBG,qBACA,gBACA,UACA,eAAgB,CAOjB,gDAJG,qBACA,WACA,YAAa,CACd,mCAID,YACA,YAAa,CACd,mBC9CH,gBACA,6BACA,iDjBqDiE,CiBDlE,8BAjDG,cjBqIsB,CiB1HvB,gCARG,iBACA,cACA,oBAAqB,CAKtB,uCAFG,WAAY,CACb,6BAKH,YAAa,CAkCd,uEbvDC,YACA,aAAc,CMKlB,mCNDI,UAAW,CMCf,sEOoBM,gBACA,eACA,kDACA,8CAA8B,oHAC9B,4CAAoC,oCACpC,gCAAyB,wBAC1B,mCAGC,UAAW,CAMZ,yCAHG,cACA,mCAA2B,0DAC5B,mCAID,WAAY,CAMb,yCAHG,cACA,kCAA0B,wDAC3B,yCAID,YAAa,CACd,oCPhDL,0COwDQ,YAAa,CACd,yCAGC,cAAe,CAChB,4BChEH,8BACA,yBACA,oBAA+B,CAChC,sDAPC,kBACA,gBACA,mBACA,gBAAiB,CAclB,2BAHC,8BACA,yBACA,oBAAqB,CCdzB,YACE,YnB+PuB,CmBjOxB,qCfhCG,YACA,aAAc,CAGhB,kBACE,UAAW,CeJf,oCAMI,gBACA,eACA,kDACA,8CAA8B,oHAC9B,4CAAoC,oCACpC,gCAAyB,wBAC1B,kBAGC,UAAW,CAMZ,wBAHG,cACA,mCAA2B,0DAC5B,kBAID,WAAY,CAMb,wBAHG,cACA,kCAA0B,wDC5BhC,QACE,cpBuQqB,CoBnQtB,sBCJC,iBAAkB,CAanB,gCAVG,crB0QwB,CqBjQzB,0CANG,gBrBoQwB,CqBnQzB,sCAGC,arBJc,CqBKf,mBCXH,cACA,cACA,kBACA,iDtBoDiE,CsBtClE,6DAVG,atBDgB,CsBEjB,mCAGC,aAAc,CAKf,0CAFG,cAAe,CCfrB,SACE,aACA,evBuRuB,CuBnNxB,wBAjEG,iDvBmD+D,CuBjChE,6DAdG,aAAc,CACf,sCAGC,SACA,qBACA,gBACA,eACA,gBAA0C,CAC3C,8CAGC,avBYa,CuBXd,2BAID,iDvB8B+D,CuBtBhE,yCALG,cACA,gBACA,eACA,gBAA8C,CAC/C,uBAID,iBACA,6BvBNU,CuBqCX,0CA5BG,kBACA,avBTa,CuBUd,8DAKG,avBzCY,CuB0Cb,oCAID,eAAgB,CACjB,6BAGC,8BACA,wDACA,yFvBuPwC,CuB9OzC,gDANG,aAA8B,CAC/B,oEAGC,aAAgC,CACjC,oCAML,SACE,iBACA,iBAAkB,CAmBnB,sCAhBG,cAAwC,CACzC,yCAGC,cACA,cAA4C,CAC7C,uBAGC,gBvB8MgC,CuBxMjC,0CAHG,eACA,aAAc,CACf,CC5FP,WACE,iBACA,kBACA,iDxBqDiE,CwBflE,4BAnCG,qBACA,eACA,cACA,+BxBFgB,CwBGjB,2BAGC,aAAc,CA2Bf,6BAxBG,qBACA,kBACA,gBACA,qBACA,gCAAyB,wBACzB,8CAA8B,oHAC9B,4CAAoC,oCAiBrC,wCAdG,qBACA,kBACA,SACA,WACA,cACA,cxB6SuB,CwB5SxB,0GAKC,cACA,6BAAqB,8CCxC7B,YACE,iBACA,kBACA,iDzBwDiE,CyBlBlE,8BAnCG,qBACA,eACA,cACA,+BzBCgB,CyBAjB,6BAGC,aAAc,CA2Bf,4CAxBG,qBACA,kBACA,gBACA,qBACA,gCAAyB,wBACzB,8CAA8B,oHAC9B,4CAAoC,oCAiBrC,4DAdG,qBACA,kBACA,SACA,WACA,cACA,czBgTuB,CyB/SxB,uJAKC,cACA,6BAAqB,8CClC7B,eACE,eACA,MACA,OACA,SACA,YACA,iBACA,kBACA,iCACA,UACA,YAAa,CAGf,gBACE,kBACA,UACA,yBACA,gBAAiB,CAGnB,kEAGE,eAAgB,CAGlB,8BACE,aAAc,CC3BhB,eACE,aACA,eACA,MACA,OACA,WACA,YACA,mBACA,kEACA,kBACA,8CAAgC,6HAChC,UAAW,CA6BZ,0BA1BG,yCAAuC,iCACxC,mCAGC,qBACA,iBAAkB,CAOnB,yCAJG,eACA,iBACA,4B3BqEkD,C2BpEnD,mCAID,cACA,YACA,WACA,eACA,kBACA,WACA,kBACA,kCAA2B,0BAG5B,8BlBPC,GACE,+CAAuC,uCAIzC,GACE,8CAAsC,6DANxC,GACE,+CAAuC,uCAIzC,GACE,8CAAsC,uCAI1C,4BACE,GACE,SAAU,CAGZ,GACE,SAAU,sBALZ,GACE,SAAU,CAGZ,GACE,SAAU,EAId,6BACE,GACE,gDAAwC,wCAG1C,GACE,+CAAuC,6DALzC,GACE,gDAAwC,wCAG1C,GACE,+CAAuC,wCAI3C,4BACE,GACE,+CAAuC,uCAGzC,GACE,gDAAwC,6DAL1C,GACE,+CAAuC,uCAGzC,GACE,gDAAwC,yCAI5C,0BACE,GACE,SAAU,CAGZ,GACE,SAAU,oBALZ,GACE,SAAU,CAGZ,GACE,SAAU,EAId,2BACE,GACE,8CAAsC,sCAGxC,GACE,+CAAuC,2DALzC,GACE,8CAAsC,sCAGxC,GACE,+CAAuC,wCAI3C,wCACE,kBAEA,UACA,SACA,6BACA,2BACA,WACA,WACA,wBT9FgB,CSuGjB,oDANG,+CAAuC,kFACxC,qDAGC,gDAAwC,oFAK1C,+DACE,+BAAwB,uBACxB,iCAAyB,yBACzB,kCAA0B,0BAG5B,gEACE,+BAAwB,uBACxB,iCAAyB,yBACzB,gCAAwB,wBAG1B,gEACE,+BAAwB,uBACxB,iCAAyB,yBACzB,iCAAyB,yBAK3B,6DACE,+BAAwB,uBACxB,iCAAyB,yBACzB,gCAAwB,wBAG1B,8DACE,+BAAwB,uBACxB,iCAAyB,yBACzB,8BAAsB,sBAGxB,8DACE,+BAAwB,uBACxB,iCAAyB,yBACzB,+BAAuB,uBkB1G7B,aACE,oC3BpC0B,C2B2D3B,+BApBG,kBACA,gBACA,gBACA,UACA,4B3B3CwB,C2B0DzB,iDAZG,kBACA,+B3B/CsB,C2BgDvB,iCAGC,eACA,iD3BH6D,C2BQ9D,uCAFG,a3BvDY,C2BwDb,oCAML,eACE,aAAc,CACf,CCvEH,aACE,aACA,eACA,WACA,YACA,8CAA8B,oHAC9B,4CAAoC,oCACpC,gCAAyB,wBACzB,UAAW,CAKZ,mBAFG,mCAA2B,0DAC5B,oCAID,aACE,sBAAwB,CACzB,CClBH,WACE,iBAAkB,CAmBnB,wBAhBG,cACA,cAAe,CAChB,uBAGC,cACA,iBAAkB,CACnB,uBAGC,eAAgB,CAKjB,yBAFG,a7BVc,C6BWf","file":"even.min.css","sourcesContent":["// ==============================\r\n// Variables\r\n// ==============================\r\n\r\n// ========== Theme Color ========== //\r\n// Config here to change theme color\r\n// Default | Mint Green | Cobalt Blue | Hot Pink | Dark Violet\r\n$theme-color-config: 'Default';\r\n\r\n// Default theme color map\r\n$theme-color-map: (\r\n 'Default': #c05b4d #f8f5ec,\r\n 'Mint Green': #16982B #f5f5f5,\r\n 'Cobalt Blue': #0047AB #f0f2f5,\r\n 'Hot Pink': #FF69B4 #f8f5f5,\r\n 'Dark Violet': #9932CC #f5f4fa\r\n);\r\n\r\n// Check theme color config.\r\n// if it does not exist, use default theme color.\r\n@if not(map-has-key($theme-color-map, $theme-color-config)) {\r\n $theme-color-config: 'Default';\r\n}\r\n$theme-color-list: map-get($theme-color-map, $theme-color-config);\r\n\r\n// Default theme color of the site.\r\n$theme-color: nth($theme-color-list, 1) !default;\r\n\r\n// Deputy theme color of the site.\r\n$deputy-color: nth($theme-color-list, 2) !default;\r\n\r\n\r\n// ========== Color ========== //\r\n$black: #0a0a0a !default;\r\n$white: #fefefe !default;\r\n$light-gray: #e6e6e6 !default;\r\n$gray: #cacaca !default;\r\n$dark-gray: #8a8a8a !default;\r\n\r\n\r\n// ========== Global ========== //\r\n// Text color of the body.\r\n$global-font-color: #34495e !default;\r\n\r\n// Font size attribute applied to '' and ''.\r\n$global-font-size: 16px !default;\r\n\r\n// Global width of ''.\r\n$global-body-width: 800px !default;\r\n\r\n// Padding of container main\r\n$global-container-padding: 0 20px !default;\r\n\r\n// Default line height for all type. `$global-lineheight` is 24px while `$global-font-size` is 16px.\r\n$global-lineheight: 1.5 !default;\r\n\r\n// Font family of the site.\r\n$global-font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif !default;\r\n\r\n// Serif font family of the site.\r\n$global-serif-font-family: Athelas, STHeiti, Microsoft Yahei, serif !default;\r\n\r\n// Background color of the site.\r\n$global-background: $white !default;\r\n\r\n// Headings font size of the site.\r\n$global-headings: (\r\n h1: 26px,\r\n h2: 24px,\r\n h3: 20px,\r\n h4: 16px,\r\n h5: 14px,\r\n h6: 14px\r\n) !default;\r\n\r\n\r\n// ========== Header ========== //\r\n// Padding of the site header.\r\n$header-padding: 20px 20px !default;\r\n\r\n// Font family: Chancery\r\n@font-face {\r\n font-family: 'Chancery';\r\n src: url('../fonts/chancery/apple-chancery-webfont.eot');\r\n src: local('Apple Chancery'), url('../fonts/chancery/apple-chancery-webfont.eot?#iefix') format('embedded-opentype'),\r\n url('../fonts/chancery/apple-chancery-webfont.woff2') format('woff2'),\r\n url('../fonts/chancery/apple-chancery-webfont.woff') format('woff'),\r\n url('../fonts/chancery/apple-chancery-webfont.ttf') format('truetype'),\r\n url('../fonts/chancery/apple-chancery-webfont.svg#apple-chancery') format('svg');\r\n font-weight: lighter;\r\n font-style: normal;\r\n}\r\n\r\n// Font size of the logo.\r\n$logo-font-size: 48px !default;\r\n\r\n// Font family of the logo.\r\n$logo-font-family: 'Chancery', cursive, LiSu, sans-serif !default;\r\n\r\n// Margin of menu item.\r\n$menu-item-margin-left: 10px !default;\r\n\r\n// Margin of menu item in mobile.\r\n$menu-item-mobile-margin: 5px !default;\r\n\r\n// Font size of menu item link.\r\n$menu-link-font-size: 18px !default;\r\n\r\n// Height of the mobile header.\r\n$mobile-navbar-height: 50px !default;\r\n\r\n// ========== Post ========== //\r\n// Margin bottom of post list.\r\n$post-list-margin-bottom: 20px !default;\r\n\r\n// Padding of the post.\r\n$post-padding: 1.5em 0 !default;\r\n\r\n// Border top of the post + post.\r\n$post-border: 1px solid $light-gray !default;\r\n\r\n// Font size of post title.\r\n$post-title-font-size: 27px !default;\r\n\r\n// Font weight of post title.\r\n$post-title-font-weight: 400 !default;\r\n\r\n// Margin top of the post meta (post time).\r\n$post-meta-margin-top: 5px !default;\r\n\r\n// Font color of the post meta.\r\n$post-meta-font-color: $dark-gray !default;\r\n\r\n// Border bottom of the read more link when hover it.\r\n$post-readMore-border-bottom: 1px solid $theme-color !default;\r\n\r\n// Margin top of the post footer.\r\n$post-footer-margin-top: 20px !default;\r\n\r\n// Border top of post footer.\r\n$post-footer-border-top: 1px solid $light-gray !default;\r\n\r\n// Padding of the post tags.\r\n$post-tags-padding: 15px 0 !default;\r\n\r\n// Font size of post pagination.\r\n$post-nav-font-size: 18px !default;\r\n\r\n\r\n// ========== TOC ========== //\r\n// Width of the post toc.\r\n$post-toc-width: 200px !default;\r\n\r\n// Backgroud color of the post toc.\r\n$post-toc-backgroud: rgba($deputy-color, 0.6) !default;\r\n\r\n// Margin left of the post toc.\r\n$post-toc-margin-left: $global-body-width - 15px !default;\r\n\r\n// Font size of the post toc title.\r\n$post-toc-title-size: 20px !default;\r\n\r\n// Font size of the post toc content.\r\n$post-toc-content: 15px !default;\r\n\r\n// List style of the post toc list.\r\n$post-toc-list-style: square !default;\r\n\r\n// Max screen media of the post toc.\r\n$toc-max-sreen-width: 2 * $post-toc-width + $post-toc-margin-left !default;\r\n\r\n// ========== Content ========== //\r\n// Headings anchor.\r\n$content-headings-anchor: \"\" !default;\r\n\r\n// Border bottom of the link when hover it.\r\n$content-link-border: 1px solid $theme-color !default;\r\n\r\n// Background color of the blockquote.\r\n$content-blockquote-backgroud: rgba($theme-color, 0.05) !default;\r\n\r\n// Border left of the blockquote.\r\n$content-blockquote-border-left: 3px solid rgba($theme-color, 0.3) !default;\r\n\r\n// Border color of the table.\r\n$content-table-border-color: darken($deputy-color, 3%) !default;\r\n\r\n// ========== Code ========== //\r\n// Color of the code.\r\n$code-color: #c7254e !default;\r\n\r\n// Font size of code.\r\n$code-font-size: 13px !default;\r\n\r\n// Font family of the code.\r\n$code-font-family: Consolas, Monaco, Menlo, Consolas, monospace !default;\r\n\r\n// Color of code highlight, solarized.\r\n$code-highlight-color: (\r\n comment: #93a1a1,\r\n keyword: #859900,\r\n number: #2aa198,\r\n title: #268bd2,\r\n attribute: #b58900,\r\n symbol: #cb4b16,\r\n built_in: #dc322f,\r\n formula: #eee8d5\r\n) !default;\r\n\r\n// Code type list.\r\n$code-type-list: (\r\n // Custom code type\r\n language-bash: \"Bash\",\r\n language-c: \"C\",\r\n language-cs: \"C#\",\r\n language-cpp: \"C++\",\r\n language-css: \"CSS\",\r\n language-coffeescript: \"CoffeeScript\",\r\n language-html: \"HTML\",\r\n language-xml: \"XML\",\r\n language-http: \"HTTP\",\r\n language-json: \"JSON\",\r\n language-java: \"Java\",\r\n language-js: \"JavaScript\",\r\n language-javascript: \"JavaScript\",\r\n language-makefile: \"Makefile\",\r\n language-markdown: \"Markdown\",\r\n language-objectivec: \"Objective-C\",\r\n language-php: \"PHP\",\r\n language-perl: \"Perl\",\r\n language-python: \"Python\",\r\n language-ruby: \"Ruby\",\r\n language-sql: \"SQL\",\r\n language-shell: \"Shell\",\r\n\r\n language-erlang: \"Erlang\",\r\n language-go: \"Go\",\r\n language-groovy: \"Groovy\",\r\n language-haskell: \"Haskell\",\r\n language-kotlin: \"Kotlin\",\r\n language-less: \"Less\",\r\n language-lisp: \"Lisp\",\r\n language-lua: \"Lua\",\r\n language-matlab: \"Matlab\",\r\n language-rust: \"Rust\",\r\n language-scss: \"Scss\",\r\n language-scala: \"Scala\",\r\n language-swift: \"Swift\",\r\n language-typescript: \"TypeScript\",\r\n language-yml: \"YAML\",\r\n language-yaml: \"YAML\",\r\n language-toml: \"TOML\"\r\n) !default;\r\n\r\n// Color of the code background.\r\n$code-background: $deputy-color !default;\r\n\r\n\r\n// ========== Pagination ========== //\r\n// Margin of the pagination.\r\n$pagination-margin: 2em 0 !default;\r\n\r\n// Font size of the pagination (Without post, post pagination see line 140).\r\n$pagination-font-size: 20px !default;\r\n\r\n\r\n// ========== Footer ========== //\r\n// Margin top of the footer.\r\n$footer-margin-top: 2em !default;\r\n\r\n// Margin left of the social link.\r\n$social-link-margin-left: 10px !default;\r\n\r\n// Font size of the social icon.\r\n$social-icon-font-size: 30px !default;\r\n\r\n// Margin of the copyright.\r\n$copyright-margin: 10px 0 !default;\r\n\r\n\r\n// ========== Archive ========== //\r\n// Margin of the archive.\r\n$archive-margin: 2em 0px !default;\r\n\r\n// Max width of the archive.\r\n$archive-max-width: 550px !default;\r\n\r\n// Font size of the archive name.\r\n$archive-name-font-size: 30px !default;\r\n\r\n// Font size of the collection title.\r\n$collection-title-font-size: 28px !default;\r\n\r\n// Padding of the archive post.\r\n$archive-post-padding: 3px 20px !default;\r\n\r\n// Padding of the archive post in mobile.\r\n$archive-post-mobile-padding: 5px 10px !default;\r\n\r\n// Font size of the archive post time in mobile.\r\n$archive-post-mobile-time-font-size: 13px !default;\r\n\r\n// Border left of the archive post, use $archive-post-hover-border-left when hover it.\r\n$archive-post-border-left: 1px solid $gray !default;\r\n$archive-post-hover-border-left: 3px solid $theme-color !default;\r\n\r\n// Transition of the archive post when hover it.\r\n$archive-post-hover-transition: 0.2s ease-out !default;\r\n\r\n// Transform of the archive post when hover it.\r\n$archive-post-hover-transform: translateX(4px) !default;\r\n\r\n\r\n// ========== Tags ========== //\r\n// Font soze of the tag cloud title.\r\n$tag-cloud-title-size: 18px !default;\r\n\r\n// Border bottom of the tag cloud title.\r\n$tag-cloud-title-border-bottom: 2px solid $theme-color !default;\r\n\r\n// Margin of the tag cloud tags link.\r\n$tag-cloud-tags-link-margin: 5px 10px !default;\r\n\r\n\r\n// ========== Categories ========== //\r\n// Font soze of the categories title.\r\n$categories-title-size: 18px !default;\r\n\r\n// Border bottom of the categories title.\r\n$categories-title-border-bottom: 2px solid $theme-color !default;\r\n\r\n// Margin of the categories tags link.\r\n$categories-tags-link-margin: 5px 10px !default;\r\n\r\n// Font size of the category count\r\n$category-count-font-size: 12px !default;\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_variables.scss","/*! normalize.css v3.0.2 | MIT License | git.io/normalize */\r\n\r\n/**\r\n * 1. Set default font family to sans-serif.\r\n * 2. Prevent iOS text size adjust after orientation change, without disabling\r\n * user zoom.\r\n */\r\n\r\nhtml {\r\n font-family: sans-serif; /* 1 */\r\n -ms-text-size-adjust: 100%; /* 2 */\r\n -webkit-text-size-adjust: 100%; /* 2 */\r\n}\r\n\r\n/**\r\n * Remove default margin.\r\n */\r\n\r\nbody {\r\n margin: 0;\r\n}\r\n\r\n/* HTML5 display definitions\r\n ========================================================================== */\r\n\r\n/**\r\n * Correct `block` display not defined for any HTML5 element in IE 8/9.\r\n * Correct `block` display not defined for `details` or `summary` in IE 10/11\r\n * and Firefox.\r\n * Correct `block` display not defined for `main` in IE 11.\r\n */\r\n\r\narticle,\r\naside,\r\ndetails,\r\nfigcaption,\r\nfigure,\r\nfooter,\r\nheader,\r\nhgroup,\r\nmain,\r\nmenu,\r\nnav,\r\nsection,\r\nsummary {\r\n display: block;\r\n}\r\n\r\n/**\r\n * 1. Correct `inline-block` display not defined in IE 8/9.\r\n * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\r\n */\r\n\r\naudio,\r\ncanvas,\r\nprogress,\r\nvideo {\r\n display: inline-block; /* 1 */\r\n vertical-align: baseline; /* 2 */\r\n}\r\n\r\n/**\r\n * Prevent modern browsers from displaying `audio` without controls.\r\n * Remove excess height in iOS 5 devices.\r\n */\r\n\r\naudio:not([controls]) {\r\n display: none;\r\n height: 0;\r\n}\r\n\r\n/**\r\n * Address `[hidden]` styling not present in IE 8/9/10.\r\n * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.\r\n */\r\n\r\n[hidden],\r\ntemplate {\r\n display: none;\r\n}\r\n\r\n/* Links\r\n ========================================================================== */\r\n\r\n/**\r\n * Remove the gray background color from active links in IE 10.\r\n */\r\n\r\na {\r\n background-color: transparent;\r\n}\r\n\r\n/**\r\n * Improve readability when focused and also mouse hovered in all browsers.\r\n */\r\n\r\na:active,\r\na:hover {\r\n outline: 0;\r\n}\r\n\r\n/* Text-level semantics\r\n ========================================================================== */\r\n\r\n/**\r\n * Address styling not present in IE 8/9/10/11, Safari, and Chrome.\r\n */\r\n\r\nabbr[title] {\r\n border-bottom: 1px dotted;\r\n}\r\n\r\n/**\r\n * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.\r\n */\r\n\r\nb,\r\nstrong {\r\n font-weight: bold;\r\n}\r\n\r\n/**\r\n * Address styling not present in Safari and Chrome.\r\n */\r\n\r\ndfn {\r\n font-style: italic;\r\n}\r\n\r\n/**\r\n * Address variable `h1` font-size and margin within `section` and `article`\r\n * contexts in Firefox 4+, Safari, and Chrome.\r\n */\r\n\r\nh1 {\r\n font-size: 2em;\r\n margin: 0.67em 0;\r\n}\r\n\r\n/**\r\n * Address styling not present in IE 8/9.\r\n */\r\n\r\nmark {\r\n background: #ff0;\r\n color: #000;\r\n}\r\n\r\n/**\r\n * Address inconsistent and variable font size in all browsers.\r\n */\r\n\r\nsmall {\r\n font-size: 80%;\r\n}\r\n\r\n/**\r\n * Prevent `sub` and `sup` affecting `line-height` in all browsers.\r\n */\r\n\r\nsub,\r\nsup {\r\n font-size: 75%;\r\n line-height: 0;\r\n position: relative;\r\n vertical-align: baseline;\r\n}\r\n\r\nsup {\r\n top: -0.5em;\r\n}\r\n\r\nsub {\r\n bottom: -0.25em;\r\n}\r\n\r\n/* Embedded content\r\n ========================================================================== */\r\n\r\n/**\r\n * Remove border when inside `a` element in IE 8/9/10.\r\n */\r\n\r\nimg {\r\n border: 0;\r\n}\r\n\r\n/**\r\n * Correct overflow not hidden in IE 9/10/11.\r\n */\r\n\r\nsvg:not(:root) {\r\n overflow: hidden;\r\n}\r\n\r\n/* Grouping content\r\n ========================================================================== */\r\n\r\n/**\r\n * Address margin not present in IE 8/9 and Safari.\r\n */\r\n\r\nfigure {\r\n margin: 1em 40px;\r\n}\r\n\r\n/**\r\n * Address differences between Firefox and other browsers.\r\n */\r\n\r\nhr {\r\n -moz-box-sizing: content-box;\r\n box-sizing: content-box;\r\n height: 0;\r\n}\r\n\r\n/**\r\n * Contain overflow in all browsers.\r\n */\r\n\r\npre {\r\n overflow: auto;\r\n}\r\n\r\n/**\r\n * Address odd `em`-unit font size rendering in all browsers.\r\n */\r\n\r\ncode,\r\nkbd,\r\npre,\r\nsamp {\r\n font-family: monospace, monospace;\r\n font-size: 1em;\r\n}\r\n\r\n/* Forms\r\n ========================================================================== */\r\n\r\n/**\r\n * Known limitation: by default, Chrome and Safari on OS X allow very limited\r\n * styling of `select`, unless a `border` property is set.\r\n */\r\n\r\n/**\r\n * 1. Correct color not being inherited.\r\n * Known issue: affects color of disabled elements.\r\n * 2. Correct font properties not being inherited.\r\n * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.\r\n */\r\n\r\nbutton,\r\ninput,\r\noptgroup,\r\nselect,\r\ntextarea {\r\n color: inherit; /* 1 */\r\n font: inherit; /* 2 */\r\n margin: 0; /* 3 */\r\n}\r\n\r\n/**\r\n * Address `overflow` set to `hidden` in IE 8/9/10/11.\r\n */\r\n\r\nbutton {\r\n overflow: visible;\r\n}\r\n\r\n/**\r\n * Address inconsistent `text-transform` inheritance for `button` and `select`.\r\n * All other form control elements do not inherit `text-transform` values.\r\n * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.\r\n * Correct `select` style inheritance in Firefox.\r\n */\r\n\r\nbutton,\r\nselect {\r\n text-transform: none;\r\n}\r\n\r\n/**\r\n * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\r\n * and `video` controls.\r\n * 2. Correct inability to style clickable `input` types in iOS.\r\n * 3. Improve usability and consistency of cursor style between image-type\r\n * `input` and others.\r\n */\r\n\r\nbutton,\r\nhtml input[type=\"button\"], /* 1 */\r\ninput[type=\"reset\"],\r\ninput[type=\"submit\"] {\r\n -webkit-appearance: button; /* 2 */\r\n cursor: pointer; /* 3 */\r\n}\r\n\r\n/**\r\n * Re-set default cursor for disabled elements.\r\n */\r\n\r\nbutton[disabled],\r\nhtml input[disabled] {\r\n cursor: default;\r\n}\r\n\r\n/**\r\n * Remove inner padding and border in Firefox 4+.\r\n */\r\n\r\nbutton::-moz-focus-inner,\r\ninput::-moz-focus-inner {\r\n border: 0;\r\n padding: 0;\r\n}\r\n\r\n/**\r\n * Address Firefox 4+ setting `line-height` on `input` using `!important` in\r\n * the UA stylesheet.\r\n */\r\n\r\ninput {\r\n line-height: normal;\r\n}\r\n\r\n/**\r\n * It's recommended that you don't attempt to style these elements.\r\n * Firefox's implementation doesn't respect box-sizing, padding, or width.\r\n *\r\n * 1. Address box sizing set to `content-box` in IE 8/9/10.\r\n * 2. Remove excess padding in IE 8/9/10.\r\n */\r\n\r\ninput[type=\"checkbox\"],\r\ninput[type=\"radio\"] {\r\n box-sizing: border-box; /* 1 */\r\n padding: 0; /* 2 */\r\n}\r\n\r\n/**\r\n * Fix the cursor style for Chrome's increment/decrement buttons. For certain\r\n * `font-size` values of the `input`, it causes the cursor style of the\r\n * decrement button to change from `default` to `text`.\r\n */\r\n\r\ninput[type=\"number\"]::-webkit-inner-spin-button,\r\ninput[type=\"number\"]::-webkit-outer-spin-button {\r\n height: auto;\r\n}\r\n\r\n/**\r\n * 1. Address `appearance` set to `searchfield` in Safari and Chrome.\r\n * 2. Address `box-sizing` set to `border-box` in Safari and Chrome\r\n * (include `-moz` to future-proof).\r\n */\r\n\r\ninput[type=\"search\"] {\r\n -webkit-appearance: textfield; /* 1 */\r\n -moz-box-sizing: content-box;\r\n -webkit-box-sizing: content-box; /* 2 */\r\n box-sizing: content-box;\r\n}\r\n\r\n/**\r\n * Remove inner padding and search cancel button in Safari and Chrome on OS X.\r\n * Safari (but not Chrome) clips the cancel button when the search input has\r\n * padding (and `textfield` appearance).\r\n */\r\n\r\ninput[type=\"search\"]::-webkit-search-cancel-button,\r\ninput[type=\"search\"]::-webkit-search-decoration {\r\n -webkit-appearance: none;\r\n}\r\n\r\n/**\r\n * Define consistent border, margin, and padding.\r\n */\r\n\r\nfieldset {\r\n border: 1px solid #c0c0c0;\r\n margin: 0 2px;\r\n padding: 0.35em 0.625em 0.75em;\r\n}\r\n\r\n/**\r\n * 1. Correct `color` not being inherited in IE 8/9/10/11.\r\n * 2. Remove padding so people aren't caught out if they zero out fieldsets.\r\n */\r\n\r\nlegend {\r\n border: 0; /* 1 */\r\n padding: 0; /* 2 */\r\n}\r\n\r\n/**\r\n * Remove default vertical scrollbar in IE 8/9/10/11.\r\n */\r\n\r\ntextarea {\r\n overflow: auto;\r\n}\r\n\r\n/**\r\n * Don't inherit the `font-weight` (applied by a rule above).\r\n * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\r\n */\r\n\r\noptgroup {\r\n font-weight: bold;\r\n}\r\n\r\n/* Tables\r\n ========================================================================== */\r\n\r\n/**\r\n * Remove most spacing between table cells.\r\n */\r\n\r\ntable {\r\n border-collapse: collapse;\r\n border-spacing: 0;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 0;\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_common/_normalize.scss","@charset \"UTF-8\";\n@font-face {\n font-family: 'Chancery';\n src: url(\"../fonts/chancery/apple-chancery-webfont.eot\");\n src: local(\"Apple Chancery\"), url(\"../fonts/chancery/apple-chancery-webfont.eot?#iefix\") format(\"embedded-opentype\"), url(\"../fonts/chancery/apple-chancery-webfont.woff2\") format(\"woff2\"), url(\"../fonts/chancery/apple-chancery-webfont.woff\") format(\"woff\"), url(\"../fonts/chancery/apple-chancery-webfont.ttf\") format(\"truetype\"), url(\"../fonts/chancery/apple-chancery-webfont.svg#apple-chancery\") format(\"svg\");\n font-weight: lighter;\n font-style: normal; }\n\n/*! normalize.css v3.0.2 | MIT License | git.io/normalize */\n/**\r\n * 1. Set default font family to sans-serif.\r\n * 2. Prevent iOS text size adjust after orientation change, without disabling\r\n * user zoom.\r\n */\nhtml {\n font-family: sans-serif;\n /* 1 */\n -ms-text-size-adjust: 100%;\n /* 2 */\n -webkit-text-size-adjust: 100%;\n /* 2 */ }\n\n/**\r\n * Remove default margin.\r\n */\nbody {\n margin: 0; }\n\n/* HTML5 display definitions\r\n ========================================================================== */\n/**\r\n * Correct `block` display not defined for any HTML5 element in IE 8/9.\r\n * Correct `block` display not defined for `details` or `summary` in IE 10/11\r\n * and Firefox.\r\n * Correct `block` display not defined for `main` in IE 11.\r\n */\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block; }\n\n/**\r\n * 1. Correct `inline-block` display not defined in IE 8/9.\r\n * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\r\n */\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block;\n /* 1 */\n vertical-align: baseline;\n /* 2 */ }\n\n/**\r\n * Prevent modern browsers from displaying `audio` without controls.\r\n * Remove excess height in iOS 5 devices.\r\n */\naudio:not([controls]) {\n display: none;\n height: 0; }\n\n/**\r\n * Address `[hidden]` styling not present in IE 8/9/10.\r\n * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.\r\n */\n[hidden],\ntemplate {\n display: none; }\n\n/* Links\r\n ========================================================================== */\n/**\r\n * Remove the gray background color from active links in IE 10.\r\n */\na {\n background-color: transparent; }\n\n/**\r\n * Improve readability when focused and also mouse hovered in all browsers.\r\n */\na:active,\na:hover {\n outline: 0; }\n\n/* Text-level semantics\r\n ========================================================================== */\n/**\r\n * Address styling not present in IE 8/9/10/11, Safari, and Chrome.\r\n */\nabbr[title] {\n border-bottom: 1px dotted; }\n\n/**\r\n * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.\r\n */\nb,\nstrong {\n font-weight: bold; }\n\n/**\r\n * Address styling not present in Safari and Chrome.\r\n */\ndfn {\n font-style: italic; }\n\n/**\r\n * Address variable `h1` font-size and margin within `section` and `article`\r\n * contexts in Firefox 4+, Safari, and Chrome.\r\n */\nh1 {\n font-size: 2em;\n margin: 0.67em 0; }\n\n/**\r\n * Address styling not present in IE 8/9.\r\n */\nmark {\n background: #ff0;\n color: #000; }\n\n/**\r\n * Address inconsistent and variable font size in all browsers.\r\n */\nsmall {\n font-size: 80%; }\n\n/**\r\n * Prevent `sub` and `sup` affecting `line-height` in all browsers.\r\n */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline; }\n\nsup {\n top: -0.5em; }\n\nsub {\n bottom: -0.25em; }\n\n/* Embedded content\r\n ========================================================================== */\n/**\r\n * Remove border when inside `a` element in IE 8/9/10.\r\n */\nimg {\n border: 0; }\n\n/**\r\n * Correct overflow not hidden in IE 9/10/11.\r\n */\nsvg:not(:root) {\n overflow: hidden; }\n\n/* Grouping content\r\n ========================================================================== */\n/**\r\n * Address margin not present in IE 8/9 and Safari.\r\n */\nfigure {\n margin: 1em 40px; }\n\n/**\r\n * Address differences between Firefox and other browsers.\r\n */\nhr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0; }\n\n/**\r\n * Contain overflow in all browsers.\r\n */\npre {\n overflow: auto; }\n\n/**\r\n * Address odd `em`-unit font size rendering in all browsers.\r\n */\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em; }\n\n/* Forms\r\n ========================================================================== */\n/**\r\n * Known limitation: by default, Chrome and Safari on OS X allow very limited\r\n * styling of `select`, unless a `border` property is set.\r\n */\n/**\r\n * 1. Correct color not being inherited.\r\n * Known issue: affects color of disabled elements.\r\n * 2. Correct font properties not being inherited.\r\n * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.\r\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit;\n /* 1 */\n font: inherit;\n /* 2 */\n margin: 0;\n /* 3 */ }\n\n/**\r\n * Address `overflow` set to `hidden` in IE 8/9/10/11.\r\n */\nbutton {\n overflow: visible; }\n\n/**\r\n * Address inconsistent `text-transform` inheritance for `button` and `select`.\r\n * All other form control elements do not inherit `text-transform` values.\r\n * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.\r\n * Correct `select` style inheritance in Firefox.\r\n */\nbutton,\nselect {\n text-transform: none; }\n\n/**\r\n * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\r\n * and `video` controls.\r\n * 2. Correct inability to style clickable `input` types in iOS.\r\n * 3. Improve usability and consistency of cursor style between image-type\r\n * `input` and others.\r\n */\nbutton,\nhtml input[type=\"button\"],\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button;\n /* 2 */\n cursor: pointer;\n /* 3 */ }\n\n/**\r\n * Re-set default cursor for disabled elements.\r\n */\nbutton[disabled],\nhtml input[disabled] {\n cursor: default; }\n\n/**\r\n * Remove inner padding and border in Firefox 4+.\r\n */\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0; }\n\n/**\r\n * Address Firefox 4+ setting `line-height` on `input` using `!important` in\r\n * the UA stylesheet.\r\n */\ninput {\n line-height: normal; }\n\n/**\r\n * It's recommended that you don't attempt to style these elements.\r\n * Firefox's implementation doesn't respect box-sizing, padding, or width.\r\n *\r\n * 1. Address box sizing set to `content-box` in IE 8/9/10.\r\n * 2. Remove excess padding in IE 8/9/10.\r\n */\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box;\n /* 1 */\n padding: 0;\n /* 2 */ }\n\n/**\r\n * Fix the cursor style for Chrome's increment/decrement buttons. For certain\r\n * `font-size` values of the `input`, it causes the cursor style of the\r\n * decrement button to change from `default` to `text`.\r\n */\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto; }\n\n/**\r\n * 1. Address `appearance` set to `searchfield` in Safari and Chrome.\r\n * 2. Address `box-sizing` set to `border-box` in Safari and Chrome\r\n * (include `-moz` to future-proof).\r\n */\ninput[type=\"search\"] {\n -webkit-appearance: textfield;\n /* 1 */\n -moz-box-sizing: content-box;\n -webkit-box-sizing: content-box;\n /* 2 */\n box-sizing: content-box; }\n\n/**\r\n * Remove inner padding and search cancel button in Safari and Chrome on OS X.\r\n * Safari (but not Chrome) clips the cancel button when the search input has\r\n * padding (and `textfield` appearance).\r\n */\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none; }\n\n/**\r\n * Define consistent border, margin, and padding.\r\n */\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em; }\n\n/**\r\n * 1. Correct `color` not being inherited in IE 8/9/10/11.\r\n * 2. Remove padding so people aren't caught out if they zero out fieldsets.\r\n */\nlegend {\n border: 0;\n /* 1 */\n padding: 0;\n /* 2 */ }\n\n/**\r\n * Remove default vertical scrollbar in IE 8/9/10/11.\r\n */\ntextarea {\n overflow: auto; }\n\n/**\r\n * Don't inherit the `font-weight` (applied by a rule above).\r\n * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\r\n */\noptgroup {\n font-weight: bold; }\n\n/* Tables\r\n ========================================================================== */\n/**\r\n * Remove most spacing between table cells.\r\n */\ntable {\n border-collapse: collapse;\n border-spacing: 0; }\n\ntd,\nth {\n padding: 0; }\n\nhtml {\n font-size: 16px;\n box-sizing: border-box; }\n\nbody {\n padding: 0;\n margin: 0;\n font-family: \"Source Sans Pro\", \"Helvetica Neue\", Arial, sans-serif;\n font-weight: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: 1.5;\n color: #34495e;\n background: #fefefe;\n scroll-behavior: smooth;\n border-top: 3px solid #c05b4d; }\n\n@media screen and (max-width: 800px) {\n body {\n border-top: 0; } }\n\n::selection {\n background: #c05b4d;\n color: #fff; }\n\nimg {\n max-width: 100%;\n height: auto;\n display: inline-block;\n vertical-align: middle; }\n\na {\n color: #34495e;\n text-decoration: none; }\n\nh1 {\n font-size: 26px;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n\nh2 {\n font-size: 24px;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n\nh3 {\n font-size: 20px;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n\nh4 {\n font-size: 16px;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n\nh5 {\n font-size: 14px;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n\nh6 {\n font-size: 14px;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n\n.container {\n margin: 0 auto;\n width: 800px; }\n\n@media screen and (max-width: 800px) {\n .container {\n width: 100%;\n box-shadow: -1px -5px 5px #cacaca; } }\n\n.content-wrapper {\n padding: 0 20px; }\n\n.video-container {\n position: relative;\n padding-bottom: 56.25%;\n /* 16:9 */\n padding-top: 25px;\n height: 0; }\n\n.video-container iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%; }\n\n@font-face {\n font-family: 'iconfont';\n /* project id 96542 */\n src: url(\"../fonts/iconfont/iconfont.eot\");\n src: url(\"../fonts/iconfont/iconfont.eot#iefix\") format(\"embedded-opentype\"), url(\"../fonts/iconfont/iconfont.woff\") format(\"woff\"), url(\"../fonts/iconfont/iconfont.ttf\") format(\"truetype\"), url(\"../fonts/iconfont/iconfont.svg#iconfont\") format(\"svg\"); }\n\n.iconfont {\n font-family: \"iconfont\" !important;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n -webkit-text-stroke-width: 0.2px;\n -moz-osx-font-smoothing: grayscale;\n cursor: pointer; }\n\n.icon-instagram:before {\n font-size: .95em;\n content: \"\\e611\";\n position: relative;\n top: -1px; }\n\n.icon-douban:before {\n content: \"\\e610\"; }\n\n.icon-tumblr:before {\n content: \"\\e69f\";\n font-size: .85em;\n position: relative;\n top: -4px; }\n\n.icon-linkedin:before {\n content: \"\\e60d\";\n position: relative;\n top: -4px; }\n\n.icon-twitter:before {\n content: \"\\e600\"; }\n\n.icon-weibo:before {\n content: \"\\e602\"; }\n\n.icon-stack-overflow:before {\n content: \"\\e603\";\n font-size: .85em;\n position: relative;\n top: -4px; }\n\n.icon-email:before {\n content: \"\\e605\";\n position: relative;\n top: -2px; }\n\n.icon-facebook:before {\n content: \"\\e601\";\n font-size: .95em;\n position: relative;\n top: -2px; }\n\n.icon-github:before {\n content: \"\\e606\";\n position: relative;\n top: -3px; }\n\n.icon-rss:before {\n content: \"\\e604\"; }\n\n.icon-google:before {\n content: \"\\e609\"; }\n\n.icon-zhihu:before {\n content: \"\\e607\";\n font-size: .9em;\n position: relative;\n top: -2px; }\n\n.icon-pocket:before {\n content: \"\\e856\"; }\n\n/* Generic Icon */\n.icon-heart:before {\n content: \"\\e608\"; }\n\n.icon-right:before {\n content: \"\\e60a\"; }\n\n.icon-left:before {\n content: \"\\e60b\"; }\n\n.icon-up:before {\n content: \"\\e60c\"; }\n\n.icon-close:before {\n content: \"\\e60f\"; }\n\n.header {\n padding: 20px 20px; }\n .header:before, .header:after {\n content: \" \";\n display: table; }\n .header:after {\n clear: both; }\n .header .logo-wrapper {\n float: left; }\n .header .logo-wrapper .logo {\n font-size: 48px;\n font-family: \"Chancery\", cursive, LiSu, sans-serif; }\n @media screen and (max-width: 800px) {\n .header .logo-wrapper {\n display: none; } }\n .header .site-navbar {\n float: right; }\n .header .site-navbar .menu {\n display: inline-block;\n position: relative;\n padding-left: 0;\n padding-right: 25px;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .header .site-navbar .menu .menu-item {\n display: inline-block;\n display: inline-block;\n vertical-align: middle;\n transform: translateZ(0);\n backface-visibility: hidden;\n box-shadow: 0 0 1px transparent;\n position: relative;\n overflow: hidden; }\n .header .site-navbar .menu .menu-item + .menu-item {\n margin-left: 10px; }\n .header .site-navbar .menu .menu-item:before {\n content: '';\n position: absolute;\n z-index: -1;\n height: 2px;\n bottom: 0;\n left: 51%;\n right: 51%;\n background: #c05b4d;\n transition-duration: 0.2s;\n transition-property: right, left;\n transition-timing-function: ease-out; }\n .header .site-navbar .menu .menu-item.active:before, .header .site-navbar .menu .menu-item:active:before, .header .site-navbar .menu .menu-item:focus:before, .header .site-navbar .menu .menu-item:hover:before {\n right: 0;\n left: 0; }\n .header .site-navbar .menu .menu-item-link {\n font-size: 18px; }\n @media screen and (max-width: 800px) {\n .header .site-navbar {\n display: none; } }\n\n@media screen and (max-width: 800px) {\n .header {\n padding: 50px 0 0;\n text-align: center; } }\n\n.posts {\n margin-bottom: 20px;\n border-bottom: 1px solid #e6e6e6; }\n\n.post {\n padding: 1.5em 0; }\n .post + .post {\n border-top: 1px solid #e6e6e6; }\n .post .post-header {\n margin-bottom: 20px; }\n .post .post-header .post-title {\n margin: 0;\n font-size: 27px;\n font-weight: 400;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .post .post-header .post-link {\n display: inline-block;\n vertical-align: middle;\n transform: translateZ(0);\n backface-visibility: hidden;\n box-shadow: 0 0 1px transparent;\n position: relative;\n overflow: hidden; }\n .post .post-header .post-link:before {\n content: '';\n position: absolute;\n z-index: -1;\n height: 2px;\n bottom: 0;\n left: 51%;\n right: 51%;\n background: #c05b4d;\n transition-duration: 0.2s;\n transition-property: right, left;\n transition-timing-function: ease-out; }\n .post .post-header .post-link.active:before, .post .post-header .post-link:active:before, .post .post-header .post-link:focus:before, .post .post-header .post-link:hover:before {\n right: 0;\n left: 0; }\n .post .post-header .post-meta {\n font-size: 14px;\n color: #8a8a8a; }\n .post .post-header .post-meta .post-time {\n font-size: 15px; }\n .post .post-header .post-meta .post-category {\n display: inline; }\n .post .post-header .post-meta .post-category a {\n color: inherit; }\n .post .post-header .post-meta .post-category a::before {\n content: '·'; }\n .post .post-header .post-meta .post-category a:hover {\n color: #c05b4d; }\n .post .post-header .post-meta .more-meta::before {\n content: '·'; }\n .post .post-toc {\n position: absolute;\n width: 200px;\n margin-left: 785px;\n padding: 10px;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif;\n border-radius: 5px;\n background: rgba(248, 245, 236, 0.6);\n box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.125);\n word-wrap: break-word;\n box-sizing: border-box; }\n .post .post-toc .post-toc-title {\n margin: 0 10px;\n font-size: 20px;\n font-weight: 400;\n text-transform: uppercase; }\n .post .post-toc .post-toc-content {\n font-size: 15px; }\n .post .post-toc .post-toc-content.always-active ul {\n display: block; }\n .post .post-toc .post-toc-content > nav > ul {\n margin: 10px 0; }\n .post .post-toc .post-toc-content ul {\n padding-left: 20px;\n list-style: square; }\n .post .post-toc .post-toc-content ul ul {\n padding-left: 15px;\n display: none; }\n .post .post-toc .post-toc-content ul .has-active > ul {\n display: block; }\n .post .post-toc .post-toc-content .toc-link.active {\n color: #c05b4d; }\n @media screen and (max-width: 1185px) {\n .post .post-toc {\n display: none; } }\n .post .post-content {\n word-wrap: break-word; }\n .post .post-content h1 {\n font-weight: 400;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .post .post-content h2 {\n font-weight: 400;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .post .post-content h3 {\n font-weight: 400;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .post .post-content h4 {\n font-weight: 400;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .post .post-content h5 {\n font-weight: 400;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .post .post-content h6 {\n font-weight: 400;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .post .post-content a {\n color: #c05b4d;\n word-break: break-all; }\n .post .post-content a:hover {\n border-bottom: 1px solid #c05b4d; }\n .post .post-content a.fancybox {\n border: 0; }\n .post .post-content blockquote {\n margin: 2em 0;\n padding: 10px 20px;\n position: relative;\n color: rgba(52, 73, 94, 0.8);\n background-color: rgba(192, 91, 77, 0.05);\n border-left: 3px solid rgba(192, 91, 77, 0.3);\n box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.125); }\n .post .post-content blockquote p {\n margin: 0; }\n .post .post-content img {\n display: inline-block;\n max-width: 100%; }\n .post .post-content > table {\n max-width: 100%;\n margin: 10px 0;\n border-spacing: 0;\n box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.125); }\n .post .post-content > table thead {\n background: #f8f5ec; }\n .post .post-content > table th, .post .post-content > table td {\n padding: 5px 15px;\n border: 1px double #f4efe1; }\n .post .post-content > table tr:hover {\n background-color: #f8f5ec; }\n .post .post-content code, .post .post-content pre {\n padding: 7px;\n font-size: 13px;\n font-family: Consolas, Monaco, Menlo, Consolas, monospace;\n background: #f8f5ec; }\n .post .post-content code {\n padding: 3px 5px;\n border-radius: 4px;\n color: #c7254e; }\n .post .post-content figure.highlight {\n margin: 1em 0;\n border-radius: 5px;\n overflow-x: auto;\n box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.125);\n position: relative; }\n .post .post-content figure.highlight table {\n position: relative; }\n .post .post-content figure.highlight table::after {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n padding: 2px 7px;\n font-size: 13px;\n font-weight: bold;\n color: #b1b1b1;\n background: #f4efe1;\n content: 'Code'; }\n .post .post-content figure.highlight.language-bash > table::after {\n content: \"Bash\"; }\n .post .post-content figure.highlight.language-c > table::after {\n content: \"C\"; }\n .post .post-content figure.highlight.language-cs > table::after {\n content: \"C#\"; }\n .post .post-content figure.highlight.language-cpp > table::after {\n content: \"C++\"; }\n .post .post-content figure.highlight.language-css > table::after {\n content: \"CSS\"; }\n .post .post-content figure.highlight.language-coffeescript > table::after {\n content: \"CoffeeScript\"; }\n .post .post-content figure.highlight.language-html > table::after {\n content: \"HTML\"; }\n .post .post-content figure.highlight.language-xml > table::after {\n content: \"XML\"; }\n .post .post-content figure.highlight.language-http > table::after {\n content: \"HTTP\"; }\n .post .post-content figure.highlight.language-json > table::after {\n content: \"JSON\"; }\n .post .post-content figure.highlight.language-java > table::after {\n content: \"Java\"; }\n .post .post-content figure.highlight.language-js > table::after {\n content: \"JavaScript\"; }\n .post .post-content figure.highlight.language-javascript > table::after {\n content: \"JavaScript\"; }\n .post .post-content figure.highlight.language-makefile > table::after {\n content: \"Makefile\"; }\n .post .post-content figure.highlight.language-markdown > table::after {\n content: \"Markdown\"; }\n .post .post-content figure.highlight.language-objectivec > table::after {\n content: \"Objective-C\"; }\n .post .post-content figure.highlight.language-php > table::after {\n content: \"PHP\"; }\n .post .post-content figure.highlight.language-perl > table::after {\n content: \"Perl\"; }\n .post .post-content figure.highlight.language-python > table::after {\n content: \"Python\"; }\n .post .post-content figure.highlight.language-ruby > table::after {\n content: \"Ruby\"; }\n .post .post-content figure.highlight.language-sql > table::after {\n content: \"SQL\"; }\n .post .post-content figure.highlight.language-shell > table::after {\n content: \"Shell\"; }\n .post .post-content figure.highlight.language-erlang > table::after {\n content: \"Erlang\"; }\n .post .post-content figure.highlight.language-go > table::after {\n content: \"Go\"; }\n .post .post-content figure.highlight.language-groovy > table::after {\n content: \"Groovy\"; }\n .post .post-content figure.highlight.language-haskell > table::after {\n content: \"Haskell\"; }\n .post .post-content figure.highlight.language-kotlin > table::after {\n content: \"Kotlin\"; }\n .post .post-content figure.highlight.language-less > table::after {\n content: \"Less\"; }\n .post .post-content figure.highlight.language-lisp > table::after {\n content: \"Lisp\"; }\n .post .post-content figure.highlight.language-lua > table::after {\n content: \"Lua\"; }\n .post .post-content figure.highlight.language-matlab > table::after {\n content: \"Matlab\"; }\n .post .post-content figure.highlight.language-rust > table::after {\n content: \"Rust\"; }\n .post .post-content figure.highlight.language-scss > table::after {\n content: \"Scss\"; }\n .post .post-content figure.highlight.language-scala > table::after {\n content: \"Scala\"; }\n .post .post-content figure.highlight.language-swift > table::after {\n content: \"Swift\"; }\n .post .post-content figure.highlight.language-typescript > table::after {\n content: \"TypeScript\"; }\n .post .post-content figure.highlight.language-yml > table::after {\n content: \"YAML\"; }\n .post .post-content figure.highlight.language-yaml > table::after {\n content: \"YAML\"; }\n .post .post-content figure.highlight.language-toml > table::after {\n content: \"TOML\"; }\n .post .post-content figure.highlight .code pre {\n margin: 0;\n padding: 30px 10px 10px; }\n .post .post-content figure.highlight .gutter {\n width: 10px;\n color: #cacaca; }\n .post .post-content figure.highlight .gutter pre {\n margin: 0;\n padding: 30px 7px 10px; }\n .post .post-content figure.highlight .line {\n height: 20px; }\n .post .post-content figure.highlight table, .post .post-content figure.highlight tr, .post .post-content figure.highlight td {\n margin: 0;\n padding: 0;\n width: 100%;\n border-collapse: collapse; }\n .post .post-content figure.highlight .code .hljs-comment,\n .post .post-content figure.highlight .code .hljs-quote {\n color: #93a1a1; }\n .post .post-content figure.highlight .code .hljs-keyword,\n .post .post-content figure.highlight .code .hljs-selector-tag,\n .post .post-content figure.highlight .code .hljs-addition {\n color: #859900; }\n .post .post-content figure.highlight .code .hljs-number,\n .post .post-content figure.highlight .code .hljs-string,\n .post .post-content figure.highlight .code .hljs-meta .hljs-meta-string,\n .post .post-content figure.highlight .code .hljs-literal,\n .post .post-content figure.highlight .code .hljs-doctag,\n .post .post-content figure.highlight .code .hljs-regexp {\n color: #2aa198; }\n .post .post-content figure.highlight .code .hljs-title,\n .post .post-content figure.highlight .code .hljs-section,\n .post .post-content figure.highlight .code .hljs-name,\n .post .post-content figure.highlight .code .hljs-selector-id,\n .post .post-content figure.highlight .code .hljs-selector-class {\n color: #268bd2; }\n .post .post-content figure.highlight .code .hljs-attribute,\n .post .post-content figure.highlight .code .hljs-attr,\n .post .post-content figure.highlight .code .hljs-variable,\n .post .post-content figure.highlight .code .hljs-template-variable,\n .post .post-content figure.highlight .code .hljs-class .hljs-title,\n .post .post-content figure.highlight .code .hljs-type {\n color: #b58900; }\n .post .post-content figure.highlight .code .hljs-symbol,\n .post .post-content figure.highlight .code .hljs-bullet,\n .post .post-content figure.highlight .code .hljs-subst,\n .post .post-content figure.highlight .code .hljs-meta,\n .post .post-content figure.highlight .code .hljs-meta .hljs-keyword,\n .post .post-content figure.highlight .code .hljs-selector-attr,\n .post .post-content figure.highlight .code .hljs-selector-pseudo,\n .post .post-content figure.highlight .code .hljs-link {\n color: #cb4b16; }\n .post .post-content figure.highlight .code .hljs-built_in,\n .post .post-content figure.highlight .code .hljs-deletion {\n color: #dc322f; }\n .post .post-content figure.highlight .code .hljs-formula {\n background: #eee8d5; }\n .post .post-content figure.highlight .code .hljs-emphasis {\n font-style: italic; }\n .post .post-content figure.highlight .code .hljs-strong {\n font-weight: bold; }\n .post .post-content .post-summary {\n margin-bottom: 1em; }\n .post .post-content .read-more .read-more-link {\n color: #c05b4d;\n font-size: 1.1em;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .post .post-content .read-more .read-more-link:hover {\n border-bottom: 1px solid #c05b4d; }\n .post .post-content kbd {\n display: inline-block;\n padding: 0.25em;\n background-color: #fafafa;\n border: 1px solid #dbdbdb;\n border-bottom-color: #b5b5b5;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 #b5b5b5;\n font-size: 0.8em;\n line-height: 1.25;\n font-family: \"SFMono-Regular\",\"Liberation Mono\",\"Roboto Mono\",Menlo,Monaco,Consolas,\"Courier New\",Courier,monospace;\n color: #4a4a4a; }\n .post .post-content dl dt::after {\n content: ':'; }\n .post .post-content figure.center {\n text-align: center; }\n .post .post-content figure.right {\n text-align: right; }\n .post .post-content figure.left {\n text-align: left; }\n .post .post-content figure figcaption h4 {\n color: #b5b5b5;\n font-size: 0.9rem; }\n .post .post-content .task-list {\n list-style: none;\n padding-left: 1.5rem; }\n .post .post-content .align-center {\n text-align: center; }\n .post .post-content .align-right {\n text-align: right; }\n .post .post-content .align-left {\n text-align: left; }\n .post .post-content .MJXc-display {\n overflow-x: auto;\n overflow-y: hidden; }\n .post .post-copyright {\n margin-top: 20px;\n padding-top: 10px;\n border-top: 1px dashed #e6e6e6; }\n .post .post-copyright .copyright-item {\n margin: 5px 0; }\n .post .post-copyright .copyright-item a {\n color: #c05b4d;\n word-wrap: break-word; }\n .post .post-copyright .copyright-item a:hover {\n border-bottom: 1px solid #c05b4d; }\n .post .post-copyright .copyright-item .item-title {\n display: inline-block;\n min-width: 5rem;\n margin-right: .5rem;\n text-align: right; }\n .post .post-copyright .copyright-item .item-title:after {\n content: \" :\"; }\n .post .post-reward {\n margin-top: 20px;\n padding-top: 10px;\n text-align: center;\n border-top: 1px dashed #e6e6e6; }\n .post .post-reward .reward-button {\n margin: 15px 0;\n padding: 3px 7px;\n display: inline-block;\n color: #c05b4d;\n border: 1px solid #c05b4d;\n border-radius: 5px;\n cursor: pointer; }\n .post .post-reward .reward-button:hover {\n color: #fefefe;\n background-color: #c05b4d;\n transition: 0.5s; }\n .post .post-reward #reward:checked ~ .qr-code {\n display: block; }\n .post .post-reward #reward:checked ~ .reward-button {\n display: none; }\n .post .post-reward .qr-code {\n display: none; }\n .post .post-reward .qr-code .qr-code-image {\n display: inline-block;\n min-width: 200px;\n width: 40%;\n margin-top: 15px; }\n .post .post-reward .qr-code .qr-code-image span {\n display: inline-block;\n width: 100%;\n margin: 8px 0; }\n .post .post-reward .qr-code .image {\n width: 200px;\n height: 200px; }\n .post .post-footer {\n margin-top: 20px;\n border-top: 1px solid #e6e6e6;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .post .post-footer .post-tags {\n padding: 15px 0; }\n .post .post-footer .post-tags a {\n margin-right: 5px;\n color: #c05b4d;\n word-break: break-all; }\n .post .post-footer .post-tags a::before {\n content: '#'; }\n .post .post-footer .post-nav {\n margin: 1em 0; }\n .post .post-footer .post-nav:before, .post .post-footer .post-nav:after {\n content: \" \";\n display: table; }\n .post .post-footer .post-nav:after {\n clear: both; }\n .post .post-footer .post-nav .prev,\n .post .post-footer .post-nav .next {\n font-weight: 600;\n font-size: 18px;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif;\n transition-property: transform;\n transition-timing-function: ease-out;\n transition-duration: 0.3s; }\n .post .post-footer .post-nav .prev {\n float: left; }\n .post .post-footer .post-nav .prev:hover {\n color: #c05b4d;\n transform: translateX(-4px); }\n .post .post-footer .post-nav .next {\n float: right; }\n .post .post-footer .post-nav .next:hover {\n color: #c05b4d;\n transform: translateX(4px); }\n .post .post-footer .post-nav .nav-mobile {\n display: none; }\n @media screen and (max-width: 800px) {\n .post .post-footer .post-nav .nav-default {\n display: none; }\n .post .post-footer .post-nav .nav-mobile {\n display: inline; } }\n .post .post-outdated .hint {\n position: relative;\n margin-top: 20px;\n margin-bottom: 20px;\n padding: 5px 10px;\n border-left: 4px solid #42acf3;\n background-color: #eff5ff;\n border-color: #42acf3; }\n .post .post-outdated .warn {\n position: relative;\n margin-top: 20px;\n margin-bottom: 20px;\n padding: 5px 10px;\n border-left: 4px solid #f9cf63;\n background-color: #ffffc0;\n border-color: #f9cf63; }\n\n.pagination {\n margin: 2em 0; }\n .pagination:before, .pagination:after {\n content: \" \";\n display: table; }\n .pagination:after {\n clear: both; }\n .pagination .prev,\n .pagination .next {\n font-weight: 600;\n font-size: 20px;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif;\n transition-property: transform;\n transition-timing-function: ease-out;\n transition-duration: 0.3s; }\n .pagination .prev {\n float: left; }\n .pagination .prev:hover {\n color: #c05b4d;\n transform: translateX(-4px); }\n .pagination .next {\n float: right; }\n .pagination .next:hover {\n color: #c05b4d;\n transform: translateX(4px); }\n\n.footer {\n margin-top: 2em; }\n .footer .social-links {\n text-align: center; }\n .footer .social-links .iconfont {\n font-size: 30px; }\n .footer .social-links .iconfont + .iconfont {\n margin-left: 10px; }\n .footer .social-links .iconfont:hover {\n color: #c05b4d; }\n .footer .copyright {\n margin: 10px 0;\n color: #8a8a8a;\n text-align: center;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .footer .copyright .hexo-link,\n .footer .copyright .theme-link {\n color: #c05b4d; }\n .footer .copyright .copyright-year {\n display: block; }\n .footer .copyright .copyright-year .heart {\n font-size: 14px; }\n\n.archive {\n margin: 2em 0px;\n max-width: 550px; }\n .archive .archive-title {\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .archive .archive-title.tag, .archive .archive-title.category {\n margin: 15px 0; }\n .archive .archive-title .archive-name {\n margin: 0;\n display: inline-block;\n font-weight: 400;\n font-size: 30px;\n line-height: 32px; }\n .archive .archive-title .archive-post-counter {\n color: #8a8a8a; }\n .archive .collection-title {\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .archive .collection-title .archive-year {\n margin: 15px 0;\n font-weight: 400;\n font-size: 28px;\n line-height: 30px; }\n .archive .archive-post {\n padding: 3px 20px;\n border-left: 1px solid #cacaca; }\n .archive .archive-post .archive-post-time {\n margin-right: 10px;\n color: #8a8a8a; }\n .archive .archive-post .archive-post-title .archive-post-link {\n color: #c05b4d; }\n .archive .archive-post::first-child {\n margin-top: 10px; }\n .archive .archive-post:hover {\n border-left: 3px solid #c05b4d;\n transition: 0.2s ease-out;\n transform: translateX(4px); }\n .archive .archive-post:hover .archive-post-time {\n color: #717171; }\n .archive .archive-post:hover .archive-post-title .archive-post-link {\n color: #a14639; }\n\n@media screen and (max-width: 800px) {\n .archive {\n margin-left: auto;\n margin-right: auto; }\n .archive .archive-title .archive-name {\n font-size: 26px; }\n .archive .collection-title .archive-year {\n margin: 10px 0;\n font-size: 24px; }\n .archive .archive-post {\n padding: 5px 10px; }\n .archive .archive-post .archive-post-time {\n font-size: 13px;\n display: block; } }\n\n.tag-cloud {\n margin: 2em 0 3em;\n text-align: center;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .tag-cloud .tag-cloud-title {\n display: inline-block;\n font-size: 18px;\n color: #c05b4d;\n border-bottom: 2px solid #c05b4d; }\n .tag-cloud .tag-cloud-tags {\n margin: 10px 0; }\n .tag-cloud .tag-cloud-tags a {\n display: inline-block;\n position: relative;\n margin: 5px 10px;\n word-wrap: break-word;\n transition-duration: 0.2s;\n transition-property: transform;\n transition-timing-function: ease-out; }\n .tag-cloud .tag-cloud-tags a .tag-count {\n display: inline-block;\n position: relative;\n top: -8px;\n right: -2px;\n color: #c05b4d;\n font-size: 12px; }\n .tag-cloud .tag-cloud-tags a:active, .tag-cloud .tag-cloud-tags a:focus, .tag-cloud .tag-cloud-tags a:hover {\n color: #c05b4d;\n transform: scale(1.1); }\n\n.categories {\n margin: 2em 0 3em;\n text-align: center;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .categories .categories-title {\n display: inline-block;\n font-size: 18px;\n color: #c05b4d;\n border-bottom: 2px solid #c05b4d; }\n .categories .categories-tags {\n margin: 10px 0; }\n .categories .categories-tags .category-link {\n display: inline-block;\n position: relative;\n margin: 5px 10px;\n word-wrap: break-word;\n transition-duration: 0.2s;\n transition-property: transform;\n transition-timing-function: ease-out; }\n .categories .categories-tags .category-link .category-count {\n display: inline-block;\n position: relative;\n top: -8px;\n right: -2px;\n color: #c05b4d;\n font-size: 12px; }\n .categories .categories-tags .category-link:active, .categories .categories-tags .category-link:focus, .categories .categories-tags .category-link:hover {\n color: #c05b4d;\n transform: scale(1.1); }\n\n.slideout-menu {\n position: fixed;\n top: 0;\n left: 0px;\n bottom: 0;\n width: 180px;\n min-height: 100vh;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n z-index: 0;\n display: none; }\n\n.slideout-panel {\n position: relative;\n z-index: 1;\n background-color: #fefefe;\n min-height: 100vh; }\n\n.slideout-open,\n.slideout-open body,\n.slideout-open .slideout-panel {\n overflow: hidden; }\n\n.slideout-open .slideout-menu {\n display: block; }\n\n.mobile-navbar {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 50px;\n background: #fefefe;\n box-shadow: 0px 2px 2px #cacaca;\n text-align: center;\n transition: transform 300ms ease;\n z-index: 99; }\n .mobile-navbar.fixed-open {\n transform: translate3d(180px, 0px, 0px); }\n .mobile-navbar .mobile-header-logo {\n display: inline-block;\n margin-right: 50px; }\n .mobile-navbar .mobile-header-logo .logo {\n font-size: 22px;\n line-height: 50px;\n font-family: \"Chancery\", cursive, LiSu, sans-serif; }\n .mobile-navbar .mobile-navbar-icon {\n color: #c05b4d;\n height: 50px;\n width: 50px;\n font-size: 24px;\n text-align: center;\n float: left;\n position: relative;\n transition: background 0.5s; }\n\n@keyframes clickfirst {\n 0% {\n transform: translateY(6px) rotate(0deg); }\n 100% {\n transform: translateY(0) rotate(45deg); } }\n\n@keyframes clickmid {\n 0% {\n opacity: 1; }\n 100% {\n opacity: 0; } }\n\n@keyframes clicklast {\n 0% {\n transform: translateY(-6px) rotate(0deg); }\n 100% {\n transform: translateY(0) rotate(-45deg); } }\n\n@keyframes outfirst {\n 0% {\n transform: translateY(0) rotate(-45deg); }\n 100% {\n transform: translateY(-6px) rotate(0deg); } }\n\n@keyframes outmid {\n 0% {\n opacity: 0; }\n 100% {\n opacity: 1; } }\n\n@keyframes outlast {\n 0% {\n transform: translateY(0) rotate(45deg); }\n 100% {\n transform: translateY(6px) rotate(0deg); } }\n .mobile-navbar .mobile-navbar-icon span {\n position: absolute;\n /* fallback for browsers which still doesn't support for `calc()` */\n left: 15px;\n top: 25px;\n left: calc((100% - 20px) / 2);\n top: calc((100% - 1px) / 2);\n width: 20px;\n height: 1px;\n background-color: #c05b4d; }\n .mobile-navbar .mobile-navbar-icon span:nth-child(1) {\n transform: translateY(6px) rotate(0deg); }\n .mobile-navbar .mobile-navbar-icon span:nth-child(3) {\n transform: translateY(-6px) rotate(0deg); }\n .mobile-navbar .mobile-navbar-icon.icon-click span:nth-child(1) {\n animation-duration: 0.5s;\n animation-fill-mode: both;\n animation-name: clickfirst; }\n .mobile-navbar .mobile-navbar-icon.icon-click span:nth-child(2) {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: clickmid; }\n .mobile-navbar .mobile-navbar-icon.icon-click span:nth-child(3) {\n animation-duration: 0.5s;\n animation-fill-mode: both;\n animation-name: clicklast; }\n .mobile-navbar .mobile-navbar-icon.icon-out span:nth-child(1) {\n animation-duration: 0.5s;\n animation-fill-mode: both;\n animation-name: outfirst; }\n .mobile-navbar .mobile-navbar-icon.icon-out span:nth-child(2) {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: outmid; }\n .mobile-navbar .mobile-navbar-icon.icon-out span:nth-child(3) {\n animation-duration: 0.5s;\n animation-fill-mode: both;\n animation-name: outlast; }\n\n.mobile-menu {\n background-color: rgba(248, 245, 236, 0.5); }\n .mobile-menu .mobile-menu-list {\n position: relative;\n list-style: none;\n margin-top: 50px;\n padding: 0;\n border-top: 1px solid #f8f5ec; }\n .mobile-menu .mobile-menu-list .mobile-menu-item {\n padding: 10px 30px;\n border-bottom: 1px solid #f8f5ec; }\n .mobile-menu .mobile-menu-list a {\n font-size: 18px;\n font-family: Athelas, STHeiti, Microsoft Yahei, serif; }\n .mobile-menu .mobile-menu-list a:hover {\n color: #c05b4d; }\n\n@media screen and (max-width: 800px) {\n .mobile-navbar {\n display: block; } }\n\n.back-to-top {\n display: none;\n position: fixed;\n right: 20px;\n bottom: 20px;\n transition-property: transform;\n transition-timing-function: ease-out;\n transition-duration: 0.3s;\n z-index: 10; }\n .back-to-top:hover {\n transform: translateY(-5px); }\n\n@media screen and (max-width: 800px) {\n .back-to-top {\n display: none !important; } }\n\n.not-found {\n text-align: center; }\n .not-found .error-emoji {\n color: #363636;\n font-size: 3rem; }\n .not-found .error-text {\n color: #797979;\n font-size: 1.25rem; }\n .not-found .error-link {\n margin-top: 2rem; }\n .not-found .error-link a {\n color: #c05b4d; }\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/style.scss","@import '_common/normalize';\r\n\r\nhtml {\r\n font-size: $global-font-size;\r\n box-sizing: border-box;\r\n}\r\n\r\nbody {\r\n padding: 0;\r\n margin: 0;\r\n font-family: $global-font-family;\r\n font-weight: normal;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n line-height: $global-lineheight;\r\n color: $global-font-color;\r\n background: $global-background;\r\n scroll-behavior: smooth;\r\n border-top: 3px solid $theme-color;\r\n}\r\n\r\n@include max-screen() {\r\n body {\r\n border-top: 0;\r\n }\r\n}\r\n\r\n::selection {\r\n background: $theme-color;\r\n color: #fff; \r\n}\r\n\r\n// ::-webkit-scrollbar {\r\n// width: 8px;\r\n// height: 6px; \r\n// }\r\n\r\n// ::-webkit-scrollbar-thumb {\r\n// background: lighten($theme-color, 10%);\r\n// border-radius: 5px;\r\n// }\r\n\r\n// ::-webkit-scrollbar-track {\r\n// background: rgba(211, 211, 211, 0.4);\r\n// border-radius: 5px;\r\n// }\r\n\r\nimg {\r\n max-width: 100%;\r\n height: auto;\r\n display: inline-block;\r\n vertical-align: middle;\r\n}\r\n\r\na {\r\n color: $global-font-color;\r\n text-decoration: none;\r\n}\r\n\r\n@each $header, $size in $global-headings {\r\n #{$header} {\r\n font-size: $size;\r\n font-family: $global-serif-font-family;\r\n }\r\n}\r\n\r\n.container {\r\n margin: 0 auto;\r\n width: $global-body-width;\r\n}\r\n\r\n@include max-screen() {\r\n .container {\r\n width: 100%;\r\n box-shadow: -1px -5px 5px $gray;\r\n }\r\n}\r\n\r\n.content-wrapper {\r\n padding: $global-container-padding;\r\n}\r\n\r\n// make video fluid:\r\n// https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php\r\n// class video-container is the wrapper used by hexo youtube tag plugin\r\n.video-container {\r\n\tposition: relative;\r\n\tpadding-bottom: 56.25%; /* 16:9 */\r\n\tpadding-top: 25px;\r\n\theight: 0;\r\n}\r\n.video-container iframe {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_base.scss","@mixin clearfix() {\r\n &:before,\r\n &:after {\r\n content: \" \";\r\n display: table;\r\n }\r\n \r\n &:after {\r\n clear: both;\r\n }\r\n}\r\n\r\n@mixin min-screen($min-width: $global-body-width) {\r\n @media screen and (min-width: $min-width) {\r\n @content;\r\n }\r\n}\r\n\r\n@mixin max-screen($max-width: $global-body-width) {\r\n @media screen and (max-width: $max-width) {\r\n @content;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_common/_utils.scss","// ==============================\r\n// Iconfont\r\n// ==============================\r\n\r\n@font-face {\r\n font-family: 'iconfont'; /* project id 96542 */\r\n\r\n src: url('../fonts/iconfont/iconfont.eot');\r\n src: url('../fonts/iconfont/iconfont.eot#iefix') format('embedded-opentype'), // not '?#iefix', because webpack will add '?hash=[hash]'\r\n url('../fonts/iconfont/iconfont.woff') format('woff'),\r\n url('../fonts/iconfont/iconfont.ttf') format('truetype'),\r\n url('../fonts/iconfont/iconfont.svg#iconfont') format('svg');\r\n\r\n // Uncomment these code and comment upper code if you want to use alicdn\r\n // src: url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.eot');\r\n // src: url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.eot?#iefix') format('embedded-opentype'),\r\n // url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.woff') format('woff'),\r\n // url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.ttf') format('truetype'),\r\n // url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.svg#iconfont') format('svg');\r\n}\r\n\r\n.iconfont {\r\n font-family: \"iconfont\" !important;\r\n font-style: normal;\r\n -webkit-font-smoothing: antialiased;\r\n -webkit-text-stroke-width: 0.2px;\r\n -moz-osx-font-smoothing: grayscale;\r\n cursor: pointer;\r\n}\r\n\r\n.icon-instagram:before {\r\n font-size: .95em;\r\n content: \"\\e611\";\r\n position: relative;\r\n top: -1px;\r\n}\r\n.icon-douban:before {\r\n content: \"\\e610\";\r\n}\r\n.icon-tumblr:before {\r\n content: \"\\e69f\";\r\n font-size: .85em;\r\n position: relative;\r\n top: -4px;\r\n}\r\n.icon-linkedin:before {\r\n content: \"\\e60d\";\r\n position: relative;\r\n top: -4px;\r\n}\r\n.icon-twitter:before {\r\n content: \"\\e600\";\r\n}\r\n.icon-weibo:before {\r\n content: \"\\e602\";\r\n}\r\n.icon-stack-overflow:before {\r\n content: \"\\e603\";\r\n font-size: .85em;\r\n position: relative;\r\n top: -4px;\r\n}\r\n.icon-email:before {\r\n content: \"\\e605\";\r\n position: relative;\r\n top: -2px;\r\n}\r\n.icon-facebook:before {\r\n content: \"\\e601\";\r\n font-size: .95em;\r\n position: relative;\r\n top: -2px;\r\n}\r\n.icon-github:before {\r\n content: \"\\e606\";\r\n position: relative;\r\n top: -3px;\r\n}\r\n.icon-rss:before {\r\n content: \"\\e604\";\r\n}\r\n.icon-google:before {\r\n content: \"\\e609\";\r\n}\r\n.icon-zhihu:before {\r\n content: \"\\e607\";\r\n font-size: .9em;\r\n position: relative;\r\n top: -2px;\r\n}\r\n.icon-pocket:before {\r\n content: \"\\e856\";\r\n}\r\n\r\n/* Generic Icon */\r\n.icon-heart:before {\r\n content: \"\\e608\";\r\n}\r\n.icon-right:before {\r\n content: \"\\e60a\";\r\n}\r\n.icon-left:before {\r\n content: \"\\e60b\";\r\n}\r\n.icon-up:before {\r\n content: \"\\e60c\";\r\n}\r\n.icon-close:before {\r\n content: \"\\e60f\";\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_iconfont.scss","// ==============================\r\n// Header\r\n// ==============================\r\n\r\n.header {\r\n @include clearfix; \r\n padding: $header-padding;\r\n\r\n @import '_header/logo';\r\n @import '_header/menu';\r\n}\r\n\r\n\r\n@include max-screen() {\r\n .header {\r\n padding: 50px 0 0;\r\n text-align: center;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_header.scss","// ==============================\r\n// Logo\r\n// =============================\r\n\r\n.logo-wrapper {\r\n float: left;\r\n\r\n .logo {\r\n font-size: $logo-font-size;\r\n font-family: $logo-font-family;\r\n }\r\n}\r\n\r\n@include max-screen() {\r\n .logo-wrapper {\r\n display: none;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_header/_logo.scss","// ==============================\r\n// Menu\r\n// =============================\r\n\r\n.site-navbar {\r\n float: right;\r\n\r\n .menu {\r\n display: inline-block;\r\n position: relative;\r\n padding-left: 0;\r\n padding-right: 25px;\r\n font-family: $global-serif-font-family;\r\n\r\n .menu-item {\r\n display: inline-block;\r\n\r\n & + .menu-item {\r\n margin-left: $menu-item-margin-left;;\r\n }\r\n\r\n @include underline-from-center;\r\n }\r\n\r\n .menu-item-link {\r\n font-size: $menu-link-font-size;\r\n }\r\n }\r\n}\r\n\r\n@include max-screen() {\r\n .site-navbar {\r\n display: none;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_header/_menu.scss","@mixin underline-from-center() {\r\n display: inline-block;\r\n vertical-align: middle;\r\n transform: translateZ(0);\r\n backface-visibility: hidden;\r\n box-shadow: 0 0 1px transparent;\r\n position: relative;\r\n overflow: hidden;\r\n\r\n &:before {\r\n content: '';\r\n position: absolute;\r\n z-index: -1;\r\n height: 2px;\r\n bottom: 0;\r\n left: 51%;\r\n right: 51%;\r\n background: $theme-color;\r\n transition-duration: 0.2s;\r\n transition-property: right, left;\r\n transition-timing-function: ease-out;\r\n }\r\n\r\n &.active,\r\n &:active,\r\n &:focus,\r\n &:hover {\r\n &:before {\r\n right: 0;\r\n left: 0;\r\n }\r\n }\r\n}\r\n\r\n@mixin mobile-menu-icon() {\r\n @keyframes clickfirst {\r\n 0% {\r\n transform: translateY(6px) rotate(0deg);\r\n \r\n }\r\n\r\n 100% {\r\n transform: translateY(0) rotate(45deg);\r\n }\r\n }\t\r\n\r\n @keyframes clickmid {\r\n 0% {\r\n opacity: 1;\r\n }\r\n\r\n 100% {\r\n opacity: 0;\r\n }\r\n }\r\n\r\n @keyframes clicklast {\r\n 0% {\r\n transform: translateY(-6px) rotate(0deg);\r\n }\r\n\r\n 100% {\r\n transform: translateY(0) rotate(-45deg);\r\n }\r\n }\r\n \r\n @keyframes outfirst {\r\n 0% {\r\n transform: translateY(0) rotate(-45deg);\r\n }\r\n\r\n 100% {\r\n transform: translateY(-6px) rotate(0deg);\r\n }\r\n }\t\r\n\r\n @keyframes outmid {\r\n 0% {\r\n opacity: 0;\r\n }\r\n\r\n 100% {\r\n opacity: 1;\r\n }\r\n }\r\n\r\n @keyframes outlast {\r\n 0% {\r\n transform: translateY(0) rotate(45deg);\r\n }\r\n\r\n 100% {\r\n transform: translateY(6px) rotate(0deg);\r\n }\r\n }\r\n\r\n span {\r\n position: absolute;\r\n /* fallback for browsers which still doesn't support for `calc()` */\r\n left: 15px;\r\n top: 25px;\r\n left: calc((100% - 20px) / 2);\r\n top: calc((100% - 1px) / 2);\r\n width: 20px;\r\n height: 1px;\r\n background-color: $theme-color;\r\n \r\n &:nth-child(1) {\r\n transform: translateY(6px) rotate(0deg);\r\n }\r\n\r\n &:nth-child(3) {\r\n transform: translateY(-6px) rotate(0deg);\r\n }\r\n }\r\n\r\n &.icon-click {\r\n span:nth-child(1) {\r\n animation-duration: 0.5s;\r\n animation-fill-mode: both;\r\n animation-name: clickfirst;\r\n }\r\n\r\n span:nth-child(2) {\r\n animation-duration: 0.2s;\r\n animation-fill-mode: both;\r\n animation-name: clickmid;\r\n }\r\n\r\n span:nth-child(3) {\r\n animation-duration: 0.5s;\r\n animation-fill-mode: both;\r\n animation-name: clicklast;\r\n }\r\n }\r\n\r\n &.icon-out {\r\n span:nth-child(1) {\r\n animation-duration: 0.5s;\r\n animation-fill-mode: both;\r\n animation-name: outfirst;\r\n }\r\n\r\n span:nth-child(2) {\r\n animation-duration: 0.2s;\r\n animation-fill-mode: both;\r\n animation-name: outmid;\r\n }\r\n\r\n span:nth-child(3) {\r\n animation-duration: 0.5s;\r\n animation-fill-mode: both;\r\n animation-name: outlast;\r\n }\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_common/_animation.scss","// ==============================\r\n// Post\r\n// ==============================\r\n\r\n.posts {\r\n margin-bottom: $post-list-margin-bottom;\r\n border-bottom: $post-border;\r\n}\r\n\r\n.post {\r\n padding: $post-padding;\r\n\r\n & + .post {\r\n border-top: $post-border;\r\n }\r\n\r\n @import '_post/header';\r\n @import '_post/toc';\r\n @import '_post/content';\r\n @import '_post/copyright';\r\n @import '_post/reward';\r\n @import '_post/footer';\r\n @import '_post/outdated';\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post.scss",".post-header {\r\n margin-bottom: 20px;\r\n\r\n .post-title {\r\n margin: 0;\r\n font-size: $post-title-font-size;\r\n font-weight: $post-title-font-weight;\r\n font-family: $global-serif-font-family;\r\n }\r\n\r\n .post-link {\r\n @include underline-from-center;\r\n }\r\n\r\n .post-meta {\r\n font-size: 14px;\r\n color: $post-meta-font-color;\r\n\r\n .post-time {\r\n font-size: 15px;\r\n }\r\n\r\n .post-category {\r\n display: inline;\r\n\r\n a {\r\n color: inherit;\r\n\r\n &::before {\r\n content: '·';\r\n }\r\n\r\n &:hover {\r\n color: $theme-color;\r\n }\r\n }\r\n }\r\n\r\n .more-meta {\r\n &::before {\r\n content: '·';\r\n }\r\n }\r\n\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_header.scss",".post-toc {\r\n position: absolute;\r\n width: $post-toc-width;\r\n margin-left: $post-toc-margin-left;\r\n padding: 10px;\r\n font-family: $global-serif-font-family;\r\n border-radius: 5px;\r\n background: $post-toc-backgroud;\r\n box-shadow: 1px 1px 2px rgba(0,0,0,0.125);\r\n word-wrap: break-word;\r\n box-sizing: border-box;\r\n\r\n .post-toc-title {\r\n margin: 0 10px;\r\n font-size: $post-toc-title-size;\r\n font-weight: 400;\r\n text-transform: uppercase;\r\n }\r\n\r\n .post-toc-content {\r\n font-size: $post-toc-content;\r\n\r\n &.always-active ul {\r\n display: block;\r\n }\r\n\r\n >nav>ul {\r\n margin: 10px 0;\r\n }\r\n\r\n ul {\r\n padding-left: 20px;\r\n list-style: $post-toc-list-style;\r\n\r\n ul {\r\n padding-left: 15px;\r\n display: none;\r\n }\r\n\r\n .has-active > ul {\r\n display: block;\r\n }\r\n }\r\n\r\n .toc-link.active {\r\n color: $theme-color;\r\n }\r\n }\r\n}\r\n\r\n@include max-screen($toc-max-sreen-width) {\r\n .post-toc {\r\n display: none;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_toc.scss","// ==============================\r\n// Post content\r\n// ==============================\r\n\r\n.post-content {\r\n word-wrap: break-word;\r\n\r\n @for $i from 1 through 6 {\r\n h#{$i} {\r\n font-weight: 400;\r\n font-family: $global-serif-font-family;\r\n }\r\n }\r\n\r\n a {\r\n color: $theme-color;\r\n word-break: break-all;\r\n\r\n &:hover {\r\n border-bottom: $content-link-border;\r\n }\r\n\r\n &.fancybox {\r\n border: 0;\r\n }\r\n }\r\n\r\n blockquote {\r\n margin: 2em 0;\r\n padding: 10px 20px;\r\n position: relative;\r\n color: rgba(#34495e, 0.8);\r\n background-color: $content-blockquote-backgroud;\r\n border-left: $content-blockquote-border-left;\r\n box-shadow: 1px 1px 2px rgba(0,0,0,0.125);\r\n\r\n p {\r\n margin: 0;\r\n }\r\n }\r\n\r\n img {\r\n display: inline-block;\r\n max-width: 100%;\r\n }\r\n\r\n > table {\r\n max-width: 100%;\r\n margin: 10px 0;\r\n border-spacing: 0;\r\n box-shadow: 2px 2px 3px rgba(0,0,0,.125);\r\n\r\n thead {\r\n background: $deputy-color;\r\n }\r\n\r\n th, td {\r\n padding: 5px 15px;\r\n border: 1px double $content-table-border-color;\r\n }\r\n\r\n tr:hover {\r\n background-color: $deputy-color;\r\n }\r\n }\r\n\r\n @import 'code';\r\n\r\n .post-summary {\r\n margin-bottom: 1em;\r\n }\r\n\r\n .read-more {\r\n .read-more-link {\r\n color: $theme-color;\r\n font-size: 1.1em;\r\n font-family: $global-serif-font-family;\r\n \r\n &:hover {\r\n border-bottom: $post-readMore-border-bottom;\r\n }\r\n }\r\n }\r\n\r\n kbd {\r\n display: inline-block;\r\n padding: 0.25em;\r\n background-color: #fafafa;\r\n border: 1px solid #dbdbdb;\r\n border-bottom-color: #b5b5b5;\r\n border-radius: 3px;\r\n box-shadow: inset 0 -1px 0 #b5b5b5;\r\n font-size: 0.8em;\r\n line-height: 1.25;\r\n font-family: \"SFMono-Regular\",\"Liberation Mono\",\"Roboto Mono\",Menlo,Monaco,Consolas,\"Courier New\",Courier,monospace;\r\n color: #4a4a4a;\r\n }\r\n\r\n dl dt::after {\r\n content: ':';\r\n }\r\n\r\n figure {\r\n &.center {\r\n text-align: center;\r\n }\r\n\r\n &.right {\r\n text-align: right;\r\n }\r\n\r\n &.left {\r\n text-align: left;\r\n }\r\n\r\n figcaption h4 {\r\n color: #b5b5b5;\r\n font-size: 0.9rem;\r\n }\r\n }\r\n\r\n .task-list {\r\n list-style: none;\r\n padding-left: 1.5rem;\r\n }\r\n\r\n .align-center {\r\n text-align: center;\r\n }\r\n\r\n .align-right {\r\n text-align: right;\r\n }\r\n\r\n .align-left {\r\n text-align: left;\r\n }\r\n\r\n .MJXc-display {\r\n overflow-x: auto;\r\n overflow-y: hidden;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_content.scss","code, pre {\r\n padding: 7px;\r\n font-size: $code-font-size;\r\n font-family: $code-font-family;\r\n background: $code-background;\r\n}\r\n\r\ncode {\r\n padding: 3px 5px;\r\n border-radius: 4px;\r\n color: $code-color;\r\n}\r\n\r\nfigure.highlight {\r\n margin: 1em 0;\r\n border-radius: 5px;\r\n overflow-x: auto;\r\n box-shadow: 1px 1px 2px rgba(0,0,0,0.125);\r\n position: relative;\r\n\r\n table {\r\n position: relative;\r\n\r\n &::after {\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n left: 0;\r\n padding: 2px 7px;\r\n font-size: $code-font-size;\r\n font-weight: bold;\r\n color: darken($gray, 10%);\r\n background: darken($code-background, 3%);\r\n content: 'Code';\r\n }\r\n }\r\n\r\n @each $sign, $text in $code-type-list {\r\n &.#{$sign} > table::after {\r\n content: $text;\r\n }\r\n }\r\n\r\n .code {\r\n pre {\r\n margin: 0;\r\n padding: 30px 10px 10px;\r\n }\r\n }\r\n\r\n .gutter {\r\n width: 10px;\r\n color: $gray;\r\n\r\n pre {\r\n margin: 0;\r\n padding: 30px 7px 10px;\r\n }\r\n }\r\n\r\n .line {\r\n // Fix code block null line height and\r\n // Synchronous gutter and code line highly.\r\n height: round($code-font-size * 1.5);\r\n }\r\n\r\n table, tr, td {\r\n margin: 0;\r\n padding: 0;\r\n width: 100%;\r\n border-collapse: collapse;\r\n }\r\n\r\n .code {\r\n .hljs-comment,\r\n .hljs-quote {\r\n color: map-get($code-highlight-color, comment);\r\n }\r\n\r\n .hljs-keyword,\r\n .hljs-selector-tag,\r\n .hljs-addition {\r\n color: map-get($code-highlight-color, keyword);\r\n }\r\n\r\n .hljs-number,\r\n .hljs-string,\r\n .hljs-meta .hljs-meta-string,\r\n .hljs-literal,\r\n .hljs-doctag,\r\n .hljs-regexp {\r\n color: map-get($code-highlight-color, number);\r\n }\r\n\r\n .hljs-title,\r\n .hljs-section,\r\n .hljs-name,\r\n .hljs-selector-id,\r\n .hljs-selector-class {\r\n color: map-get($code-highlight-color, title);\r\n }\r\n\r\n .hljs-attribute,\r\n .hljs-attr,\r\n .hljs-variable,\r\n .hljs-template-variable,\r\n .hljs-class .hljs-title,\r\n .hljs-type {\r\n color: map-get($code-highlight-color, attribute);\r\n }\r\n\r\n .hljs-symbol,\r\n .hljs-bullet,\r\n .hljs-subst,\r\n .hljs-meta,\r\n .hljs-meta .hljs-keyword,\r\n .hljs-selector-attr,\r\n .hljs-selector-pseudo,\r\n .hljs-link {\r\n color: map-get($code-highlight-color, symbol);\r\n }\r\n\r\n .hljs-built_in,\r\n .hljs-deletion {\r\n color: map-get($code-highlight-color, built_in);\r\n }\r\n\r\n .hljs-formula {\r\n background: map-get($code-highlight-color, formula);\r\n }\r\n \r\n .hljs-emphasis {\r\n font-style: italic;\r\n }\r\n \r\n .hljs-strong {\r\n font-weight: bold;\r\n }\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_code.scss",".post-copyright {\r\n margin-top: 20px;\r\n padding-top: 10px;\r\n border-top: 1px dashed $light-gray;\r\n\r\n .copyright-item {\r\n margin: 5px 0;\r\n\r\n a {\r\n color: $theme-color;\r\n word-wrap: break-word;\r\n\r\n &:hover {\r\n border-bottom: $content-link-border;\r\n }\r\n }\r\n\r\n .item-title {\r\n display: inline-block;\r\n min-width: 5rem;\r\n margin-right: .5rem;\r\n text-align: right;\r\n\r\n &:after {\r\n content: \" :\";\r\n }\r\n }\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_copyright.scss",".post-reward {\r\n margin-top: 20px;\r\n padding-top: 10px;\r\n text-align: center;\r\n border-top: 1px dashed $light-gray;\r\n\r\n .reward-button {\r\n margin: 15px 0;\r\n padding: 3px 7px;\r\n display: inline-block;\r\n color: $theme-color;\r\n border: 1px solid $theme-color;\r\n border-radius: 5px;\r\n cursor: pointer;\r\n\r\n &:hover {\r\n color: $white;\r\n background-color: $theme-color;\r\n transition: 0.5s;\r\n }\r\n }\r\n\r\n #reward:checked {\r\n & ~ .qr-code {\r\n display: block;\r\n }\r\n\r\n & ~ .reward-button {\r\n display: none;\r\n }\r\n }\r\n\r\n .qr-code {\r\n display: none;\r\n\r\n .qr-code-image {\r\n display: inline-block;\r\n min-width: 200px;\r\n width: 40%;\r\n margin-top: 15px;\r\n\r\n span {\r\n display: inline-block;\r\n width: 100%;\r\n margin: 8px 0;\r\n }\r\n }\r\n\r\n .image {\r\n width: 200px;\r\n height: 200px;\r\n }\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_reward.scss","// ==============================\r\n// Post footer\r\n// ==============================\r\n\r\n.post-footer {\r\n margin-top: $post-footer-margin-top;\r\n border-top: $post-footer-border-top;\r\n font-family: $global-serif-font-family;\r\n\r\n .post-tags {\r\n padding: $post-tags-padding;\r\n\r\n a {\r\n margin-right: 5px;\r\n color: $theme-color;\r\n word-break: break-all;\r\n\r\n &::before {\r\n content: '#';\r\n }\r\n }\r\n }\r\n\r\n .post-nav {\r\n margin: 1em 0;\r\n @include clearfix;\r\n\r\n .prev,\r\n .next {\r\n font-weight: 600;\r\n font-size: $post-nav-font-size;\r\n font-family: $global-serif-font-family;\r\n transition-property: transform;\r\n transition-timing-function: ease-out;\r\n transition-duration: 0.3s;\r\n }\r\n\r\n .prev {\r\n float: left;\r\n\r\n &:hover {\r\n color: $theme-color;\r\n transform: translateX(-4px); \r\n }\r\n }\r\n\r\n .next {\r\n float: right;\r\n\r\n &:hover {\r\n color: $theme-color;\r\n transform: translateX(4px); \r\n }\r\n }\r\n\r\n .nav-mobile {\r\n display: none;\r\n }\r\n }\r\n}\r\n\r\n@include max-screen() {\r\n .post-footer {\r\n .post-nav {\r\n .nav-default {\r\n display: none;\r\n }\r\n\r\n .nav-mobile {\r\n display: inline;\r\n }\r\n }\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_footer.scss",".post-outdated {\r\n .hint {\r\n position: relative;\r\n margin-top: 20px;\r\n margin-bottom: 20px;\r\n padding: 5px 10px;\r\n border-left: 4px solid rgb(66, 172, 243);\r\n background-color: rgb(239, 245, 255);\r\n border-color: rgb(66, 172, 243);\r\n }\r\n\r\n .warn {\r\n position: relative;\r\n margin-top: 20px;\r\n margin-bottom: 20px;\r\n padding: 5px 10px;\r\n border-left: 4px solid #f9cf63;\r\n background-color: #ffffc0;\r\n border-color: #f9cf63;\r\n }\r\n}\r\n\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_post/_outdated.scss","// ==============================\r\n// Pagination\r\n// ==============================\r\n\r\n.pagination {\r\n margin: $pagination-margin;\r\n @include clearfix;\r\n\r\n .prev,\r\n .next {\r\n font-weight: 600;\r\n font-size: $pagination-font-size;\r\n font-family: $global-serif-font-family;\r\n transition-property: transform;\r\n transition-timing-function: ease-out;\r\n transition-duration: 0.3s;\r\n }\r\n\r\n .prev {\r\n float: left;\r\n\r\n &:hover {\r\n color: $theme-color;\r\n transform: translateX(-4px); \r\n }\r\n }\r\n\r\n .next {\r\n float: right;\r\n\r\n &:hover {\r\n color: $theme-color;\r\n transform: translateX(4px); \r\n }\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_pagination.scss","// ==============================\r\n// Post footer\r\n// =============================\r\n\r\n.footer {\r\n margin-top: $footer-margin-top;\r\n\r\n @import \"_footer/social\";\r\n @import \"_footer/copyright\";\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_footer.scss","// ==============================\r\n// Social\r\n// =============================\r\n\r\n.social-links {\r\n text-align: center;\r\n\r\n .iconfont {\r\n font-size: $social-icon-font-size;\r\n\r\n & + .iconfont {\r\n margin-left: $social-link-margin-left;\r\n } \r\n\r\n &:hover {\r\n color: $theme-color;\r\n }\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_footer/_social.scss","// ==============================\r\n// Copyright\r\n// =============================\r\n\r\n.copyright {\r\n margin: $copyright-margin;\r\n color: $dark-gray;\r\n text-align: center;\r\n font-family: $global-serif-font-family;\r\n\r\n .hexo-link,\r\n .theme-link {\r\n color: $theme-color;\r\n }\r\n\r\n .copyright-year {\r\n display: block;\r\n\r\n .heart {\r\n font-size: 14px;\r\n }\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_footer/_copyright.scss","// ==============================\r\n// Archive\r\n// =============================\r\n\r\n.archive {\r\n margin: $archive-margin;\r\n max-width: $archive-max-width;\r\n\r\n .archive-title {\r\n font-family: $global-serif-font-family;\r\n\r\n &.tag,\r\n &.category {\r\n margin: 15px 0;\r\n }\r\n\r\n .archive-name {\r\n margin: 0;\r\n display: inline-block;\r\n font-weight: 400;\r\n font-size: $archive-name-font-size;\r\n line-height: $archive-name-font-size + 2px;\r\n }\r\n\r\n .archive-post-counter {\r\n color: $dark-gray;\r\n }\r\n }\r\n\r\n .collection-title {\r\n font-family: $global-serif-font-family;\r\n \r\n .archive-year {\r\n margin: 15px 0;\r\n font-weight: 400;\r\n font-size: $collection-title-font-size;\r\n line-height: $collection-title-font-size + 2px;\r\n }\r\n }\r\n\r\n .archive-post {\r\n padding: $archive-post-padding;\r\n border-left: $archive-post-border-left;\r\n\r\n .archive-post-time {\r\n margin-right: 10px;\r\n color: $dark-gray;\r\n }\r\n\r\n .archive-post-title {\r\n \r\n .archive-post-link {\r\n color: $theme-color;\r\n }\r\n }\r\n\r\n &::first-child {\r\n margin-top: 10px;\r\n }\r\n\r\n &:hover {\r\n border-left: $archive-post-hover-border-left;\r\n transition: $archive-post-hover-transition;\r\n transform: $archive-post-hover-transform;\r\n\r\n .archive-post-time {\r\n color: darken($dark-gray, 10%);\r\n }\r\n\r\n .archive-post-title .archive-post-link {\r\n color: darken($theme-color, 10%);\r\n }\r\n }\r\n }\r\n}\r\n\r\n@include max-screen() {\r\n .archive {\r\n margin-left: auto;\r\n margin-right: auto;\r\n\r\n .archive-title .archive-name {\r\n font-size: $archive-name-font-size - 4px;\r\n }\r\n\r\n .collection-title .archive-year {\r\n margin: 10px 0;\r\n font-size: $collection-title-font-size - 4px;\r\n }\r\n\r\n .archive-post {\r\n padding: $archive-post-mobile-padding;\r\n\r\n .archive-post-time {\r\n font-size: $archive-post-mobile-time-font-size;\r\n display: block;\r\n }\r\n }\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_archive.scss","// ==============================\r\n// Tags\r\n// =============================\r\n\r\n.tag-cloud {\r\n margin: 2em 0 3em;\r\n text-align: center;\r\n font-family: $global-serif-font-family;\r\n\r\n .tag-cloud-title {\r\n display: inline-block;\r\n font-size: $tag-cloud-title-size;\r\n color: $theme-color;\r\n border-bottom: $tag-cloud-title-border-bottom;\r\n }\r\n\r\n .tag-cloud-tags {\r\n margin: 10px 0;\r\n\r\n a {\r\n display: inline-block;\r\n position: relative;\r\n margin: $tag-cloud-tags-link-margin;\r\n word-wrap: break-word;\r\n transition-duration: 0.2s;\r\n transition-property: transform;\r\n transition-timing-function: ease-out;\r\n\r\n .tag-count {\r\n display: inline-block;\r\n position: relative;\r\n top: -8px;\r\n right: -2px;\r\n color: $theme-color;\r\n font-size: $category-count-font-size;\r\n }\r\n\r\n &:active,\r\n &:focus,\r\n &:hover {\r\n color: $theme-color;\r\n transform: scale(1.1);\r\n }\r\n }\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_tags.scss","\r\n.categories {\r\n margin: 2em 0 3em;\r\n text-align: center;\r\n font-family: $global-serif-font-family;\r\n\r\n .categories-title {\r\n display: inline-block;\r\n font-size: $categories-title-size;\r\n color: $theme-color;\r\n border-bottom: $categories-title-border-bottom;\r\n }\r\n\r\n .categories-tags {\r\n margin: 10px 0;\r\n\r\n .category-link {\r\n display: inline-block;\r\n position: relative;\r\n margin: $categories-tags-link-margin;\r\n word-wrap: break-word;\r\n transition-duration: 0.2s;\r\n transition-property: transform;\r\n transition-timing-function: ease-out;\r\n\r\n .category-count {\r\n display: inline-block;\r\n position: relative;\r\n top: -8px;\r\n right: -2px;\r\n color: $theme-color;\r\n font-size: $category-count-font-size;\r\n }\r\n\r\n &:active,\r\n &:focus,\r\n &:hover {\r\n color: $theme-color;\r\n transform: scale(1.1);\r\n }\r\n }\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_categories.scss","// ==============================\r\n// slideout (https://github.com/mango/slideout)\r\n// ==============================\r\n\r\n.slideout-menu {\r\n position: fixed;\r\n top: 0;\r\n left: 0px;\r\n bottom: 0;\r\n width: 180px;\r\n min-height: 100vh;\r\n overflow-y: hidden;\r\n -webkit-overflow-scrolling: touch;\r\n z-index: 0;\r\n display: none;\r\n}\r\n\r\n.slideout-panel {\r\n position: relative;\r\n z-index: 1;\r\n background-color: $white;\r\n min-height: 100vh;\r\n}\r\n\r\n.slideout-open,\r\n.slideout-open body,\r\n.slideout-open .slideout-panel {\r\n overflow: hidden;\r\n}\r\n\r\n.slideout-open .slideout-menu {\r\n display: block;\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_slideout.scss","// ==============================\r\n// Mobile Navbar\r\n// ==============================\r\n\r\n.mobile-navbar {\r\n display: none;\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: $mobile-navbar-height;\r\n background: $white;\r\n box-shadow: 0px 2px 2px $gray;\r\n text-align: center;\r\n transition: transform 300ms ease;\r\n z-index: 99;\r\n\r\n &.fixed-open {\r\n transform: translate3d(180px, 0px, 0px);\r\n }\r\n\r\n .mobile-header-logo {\r\n display: inline-block;\r\n margin-right: 50px;\r\n\r\n .logo {\r\n font-size: 22px;\r\n line-height: $mobile-navbar-height;\r\n font-family: $logo-font-family;\r\n }\r\n }\r\n\r\n .mobile-navbar-icon {\r\n color: $theme-color;\r\n height: $mobile-navbar-height;\r\n width: $mobile-navbar-height;\r\n font-size: 24px;\r\n text-align: center;\r\n float: left;\r\n position: relative;\r\n transition: background 0.5s;\r\n\r\n @include mobile-menu-icon();\r\n }\r\n}\r\n\r\n.mobile-menu {\r\n background-color: rgba($deputy-color, 0.5);\r\n\r\n .mobile-menu-list {\r\n position: relative;\r\n list-style: none;\r\n margin-top: 50px;\r\n padding: 0;\r\n border-top: 1px solid $deputy-color;\r\n\r\n .mobile-menu-item {\r\n padding: 10px 30px;\r\n border-bottom: 1px solid $deputy-color;\r\n }\r\n\r\n a {\r\n font-size: 18px;\r\n font-family: $global-serif-font-family;\r\n\r\n &:hover {\r\n color: $theme-color;\r\n }\r\n }\r\n }\r\n}\r\n\r\n@include max-screen() {\r\n .mobile-navbar {\r\n display: block;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_mobile.scss","// ==============================\r\n// Back to top\r\n// =============================\r\n\r\n.back-to-top {\r\n display: none;\r\n position: fixed;\r\n right: 20px;\r\n bottom: 20px;\r\n transition-property: transform;\r\n transition-timing-function: ease-out;\r\n transition-duration: 0.3s;\r\n z-index: 10;\r\n\r\n &:hover {\r\n transform: translateY(-5px); \r\n }\r\n}\r\n\r\n@include max-screen() {\r\n .back-to-top {\r\n display: none !important;\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_back-to-top.scss","// ==============================\r\n// Archive\r\n// =============================\r\n\r\n.not-found {\r\n text-align: center;\r\n\r\n .error-emoji {\r\n color: #363636;\r\n font-size: 3rem;\r\n }\r\n\r\n .error-text {\r\n color: #797979;\r\n font-size: 1.25rem;\r\n }\r\n\r\n .error-link {\r\n margin-top: 2rem;\r\n\r\n a {\r\n color: $theme-color;\r\n }\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./css/E:/C/blog/hugo/olowolo/themes/even/src/css/_partial/_404.scss"],"sourceRoot":""} \ No newline at end of file diff --git a/themes/even/static/dist/even.min.js b/themes/even/static/dist/even.min.js new file mode 100644 index 0000000..548a4e4 --- /dev/null +++ b/themes/even/static/dist/even.min.js @@ -0,0 +1,2 @@ +!function(e){var n={};function t(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";var o=t(1);t(2),$(document).ready(function(){o.Even.backToTop(),o.Even.mobileNavbar(),o.Even.toc(),o.Even.fancybox()}),o.Even.flowchart(),o.Even.sequence(),hljs.initHighlighting(),o.Even.highlight()},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o={};o.backToTop=function(){var e=$("#back-to-top");$(window).scroll(function(){$(window).scrollTop()>100?e.fadeIn(1e3):e.fadeOut(1e3)}),e.click(function(){$("body,html").animate({scrollTop:0})})},o.mobileNavbar=function(){var e=$("#mobile-navbar"),n=$(".mobile-navbar-icon"),t=new Slideout({panel:document.getElementById("mobile-panel"),menu:document.getElementById("mobile-menu"),padding:180,tolerance:70});t.disableTouch(),n.click(function(){t.toggle()}),t.on("beforeopen",function(){e.addClass("fixed-open"),n.addClass("icon-click").removeClass("icon-out")}),t.on("beforeclose",function(){e.removeClass("fixed-open"),n.addClass("icon-out").removeClass("icon-click")}),$("#mobile-panel").on("touchend",function(){t.isOpen()&&n.click()})},o._initToc=function(){var e=$(".post-toc"),n=$(".post-footer");if(e.length){var t=e.offset().top-20,o=n.offset().top-e.height()-20,a={start:{position:"absolute",top:t},process:{position:"fixed",top:20},end:{position:"absolute",top:o}};$(window).scroll(function(){var n=$(window).scrollTop();no?e.css(a.end):e.css(a.process)})}var r=$(".toc-link"),c=$(".headerlink"),i=$(".post-toc-content li"),l=$.map(c,function(e){return $(e).offset().top}),s=$.map(l,function(e){return e-30});$(window).scroll(function(){var e=$(window).scrollTop(),n=function(e,n){for(var t=0;te[t]&&n<=e[t+1])return t;return n>e[e.length-1]?e.length-1:-1}(s,e);if($(r).removeClass("active"),$(i).removeClass("has-active"),-1!==n){$(r[n]).addClass("active");for(var t=r[n].parentNode;"NAV"!==t.tagName;)$(t).addClass("has-active"),t=t.parentNode.parentNode}})},o.fancybox=function(){$.fancybox&&($(".post-content").each(function(){$(this).find("img").each(function(){$(this).wrap('')})}),$(".fancybox").fancybox({selector:".fancybox",protect:!0}))},o.highlight=function(){for(var e=document.querySelectorAll("pre code"),n=0;n'+(i+1)+"
";for(var l="",s=0;s'+a[s]+"";t.className+=" highlight";var d=document.createElement("figure");d.className=t.className,d.innerHTML='
'+c+'
'+l+"
",o.parentElement.replaceChild(d,o)}},o.toc=function(){var e=document.getElementById("post-toc");if(null!==e){var n=document.getElementById("TableOfContents");null===n?e.parentNode.removeChild(e):(this._refactorToc(n),this._linkToc(),this._initToc())}},o._refactorToc=function(e){for(var n=e.children[0],t=n,o=void 0;1===t.children.length&&"UL"===(o=t.children[0].children[0]).tagName;)t=o;t!==n&&e.replaceChild(t,n)},o._linkToc=function(){for(var e=document.querySelectorAll("#TableOfContents a:first-child"),n=0;nh"+t),a=0;a'+r.innerHTML}},o.flowchart=function(){if(window.flowchart)for(var e=document.querySelectorAll("pre code.language-flowchart"),n=0;n 100) {\r\n $backToTop.fadeIn(1000)\r\n } else {\r\n $backToTop.fadeOut(1000)\r\n }\r\n })\r\n\r\n $backToTop.click(function () {\r\n $('body,html').animate({ scrollTop: 0 })\r\n })\r\n}\r\n\r\nEven.mobileNavbar = function () {\r\n const $mobileNav = $('#mobile-navbar')\r\n const $mobileNavIcon = $('.mobile-navbar-icon')\r\n const slideout = new Slideout({\r\n 'panel': document.getElementById('mobile-panel'),\r\n 'menu': document.getElementById('mobile-menu'),\r\n 'padding': 180,\r\n 'tolerance': 70\r\n })\r\n slideout.disableTouch()\r\n\r\n $mobileNavIcon.click(function () {\r\n slideout.toggle()\r\n })\r\n\r\n slideout.on('beforeopen', function () {\r\n $mobileNav.addClass('fixed-open')\r\n $mobileNavIcon.addClass('icon-click').removeClass('icon-out')\r\n })\r\n\r\n slideout.on('beforeclose', function () {\r\n $mobileNav.removeClass('fixed-open')\r\n $mobileNavIcon.addClass('icon-out').removeClass('icon-click')\r\n })\r\n\r\n $('#mobile-panel').on('touchend', function () {\r\n slideout.isOpen() && $mobileNavIcon.click()\r\n })\r\n}\r\n\r\nEven._initToc = function () {\r\n const SPACING = 20\r\n const $toc = $('.post-toc')\r\n const $footer = $('.post-footer')\r\n\r\n if ($toc.length) {\r\n const minScrollTop = $toc.offset().top - SPACING\r\n const maxScrollTop = $footer.offset().top - $toc.height() - SPACING\r\n\r\n const tocState = {\r\n start: {\r\n 'position': 'absolute',\r\n 'top': minScrollTop\r\n },\r\n process: {\r\n 'position': 'fixed',\r\n 'top': SPACING\r\n },\r\n end: {\r\n 'position': 'absolute',\r\n 'top': maxScrollTop\r\n }\r\n }\r\n\r\n $(window).scroll(function () {\r\n const scrollTop = $(window).scrollTop()\r\n\r\n if (scrollTop < minScrollTop) {\r\n $toc.css(tocState.start)\r\n } else if (scrollTop > maxScrollTop) {\r\n $toc.css(tocState.end)\r\n } else {\r\n $toc.css(tocState.process)\r\n }\r\n })\r\n }\r\n\r\n const HEADERFIX = 30\r\n const $toclink = $('.toc-link')\r\n const $headerlink = $('.headerlink')\r\n const $tocLinkLis = $('.post-toc-content li')\r\n\r\n const headerlinkTop = $.map($headerlink, function (link) {\r\n return $(link).offset().top\r\n })\r\n\r\n const headerLinksOffsetForSearch = $.map(headerlinkTop, function (offset) {\r\n return offset - HEADERFIX\r\n })\r\n\r\n const searchActiveTocIndex = function (array, target) {\r\n for (let i = 0; i < array.length - 1; i++) {\r\n if (target > array[i] && target <= array[i + 1]) return i\r\n }\r\n if (target > array[array.length - 1]) return array.length - 1\r\n return -1\r\n }\r\n\r\n $(window).scroll(function () {\r\n const scrollTop = $(window).scrollTop()\r\n const activeTocIndex = searchActiveTocIndex(headerLinksOffsetForSearch, scrollTop)\r\n\r\n $($toclink).removeClass('active')\r\n $($tocLinkLis).removeClass('has-active')\r\n\r\n if (activeTocIndex !== -1) {\r\n $($toclink[activeTocIndex]).addClass('active')\r\n let ancestor = $toclink[activeTocIndex].parentNode\r\n while (ancestor.tagName !== 'NAV') {\r\n $(ancestor).addClass('has-active')\r\n ancestor = ancestor.parentNode.parentNode\r\n }\r\n }\r\n })\r\n}\r\n\r\nEven.fancybox = function () {\r\n if ($.fancybox) {\r\n $('.post-content').each(function () {\r\n $(this).find('img').each(function () {\r\n $(this).wrap(``)\r\n })\r\n })\r\n\r\n $('.fancybox').fancybox({\r\n selector: '.fancybox',\r\n protect: true\r\n })\r\n }\r\n}\r\n\r\nEven.highlight = function () {\r\n const blocks = document.querySelectorAll('pre code')\r\n for (let i = 0; i < blocks.length; i++) {\r\n const block = blocks[i]\r\n const rootElement = block.parentElement\r\n const lineCodes = block.innerHTML.split(/\\n/)\r\n if (lineCodes[lineCodes.length - 1] === '') lineCodes.pop()\r\n const lineLength = lineCodes.length\r\n\r\n let codeLineHtml = ''\r\n for (let i = 0; i < lineLength; i++) {\r\n codeLineHtml += `
${i + 1}
`\r\n }\r\n\r\n let codeHtml = ''\r\n for (let i = 0; i < lineLength; i++) {\r\n codeHtml += `
${lineCodes[i]}
`\r\n }\r\n\r\n block.className += ' highlight'\r\n const figure = document.createElement('figure')\r\n figure.className = block.className\r\n figure.innerHTML = `
${codeLineHtml}
${codeHtml}
`\r\n\r\n rootElement.parentElement.replaceChild(figure, rootElement)\r\n }\r\n}\r\n\r\nEven.toc = function () {\r\n const tocContainer = document.getElementById('post-toc')\r\n if (tocContainer !== null) {\r\n const toc = document.getElementById('TableOfContents')\r\n if (toc === null) {\r\n // toc = true, but there are no headings\r\n tocContainer.parentNode.removeChild(tocContainer)\r\n } else {\r\n this._refactorToc(toc)\r\n this._linkToc()\r\n this._initToc()\r\n }\r\n }\r\n}\r\n\r\nEven._refactorToc = function (toc) {\r\n // when headings do not start with `h1`\r\n const oldTocList = toc.children[0]\r\n let newTocList = oldTocList\r\n let temp\r\n while (newTocList.children.length === 1 && (temp = newTocList.children[0].children[0]).tagName === 'UL') newTocList = temp\r\n\r\n if (newTocList !== oldTocList) toc.replaceChild(newTocList, oldTocList)\r\n}\r\n\r\nEven._linkToc = function () {\r\n const links = document.querySelectorAll('#TableOfContents a:first-child')\r\n for (let i = 0; i < links.length; i++) links[i].className += ' toc-link'\r\n\r\n for (let num = 1; num <= 6; num++) {\r\n const headers = document.querySelectorAll('.post-content>h' + num)\r\n for (let i = 0; i < headers.length; i++) {\r\n const header = headers[i]\r\n header.innerHTML = `${header.innerHTML}`\r\n }\r\n }\r\n}\r\n\r\nEven.flowchart = function () {\r\n if (!window.flowchart) return\r\n\r\n const blocks = document.querySelectorAll('pre code.language-flowchart')\r\n for (let i = 0; i < blocks.length; i++) {\r\n const block = blocks[i]\r\n const rootElement = block.parentElement\r\n\r\n const container = document.createElement('div')\r\n const id = `js-flowchart-diagrams-${i}`\r\n container.id = id\r\n container.className = 'align-center'\r\n rootElement.parentElement.replaceChild(container, rootElement)\r\n\r\n const diagram = flowchart.parse(block.childNodes[0].nodeValue)\r\n diagram.drawSVG(id, window.flowchartDiagramsOptions ? window.flowchartDiagramsOptions : {})\r\n }\r\n}\r\n\r\nEven.sequence = function () {\r\n if (!window.Diagram) return\r\n\r\n const blocks = document.querySelectorAll('pre code.language-sequence')\r\n for (let i = 0; i < blocks.length; i++) {\r\n const block = blocks[i]\r\n const rootElement = block.parentElement\r\n\r\n const container = document.createElement('div')\r\n const id = `js-sequence-diagrams-${i}`\r\n container.id = id\r\n container.className = 'align-center'\r\n rootElement.parentElement.replaceChild(container, rootElement)\r\n\r\n const diagram = Diagram.parse(block.childNodes[0].nodeValue)\r\n diagram.drawSVG(id, window.sequenceDiagramsOptions ? window.sequenceDiagramsOptions : {theme: 'simple'})\r\n }\r\n}\r\n\r\nexport {Even}\r\n\n\n\n// WEBPACK FOOTER //\n// ./js/even.js"],"sourceRoot":""} \ No newline at end of file diff --git a/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.eot b/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.eot new file mode 100644 index 0000000..39c3936 Binary files /dev/null and b/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.eot differ diff --git a/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.svg b/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.svg new file mode 100644 index 0000000..2b18b6a --- /dev/null +++ b/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.svg @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.ttf b/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.ttf new file mode 100644 index 0000000..8238aa4 Binary files /dev/null and b/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.ttf differ diff --git a/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.woff b/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.woff new file mode 100644 index 0000000..e476776 Binary files /dev/null and b/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.woff differ diff --git a/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.woff2 b/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.woff2 new file mode 100644 index 0000000..922dfb3 Binary files /dev/null and b/themes/even/static/dist/fonts/chancery/apple-chancery-webfont.woff2 differ diff --git a/themes/even/static/dist/fonts/iconfont/iconfont.eot b/themes/even/static/dist/fonts/iconfont/iconfont.eot new file mode 100644 index 0000000..912bca3 Binary files /dev/null and b/themes/even/static/dist/fonts/iconfont/iconfont.eot differ diff --git a/themes/even/static/dist/fonts/iconfont/iconfont.svg b/themes/even/static/dist/fonts/iconfont/iconfont.svg new file mode 100644 index 0000000..a13a862 --- /dev/null +++ b/themes/even/static/dist/fonts/iconfont/iconfont.svg @@ -0,0 +1,93 @@ + + + + + +Created by iconfont + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/themes/even/static/dist/fonts/iconfont/iconfont.ttf b/themes/even/static/dist/fonts/iconfont/iconfont.ttf new file mode 100644 index 0000000..f6765c5 Binary files /dev/null and b/themes/even/static/dist/fonts/iconfont/iconfont.ttf differ diff --git a/themes/even/static/dist/fonts/iconfont/iconfont.woff b/themes/even/static/dist/fonts/iconfont/iconfont.woff new file mode 100644 index 0000000..526da66 Binary files /dev/null and b/themes/even/static/dist/fonts/iconfont/iconfont.woff differ diff --git a/themes/even/static/favicon-16x16.png b/themes/even/static/favicon-16x16.png new file mode 100644 index 0000000..74c7dab Binary files /dev/null and b/themes/even/static/favicon-16x16.png differ diff --git a/themes/even/static/favicon-32x32.png b/themes/even/static/favicon-32x32.png new file mode 100644 index 0000000..c418957 Binary files /dev/null and b/themes/even/static/favicon-32x32.png differ diff --git a/themes/even/static/favicon.ico b/themes/even/static/favicon.ico new file mode 100644 index 0000000..08da9cd Binary files /dev/null and b/themes/even/static/favicon.ico differ diff --git a/themes/even/static/img/reward/alipay.png b/themes/even/static/img/reward/alipay.png new file mode 100644 index 0000000..b8a7b4f Binary files /dev/null and b/themes/even/static/img/reward/alipay.png differ diff --git a/themes/even/static/img/reward/wechat.png b/themes/even/static/img/reward/wechat.png new file mode 100644 index 0000000..a80527a Binary files /dev/null and b/themes/even/static/img/reward/wechat.png differ diff --git a/themes/even/static/img/spinner.svg b/themes/even/static/img/spinner.svg new file mode 100644 index 0000000..cbd8855 --- /dev/null +++ b/themes/even/static/img/spinner.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/themes/even/static/lib/fancybox/jquery.fancybox-3.1.20.min.css b/themes/even/static/lib/fancybox/jquery.fancybox-3.1.20.min.css new file mode 100644 index 0000000..e88fae3 --- /dev/null +++ b/themes/even/static/lib/fancybox/jquery.fancybox-3.1.20.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.fancybox-enabled{overflow:hidden}.fancybox-enabled body{overflow:visible;height:100%}.fancybox-is-hidden{position:absolute;top:-9999px;left:-9999px;visibility:hidden}.fancybox-container{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99993;-webkit-tap-highlight-color:transparent;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translateZ(0);transform:translateZ(0)}.fancybox-container~.fancybox-container{z-index:99992}.fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-stage{position:absolute;top:0;right:0;bottom:0;left:0}.fancybox-outer{overflow-y:auto;-webkit-overflow-scrolling:touch}.fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}.fancybox-is-open .fancybox-bg{opacity:.87;transition-timing-function:cubic-bezier(.22,.61,.36,1)}.fancybox-caption-wrap,.fancybox-infobar,.fancybox-toolbar{position:absolute;direction:ltr;z-index:99997;opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s linear .25s;box-sizing:border-box}.fancybox-show-caption .fancybox-caption-wrap,.fancybox-show-infobar .fancybox-infobar,.fancybox-show-toolbar .fancybox-toolbar{opacity:1;visibility:visible;transition:opacity .25s,visibility 0s}.fancybox-infobar{top:0;left:50%;margin-left:-79px}.fancybox-infobar__body{display:inline-block;width:70px;line-height:44px;font-size:13px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;text-align:center;color:#ddd;background-color:rgba(30,30,30,.7);pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:subpixel-antialiased}.fancybox-toolbar{top:0;right:0}.fancybox-stage{overflow:hidden;direction:ltr;z-index:99994;-webkit-transform:translateZ(0)}.fancybox-slide{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;overflow:auto;outline:none;white-space:normal;box-sizing:border-box;text-align:center;z-index:99994;-webkit-overflow-scrolling:touch;display:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.fancybox-slide:before{content:"";display:inline-block;vertical-align:middle;height:100%;width:0}.fancybox-is-sliding .fancybox-slide,.fancybox-slide--current,.fancybox-slide--next,.fancybox-slide--previous{display:block}.fancybox-slide--image{overflow:visible}.fancybox-slide--image:before{display:none}.fancybox-slide--video .fancybox-content,.fancybox-slide--video iframe{background:#000}.fancybox-slide--map .fancybox-content,.fancybox-slide--map iframe{background:#e5e3df}.fancybox-slide--next{z-index:99995}.fancybox-slide>*{display:inline-block;position:relative;padding:24px;margin:44px 0;border-width:0;vertical-align:middle;text-align:left;background-color:#fff;overflow:auto;box-sizing:border-box}.fancybox-slide .fancybox-image-wrap{position:absolute;top:0;left:0;margin:0;padding:0;border:0;z-index:99995;background:transparent;cursor:default;overflow:visible;-webkit-transform-origin:top left;transform-origin:top left;background-size:100% 100%;background-repeat:no-repeat;-webkit-backface-visibility:hidden;backface-visibility:hidden}.fancybox-can-zoomOut .fancybox-image-wrap{cursor:zoom-out}.fancybox-can-zoomIn .fancybox-image-wrap{cursor:zoom-in}.fancybox-can-drag .fancybox-image-wrap{cursor:-webkit-grab;cursor:grab}.fancybox-is-dragging .fancybox-image-wrap{cursor:-webkit-grabbing;cursor:grabbing}.fancybox-image,.fancybox-spaceball{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;max-width:none;max-height:none}.fancybox-spaceball{z-index:1}.fancybox-slide--iframe .fancybox-content{padding:0;width:80%;height:80%;max-width:calc(100% - 100px);max-height:calc(100% - 88px);overflow:visible;background:#fff}.fancybox-iframe{display:block;padding:0;border:0;height:100%}.fancybox-error,.fancybox-iframe{margin:0;width:100%;background:#fff}.fancybox-error{padding:40px;max-width:380px;cursor:default}.fancybox-error p{margin:0;padding:0;color:#444;font:16px/20px Helvetica Neue,Helvetica,Arial,sans-serif}.fancybox-close-small{position:absolute;top:0;right:0;width:44px;height:44px;padding:0;margin:0;border:0;border-radius:0;outline:none;background:transparent;z-index:10;cursor:pointer}.fancybox-close-small:after{content:"×";position:absolute;top:5px;right:5px;width:30px;height:30px;font:20px/30px Arial,Helvetica Neue,Helvetica,sans-serif;color:#888;font-weight:300;text-align:center;border-radius:50%;border-width:0;background:#fff;transition:background .25s;box-sizing:border-box;z-index:2}.fancybox-close-small:focus:after{outline:1px dotted #888}.fancybox-close-small:hover:after{color:#555;background:#eee}.fancybox-slide--iframe .fancybox-close-small{top:0;right:-44px}.fancybox-slide--iframe .fancybox-close-small:after{background:transparent;font-size:35px;color:#aaa}.fancybox-slide--iframe .fancybox-close-small:hover:after{color:#fff}.fancybox-caption-wrap{bottom:0;left:0;right:0;padding:60px 30px 0;background:linear-gradient(180deg,transparent 0,rgba(0,0,0,.1) 20%,rgba(0,0,0,.2) 40%,rgba(0,0,0,.6) 80%,rgba(0,0,0,.8));pointer-events:none}.fancybox-caption{padding:30px 0;border-top:1px solid hsla(0,0%,100%,.4);font-size:14px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;color:#fff;line-height:20px;-webkit-text-size-adjust:none}.fancybox-caption a,.fancybox-caption button,.fancybox-caption select{pointer-events:all}.fancybox-caption a{color:#fff;text-decoration:underline}.fancybox-button{display:inline-block;position:relative;margin:0;padding:0;border:0;width:44px;height:44px;line-height:44px;text-align:center;background:transparent;color:#ddd;border-radius:0;cursor:pointer;vertical-align:top;outline:none}.fancybox-button[disabled]{cursor:default;pointer-events:none}.fancybox-button,.fancybox-infobar__body{background:rgba(30,30,30,.6)}.fancybox-button:hover:not([disabled]){color:#fff;background:rgba(0,0,0,.8)}.fancybox-button:after,.fancybox-button:before{content:"";pointer-events:none;position:absolute;background-color:currentColor;color:currentColor;opacity:.9;box-sizing:border-box;display:inline-block}.fancybox-button[disabled]:after,.fancybox-button[disabled]:before{opacity:.3}.fancybox-button--left:after,.fancybox-button--right:after{top:18px;width:6px;height:6px;background:transparent;border-top:2px solid currentColor;border-right:2px solid currentColor}.fancybox-button--left:after{left:20px;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.fancybox-button--right:after{right:20px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.fancybox-button--left{border-bottom-left-radius:5px}.fancybox-button--right{border-bottom-right-radius:5px}.fancybox-button--close:after,.fancybox-button--close:before{content:"";display:inline-block;position:absolute;height:2px;width:16px;top:calc(50% - 1px);left:calc(50% - 8px)}.fancybox-button--close:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.fancybox-button--close:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.fancybox-arrow{position:absolute;top:50%;margin:-50px 0 0;height:100px;width:54px;padding:0;border:0;outline:none;background:none;cursor:pointer;z-index:99995;opacity:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:opacity .25s}.fancybox-arrow:after{content:"";position:absolute;top:28px;width:44px;height:44px;background-color:rgba(30,30,30,.8);background-image:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSI0OCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMTIgNGwtMS40MSAxLjQxTDE2LjE3IDExSDR2MmgxMi4xN2wtNS41OCA1LjU5TDEyIDIwbDgtOHoiLz48L3N2Zz4=);background-repeat:no-repeat;background-position:50%;background-size:24px 24px}.fancybox-arrow--right{right:0}.fancybox-arrow--left{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fancybox-arrow--left:after,.fancybox-arrow--right:after{left:0}.fancybox-show-nav .fancybox-arrow{opacity:.6}.fancybox-show-nav .fancybox-arrow[disabled]{opacity:.3}.fancybox-loading{border:6px solid hsla(0,0%,39%,.4);border-top:6px solid hsla(0,0%,100%,.6);border-radius:100%;height:50px;width:50px;-webkit-animation:a .8s infinite linear;animation:a .8s infinite linear;background:transparent;position:absolute;top:50%;left:50%;margin-top:-25px;margin-left:-25px;z-index:99999}@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}.fancybox-fx-slide.fancybox-slide--previous{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);opacity:0}.fancybox-fx-slide.fancybox-slide--next{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);opacity:0}.fancybox-fx-slide.fancybox-slide--current{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.fancybox-fx-fade.fancybox-slide--next,.fancybox-fx-fade.fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}.fancybox-fx-fade.fancybox-slide--current{opacity:1}.fancybox-fx-zoom-in-out.fancybox-slide--previous{-webkit-transform:scale3d(1.5,1.5,1.5);transform:scale3d(1.5,1.5,1.5);opacity:0}.fancybox-fx-zoom-in-out.fancybox-slide--next{-webkit-transform:scale3d(.5,.5,.5);transform:scale3d(.5,.5,.5);opacity:0}.fancybox-fx-zoom-in-out.fancybox-slide--current{-webkit-transform:scaleX(1);transform:scaleX(1);opacity:1}.fancybox-fx-rotate.fancybox-slide--previous{-webkit-transform:rotate(-1turn);transform:rotate(-1turn);opacity:0}.fancybox-fx-rotate.fancybox-slide--next{-webkit-transform:rotate(1turn);transform:rotate(1turn);opacity:0}.fancybox-fx-rotate.fancybox-slide--current{-webkit-transform:rotate(0deg);transform:rotate(0deg);opacity:1}.fancybox-fx-circular.fancybox-slide--previous{-webkit-transform:scale3d(0,0,0) translate3d(-100%,0,0);transform:scale3d(0,0,0) translate3d(-100%,0,0);opacity:0}.fancybox-fx-circular.fancybox-slide--next{-webkit-transform:scale3d(0,0,0) translate3d(100%,0,0);transform:scale3d(0,0,0) translate3d(100%,0,0);opacity:0}.fancybox-fx-circular.fancybox-slide--current{-webkit-transform:scaleX(1) translateZ(0);transform:scaleX(1) translateZ(0);opacity:1}.fancybox-fx-tube.fancybox-slide--previous{-webkit-transform:translate3d(-100%,0,0) scale(.1) skew(-10deg);transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}.fancybox-fx-tube.fancybox-slide--next{-webkit-transform:translate3d(100%,0,0) scale(.1) skew(10deg);transform:translate3d(100%,0,0) scale(.1) skew(10deg)}.fancybox-fx-tube.fancybox-slide--current{-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}@media (max-width:800px){.fancybox-infobar{left:0;margin-left:0}.fancybox-button--left,.fancybox-button--right{display:none!important}.fancybox-caption{padding:20px 0;margin:0}}.fancybox-button--fullscreen:before{width:15px;height:11px;left:calc(50% - 7px);top:calc(50% - 6px);border:2px solid;background:none}.fancybox-button--pause:before,.fancybox-button--play:before{top:calc(50% - 6px);left:calc(50% - 4px);background:transparent}.fancybox-button--play:before{width:0;height:0;border-top:6px inset transparent;border-bottom:6px inset transparent;border-left:10px solid;border-radius:1px}.fancybox-button--pause:before{width:7px;height:11px;border-style:solid;border-width:0 2px}.fancybox-button--thumbs,.fancybox-thumbs{display:none}@media (min-width:800px){.fancybox-button--thumbs{display:inline-block}.fancybox-button--thumbs span{font-size:23px}.fancybox-button--thumbs:before{width:3px;height:3px;top:calc(50% - 2px);left:calc(50% - 2px);box-shadow:0 -4px 0,-4px -4px 0,4px -4px 0,inset 0 0 0 32px,-4px 0 0,4px 0 0,0 4px 0,-4px 4px 0,4px 4px 0}.fancybox-thumbs{position:absolute;top:0;right:0;bottom:0;left:auto;width:220px;margin:0;padding:5px 5px 0 0;background:#fff;word-break:normal;-webkit-tap-highlight-color:transparent;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;box-sizing:border-box;z-index:99995}.fancybox-show-thumbs .fancybox-thumbs{display:block}.fancybox-show-thumbs .fancybox-inner{right:220px}.fancybox-thumbs>ul{list-style:none;position:absolute;position:relative;width:100%;height:100%;margin:0;padding:0;overflow-x:hidden;overflow-y:auto;font-size:0}.fancybox-thumbs>ul>li{float:left;overflow:hidden;max-width:50%;padding:0;margin:0;width:105px;height:75px;position:relative;cursor:pointer;outline:none;border:5px solid transparent;border-top-width:0;border-right-width:0;-webkit-tap-highlight-color:transparent;-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box}li.fancybox-thumbs-loading{background:rgba(0,0,0,.1)}.fancybox-thumbs>ul>li>img{position:absolute;top:0;left:0;min-width:100%;min-height:100%;max-width:none;max-height:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fancybox-thumbs>ul>li:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px;border:4px solid #4ea7f9;z-index:99991;opacity:0;transition:all .2s cubic-bezier(.25,.46,.45,.94)}.fancybox-thumbs>ul>li.fancybox-thumbs-active:before{opacity:1}} \ No newline at end of file diff --git a/themes/even/static/lib/fancybox/jquery.fancybox-3.1.20.min.js b/themes/even/static/lib/fancybox/jquery.fancybox-3.1.20.min.js new file mode 100644 index 0000000..e5e20f0 --- /dev/null +++ b/themes/even/static/lib/fancybox/jquery.fancybox-3.1.20.min.js @@ -0,0 +1,12 @@ +// ================================================== +// fancyBox v3.1.20 +// +// Licensed GPLv3 for open source use +// or fancyBox Commercial License for commercial use +// +// http://fancyapps.com/fancybox/ +// Copyright 2017 fancyApps +// +// ================================================== +!function(t,e,n,o){"use strict";function i(t){var e=t.currentTarget,o=t.data?t.data.options:{},i=t.data?t.data.items:[],a=n(e).attr("data-fancybox")||"",s=0;t.preventDefault(),t.stopPropagation(),a?(i=i.length?i.filter('[data-fancybox="'+a+'"]'):n('[data-fancybox="'+a+'"]'),s=i.index(e),s<0&&(s=0)):i=[e],n.fancybox.open(i,o,s)}if(n){if(n.fn.fancybox)return void n.error("fancyBox already initialized");var a={loop:!1,margin:[44,0],gutter:50,keyboard:!0,arrows:!0,infobar:!1,toolbar:!0,buttons:["slideShow","fullScreen","thumbs","close"],idleTime:4,smallBtn:"auto",protect:!1,modal:!1,image:{preload:"auto"},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'',preload:!0,css:{},attr:{scrolling:"auto"}},animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'',spinnerTpl:'
',errorTpl:'

{{ERROR}}

',btnTpl:{slideShow:'',fullScreen:'',thumbs:'',close:'',smallBtn:''},parentEl:"body",autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0},onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded.
Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden.
Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},u=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),d=function(){var t,n=e.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(n.style[t]!==o)return i[t]}(),f=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,o,i){var s=this;s.opts=n.extend(!0,{index:i},a,o||{}),o&&n.isArray(o.buttons)&&(s.opts.buttons=o.buttons),s.id=s.opts.id||++c,s.group=[],s.currIndex=parseInt(s.opts.index,10)||0,s.prevIndex=null,s.prevPos=null,s.currPos=0,s.firstRun=null,s.createGroup(t),s.group.length&&(s.$lastFocus=n(e.activeElement).blur(),s.slides={},s.init(t))};n.extend(h.prototype,{init:function(){var t,e,o,i=this,a=i.group[i.currIndex].opts;i.scrollTop=r.scrollTop(),i.scrollLeft=r.scrollLeft(),n.fancybox.getInstance()||n.fancybox.isMobile||"hidden"===n("body").css("overflow")||(t=n("body").width(),n("html").addClass("fancybox-enabled"),t=n("body").width()-t,t>1&&n("head").append('")),o="",n.each(a.buttons,function(t,e){o+=a.btnTpl[e]||""}),e=n(i.translate(i,a.baseTpl.replace("{{BUTTONS}}",o))).addClass("fancybox-is-hidden").attr("id","fancybox-container-"+i.id).addClass(a.baseClass).data("FancyBox",i).prependTo(a.parentEl),i.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption"].forEach(function(t){i.$refs[t]=e.find(".fancybox-"+t)}),(!a.arrows||i.group.length<2)&&e.find(".fancybox-navigation").remove(),a.infobar||i.$refs.infobar.remove(),a.toolbar||i.$refs.toolbar.remove(),i.trigger("onInit"),i.activate(),i.jumpTo(i.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang];return e.replace(/\{\{(\w+)\}\}/g,function(t,e){var i=n[e];return i===o?t:i})},createGroup:function(t){var e=this,i=n.makeArray(t);n.each(i,function(t,i){var a,s,r,c,l={},u={},d=[];n.isPlainObject(i)?(l=i,u=i.opts||i):"object"===n.type(i)&&n(i).length?(a=n(i),d=a.data(),u="options"in d?d.options:{},u="object"===n.type(u)?u:{},l.src="src"in d?d.src:u.src||a.attr("href"),["width","height","thumb","type","filter"].forEach(function(t){t in d&&(u[t]=d[t])}),"srcset"in d&&(u.image={srcset:d.srcset}),u.$orig=a,l.type||l.src||(l.type="inline",l.src=i)):l={type:"html",src:i+""},l.opts=n.extend(!0,{},e.opts,u),n.fancybox.isMobile&&(l.opts=n.extend(!0,{},l.opts,l.opts.mobile)),s=l.type||l.opts.type,r=l.src||"",!s&&r&&(r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":r.match(/\.(pdf)((\?|#).*)?$/i)?s="pdf":"#"===r.charAt(0)&&(s="inline")),l.type=s,l.index=e.group.length,l.opts.$orig&&!l.opts.$orig.length&&delete l.opts.$orig,!l.opts.$thumb&&l.opts.$orig&&(l.opts.$thumb=l.opts.$orig.find("img:first")),l.opts.$thumb&&!l.opts.$thumb.length&&delete l.opts.$thumb,"function"===n.type(l.opts.caption)?l.opts.caption=l.opts.caption.apply(i,[e,l]):"caption"in d&&(l.opts.caption=d.caption),l.opts.caption=l.opts.caption===o?"":l.opts.caption+"","ajax"===s&&(c=r.split(/\s+/,2),c.length>1&&(l.src=c.shift(),l.opts.filter=c.shift())),"auto"==l.opts.smallBtn&&(n.inArray(s,["html","inline","ajax"])>-1?(l.opts.toolbar=!1,l.opts.smallBtn=!0):l.opts.smallBtn=!1),"pdf"===s&&(l.type="iframe",l.opts.iframe.preload=!1),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),e.group.push(l)})},addEvents:function(){var o=this;o.removeEvents(),o.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),o.close(t)}).on("click.fb-prev touchend.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),o.previous()}).on("click.fb-next touchend.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),o.next()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?u(function(){o.update()}):(o.$refs.stage.hide(),setTimeout(function(){o.$refs.stage.show(),o.update()},500))}),r.on("focusin.fb",function(t){var i=n.fancybox?n.fancybox.getInstance():null;i.isClosing||!i.current||!i.current.opts.trapFocus||n(t.target).hasClass("fancybox-container")||n(t.target).is(e)||i&&"fixed"!==n(t.target).css("position")&&!i.$refs.container.has(t.target).length&&(t.stopPropagation(),i.focus(),s.scrollTop(o.scrollTop).scrollLeft(o.scrollLeft))}),r.on("keydown.fb",function(t){var e=o.current,i=t.keyCode||t.which;if(e&&e.opts.keyboard&&!n(t.target).is("input")&&!n(t.target).is("textarea"))return 8===i||27===i?(t.preventDefault(),void o.close(t)):37===i||38===i?(t.preventDefault(),void o.previous()):39===i||40===i?(t.preventDefault(),void o.next()):void o.trigger("afterKeydown",t,i)}),o.group[o.currIndex].opts.idleTime&&(o.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseenter.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(){o.idleSecondsCounter=0,o.isIdle&&o.showControls(),o.isIdle=!1}),o.idleInterval=t.setInterval(function(){o.idleSecondsCounter++,o.idleSecondsCounter>=o.group[o.currIndex].opts.idleTime&&(o.isIdle=!0,o.idleSecondsCounter=0,o.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("focusin.fb keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e,i){var a,s,r,c,l,u,d,h=this,p=h.group.length;if(!(h.isSliding||h.isClosing||h.isAnimating&&h.firstRun)){if(t=parseInt(t,10),s=h.current?h.current.opts.loop:h.opts.loop,!s&&(t<0||t>=p))return!1;if(a=h.firstRun=null===h.firstRun,!(p<2&&!a&&h.isSliding)){if(c=h.current,h.prevIndex=h.currIndex,h.prevPos=h.currPos,r=h.createSlide(t),p>1&&((s||r.index>0)&&h.createSlide(t-1),(s||r.indexr.pos?"next":"previous"),c.$slide.removeClass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous"),c.isComplete=!1,e&&(r.isMoved||r.opts.transitionEffect)&&(r.isMoved?c.$slide.addClass(d):(d="fancybox-animated "+d+" fancybox-fx-"+r.opts.transitionEffect,n.fancybox.animate(c.$slide,d,e,function(){c.$slide.removeClass(d).removeAttr("style")}))))}}},createSlide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('
').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,i){var a,s,r,c,l,u=this,d=u.current,f=d.$content,h=parseInt(d.$slide.width(),10),p=parseInt(d.$slide.height(),10),g=d.width,b=d.height;"image"!=d.type||d.hasError||!f||u.isAnimating||(n.fancybox.stop(f),u.isAnimating=!0,t=t===o?.5*h:t,e=e===o?.5*p:e,a=n.fancybox.getTranslate(f),c=g/a.width,l=b/a.height,s=.5*h-.5*g,r=.5*p-.5*b,g>h&&(s=a.left*c-(t*c-t),s>0&&(s=0),sp&&(r=a.top*l-(e*l-e),r>0&&(r=0),rt.width||o.height>t.height))},isScaledDown:function(){var t=this,e=t.current,o=e.$content,i=!1;return o&&(i=n.fancybox.getTranslate(o),i=i.width1||Math.abs(n.height()-o.height)>1),o},loadSlide:function(t){var e,o,i,a=this;if(!t.isLoading&&!t.isLoaded){switch(t.isLoading=!0,a.trigger("beforeLoad",t),e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass("fancybox-slide--"+(e||"unknown")).addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"inline":n(t.src).length?a.setContent(t,n(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&a.setError(t)}})),o.one("onReset",function(){i.abort()});break;default:a.setError(t)}return!0}},setImage:function(e){var o,i,a,s,r=this,c=e.opts.image.srcset;if(c){a=t.devicePixelRatio||1,s=t.innerWidth*a,i=c.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);return 0===n?e.url=t:void(o&&(e.value=o,e.postfix=t[t.length-1]))}),e}),i.sort(function(t,e){return t.value-e.value});for(var l=0;l=s||"x"===u.postfix&&u.value>=a){o=u;break}}!o&&i.length&&(o=i[i.length-1]),o&&(e.src=o.url,e.width&&e.height&&"w"==o.postfix&&(e.height=e.width/e.height*o.value,e.width=o.value))}e.$content=n('
').addClass("fancybox-is-hidden").appendTo(e.$slide),e.opts.preload!==!1&&e.opts.width&&e.opts.height&&(e.opts.thumb||e.opts.$thumb)?(e.width=e.opts.width,e.height=e.opts.height,e.$ghost=n("").one("error",function(){n(this).remove(),e.$ghost=null,r.setBigImage(e)}).one("load",function(){r.afterLoad(e),r.setBigImage(e)}).addClass("fancybox-image").appendTo(e.$content).attr("src",e.opts.thumb||e.opts.$thumb.attr("src"))):r.setBigImage(e)},setBigImage:function(t){var e=this,o=n("");t.$image=o.one("error",function(){e.setError(t)}).one("load",function(){clearTimeout(t.timouts),t.timouts=null,e.isClosing||(t.width=this.naturalWidth,t.height=this.naturalHeight,t.opts.image.srcset&&o.attr("sizes","100vw").attr("srcset",t.opts.image.srcset),e.hideLoading(t),t.$ghost?t.timouts=setTimeout(function(){t.timouts=null,t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))):e.afterLoad(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),o[0].complete?o.trigger("load"):o[0].error?o.trigger("error"):t.timouts=setTimeout(function(){o[0].complete||t.hasError||e.showLoading(t)},100)},setIframe:function(t){var e,i=this,a=t.opts.iframe,s=t.$slide;t.$content=n('
').css(a.css).appendTo(s),e=n(a.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(a.attr).appendTo(t.$content),a.preload?(i.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),i.afterLoad(t)}),s.on("refresh.fb",function(){var n,i,s,r,c,l=t.$content;if(1===e[0].isReady){try{n=e.contents(),i=n.find("body")}catch(t){}i&&i.length&&(a.css.width===o||a.css.height===o)&&(s=e[0].contentWindow.document.documentElement.scrollWidth,r=Math.ceil(i.outerWidth(!0)+(l.width()-s)),c=Math.ceil(i.outerHeight(!0)),l.css({width:a.css.width===o?r+(l.outerWidth()-l.innerWidth()):a.css.width,height:a.css.height===o?c+(l.outerHeight()-l.innerHeight()):a.css.height})),l.removeClass("fancybox-is-hidden")}})):this.afterLoad(t),e.attr("src",t.src),t.opts.smallBtn===!0&&t.$content.prepend(i.translate(t,t.opts.btnTpl.smallBtn)),s.one("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank")}catch(t){}n(this).empty(),t.isLoaded=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$slide.empty(),l(e)&&e.parent().length?(e.parent(".fancybox-slide--inline").trigger("onReset"),t.$placeholder=n("
").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===n.type(e)&&(e=n("
").append(n.trim(e)).contents(),3===e[0].nodeType&&(e=n("
").html(e))),t.opts.filter&&(e=n("
").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){t.$placeholder&&(t.$placeholder.after(e.hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1)}),t.$content=n(e).appendTo(t.$slide),t.opts.smallBtn&&!t.$smallBtn&&(t.$smallBtn=n(o.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.removeClass("fancybox-slide--"+t.type),this.setContent(t,this.translate(t,t.opts.errorTpl))},showLoading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=n(e.opts.spinnerTpl).appendTo(t.$slide))},hideLoading:function(t){var e=this;t=t||e.current,t&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('
').appendTo(t.$content)),e.revealContent(t))},revealContent:function(t){var e,i,a,s,r,c=this,l=t.$slide,u=!1;return e=t.opts[c.firstRun?"animationEffect":"transitionEffect"],a=t.opts[c.firstRun?"animationDuration":"transitionDuration"],a=parseInt(t.forcedDuration===o?a:t.forcedDuration,10),!t.isMoved&&t.pos===c.currPos&&a||(e=!1),"zoom"!==e||t.pos===c.currPos&&a&&"image"===t.type&&!t.hasError&&(u=c.getThumbPos(t))||(e="fade"),"zoom"===e?(r=c.getFitPos(t),r.scaleX=Math.round(r.width/u.width*100)/100,r.scaleY=Math.round(r.height/u.height*100)/100,delete r.width,delete r.height,s=t.opts.zoomOpacity,"auto"==s&&(s=Math.abs(t.width/t.height-u.width/u.height)>.1),s&&(u.opacity=.1,r.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),u),f(t.$content),void n.fancybox.animate(t.$content,r,a,function(){c.complete()})):(c.updateSlide(t),e?(n.fancybox.stop(l),i="fancybox-animated fancybox-slide--"+(t.pos>c.prevPos?"next":"previous")+" fancybox-fx-"+e,l.removeAttr("style").removeClass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addClass(i),t.$content.removeClass("fancybox-is-hidden"),f(l),void n.fancybox.animate(l,"fancybox-slide--current",a,function(e){l.removeClass(i).removeAttr("style"),t.pos===c.currPos&&c.complete()},!0)):(f(l),t.$content.removeClass("fancybox-is-hidden"),void(t.pos===c.currPos&&c.complete())))},getThumbPos:function(o){var i,a=this,s=!1,r=function(e){for(var o,i=e[0],a=i.getBoundingClientRect(),s=[];null!==i.parentElement;)"hidden"!==n(i.parentElement).css("overflow")&&"auto"!==n(i.parentElement).css("overflow")||s.push(i.parentElement.getBoundingClientRect()),i=i.parentElement;return o=s.every(function(t){var e=Math.min(a.right,t.right)-Math.max(a.left,t.left),n=Math.min(a.bottom,t.bottom)-Math.max(a.top,t.top);return e>0&&n>0}),o&&a.bottom>0&&a.right>0&&a.left=t.currPos-1&&o.pos<=t.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.unbind().remove())}),t.slides=i,t.updateCursor(),t.trigger("afterShow"),(n(e.activeElement).is("[disabled]")||o.opts.autoFocus&&"image"!=o.type&&"iframe"!==o.type)&&t.focus())},preload:function(){var t,e,n=this;n.group.length<2||(t=n.slides[n.currPos+1],e=n.slides[n.currPos-1],t&&"image"===t.type&&n.loadSlide(t),e&&"image"===e.type&&n.loadSlide(e))},focus:function(){var t,e=this.current;this.isClosing||(t=e&&e.isComplete?e.$slide.find("button,:input,[tabindex],a").filter(":not([disabled]):visible:first"):null,t=t&&t.length?t:this.$refs.container,t.focus())},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.uid!==t.uid&&!e.isClosing&&e.trigger("onDeactivate")}),t.current&&(t.$refs.container.index()>0&&t.$refs.container.prependTo(e.body),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,i,a,s,r,c,l=this,f=l.current,h=function(){l.cleanUp(t)};return!l.isClosing&&(l.isClosing=!0,l.trigger("beforeClose",t)===!1?(l.isClosing=!1,u(function(){l.update()}),!1):(l.removeEvents(),f.timouts&&clearTimeout(f.timouts),a=f.$content,o=f.opts.animationEffect,i=n.isNumeric(e)?e:o?f.opts.animationDuration:0,f.$slide.off(d).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),f.$slide.siblings().trigger("onReset").remove(),i&&l.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing"),l.hideLoading(f),l.hideControls(),l.updateCursor(),"zoom"!==o||t!==!0&&a&&i&&"image"===f.type&&!f.hasError&&(c=l.getThumbPos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),r=n.fancybox.getTranslate(a),r.width=r.width*r.scaleX,r.height=r.height*r.scaleY,s=f.opts.zoomOpacity,"auto"==s&&(s=Math.abs(f.width/f.height-c.width/c.height)>.1),s&&(c.opacity=0),r.scaleX=r.width/c.width,r.scaleY=r.height/c.height,r.width=c.width,r.height=c.height,n.fancybox.setTranslate(f.$content,r),n.fancybox.animate(f.$content,c,i,h),!0):(o&&i?t===!0?setTimeout(h,i):n.fancybox.animate(f.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,i,h):h(),!0)))},cleanUp:function(t){var e,o=this;o.current.$slide.trigger("onReset"),o.$refs.container.empty().remove(),o.trigger("afterClose",t),o.$lastFocus&&!o.current.focusBack&&o.$lastFocus.focus(),o.current=null,e=n.fancybox.getInstance(),e?e.activate():(s.scrollTop(o.scrollTop).scrollLeft(o.scrollLeft),n("html").removeClass("fancybox-enabled"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=Array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;return s?i.unshift(s):s=a,i.unshift(a),n.isFunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),o===!1?o:void("afterClose"===t?r.trigger(t+".fb",i):a.$refs.container.trigger(t+".fb",i))},updateControls:function(t){var e=this,o=e.current,i=o.index,a=o.opts,s=a.caption,r=e.$refs.caption;o.$slide.trigger("refresh"),e.$caption=s&&s.length?r.html(s):null,e.isHiddenControls||e.showControls(),n("[data-fancybox-count]").html(e.group.length),n("[data-fancybox-index]").html(i+1),n("[data-fancybox-prev]").prop("disabled",!a.loop&&i<=0),n("[data-fancybox-next]").prop("disabled",!a.loop&&i>=e.group.length-1)},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.isHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal),t.$caption?n.addClass("fancybox-show-caption "):n.removeClass("fancybox-show-caption")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.1.20",defaults:a,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):first').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof h&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new h(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),t===!0&&this.close())},destroy:function(){this.close(!0),r.off("click.fb-start")},isMobile:e.createTouch!==o&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;if(!t||!t.length)return!1;if(e=t.eq(0).css("transform"),e&&e.indexOf("matrix")!==-1?(e=e.split("(")[1],e=e.split(")")[0],e=e.split(",")):e=[],e.length)e=e.length>10?[e[13],e[12],e[0],e[5]]:[e[5],e[4],e[0],e[3]],e=e.map(parseFloat);else{e=[0,0,1,1];var n=/\.*translate\((.*)px,(.*)px\)/i,o=n.exec(t.eq(0).attr("style"));o&&(e[0]=parseFloat(o[2]),e[1]=parseFloat(o[1]))}return{top:e[0],left:e[1],scaleX:e[2],scaleY:e[3],opacity:parseFloat(t.css("opacity")),width:t.width(),height:t.height()}},setTranslate:function(t,e){var n="",i={};if(t&&e)return e.left===o&&e.top===o||(n=(e.left===o?t.position().left:e.left)+"px, "+(e.top===o?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),e.scaleX!==o&&e.scaleY!==o&&(n=(n.length?n+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")"),n.length&&(i.transform=n),e.opacity!==o&&(i.opacity=e.opacity),e.width!==o&&(i.width=e.width),e.height!==o&&(i.height=e.height),t.css(i)},animate:function(t,e,i,a,s){var r=d||"transitionend";n.isFunction(i)&&(a=i,i=null),n.isPlainObject(e)||t.removeAttr("style"),t.on(r,function(i){(!i||!i.originalEvent||t.is(i.originalEvent.target)&&"z-index"!=i.originalEvent.propertyName)&&(t.off(r),n.isPlainObject(e)?e.scaleX!==o&&e.scaleY!==o&&(t.css("transition-duration","0ms"),e.width=t.width()*e.scaleX,e.height=t.height()*e.scaleY,e.scaleX=1,e.scaleY=1,n.fancybox.setTranslate(t,e)):s!==!0&&t.removeClass(e),n.isFunction(a)&&a(i))}),n.isNumeric(i)&&t.css("transition-duration",i+"ms"),n.isPlainObject(e)?n.fancybox.setTranslate(t,e):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger("transitionend")},i+16))},stop:function(t){clearTimeout(t.data("timer")),t.off(d)}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{items:n(e),options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i)}}(window,document,window.jQuery),function(t){"use strict";var e=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e},n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},vine:{matcher:/vine.co\/v\/([a-zA-Z0-9\?\=\-]+)/,type:"iframe",url:"//vine.co/v/$1/embed/simple"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12])+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}}};t(document).on("onInit.fb",function(o,i){t.each(i.group,function(o,i){var a,s,r,c,l,u,d,f=i.src||"",h=!1;i.type||(a=t.extend(!0,{},n,i.opts.media),t.each(a,function(n,o){if(r=f.match(o.matcher),u={},d=n,r){if(h=o.type,o.paramPlace&&r[o.paramPlace]){l=r[o.paramPlace],"?"==l[0]&&(l=l.substring(1)),l=l.split("&");for(var a=0;ae.clientHeight,a=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-stage")||t.is("body"))break}return e},u=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};u.prototype.destroy=function(){this.$container.off(".fb.touch")},u.prototype.ontouchstart=function(o){var i=this,c=n(o.target),u=i.instance,d=u.current,f=d.$content,h="touchstart"==o.type;if(h&&i.$container.off("mousedown.fb.touch"),!d||i.instance.isAnimating||i.instance.isClosing)return o.stopPropagation(),void o.preventDefault();if((!o.originalEvent||2!=o.originalEvent.button)&&c.length&&!r(c)&&!r(c.parent())&&!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left)&&(i.startPoints=a(o),i.startPoints&&!(i.startPoints.length>1&&u.isSliding))){if(i.$target=c,i.$content=f,i.canTap=!0,n(e).off(".fb.touch"),n(e).on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")),n(e).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),o.stopPropagation(),!u.current.opts.touch&&!u.canPan()||!c.is(i.$stage)&&!i.$stage.find(c).length)return void(c.is("img")&&o.preventDefault());n.fancybox.isMobile&&(l(i.$target)||l(i.$target.parent()))||o.preventDefault(),i.canvasWidth=Math.round(d.$slide[0].clientWidth),i.canvasHeight=Math.round(d.$slide[0].clientHeight),i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.sliderStartPos=i.sliderLastPos||{top:0,left:0},i.contentStartPos=n.fancybox.getTranslate(i.$content),i.contentLastPos=null,1!==i.startPoints.length||i.isZooming||(i.canTap=!u.isSliding,"image"===d.type&&(i.contentStartPos.width>i.canvasWidth+1||i.contentStartPos.height>i.canvasHeight+1)?(n.fancybox.stop(i.$content),i.$content.css("transition-duration","0ms"),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass("fancybox-controls--isGrabbing")),2!==i.startPoints.length||u.isAnimating||d.hasError||"image"!==d.type||!d.isLoaded&&!d.$ghost||(i.isZooming=!0,i.isSwiping=!1,i.isPanning=!1,n.fancybox.stop(i.$content),i.$content.css("transition-duration","0ms"),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))}},u.prototype.ontouchmove=function(t){var e=this;if(e.newPoints=a(t),n.fancybox.isMobile&&(l(e.$target)||l(e.$target.parent())))return t.stopPropagation(),void(e.canTap=!1);if((e.instance.current.opts.touch||e.instance.canPan())&&e.newPoints&&e.newPoints.length&&(e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0)){if(!e.$target.is(e.$stage)&&!e.$stage.find(e.$target).length)return;t.stopPropagation(),t.preventDefault(),e.isSwiping?e.onSwipe():e.isPanning?e.onPan():e.isZooming&&e.onZoom()}},u.prototype.onSwipe=function(){var e,a=this,s=a.isSwiping,r=a.sliderStartPos.left||0;s===!0?Math.abs(a.distance)>10&&(a.canTap=!1,a.instance.group.length<2&&a.instance.opts.touch.vertical?a.isSwiping="y":a.instance.isSliding||a.instance.opts.touch.vertical===!1||"auto"===a.instance.opts.touch.vertical&&n(t).width()>800?a.isSwiping="x":(e=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=e>45&&e<135?"y":"x"),a.instance.isSliding=a.isSwiping,a.startPoints=a.newPoints,n.each(a.instance.slides,function(t,e){n.fancybox.stop(e.$slide),e.$slide.css("transition-duration","0ms"),e.inTransition=!1,e.pos===a.instance.current.pos&&(a.sliderStartPos.left=n.fancybox.getTranslate(e.$slide).left)}),a.instance.SlideShow&&a.instance.SlideShow.isActive&&a.instance.SlideShow.stop()):("x"==s&&(a.distanceX>0&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?r+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?r-=Math.pow(-a.distanceX,.8):r+=a.distanceX),a.sliderLastPos={top:"x"==s?0:a.sliderStartPos.top+a.distanceY,left:r},a.requestId&&(i(a.requestId),a.requestId=null),a.requestId=o(function(){a.sliderLastPos&&(n.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass("fancybox-is-sliding"))}))},u.prototype.onPan=function(){var t,e,a,s=this;s.canTap=!1,t=s.contentStartPos.width>s.canvasWidth?s.contentStartPos.left+s.distanceX:s.contentStartPos.left,e=s.contentStartPos.top+s.distanceY,a=s.limitMovement(t,e,s.contentStartPos.width,s.contentStartPos.height),a.scaleX=s.contentStartPos.scaleX,a.scaleY=s.contentStartPos.scaleY,s.contentLastPos=a,s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o(function(){n.fancybox.setTranslate(s.$content,s.contentLastPos)})},u.prototype.limitMovement=function(t,e,n,o){var i,a,s,r,c=this,l=c.canvasWidth,u=c.canvasHeight,d=c.contentStartPos.left,f=c.contentStartPos.top,h=c.distanceX,p=c.distanceY;return i=Math.max(0,.5*l-.5*n),a=Math.max(0,.5*u-.5*o),s=Math.min(l-n,.5*l-.5*n),r=Math.min(u-o,.5*u-.5*o),n>l&&(h>0&&t>i&&(t=i-1+Math.pow(-i+d+h,.8)||0),h<0&&tu&&(p>0&&e>a&&(e=a-1+Math.pow(-a+f+p,.8)||0),p<0&&ea?(t=t>0?0:t,t=ts?(e=e>0?0:e,e=e50?(n.fancybox.animate(e.instance.current.$slide,{top:e.sliderStartPos.top+e.distanceY+150*e.velocityY,opacity:0},150),o=e.instance.close(!0,300)):"x"==t&&e.distanceX>50&&e.instance.group.length>1?o=e.instance.previous(e.speedX):"x"==t&&e.distanceX<-50&&e.instance.group.length>1&&(o=e.instance.next(e.speedX)),o!==!1||"x"!=t&&"y"!=t||e.instance.jumpTo(e.instance.current.index,150),e.$container.removeClass("fancybox-is-sliding")},u.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(i.instance.current.opts.touch.momentum===!1?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+i.velocityX*i.speed,e=i.contentLastPos.top+i.velocityY*i.speed),o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height),o.width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,330))},u.prototype.endZooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newWidth,c=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,e=a.contentLastPos.top,i={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(a.$content,i),rs.width||c>s.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,r,c),n.fancybox.setTranslate(a.content,n.fancybox.getTranslate(a.$content)),n.fancybox.animate(a.$content,o,150)))},u.prototype.onTap=function(t){var e,o=this,i=n(t.target),s=o.instance,r=s.current,c=t&&a(t)||o.startPoints,l=c[0]?c[0].x-o.$stage.offset().left:0,u=c[0]?c[0].y-o.$stage.offset().top:0,d=function(e){var i=r.opts[e];if(n.isFunction(i)&&(i=i.apply(s,[r,t])),i)switch(i){case"close":s.close(o.startEvent);break;case"toggleControls":s.toggleControls(!0);break;case"next":s.next();break;case"nextOrClose":s.group.length>1?s.next():s.close(o.startEvent);break;case"zoom":"image"==r.type&&(r.isLoaded||r.$ghost)&&(s.canPan()?s.scaleToFit():s.isScaledDown()?s.scaleToActual(l,u):s.group.length<2&&s.close(o.startEvent))}};if(!(t.originalEvent&&2==t.originalEvent.button||s.isSliding||l>i[0].clientWidth+i.offset().left)){if(i.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))e="Outside";else if(i.is(".fancybox-slide"))e="Slide";else{if(!s.current.$content||!s.current.$content.has(t.target).length)return;e="Content"}if(o.tapped){if(clearTimeout(o.tapped),o.tapped=null,Math.abs(l-o.tapX)>50||Math.abs(u-o.tapY)>50||s.isSliding)return this;d("dblclick"+e)}else o.tapX=l,o.tapY=u,r.opts["dblclick"+e]&&r.opts["dblclick"+e]!==r.opts["click"+e]?o.tapped=setTimeout(function(){o.tapped=null,d("click"+e)},300):d("click"+e);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new u(e))}),n(e).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,window.jQuery),function(t,e){"use strict";var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,speed:3e3,init:function(){var t=this;t.$button=t.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),(t.instance.group.length<2||!t.instance.group[t.instance.currIndex].opts.slideShow)&&t.$button.hide()},set:function(){var t=this;t.instance&&t.instance.current&&(t.instance.current.opts.loop||t.instance.currIndex1&&t.instance.group[t.instance.currIndex].opts.thumbs&&("image"==e.type||e.opts.thumb||e.opts.$thumb)&&("image"==n.type||n.opts.thumb||n.opts.$thumb)?(t.$button.on("click",function(){t.toggle()}),t.isActive=!0):(t.$button.hide(),t.isActive=!1)},create:function(){var t,n,o=this.instance;this.$grid=e('
').appendTo(o.$refs.container),t="
    ",e.each(o.group,function(e,o){n=o.opts.thumb||(o.opts.$thumb?o.opts.$thumb.attr("src"):null),n||"image"!==o.type||(n=o.src),n&&n.length&&(t+='
  • ')}),t+="
",this.$list=e(t).appendTo(this.$grid).on("click","li",function(){o.jumpTo(e(this).data("index"))}),this.$list.find("img").hide().one("load",function(){var t,n,o,i,a=e(this).parent().removeClass("fancybox-thumbs-loading"),s=a.outerWidth(),r=a.outerHeight();t=this.naturalWidth||this.width,n=this.naturalHeight||this.height,o=t/s,i=n/r,o>=1&&i>=1&&(o>i?(t/=i,n=r):(t=s,n/=o)),e(this).css({width:Math.floor(t),height:Math.floor(n),"margin-top":Math.min(0,Math.floor(.3*r-.3*n)),"margin-left":Math.min(0,Math.floor(.5*s-.5*t))}).show()}).each(function(){this.src=e(this).data("src")})},focus:function(){this.instance.current&&this.$list.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addClass("fancybox-thumbs-active").focus()},close:function(){this.$grid.hide()},update:function(){this.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),this.isVisible?(this.$grid||this.create(),this.instance.trigger("onThumbsShow"),this.focus()):this.$grid&&this.instance.trigger("onThumbsHide"),this.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.Thumbs&&(e.Thumbs=new n(e))},"beforeShow.fb":function(t,e,n,o){var i=e&&e.Thumbs;if(i&&i.isActive){if(n.modal)return i.$button.hide(),void i.hide();o&&e.opts.thumbs.autoStart===!0&&i.show(),i.isVisible&&i.focus()}},"afterKeydown.fb":function(t,e,n,o,i){var a=e&&e.Thumbs;a&&a.isActive&&71===i&&(o.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&e.opts.thumbs.hideOnClose!==!1&&n.close()}})}(document,window.jQuery),function(t,e,n){"use strict";function o(){var t=e.location.hash.substr(1),n=t.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join("-");return o<1&&(o=1),{hash:t,index:o,gallery:i}}function i(t){var e;""!==t.gallery&&(e=n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1),e.length?e.trigger("click"):n("#"+n.escapeSelector(t.gallery)).trigger("click"))}function a(t){var e;return!!t&&(e=t.current?t.current.opts:t.opts,e.$orig?e.$orig.data("fancybox"):e.hash||"")}n.escapeSelector||(n.escapeSelector=function(t){var e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,n=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t};return(t+"").replace(e,n)});var s=null,r=null;n(function(){setTimeout(function(){n.fancybox.defaults.hash!==!1&&(n(t).on({"onInit.fb":function(t,e){var n,i;e.group[e.currIndex].opts.hash!==!1&&(n=o(),i=a(e),i&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,c){var l;i.opts.hash!==!1&&(l=a(o),l&&""!==l&&(e.location.hash.indexOf(l)<0&&(o.opts.origHash=e.location.hash),s=l+(o.group.length>1?"-"+(i.index+1):""),"replaceState"in e.history?(r&&clearTimeout(r),r=setTimeout(function(){e.history[c?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+s),r=null},300)):e.location.hash=s))},"beforeClose.fb":function(o,i,c){var l,u;r&&clearTimeout(r),c.opts.hash!==!1&&(l=a(i),u=i&&i.opts.origHash?i.opts.origHash:"",l&&""!==l&&("replaceState"in history?e.history.replaceState({},t.title,e.location.pathname+e.location.search+u):(e.location.hash=u,n(e).scrollTop(i.scrollTop).scrollLeft(i.scrollLeft))),s=null)}}),n(e).on("hashchange.fb",function(){var t=o();n.fancybox.getInstance()?!s||s===t.gallery+"-"+t.index||1===t.index&&s==t.gallery||(s=null,n.fancybox.close()):""!==t.gallery&&i(t)}),n(e).one("unload.fb popstate.fb",function(){n.fancybox.getInstance("close",!0,0)}),i(o()))},50)})}(document,window,window.jQuery); \ No newline at end of file diff --git a/themes/even/static/lib/gitalk/gitalk-1.2.2.min.css b/themes/even/static/lib/gitalk/gitalk-1.2.2.min.css new file mode 100644 index 0000000..b0ad513 --- /dev/null +++ b/themes/even/static/lib/gitalk/gitalk-1.2.2.min.css @@ -0,0 +1,7 @@ +/** + * Minified by jsDelivr using clean-css v4.1.9. + * Original file: /npm/gitalk@1.2.2/dist/gitalk.css + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +@font-face{font-family:octicons-link;src:url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEaUjhaDSuXHwVRgvLJn1tQ7xiuVv/ocTRF42mNgZGBgYGbwZOBiAAFGJBIMAAizAFoAAABiAGIAznjaY2BkYGAA4in8zwXi+W2+MjCzMIDApSwvXzC97Z4Ig8N/BxYGZgcgl52BCSQKAA3jCV8CAABfAAAAAAQAAEB42mNgZGBg4f3vACQZQABIMjKgAmYAKEgBXgAAeNpjYGY6wTiBgZWBg2kmUxoDA4MPhGZMYzBi1AHygVLYQUCaawqDA4PChxhmh/8ODDEsvAwHgMKMIDnGL0x7gJQCAwMAJd4MFwAAAHjaY2BgYGaA4DAGRgYQkAHyGMF8NgYrIM3JIAGVYYDT+AEjAwuDFpBmA9KMDEwMCh9i/v8H8sH0/4dQc1iAmAkALaUKLgAAAHjaTY9LDsIgEIbtgqHUPpDi3gPoBVyRTmTddOmqTXThEXqrob2gQ1FjwpDvfwCBdmdXC5AVKFu3e5MfNFJ29KTQT48Ob9/lqYwOGZxeUelN2U2R6+cArgtCJpauW7UQBqnFkUsjAY/kOU1cP+DAgvxwn1chZDwUbd6CFimGXwzwF6tPbFIcjEl+vvmM/byA48e6tWrKArm4ZJlCbdsrxksL1AwWn/yBSJKpYbq8AXaaTb8AAHja28jAwOC00ZrBeQNDQOWO//sdBBgYGRiYWYAEELEwMTE4uzo5Zzo5b2BxdnFOcALxNjA6b2ByTswC8jYwg0VlNuoCTWAMqNzMzsoK1rEhNqByEyerg5PMJlYuVueETKcd/89uBpnpvIEVomeHLoMsAAe1Id4AAAAAAAB42oWQT07CQBTGv0JBhagk7HQzKxca2sJCE1hDt4QF+9JOS0nbaaYDCQfwCJ7Au3AHj+LO13FMmm6cl7785vven0kBjHCBhfpYuNa5Ph1c0e2Xu3jEvWG7UdPDLZ4N92nOm+EBXuAbHmIMSRMs+4aUEd4Nd3CHD8NdvOLTsA2GL8M9PODbcL+hD7C1xoaHeLJSEao0FEW14ckxC+TU8TxvsY6X0eLPmRhry2WVioLpkrbp84LLQPGI7c6sOiUzpWIWS5GzlSgUzzLBSikOPFTOXqly7rqx0Z1Q5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==) format('woff')}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.5;color:#24292e;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body .pl-c{color:#6a737d}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:#005cc5}.markdown-body .pl-e,.markdown-body .pl-en{color:#6f42c1}.markdown-body .pl-s .pl-s1,.markdown-body .pl-smi{color:#24292e}.markdown-body .pl-ent{color:#22863a}.markdown-body .pl-k{color:#d73a49}.markdown-body .pl-pds,.markdown-body .pl-s,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sra,.markdown-body .pl-sr .pl-sre{color:#032f62}.markdown-body .pl-smw,.markdown-body .pl-v{color:#e36209}.markdown-body .pl-bu{color:#b31d28}.markdown-body .pl-ii{color:#fafbfc;background-color:#b31d28}.markdown-body .pl-c2{color:#fafbfc;background-color:#d73a49}.markdown-body .pl-c2::before{content:"^M"}.markdown-body .pl-sr .pl-cce{font-weight:700;color:#22863a}.markdown-body .pl-ml{color:#735c0f}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:700;color:#005cc5}.markdown-body .pl-mi{font-style:italic;color:#24292e}.markdown-body .pl-mb{font-weight:700;color:#24292e}.markdown-body .pl-md{color:#b31d28;background-color:#ffeef0}.markdown-body .pl-mi1{color:#22863a;background-color:#f0fff4}.markdown-body .pl-mc{color:#e36209;background-color:#ffebda}.markdown-body .pl-mi2{color:#f6f8fa;background-color:#005cc5}.markdown-body .pl-mdr{font-weight:700;color:#6f42c1}.markdown-body .pl-ba{color:#586069}.markdown-body .pl-sg{color:#959da5}.markdown-body .pl-corl{text-decoration:underline;color:#032f62}.markdown-body .octicon{display:inline-block;vertical-align:text-top;fill:currentColor}.markdown-body a{background-color:transparent;-webkit-text-decoration-skip:objects}.markdown-body a:active,.markdown-body a:hover{outline-width:0}.markdown-body strong{font-weight:inherit}.markdown-body strong{font-weight:bolder}.markdown-body h1{font-size:2em;margin:.67em 0}.markdown-body img{border-style:none}.markdown-body svg:not(:root){overflow:hidden}.markdown-body code,.markdown-body kbd,.markdown-body pre{font-family:monospace,monospace;font-size:1em}.markdown-body hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}.markdown-body input{font:inherit;margin:0}.markdown-body input{overflow:visible}.markdown-body [type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}.markdown-body *{-webkit-box-sizing:border-box;box-sizing:border-box}.markdown-body input{font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body a{color:#0366d6;text-decoration:none}.markdown-body a:hover{text-decoration:underline}.markdown-body strong{font-weight:600}.markdown-body hr{height:0;margin:15px 0;overflow:hidden;background:0 0;border:0;border-bottom:1px solid #dfe2e5}.markdown-body hr::before{display:table;content:""}.markdown-body hr::after{display:table;clear:both;content:""}.markdown-body table{border-spacing:0;border-collapse:collapse}.markdown-body td,.markdown-body th{padding:0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:0;margin-bottom:0}.markdown-body h1{font-size:32px;font-weight:600}.markdown-body h2{font-size:24px;font-weight:600}.markdown-body h3{font-size:20px;font-weight:600}.markdown-body h4{font-size:16px;font-weight:600}.markdown-body h5{font-size:14px;font-weight:600}.markdown-body h6{font-size:12px;font-weight:600}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0}.markdown-body ol,.markdown-body ul{padding-left:0;margin-top:0;margin-bottom:0}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ol ol ol,.markdown-body ol ul ol,.markdown-body ul ol ol,.markdown-body ul ul ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body code{font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0;font:12px SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace}.markdown-body .octicon{vertical-align:text-bottom}.markdown-body .pl-0{padding-left:0!important}.markdown-body .pl-1{padding-left:4px!important}.markdown-body .pl-2{padding-left:8px!important}.markdown-body .pl-3{padding-left:16px!important}.markdown-body .pl-4{padding-left:24px!important}.markdown-body .pl-5{padding-left:32px!important}.markdown-body .pl-6{padding-left:40px!important}.markdown-body::before{display:table;content:""}.markdown-body::after{display:table;clear:both;content:""}.markdown-body>:first-child{margin-top:0!important}.markdown-body>:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.markdown-body .anchor:focus{outline:0}.markdown-body blockquote,.markdown-body dl,.markdown-body ol,.markdown-body p,.markdown-body pre,.markdown-body table,.markdown-body ul{margin-top:0;margin-bottom:16px}.markdown-body hr{height:.25em;padding:0;margin:24px 0;background-color:#e1e4e8;border:0}.markdown-body blockquote{padding:0 1em;color:#6a737d;border-left:.25em solid #dfe2e5}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body kbd{display:inline-block;padding:3px 5px;font-size:11px;line-height:10px;color:#444d56;vertical-align:middle;background-color:#fafbfc;border:solid 1px #c6cbd1;border-bottom-color:#959da5;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 #959da5;box-shadow:inset 0 -1px 0 #959da5}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:#1b1f23;vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1{padding-bottom:.3em;font-size:2em;border-bottom:1px solid #eaecef}.markdown-body h2{padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid #eaecef}.markdown-body h3{font-size:1.25em}.markdown-body h4{font-size:1em}.markdown-body h5{font-size:.875em}.markdown-body h6{font-size:.85em;color:#6a737d}.markdown-body ol,.markdown-body ul{padding-left:2em}.markdown-body ol ol,.markdown-body ol ul,.markdown-body ul ol,.markdown-body ul ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body table{display:block;width:100%;overflow:auto}.markdown-body table th{font-weight:600}.markdown-body table td,.markdown-body table th{padding:6px 13px;border:1px solid #dfe2e5}.markdown-body table tr{background-color:#fff;border-top:1px solid #c6cbd1}.markdown-body table tr:nth-child(2n){background-color:#f6f8fa}.markdown-body img{max-width:100%;-webkit-box-sizing:content-box;box-sizing:content-box;background-color:#fff}.markdown-body code{padding:0;padding-top:.2em;padding-bottom:.2em;margin:0;font-size:85%;background-color:rgba(27,31,35,.05);border-radius:3px}.markdown-body code::after,.markdown-body code::before{letter-spacing:-.2em;content:"\A0"}.markdown-body pre{word-wrap:normal}.markdown-body pre>code{padding:0;margin:0;font-size:100%;word-break:normal;white-space:pre;background:0 0;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f6f8fa;border-radius:3px}.markdown-body pre code{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body pre code::after,.markdown-body pre code::before{content:normal}.markdown-body .full-commit .btn-outline:not(:disabled):hover{color:#005cc5;border-color:#005cc5}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;line-height:10px;color:#444d56;vertical-align:middle;background-color:#fafbfc;border:solid 1px #d1d5da;border-bottom-color:#c6cbd1;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 #c6cbd1;box-shadow:inset 0 -1px 0 #c6cbd1}.markdown-body :checked+.radio-label{position:relative;z-index:1;border-color:#0366d6}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item+.task-list-item{margin-top:3px}.markdown-body .task-list-item input{margin:0 .2em .25em -1.6em;vertical-align:middle}.markdown-body hr{border-bottom-color:#eee}.gt-container{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:16px}.gt-container *{-webkit-box-sizing:border-box;box-sizing:border-box}.gt-container a{color:#6190e8}.gt-container a:hover{color:#81a6ed;border-color:#81a6ed}.gt-container a.is--active{color:#333;cursor:default!important}.gt-container a.is--active:hover{color:#333}.gt-container .gt-svg{display:inline-block;width:1em;height:1em;vertical-align:sub}.gt-container .gt-svg svg{width:100%;height:100%;fill:#6190e8}.gt-container .gt-ico{display:inline-block}.gt-container .gt-ico-text{margin-left:.3125em}.gt-container .gt-ico-github .gt-svg{width:100%;height:100%}.gt-container .gt-ico-github svg{fill:inherit}.gt-container .gt-spinner{position:relative}.gt-container .gt-spinner::before{content:'';-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;top:3px;width:.75em;height:.75em;margin-top:-.1875em;margin-left:-.375em;border-radius:50%;border:1px solid #fff;border-top-color:#6190e8;-webkit-animation:gt-kf-rotate .6s linear infinite;animation:gt-kf-rotate .6s linear infinite}.gt-container .gt-loader{position:relative;border:1px solid #999;-webkit-animation:ease gt-kf-rotate 1.5s infinite;animation:ease gt-kf-rotate 1.5s infinite;display:inline-block;font-style:normal;width:1.75em;height:1.75em;line-height:1.75em;border-radius:50%}.gt-container .gt-loader:before{content:'';position:absolute;display:block;top:0;left:50%;margin-top:-.1875em;margin-left:-.1875em;width:.375em;height:.375em;background-color:#999;border-radius:50%}.gt-container .gt-avatar{display:inline-block;width:3.125em;height:3.125em}@media (max-width:479px){.gt-container .gt-avatar{width:2em;height:2em}}.gt-container .gt-avatar img{width:100%;height:auto;border-radius:3px}.gt-container .gt-avatar-github{width:3em;height:3em}@media (max-width:479px){.gt-container .gt-avatar-github{width:1.875em;height:1.875em}}.gt-container .gt-btn{padding:.75em 1em;display:inline-block;line-height:1;text-decoration:none;white-space:nowrap;cursor:pointer;border:none;border-radius:5px;background-color:#6190e8;color:#fff;outline:0;font-size:.75em}.gt-container .gt-btn:hover{background-color:#81a6ed;color:#fff}.gt-container .gt-btn-text{font-weight:400}.gt-container .gt-btn-loading{position:relative;margin-left:.5em;display:inline-block;width:.75em;height:1em;vertical-align:top}.gt-container .gt-btn.is--disable{cursor:not-allowed;opacity:.5}.gt-container .gt-btn-login{margin-right:0}.gt-container .gt-error{text-align:center;margin:.625em;color:#ff3860}.gt-container .gt-initing{padding:1.25em 0;text-align:center}.gt-container .gt-initing-text{margin:.625em auto;font-size:92%}.gt-container .gt-no-init{padding:1.25em 0;text-align:center}.gt-container .gt-link{border-bottom:1px dotted #6190e8}.gt-container .gt-link-counts,.gt-container .gt-link-project{text-decoration:none}.gt-container .gt-meta{margin:1.25em 0;padding:1em 0;position:relative;border-bottom:1px solid #e9e9e9;font-size:1em;position:relative;z-index:10}.gt-container .gt-meta:after,.gt-container .gt-meta:before{content:" ";display:table}.gt-container .gt-meta:after{clear:both}.gt-container .gt-counts{margin:0 .625em 0 0}.gt-container .gt-user{float:right;margin:0;font-size:92%}.gt-container .gt-user-pic{width:16px;height:16px;vertical-align:top;margin-right:.5em}.gt-container .gt-user-inner{display:inline-block;cursor:pointer}.gt-container .gt-user .gt-ico{margin:0 0 0 .3125em}.gt-container .gt-user .gt-ico svg{fill:inherit}.gt-container .gt-user .is--poping .gt-ico svg{fill:#6190e8}.gt-container .gt-version{color:#a1a1a1;margin-left:.375em}.gt-container .gt-copyright{margin:0 .9375em .5em;border-top:1px solid #e9e9e9;padding-top:.5em}.gt-container .gt-popup{position:absolute;right:0;top:2.375em;background:#fff;display:inline-block;border:1px solid #e9e9e9;padding:.625em 0;font-size:.875em;letter-spacing:.5px}.gt-container .gt-popup .gt-action{cursor:pointer;display:block;margin:.5em 0;padding:0 1.125em;position:relative;text-decoration:none}.gt-container .gt-popup .gt-action.is--active:before{content:'';width:.25em;height:.25em;background:#6190e8;position:absolute;left:.5em;top:.4375em}.gt-container .gt-header{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex}.gt-container .gt-header-comment{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-left:1.25em}@media (max-width:479px){.gt-container .gt-header-comment{margin-left:.875em}}.gt-container .gt-header-textarea{padding:.75em;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;min-height:5.125em;max-height:15em;border-radius:5px;border:1px solid rgba(0,0,0,.1);font-size:.875em;word-wrap:break-word;resize:vertical;background-color:#f6f6f6;outline:0;-webkit-transition:all .25s ease;transition:all .25s ease}.gt-container .gt-header-textarea:hover{background-color:#fbfbfb}.gt-container .gt-header-controls{position:relative;margin:.75em 0 0}.gt-container .gt-header-controls:after,.gt-container .gt-header-controls:before{content:" ";display:table}.gt-container .gt-header-controls:after{clear:both}.gt-container .gt-header-controls-tip{font-size:.875em;color:#6190e8;text-decoration:none;vertical-align:sub}@media (max-width:479px){.gt-container .gt-header-controls-tip{display:none}}.gt-container .gt-header-controls .gt-btn{float:right}@media (max-width:479px){.gt-container .gt-header-controls .gt-btn{float:none;width:100%}}.gt-container:after{content:'';position:fixed;bottom:100%;left:0;right:0;top:0;opacity:0}.gt-container.gt-input-focused{position:relative}.gt-container.gt-input-focused:after{content:'';position:fixed;bottom:0;left:0;right:0;top:0;background:#000;opacity:.6;-webkit-transition:opacity .3s,bottom 0s;transition:opacity .3s,bottom 0s;z-index:9999}.gt-container.gt-input-focused .gt-header-comment{z-index:10000}.gt-container .gt-comments{padding-top:1.25em}.gt-container .gt-comments-null{text-align:center}.gt-container .gt-comments-controls{margin:1.25em 0;text-align:center}.gt-container .gt-comment{position:relative;padding:.625em 0;display:-webkit-box;display:-ms-flexbox;display:flex}.gt-container .gt-comment-content{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-left:1.25em;padding:.75em 1em;background-color:#f9f9f9;overflow:auto;-webkit-transition:all ease .25s;transition:all ease .25s}.gt-container .gt-comment-content:hover{-webkit-box-shadow:0 .625em 3.75em 0 #f4f4f4;box-shadow:0 .625em 3.75em 0 #f4f4f4}@media (max-width:479px){.gt-container .gt-comment-content{margin-left:.875em;padding:.625em .75em}}.gt-container .gt-comment-header{margin-bottom:.5em;font-size:.875em;position:relative}.gt-container .gt-comment-username{font-weight:500;color:#6190e8;text-decoration:none}.gt-container .gt-comment-username:hover{text-decoration:underline}.gt-container .gt-comment-text{margin-left:.5em;color:#a1a1a1}.gt-container .gt-comment-date{margin-left:.5em;color:#a1a1a1}.gt-container .gt-comment-edit,.gt-container .gt-comment-like,.gt-container .gt-comment-reply{position:absolute;height:1.375em}.gt-container .gt-comment-edit:hover,.gt-container .gt-comment-like:hover,.gt-container .gt-comment-reply:hover{cursor:pointer}.gt-container .gt-comment-like{top:0;right:2em}.gt-container .gt-comment-edit,.gt-container .gt-comment-reply{top:0;right:0}.gt-container .gt-comment-body{color:#333!important}.gt-container .gt-comment-admin .gt-comment-content{background-color:#f6f9fe}@-webkit-keyframes gt-kf-rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes gt-kf-rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}} diff --git a/themes/even/static/lib/gitalk/gitalk-1.2.2.min.js b/themes/even/static/lib/gitalk/gitalk-1.2.2.min.js new file mode 100644 index 0000000..1292428 --- /dev/null +++ b/themes/even/static/lib/gitalk/gitalk-1.2.2.min.js @@ -0,0 +1,19 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Gitalk=t():e.Gitalk=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist",t(t.s=75)}([function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(39)("wks"),o=n(24),i=n(2).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function r(e){return"[object Array]"===N.call(e)}function o(e){return"[object ArrayBuffer]"===N.call(e)}function i(e){return"undefined"!=typeof FormData&&e instanceof FormData}function a(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function u(e){return"string"==typeof e}function s(e){return"number"==typeof e}function c(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function f(e){return"[object Date]"===N.call(e)}function p(e){return"[object File]"===N.call(e)}function d(e){return"[object Blob]"===N.call(e)}function h(e){return"[object Function]"===N.call(e)}function m(e){return l(e)&&h(e.pipe)}function v(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function g(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function y(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function b(e,t){if(null!==e&&void 0!==e)if("object"==typeof e||r(e)||(e=[e]),r(e))for(var n=0,o=e.length;n0;)n[r]=arguments[r+2];if(!g(e))return e;var o=e.attributes||e.props,i=G.h(e.nodeName||e.type,o,e.children||o&&o.children),a=[i,t];return n&&n.length?a.push(n):t&&t.children&&a.push(t.children),m(G.cloneElement.apply(void 0,a))}function g(e){return e&&(e instanceof q||e.$$typeof===H)}function y(e,t){return t._refProxies[e]||(t._refProxies[e]=function(n){t&&t.refs&&(t.refs[e]=n,null===n&&(delete t._refProxies[e],t=null))})}function b(e){var t=e.nodeName,n=e.attributes;if(n&&"string"==typeof t){var r={};for(var o in n)r[o.toLowerCase()]=o;if(r.ondoubleclick&&(n.ondblclick=n[r.ondoubleclick],delete n[r.ondoubleclick]),r.onchange&&("textarea"===t||"input"===t.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var i=r.oninput||"oninput";n[i]||(n[i]=M([n[i],n[r.onchange]]),delete n[r.onchange])}}}function _(e){var t=e.attributes;if(t){var n=t.className||t.class;n&&(t.className=n)}}function w(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function x(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}function E(e){return e&&e.base||e}function N(){}function C(e){function t(e,t){T(this),I.call(this,e,t,Y),k.call(this,e,t)}return e=w({constructor:t},e),e.mixins&&O(e,S(e.mixins)),e.statics&&w(t,e.statics),e.propTypes&&(t.propTypes=e.propTypes),e.defaultProps&&(t.defaultProps=e.defaultProps),e.getDefaultProps&&(t.defaultProps=e.getDefaultProps()),N.prototype=I.prototype,t.prototype=w(new N,e),t.displayName=e.displayName||"Component",t}function S(e){for(var t={},n=0;n1)for(var n=1;n=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(35);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(7).f,o=n(11),i=n(1)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){n(96);for(var r=n(2),o=n(10),i=n(16),a=n(1)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=u[s],l=r[c],f=l&&l.prototype;f&&!f[a]&&o(f,a,c),i[c]=i.Array}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(14),o=n(2).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(14);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";(function(t){function n(e,t,n,o,i,a,u,s){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,u,s],f=0;c=new Error(t.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(5))},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(8),o=n(93),i=n(40),a=n(38)("IE_PROTO"),u=function(){},s=function(){var e,t=n(29)("iframe"),r=i.length;for(t.style.display="none",n(57).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"meta",v:[{b:/<\?xml/,e:/\?>/,r:10},{b:/<\?\w+/,e:/\?>/}]},{cN:"tag",b:"",c:[{cN:"name",b:/[^\/><\s]+/,r:0},t]}]}});hljs.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"section",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"quote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"^```w*s*$",e:"^```s*$"},{b:"`.+?`"},{b:"^( {4}| )",e:"$",r:0}]},{b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"string",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"symbol",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:/^\[[^\n]+\]:/,rB:!0,c:[{cN:"symbol",b:/\[/,e:/\]/,eB:!0,eE:!0},{cN:"link",b:/:\s*/,e:/$/,eB:!0}]}]}});hljs.registerLanguage("scala",function(e){var t={cN:"meta",b:"@[A-Za-z]+"},a={cN:"subst",v:[{b:"\\$[A-Za-z0-9_]+"},{b:"\\${",e:"}"}]},r={cN:"string",v:[{b:'"',e:'"',i:"\\n",c:[e.BE]},{b:'"""',e:'"""',r:10},{b:'[a-z]+"',e:'"',i:"\\n",c:[e.BE,a]},{cN:"string",b:'[a-z]+"""',e:'"""',c:[a],r:10}]},c={cN:"symbol",b:"'\\w[\\w\\d_]*(?!')"},i={cN:"type",b:"\\b[A-Z][A-Za-z0-9_]*",r:0},s={cN:"title",b:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,r:0},n={cN:"class",bK:"class object trait type",e:/[:={\[\n;]/,eE:!0,c:[{bK:"extends with",r:10},{b:/\[/,e:/\]/,eB:!0,eE:!0,r:0,c:[i]},{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,r:0,c:[i]},s]},l={cN:"function",bK:"def",e:/[:={\[(\n;]/,eE:!0,c:[s]};return{k:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},c:[e.CLCM,e.CBCM,r,c,i,l,n,e.CNM,t]}});hljs.registerLanguage("matlab",function(e){var a=[e.CNM,{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]}],s={r:0,c:[{b:/'['\.]*/}]};return{k:{keyword:"break case catch classdef continue else elseif end enumerated events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson"},i:'(//|"|#|/\\*|\\s+/\\w+)',c:[{cN:"function",bK:"function",e:"$",c:[e.UTM,{cN:"params",v:[{b:"\\(",e:"\\)"},{b:"\\[",e:"\\]"}]}]},{b:/[a-zA-Z_][a-zA-Z_0-9]*'['\.]*/,rB:!0,r:0,c:[{b:/[a-zA-Z_][a-zA-Z_0-9]*/,r:0},s.c[0]]},{b:"\\[",e:"\\]",c:a,r:0,starts:s},{b:"\\{",e:/}/,c:a,r:0,starts:s},{b:/\)/,r:0,starts:s},e.C("^\\s*\\%\\{\\s*$","^\\s*\\%\\}\\s*$"),e.C("\\%","$")].concat(a)}});hljs.registerLanguage("json",function(e){var i={literal:"true false null"},n=[e.QSM,e.CNM],r={e:",",eW:!0,eE:!0,c:n,k:i},t={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[e.BE],i:"\\n"},e.inherit(r,{b:/:/})],i:"\\S"},c={b:"\\[",e:"\\]",c:[e.inherit(r)],i:"\\S"};return n.splice(n.length,0,t,c),{c:n,k:i,i:"\\S"}});hljs.registerLanguage("kotlin",function(e){var t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit initinterface annotation data sealed internal infix operator out by constructor super trait volatile transient native default",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={cN:"keyword",b:/\b(break|continue|return|this)\b/,starts:{c:[{cN:"symbol",b:/@\w+/}]}},i={cN:"symbol",b:e.UIR+"@"},n={cN:"subst",b:"\\${",e:"}",c:[e.ASM,e.CNM]},a={cN:"variable",b:"\\$"+e.UIR},c={cN:"string",v:[{b:'"""',e:'"""',c:[a,n]},{b:"'",e:"'",i:/\n/,c:[e.BE]},{b:'"',e:'"',i:/\n/,c:[e.BE,a,n]}]},s={cN:"meta",b:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UIR+")?"},o={cN:"meta",b:"@"+e.UIR,c:[{b:/\(/,e:/\)/,c:[e.inherit(c,{cN:"meta-string"})]}]};return{k:t,c:[e.C("/\\*\\*","\\*/",{r:0,c:[{cN:"doctag",b:"@[A-Za-z]+"}]}),e.CLCM,e.CBCM,r,i,s,o,{cN:"function",bK:"fun",e:"[(]|$",rB:!0,eE:!0,k:t,i:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,r:5,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"type",b://,k:"reified",r:0},{cN:"params",b:/\(/,e:/\)/,endsParent:!0,k:t,r:0,c:[{b:/:/,e:/[=,\/]/,eW:!0,c:[{cN:"type",b:e.UIR},e.CLCM,e.CBCM],r:0},e.CLCM,e.CBCM,s,o,c,e.CNM]},e.CBCM]},{cN:"class",bK:"class interface trait",e:/[:\{(]|$/,eE:!0,i:"extends implements",c:[{bK:"public protected internal private constructor"},e.UTM,{cN:"type",b://,eB:!0,eE:!0,r:0},{cN:"type",b:/[,:]\s*/,e:/[<\(,]|$/,eB:!0,rE:!0},s,o]},c,{cN:"meta",b:"^#!/usr/bin/env",e:"$",i:"\n"},e.CNM]}}); \ No newline at end of file diff --git a/themes/even/static/lib/jquery/jquery-3.2.1.min.js b/themes/even/static/lib/jquery/jquery-3.2.1.min.js new file mode 100644 index 0000000..644d35e --- /dev/null +++ b/themes/even/static/lib/jquery/jquery-3.2.1.min.js @@ -0,0 +1,4 @@ +/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.2.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext;function B(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function E(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):D.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(E(this,a||[],!1))},not:function(a){return this.pushStack(E(this,a||[],!0))},is:function(a){return!!E(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var F,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,H=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||F,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:G.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),C.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};H.prototype=r.fn,F=r(d);var I=/^(?:parents|prev(?:Until|All))/,J={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function K(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return K(a,"nextSibling")},prev:function(a){return K(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return B(a,"iframe")?a.contentDocument:(B(a,"template")&&(a=a.content||a),r.merge([],a.childNodes))}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(J[a]||r.uniqueSort(e),I.test(a)&&e.reverse()),this.pushStack(e)}});var L=/[^\x20\t\r\n\f]+/g;function M(a){var b={};return r.each(a.match(L)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?M(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=e||a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function N(a){return a}function O(a){throw a}function P(a,b,c,d){var e;try{a&&r.isFunction(e=a.promise)?e.call(a).done(b).fail(c):a&&r.isFunction(e=a.then)?e.call(a,b,c):b.apply(void 0,[a].slice(d))}catch(a){c.apply(void 0,[a])}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b=f&&(d!==O&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:N,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:N)),c[2][3].add(g(0,a,r.isFunction(d)?d:O))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(P(a,g.done(h(c)).resolve,g.reject,!b),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)P(e[c],h(c),g.reject);return g.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Q.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var R=r.Deferred();r.fn.ready=function(a){return R.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||R.resolveWith(d,[r]))}}),r.ready.then=R.then;function S(){d.removeEventListener("DOMContentLoaded",S), +a.removeEventListener("load",S),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",S),a.addEventListener("load",S));var T=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)T(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h1,null,!0)},removeData:function(a){return this.each(function(){X.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=W.get(a,b),c&&(!d||Array.isArray(c)?d=W.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return W.get(a,c)||W.access(a,c,{empty:r.Callbacks("once memory").add(function(){W.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length\x20\t\r\n\f]+)/i,la=/^$|\/(?:java|ecma)script/i,ma={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ma.optgroup=ma.option,ma.tbody=ma.tfoot=ma.colgroup=ma.caption=ma.thead,ma.th=ma.td;function na(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&B(a,b)?r.merge([a],c):c}function oa(a,b){for(var c=0,d=a.length;c-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=na(l.appendChild(f),"script"),j&&oa(g),c){k=0;while(f=g[k++])la.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var ra=d.documentElement,sa=/^key/,ta=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ua=/^([^.]*)(?:\.(.+)|)/;function va(){return!0}function wa(){return!1}function xa(){try{return d.activeElement}catch(a){}}function ya(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ya(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=wa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(ra,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(L)||[""],j=b.length;while(j--)h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.hasData(a)&&W.get(a);if(q&&(i=q.events)){b=(b||"").match(L)||[""],j=b.length;while(j--)if(h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&W.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(W.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c-1:r.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i\x20\t\r\n\f]*)[^>]*)\/>/gi,Aa=/\s*$/g;function Ea(a,b){return B(a,"table")&&B(11!==b.nodeType?b:b.firstChild,"tr")?r(">tbody",a)[0]||a:a}function Fa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function Ga(a){var b=Ca.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ha(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(W.hasData(a)&&(f=W.access(a),g=W.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c1&&"string"==typeof q&&!o.checkClone&&Ba.test(q))return a.each(function(e){var f=a.eq(e);s&&(b[0]=q.call(this,e,f.html())),Ja(f,b,c,d)});if(m&&(e=qa(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(h=r.map(na(e,"script"),Fa),i=h.length;l")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=r.contains(a.ownerDocument,a);if(!(o.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||r.isXMLDoc(a)))for(g=na(h),f=na(a),d=0,e=f.length;d0&&oa(g,!i&&na(a,"script")),h},cleanData:function(a){for(var b,c,d,e=r.event.special,f=0;void 0!==(c=a[f]);f++)if(U(c)){if(b=c[W.expando]){if(b.events)for(d in b.events)e[d]?r.event.remove(c,d):r.removeEvent(c,d,b.handle);c[W.expando]=void 0}c[X.expando]&&(c[X.expando]=void 0)}}}),r.fn.extend({detach:function(a){return Ka(this,a,!0)},remove:function(a){return Ka(this,a)},text:function(a){return T(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return Ja(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ea(this,a);b.appendChild(a)}})},prepend:function(){return Ja(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ea(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ja(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ja(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(r.cleanData(na(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return r.clone(this,a,b)})},html:function(a){return T(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!Aa.test(a)&&!ma[(ka.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c1)}});function _a(a,b,c,d,e){return new _a.prototype.init(a,b,c,d,e)}r.Tween=_a,_a.prototype={constructor:_a,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=_a.propHooks[this.prop];return a&&a.get?a.get(this):_a.propHooks._default.get(this)},run:function(a){var b,c=_a.propHooks[this.prop];return this.options.duration?this.pos=b=r.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):_a.propHooks._default.set(this),this}},_a.prototype.init.prototype=_a.prototype,_a.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},_a.propHooks.scrollTop=_a.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=_a.prototype.init,r.fx.step={};var ab,bb,cb=/^(?:toggle|show|hide)$/,db=/queueHooks$/;function eb(){bb&&(d.hidden===!1&&a.requestAnimationFrame?a.requestAnimationFrame(eb):a.setTimeout(eb,r.fx.interval),r.fx.tick())}function fb(){return a.setTimeout(function(){ab=void 0}),ab=r.now()}function gb(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=ca[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function hb(a,b,c){for(var d,e=(kb.tweeners[b]||[]).concat(kb.tweeners["*"]),f=0,g=e.length;f1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?r.prop(a,b,c):(1===f&&r.isXMLDoc(a)||(e=r.attrHooks[b.toLowerCase()]||(r.expr.match.bool.test(b)?lb:void 0)),void 0!==c?null===c?void r.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=r.find.attr(a,b), +null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&B(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(L);if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),lb={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=mb[b]||r.find.attr;mb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=mb[g],mb[g]=e,e=null!=c(a,b,d)?g:null,mb[g]=f),e}});var nb=/^(?:input|select|textarea|button)$/i,ob=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return T(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):nb.test(a.nodeName)||ob.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function pb(a){var b=a.match(L)||[];return b.join(" ")}function qb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,qb(this)))});if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,qb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,qb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(L)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=qb(this),b&&W.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":W.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+pb(qb(c))+" ").indexOf(b)>-1)return!0;return!1}});var rb=/\r/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:pb(r.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(Array.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var sb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!sb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?b:new r.Event(p,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=q.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:r.makeArray(c,[b]),n=r.event.special[p]||{},f||!n.trigger||n.trigger.apply(e,c)!==!1)){if(!f&&!n.noBubble&&!r.isWindow(e)){for(j=n.delegateType||p,sb.test(j+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),i=h;i===(e.ownerDocument||d)&&o.push(i.defaultView||i.parentWindow||a)}g=0;while((h=o[g++])&&!b.isPropagationStopped())b.type=g>1?j:n.bindType||p,m=(W.get(h,"events")||{})[b.type]&&W.get(h,"handle"),m&&m.apply(h,c),m=k&&h[k],m&&m.apply&&U(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=p,f||b.isDefaultPrevented()||n._default&&n._default.apply(o.pop(),c)!==!1||!U(e)||k&&r.isFunction(e[p])&&!r.isWindow(e)&&(i=e[k],i&&(e[k]=null),r.event.triggered=p,e[p](),r.event.triggered=void 0,i&&(e[k]=i)),b.result}},simulate:function(a,b,c){var d=r.extend(new r.Event,c,{type:a,isSimulated:!0});r.event.trigger(d,null,b)}}),r.fn.extend({trigger:function(a,b){return this.each(function(){r.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return r.event.trigger(a,b,c,!0)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){r.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),r.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),o.focusin="onfocusin"in a,o.focusin||r.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){r.event.simulate(b,a.target,r.event.fix(a))};r.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=W.access(d,b);e||d.addEventListener(a,c,!0),W.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=W.access(d,b)-1;e?W.access(d,b,e):(d.removeEventListener(a,c,!0),W.remove(d,b))}}});var tb=a.location,ub=r.now(),vb=/\?/;r.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+b),c};var wb=/\[\]$/,xb=/\r?\n/g,yb=/^(?:submit|button|image|reset|file)$/i,zb=/^(?:input|select|textarea|keygen)/i;function Ab(a,b,c,d){var e;if(Array.isArray(b))r.each(b,function(b,e){c||wb.test(a)?d(a,e):Ab(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==r.type(b))d(a,b);else for(e in b)Ab(a+"["+e+"]",b[e],c,d)}r.param=function(a,b){var c,d=[],e=function(a,b){var c=r.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(Array.isArray(a)||a.jquery&&!r.isPlainObject(a))r.each(a,function(){e(this.name,this.value)});else for(c in a)Ab(c,a[c],b,e);return d.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=r.prop(this,"elements");return a?r.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!r(this).is(":disabled")&&zb.test(this.nodeName)&&!yb.test(a)&&(this.checked||!ja.test(a))}).map(function(a,b){var c=r(this).val();return null==c?null:Array.isArray(c)?r.map(c,function(a){return{name:b.name,value:a.replace(xb,"\r\n")}}):{name:b.name,value:c.replace(xb,"\r\n")}}).get()}});var Bb=/%20/g,Cb=/#.*$/,Db=/([?&])_=[^&]*/,Eb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Fb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gb=/^(?:GET|HEAD)$/,Hb=/^\/\//,Ib={},Jb={},Kb="*/".concat("*"),Lb=d.createElement("a");Lb.href=tb.href;function Mb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(L)||[];if(r.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Nb(a,b,c,d){var e={},f=a===Jb;function g(h){var i;return e[h]=!0,r.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Ob(a,b){var c,d,e=r.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&r.extend(!0,a,d),a}function Pb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Qb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:tb.href,type:"GET",isLocal:Fb.test(tb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Ob(Ob(a,r.ajaxSettings),b):Ob(r.ajaxSettings,a)},ajaxPrefilter:Mb(Ib),ajaxTransport:Mb(Jb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"),u=o.statusCode||{},v={},w={},x="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h){h={};while(b=Eb.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=w[a.toLowerCase()]=w[a.toLowerCase()]||a,v[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)y.always(a[y.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){var b=a||x;return e&&e.abort(b),A(0,b),this}};if(s.promise(y),o.url=((b||o.url||tb.href)+"").replace(Hb,tb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(L)||[""],null==o.crossDomain){j=d.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Lb.protocol+"//"+Lb.host!=j.protocol+"//"+j.host}catch(z){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=r.param(o.data,o.traditional)),Nb(Ib,o,c,y),k)return y;l=r.event&&o.global,l&&0===r.active++&&r.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Gb.test(o.type),f=o.url.replace(Cb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(Bb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(vb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Db,"$1"),n=(vb.test(f)?"&":"?")+"_="+ub++ +n),o.url=f+n),o.ifModified&&(r.lastModified[f]&&y.setRequestHeader("If-Modified-Since",r.lastModified[f]),r.etag[f]&&y.setRequestHeader("If-None-Match",r.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&y.setRequestHeader("Content-Type",o.contentType),y.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Kb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)y.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,y,o)===!1||k))return y.abort();if(x="abort",t.add(o.complete),y.done(o.success),y.fail(o.error),e=Nb(Jb,o,c,y)){if(y.readyState=1,l&&q.trigger("ajaxSend",[y,o]),k)return y;o.async&&o.timeout>0&&(i=a.setTimeout(function(){y.abort("timeout")},o.timeout));try{k=!1,e.send(v,A)}catch(z){if(k)throw z;A(-1,z)}}else A(-1,"No Transport");function A(b,c,d,h){var j,m,n,v,w,x=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",y.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(v=Pb(o,y,d)),v=Qb(o,v,y,j),j?(o.ifModified&&(w=y.getResponseHeader("Last-Modified"),w&&(r.lastModified[f]=w),w=y.getResponseHeader("etag"),w&&(r.etag[f]=w)),204===b||"HEAD"===o.type?x="nocontent":304===b?x="notmodified":(x=v.state,m=v.data,n=v.error,j=!n)):(n=x,!b&&x||(x="error",b<0&&(b=0))),y.status=b,y.statusText=(c||x)+"",j?s.resolveWith(p,[m,x,y]):s.rejectWith(p,[y,x,n]),y.statusCode(u),u=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[y,o,j?m:n]),t.fireWith(p,[y,x]),l&&(q.trigger("ajaxComplete",[y,o]),--r.active||r.event.trigger("ajaxStop")))}return y},getJSON:function(a,b,c){return r.get(a,b,c,"json")},getScript:function(a,b){return r.get(a,void 0,b,"script")}}),r.each(["get","post"],function(a,b){r[b]=function(a,c,d,e){return r.isFunction(c)&&(e=e||d,d=c,c=void 0),r.ajax(r.extend({url:a,type:b,dataType:e,data:c,success:d},r.isPlainObject(a)&&a))}}),r._evalUrl=function(a){return r.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},r.fn.extend({wrapAll:function(a){var b;return this[0]&&(r.isFunction(a)&&(a=a.call(this[0])),b=r(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return r.isFunction(a)?this.each(function(b){r(this).wrapInner(a.call(this,b))}):this.each(function(){var b=r(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=r.isFunction(a);return this.each(function(c){r(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(a){return!r.expr.pseudos.visible(a)},r.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Rb={0:200,1223:204},Sb=r.ajaxSettings.xhr();o.cors=!!Sb&&"withCredentials"in Sb,o.ajax=Sb=!!Sb,r.ajaxTransport(function(b){var c,d;if(o.cors||Sb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Rb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r("