{{ .Title }}
8 |18 | 19 |
├── images ├── tn.jpg └── screenshot.png ├── layouts ├── _default │ ├── _markup │ │ ├── render-codeblock-mermaid.html │ │ └── render-codeblock.html │ ├── baseof.html │ ├── section.html │ ├── term.html │ ├── taxonomy.html │ ├── home.html │ └── single.html └── partials │ ├── sidebar.html │ ├── module │ ├── sidebar_btn.html │ ├── page_translated.html │ ├── term_icon.html │ ├── breadcrumb.html │ ├── show_math.html │ └── section_tree.html │ ├── header.html │ ├── html_footer.html │ ├── footer.html │ └── html_head.html ├── .prettierignore ├── .gitignore ├── .prettierrc.json ├── assets └── _theme │ ├── js │ ├── dir_toggle.js │ ├── codeblock_copy.js │ └── sidebar.js │ └── css │ ├── 01_layout.css │ ├── 04_responsive.css │ ├── 03_home.css │ ├── 05_markdown.css │ └── 02_style.css ├── archetypes └── default.md ├── theme.toml ├── i18n └── en.toml ├── .eslintrc.json ├── package.json ├── .github └── workflows │ └── hugo.yml ├── hugo.toml ├── LICENSE ├── hugo.multilang.toml └── README.md /images/tn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JingWangTW/dark-theme-editor/HEAD/images/tn.jpg -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JingWangTW/dark-theme-editor/HEAD/images/screenshot.png -------------------------------------------------------------------------------- /layouts/_default/_markup/render-codeblock-mermaid.html: -------------------------------------------------------------------------------- 1 |
2 | {{- .Inner | safeHTML }}
3 |
4 |
5 | {{ .Page.Store.Set "hasMermaid" true }}
6 |
--------------------------------------------------------------------------------
/layouts/partials/sidebar.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
--------------------------------------------------------------------------------
/layouts/partials/module/sidebar_btn.html:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | # node modules and config files are ignored
2 | /node_modules
3 |
4 | # node dependency version is not required to this project
5 | package-lock.json
6 |
7 | # ignore hugo generated
8 | /public/**
9 | /resources/**
10 | .hugo_build.lock
11 |
12 | # ignore vscode configuration
13 | /.vscode
--------------------------------------------------------------------------------
/layouts/partials/module/page_translated.html:
--------------------------------------------------------------------------------
1 |
2 | {{ $.Site.Language.LanguageName }}
3 |
4 |
5 | {{ range $index, $element := .Translations }}
6 | /
7 |
8 |
9 | {{ .Language.LanguageName }}
10 |
11 | {{ end }}
12 |
--------------------------------------------------------------------------------
/layouts/partials/module/term_icon.html:
--------------------------------------------------------------------------------
1 | {{ if eq .Data.Singular "tag" }}
2 |
3 | {{ else if eq .Data.Singular "category" }}
4 |
5 | {{ else if eq .Data.Singular "autor" }}
6 |
7 | {{ else }}
8 |
9 | {{ end }}
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # node modules and config files are ignored
2 | /node_modules
3 |
4 | # node dependency version is not required to this project
5 | package-lock.json
6 |
7 | # ignore hugo generated
8 | /public/**
9 | /resources/**
10 | .hugo_build.lock
11 |
12 | # ignore vscode configuration
13 | /.vscode
14 |
15 | # this is a theme, we don't need these files
16 | /content
17 | /themes
18 |
--------------------------------------------------------------------------------
/.prettierrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "tabWidth": 4,
3 | "useTabs": false,
4 | "singleQuote": false,
5 | "quoteProps": "as-needed",
6 | "bracketSpacing": true,
7 | "bracketSameLine": true,
8 | "overrides": [
9 | {
10 | "files": ["*.html"],
11 | "options": {
12 | "parser": "go-template"
13 | }
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/assets/_theme/js/dir_toggle.js:
--------------------------------------------------------------------------------
1 | window.addEventListener("load", function () {
2 | // sub dir toggle
3 | document.querySelectorAll("li.dir > span.dir-text").forEach((element) => {
4 | element.addEventListener("click", function () {
5 | this.parentNode.classList.toggle("opened-dir");
6 | this.parentNode.classList.toggle("closed-dir");
7 | });
8 | });
9 | });
10 |
--------------------------------------------------------------------------------
/layouts/_default/baseof.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{ partial "html_head.html" . }}
4 |
5 |
6 |
7 | {{ partial "header.html" . }}
8 |
9 |
10 | {{ .Inner }}
21 | {{ end }}
22 | 30 | {{ . }} 31 |
32 | {{ end }} 33 |124 | {{ i18n "empty_page" | strings.FirstUpper }} 125 |
126 | {{ end }} 127 |