├── .github
└── stale.yml
├── .gitignore
├── CHANGELOG.md
├── LICENSE.md
├── Makefile
├── README-zh.md
├── README.md
├── archetypes
└── default.md
├── assets
├── js
│ ├── even.js
│ └── main.js
└── sass
│ ├── _base.scss
│ ├── _common
│ ├── _animation.scss
│ ├── _normalize.scss
│ └── _utils.scss
│ ├── _custom
│ └── _custom.scss
│ ├── _iconfont.scss
│ ├── _partial
│ ├── _404.scss
│ ├── _archive.scss
│ ├── _back-to-top.scss
│ ├── _footer.scss
│ ├── _footer
│ │ ├── _copyright.scss
│ │ └── _social.scss
│ ├── _header.scss
│ ├── _header
│ │ ├── _logo.scss
│ │ └── _menu.scss
│ ├── _language-selector.scss
│ ├── _mobile.scss
│ ├── _pagination.scss
│ ├── _post.scss
│ ├── _post
│ │ ├── _admonition.scss
│ │ ├── _code.scss
│ │ ├── _content.scss
│ │ ├── _copyright.scss
│ │ ├── _footer.scss
│ │ ├── _header.scss
│ │ ├── _outdated.scss
│ │ ├── _reward.scss
│ │ └── _toc.scss
│ ├── _slideout.scss
│ └── _terms.scss
│ ├── _variables.scss
│ └── main.scss
├── exampleSite
├── config.toml
└── content
│ ├── about.md
│ └── post
│ ├── chinese-preview.md
│ ├── english-preview.md
│ ├── even-preview.md
│ ├── hidden-post.md
│ ├── japanese-preview.md
│ ├── js-flowchart-diagrams.md
│ ├── js-sequence-diagrams.md
│ ├── shortcodes.md
│ └── syntax-highlighting.md
├── i18n
├── de.yaml
├── en.yaml
├── es.yaml
├── fr.yaml
├── ja.yaml
├── oc.yaml
├── ru.yaml
├── tr.yaml
├── zh-CN.yaml
└── zh-TW.yaml
├── images
├── screenshot.png
├── showcase.png
└── tn.png
├── layouts
├── 404.html
├── _default
│ ├── baseof.html
│ ├── section.html
│ ├── single.html
│ ├── single.md
│ ├── taxonomy.html
│ └── terms.html
├── index.html
├── partials
│ ├── comments.html
│ ├── footer.html
│ ├── head.html
│ ├── header.html
│ ├── header
│ │ └── language-selector.html
│ ├── post
│ │ ├── copyright.html
│ │ ├── outdated-info-warning.html
│ │ ├── reward.html
│ │ └── toc.html
│ ├── scripts.html
│ └── slideout.html
├── post
│ ├── single.html
│ └── summary.html
├── robots.txt
├── shortcodes
│ ├── admonition.html
│ ├── bilibili.html
│ ├── center.html
│ ├── left.html
│ ├── music.html
│ └── right.html
└── sitemap.xml
├── netlify.toml
├── resources
└── _gen
│ └── assets
│ └── scss
│ └── sass
│ ├── main.scss_48b060fe05b0a273d182ef83c0605941.content
│ └── main.scss_48b060fe05b0a273d182ef83c0605941.json
├── static
├── android-chrome-192x192.png
├── android-chrome-512x512.png
├── apple-touch-icon.png
├── browserconfig.xml
├── favicon-16x16.png
├── favicon-32x32.png
├── favicon.ico
├── fonts
│ ├── chancery
│ │ ├── apple-chancery-webfont.eot
│ │ ├── apple-chancery-webfont.svg
│ │ ├── apple-chancery-webfont.ttf
│ │ ├── apple-chancery-webfont.woff
│ │ └── apple-chancery-webfont.woff2
│ └── iconfont
│ │ ├── iconfont.eot
│ │ ├── iconfont.svg
│ │ ├── iconfont.ttf
│ │ └── iconfont.woff
├── img
│ ├── reward
│ │ ├── alipay.png
│ │ └── wechat.png
│ └── spinner.svg
├── lib
│ ├── fancybox
│ │ ├── jquery.fancybox-3.1.20.min.css
│ │ └── jquery.fancybox-3.1.20.min.js
│ ├── flowchartDiagrams
│ │ ├── flowchart-1.8.0.min.js
│ │ └── raphael-2.2.7.min.js
│ ├── highlight
│ │ └── highlight.pack.js
│ ├── jquery
│ │ └── jquery-3.2.1.min.js
│ ├── js-sequence-diagrams
│ │ ├── danielbd.woff2
│ │ ├── sequence-diagram-2.0.1.min.css
│ │ ├── sequence-diagram-2.0.1.min.js
│ │ ├── snap.svg-0.5.1.min.js
│ │ ├── underscore-1.8.3.min.js
│ │ └── webfontloader-1.6.28.js
│ ├── slideout
│ │ └── slideout-1.0.1.min.js
│ └── timeago
│ │ ├── timeago-3.0.2.min.js
│ │ └── timeago.locales-3.0.2.min.js
├── manifest.json
├── mstile-150x150.png
├── safari-pinned-tab.svg
└── sitemap.xsl
└── theme.toml
/.github/stale.yml:
--------------------------------------------------------------------------------
1 | # Number of days of inactivity before an issue becomes stale
2 | daysUntilStale: 60
3 | # Number of days of inactivity before a stale issue is closed
4 | daysUntilClose: 7
5 | # Issues with these labels will never be considered stale
6 | exemptLabels:
7 | - keep
8 | - pinned
9 | - security
10 | # Label to use when marking an issue as stale
11 | staleLabel: stale
12 | # Comment to post when marking an issue as stale. Set to `false` to disable
13 | markComment: >
14 | This issue has been automatically marked as stale because it has not had
15 | recent activity. It will be closed if no further activity occurs. Thank you
16 | for your contributions.
17 |
18 | If this is a **bug** and you can still reproduce this error on the master
branch,
19 | please reply with all of the information you have about it in order to keep the issue open.
20 | # Comment to post when closing a stale issue. Set to `false` to disable
21 | closeComment: false
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .idea/
3 | *.iml
4 | exampleSite/resources/
5 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2017 olOwOlo
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | start:
2 | hugo server --source=exampleSite --themesDir=../.. --disableFastRender
3 | changelog:
4 | conventional-changelog -p angular -i CHANGELOG.md -s
5 |
--------------------------------------------------------------------------------
/README-zh.md:
--------------------------------------------------------------------------------
1 | # hugo-theme-even
2 |
3 | [](https://github.com/olOwOlo/hugo-theme-even/contributors)
4 | [](https://github.com/olOwOlo/hugo-theme-even/releases)
5 | [](https://github.com/olOwOlo/hugo-theme-even/compare)
6 | [](https://github.com/olOwOlo/hugo-theme-even/blob/master/LICENSE.md)
7 |
8 | A super concise theme for Hugo
9 |
10 | > 该主题移植自 [hexo-theme-even](https://github.com/ahonn/hexo-theme-even)
11 |
12 | [在线预览 Demo](https://hugo-theme-even.netlify.app)
13 |
14 | ## Screenshots
15 |
16 | 
17 |
18 | ## Installation
19 |
20 | ```bash
21 | $ git clone https://github.com/olOwOlo/hugo-theme-even themes/even
22 | ```
23 |
24 | **重要:** 在主题的 [`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) 文件复制到你的站点目录下**,根据自己的需求更改即可。
25 |
26 | **重要:** 本主题用到了 [Hugo Pipes](https://gohugo.io/hugo-pipes/introduction/) 功能。如需修改 `assets` 目录下的文件,请安装 extended 版。
27 |
28 | **注意:** 对于这个主题,你应该使用 **post** 而不是 **posts**,即 `hugo new post/some-content.md`。
29 |
30 | ## Language Support
31 |
32 | > 翻译资源在 [`themes/even/i18n/`](https://github.com/olOwOlo/hugo-theme-even/tree/master/i18n) 文件夹(内置在主题中),以及站点根目录下的 `i18n/` 文件夹中。两个文件夹下的翻译资源将会被合并,且根目录下的优先级大于内置于主题中的。
33 |
34 | 只需要正确的设置 [`defaultContentLanguage`](https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml#L3) 的值即可使用翻译资源。
35 |
36 | ```toml
37 | defaultContentLanguage = "en" # en / zh-cn / other...
38 | ```
39 |
40 | 同样也支持其他语言。举例来说,为支持德语,在站点根目录下创建 `/i18n/de.yaml` 文件。参考 [`en.yaml`](https://github.com/olOwOlo/hugo-theme-even/tree/master/i18n/en.yaml) 文件查看如何编写翻译资源。
41 |
42 | 附:在多语言模式下,当前正被用于渲染网站的语言会被用于匹配翻译资源。
43 |
44 | ## Favicon
45 |
46 | 为了定制 favicon,你需要在站点根目录的 `static` 文件夹下放置下述**所有**文件,这将覆盖 [`themes/even/static/`](https://github.com/olOwOlo/hugo-theme-even/tree/master/static) 文件夹下的那些文件。
47 |
48 | - android-chrome-192x192.png
49 | - android-chrome-512x512.png
50 | - apple-touch-icon.png
51 | - browserconfig.xml
52 | - favicon.ico
53 | - favicon-16x16.png
54 | - favicon-32x32.png
55 | - manifest.json
56 | - mstile-150x150.png
57 | - safari-pinned-tab.svg
58 |
59 | [favicon generator (Google)](https://www.google.com/search?q=favicon+generator) 能够帮助你生成这些文件。
60 |
61 | ## Front Matter
62 |
63 | 你可以通过 front-matter 针对每一篇文章单独进行设置。[`themes/even/archetypes/default.md`](https://github.com/olOwOlo/hugo-theme-even/tree/master/archetypes/default.md) 文件陈列了所有可用的参数。将该文件复制到站点根目录的 `archetypes` 文件夹下将会有所帮助。
64 |
65 | ## Shortcodes
66 |
67 | 主题提供了 `center`,` right`, `left`,` music`, `admonition` 这些 shortcodes,并支持为内置的 `figure` 设置 `center`,` right`, `left` 这三种 class 值。点击[这里](https://blog.olowolo.com/example-site/post/shortcodes/)查看详细内容。
68 |
69 | ## Theme Color
70 |
71 | 主题内置了五种颜色 ( Default | Mint Green | Cobalt Blue | Hot Pink | Dark Violet ),你可以通过改变 [`/assets/sass/_variable.scss`](https://github.com/olOwOlo/hugo-theme-even/blob/master/assets/sass/_variables.scss#L5-L8) 文件中 `$theme-color-config` 的值来改变主题的颜色。
72 |
73 | ## Update Theme
74 |
75 | ```bash
76 | cd ./themes/even/
77 | git pull
78 | ```
79 |
80 | **每当更新此主题时,都应检查 `CHANGELOG.md` 文件,可能会有一些重大更改。**
81 |
82 |
83 | ## License
84 |
85 | Released under the [MIT](https://github.com/olOwOlo/hugo-theme-even/blob/master/LICENSE.md) License.
86 |
87 | ## Acknowledgements
88 |
89 | - [ananke](https://github.com/budparr/gohugo-theme-ananke)
90 | - [hexo-theme-even](https://github.com/ahonn/hexo-theme-even)
91 | - [hugo-nuo](https://github.com/laozhu/hugo-nuo)
92 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # hugo-theme-even
2 |
3 | [](https://github.com/olOwOlo/hugo-theme-even/contributors)
4 | [](https://github.com/olOwOlo/hugo-theme-even/releases)
5 | [](https://github.com/olOwOlo/hugo-theme-even/compare)
6 | [](https://github.com/olOwOlo/hugo-theme-even/blob/master/LICENSE.md)
7 |
8 | A super concise theme for Hugo
9 |
10 | > It's a port of the [hexo-theme-even](https://github.com/ahonn/hexo-theme-even)
11 |
12 | [Demo](https://hugo-theme-even.netlify.app) | [中文说明](https://github.com/olOwOlo/hugo-theme-even/blob/master/README-zh.md)
13 |
14 | ## Screenshots
15 |
16 | 
17 |
18 | ## Installation
19 |
20 | ```bash
21 | $ git clone https://github.com/olOwOlo/hugo-theme-even themes/even
22 | ```
23 |
24 | **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.
25 |
26 | **Important:** This theme uses [Hugo Pipes](https://gohugo.io/hugo-pipes/introduction/). Modifying contents in `assets` requires the extended version to be installed.
27 |
28 | **NOTE:** For this theme, you should use **post** instead of **posts**, namely `hugo new post/some-content.md`.
29 |
30 | ## Language Support
31 |
32 | > 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.
33 |
34 | To use the translations, just set a correct value for [`defaultContentLanguage`](https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml#L3).
35 |
36 | ```toml
37 | defaultContentLanguage = "en" # en / zh-cn / other...
38 | ```
39 |
40 | 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.
41 |
42 | P.S. In multilingual mode, the language which currently being used to render the website will be used.
43 |
44 | ### Language selector
45 |
46 | It is possible to enable language selector for multilingual site. It will be displayed in the header or in the slide menu.
47 |
48 | To enable it, set `showLanguageSelector` parameter to `true`.
49 |
50 | ```toml
51 | showLanguageSelector = true
52 | ```
53 |
54 | ## Favicon
55 |
56 | 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.
57 |
58 | - android-chrome-192x192.png
59 | - android-chrome-512x512.png
60 | - apple-touch-icon.png
61 | - browserconfig.xml
62 | - favicon.ico
63 | - favicon-16x16.png
64 | - favicon-32x32.png
65 | - manifest.json
66 | - mstile-150x150.png
67 | - safari-pinned-tab.svg
68 |
69 | A [favicon generator](https://www.google.com/search?q=favicon+generator) can help you generate these files.
70 |
71 | ## Front Matter
72 |
73 | 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.
74 |
75 | ## Shortcodes
76 |
77 | This theme provides `center`,` right`, `left`,` music`, `admonition` 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/).
78 |
79 | ## Theme Color
80 |
81 | 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 [`/assets/sass/_variable.scss`](https://github.com/olOwOlo/hugo-theme-even/blob/master/assets/sass/_variables.scss#L5-L8).
82 |
83 | ## Update Theme
84 |
85 | ```bash
86 | cd ./themes/even/
87 | git pull
88 | ```
89 |
90 | **Whenever you update this theme, you should check the `CHANGELOG.md` file, there may be some breaking changes.**
91 |
92 | ## License
93 |
94 | Released under the [MIT](https://github.com/olOwOlo/hugo-theme-even/blob/master/LICENSE.md) License.
95 |
96 | ## Acknowledgements
97 |
98 | - [ananke](https://github.com/budparr/gohugo-theme-ananke)
99 | - [hexo-theme-even](https://github.com/ahonn/hexo-theme-even)
100 | - [hugo-nuo](https://github.com/laozhu/hugo-nuo)
101 |
--------------------------------------------------------------------------------
/archetypes/default.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "{{ replace .TranslationBaseName "-" " " | title }}"
3 | date: {{ .Date }}
4 | lastmod: {{ .Date }}
5 | draft: true
6 | keywords: []
7 | description: ""
8 | tags: []
9 | categories: []
10 | author: ""
11 |
12 | # You can also close(false) or open(true) something for this content.
13 | # P.S. comment can only be closed
14 | comment: false
15 | toc: false
16 | autoCollapseToc: false
17 | postMetaInFooter: false
18 | hiddenFromHomePage: false
19 | # You can also define another contentCopyright. e.g. contentCopyright: "This is another copyright."
20 | contentCopyright: false
21 | reward: false
22 | mathjax: false
23 | mathjaxEnableSingleDollar: false
24 | mathjaxEnableAutoNumber: false
25 |
26 | # You unlisted posts you might want not want the header or footer to show
27 | hideHeaderAndFooter: false
28 |
29 | # You can enable or disable out-of-date content warning for individual post.
30 | # Comment this out to use the global config.
31 | #enableOutdatedInfoWarning: false
32 |
33 | flowchartDiagrams:
34 | enable: false
35 | options: ""
36 |
37 | sequenceDiagrams:
38 | enable: false
39 | options: ""
40 |
41 | ---
42 |
43 |
44 |
--------------------------------------------------------------------------------
/assets/js/even.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | const Even = {};
4 |
5 | Even.backToTop = function() {
6 | const $backToTop = $('#back-to-top');
7 |
8 | $(window).scroll(function() {
9 | if ($(window).scrollTop() > 100) {
10 | $backToTop.fadeIn(1000);
11 | } else {
12 | $backToTop.fadeOut(1000);
13 | }
14 | });
15 |
16 | $backToTop.click(function() {
17 | $('body,html').animate({scrollTop: 0});
18 | });
19 | };
20 |
21 | Even.mobileNavbar = function() {
22 | const $mobileNav = $('#mobile-navbar');
23 | const $mobileNavIcon = $('.mobile-navbar-icon');
24 | const slideout = new Slideout({
25 | 'panel': document.getElementById('mobile-panel'),
26 | 'menu': document.getElementById('mobile-menu'),
27 | 'padding': 180,
28 | 'tolerance': 70,
29 | });
30 | slideout.disableTouch();
31 |
32 | $mobileNavIcon.click(function() {
33 | slideout.toggle();
34 | });
35 |
36 | slideout.on('beforeopen', function() {
37 | $mobileNav.addClass('fixed-open');
38 | $mobileNavIcon.addClass('icon-click').removeClass('icon-out');
39 | });
40 |
41 | slideout.on('beforeclose', function() {
42 | $mobileNav.removeClass('fixed-open');
43 | $mobileNavIcon.addClass('icon-out').removeClass('icon-click');
44 | });
45 |
46 | $('#mobile-panel').on('touchend', function() {
47 | slideout.isOpen() && $mobileNavIcon.click();
48 | });
49 | };
50 |
51 | Even._initToc = function() {
52 | const SPACING = 20;
53 | const $toc = $('.post-toc');
54 | const $footer = $('.post-footer');
55 |
56 | if ($toc.length) {
57 | const minScrollTop = $toc.offset().top - SPACING;
58 | const maxScrollTop = $footer.offset().top - $toc.height() - SPACING;
59 |
60 | const tocState = {
61 | start: {
62 | 'position': 'absolute',
63 | 'top': minScrollTop,
64 | },
65 | process: {
66 | 'position': 'fixed',
67 | 'top': SPACING,
68 | },
69 | end: {
70 | 'position': 'absolute',
71 | 'top': maxScrollTop,
72 | },
73 | };
74 |
75 | $(window).scroll(function() {
76 | const scrollTop = $(window).scrollTop();
77 |
78 | if (scrollTop < minScrollTop) {
79 | $toc.css(tocState.start);
80 | } else if (scrollTop > maxScrollTop) {
81 | $toc.css(tocState.end);
82 | } else {
83 | $toc.css(tocState.process);
84 | }
85 | });
86 | }
87 |
88 | const HEADERFIX = 30;
89 | const $toclink = $('.toc-link');
90 | const $headerlink = $('.headerlink');
91 | const $tocLinkLis = $('.post-toc-content li');
92 |
93 | const headerlinkTop = $.map($headerlink, function(link) {
94 | return $(link).offset().top;
95 | });
96 |
97 | const headerLinksOffsetForSearch = $.map(headerlinkTop, function(offset) {
98 | return offset - HEADERFIX;
99 | });
100 |
101 | const searchActiveTocIndex = function(array, target) {
102 | for (let i = 0; i < array.length - 1; i++) {
103 | if (target > array[i] && target <= array[i + 1]) return i;
104 | }
105 | if (target > array[array.length - 1]) return array.length - 1;
106 | return -1;
107 | };
108 |
109 | $(window).scroll(function() {
110 | const scrollTop = $(window).scrollTop();
111 | const activeTocIndex = searchActiveTocIndex(headerLinksOffsetForSearch, scrollTop);
112 |
113 | $($toclink).removeClass('active');
114 | $($tocLinkLis).removeClass('has-active');
115 |
116 | if (activeTocIndex !== -1 && $toclink[activeTocIndex] != null) {
117 | $($toclink[activeTocIndex]).addClass('active');
118 | let ancestor = $toclink[activeTocIndex].parentNode;
119 | while (ancestor.tagName !== 'NAV') {
120 | $(ancestor).addClass('has-active');
121 | ancestor = ancestor.parentNode.parentNode;
122 | }
123 | }
124 | });
125 | };
126 |
127 | Even.fancybox = function() {
128 | if ($.fancybox) {
129 | $('.post-content').each(function() {
130 | $(this).find('img').each(function() {
131 | $(this).wrap(``);
132 | });
133 | });
134 |
135 | $('.fancybox').fancybox({
136 | selector: '.fancybox',
137 | protect: true,
138 | });
139 | }
140 | };
141 |
142 | Even.highlight = function() {
143 | const blocks = document.querySelectorAll('pre code');
144 | for (let i = 0; i < blocks.length; i++) {
145 | const block = blocks[i];
146 | const rootElement = block.parentElement;
147 | const lineCodes = block.innerHTML.split(/\n/);
148 | if (lineCodes[lineCodes.length - 1] === '') lineCodes.pop();
149 | const lineLength = lineCodes.length;
150 |
151 | let codeLineHtml = '';
152 | for (let i = 0; i < lineLength; i++) {
153 | codeLineHtml += `
${codeLineHtml} | ${codeHtml} |
/* 404 page not found. */
7 | 8 |4 | {{ T "author" }} 5 | {{ if .Params.author }}{{ .Params.author | safeHTML }}{{ else }}{{ .Site.Params.Author.name | safeHTML }}{{ end }} 6 |
7 |8 | {{ T "lastMod" }} 9 | 10 | {{ .Lastmod.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} 11 | {{ with .GitInfo }}({{ .AbbreviatedHash }}){{ end }} 12 | 13 |
14 | {{ if $.Site.Params.linkToMarkDown -}} 15 | {{ with $.OutputFormats.Get "markdown" -}} 16 |17 | {{ T "markdown" }} 18 | {{ T "seeMarkDown" }} 19 |
20 | {{- end }} 21 | {{- end }} 22 | {{ if or .Params.contentCopyright (and .Site.Params.contentCopyright (ne .Params.contentCopyright false)) -}} 23 |24 | {{ T "license" }} 25 | 26 | {{- if .Params.contentCopyright -}} 27 | {{ .Params.contentCopyright | safeHTML }} 28 | {{- else -}} 29 | {{ .Site.Params.contentCopyright | safeHTML }} 30 | {{- end -}} 31 | 32 |
33 | {{- end }} 34 |{{ T "outdatedInfoWarningBefore" -}} 21 | 22 | {{- dateFormat "January 2, 2006" $updateTime -}} 23 | {{ T "outdatedInfoWarningAfter" -}} 24 |
25 |{{ . }}
{{ end }} 14 | {{ .Inner }} 15 |{{ . }}
{{ end }} 32 | {{ .Inner }} 33 |70 | This is a sitemap generated by Hugo to allow search engines to discover this blog's content. 71 |
72 |73 | The xsl style copy from Ghost. 74 |
75 |URL ( |
79 | Prio | 80 |Ch. Freq. | 81 |Last Modified | 82 |
---|---|---|---|
90 | |
97 |
98 | |
100 |
101 | |
103 |
104 | |
106 |