diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d298be1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+public/
\ No newline at end of file
diff --git a/Features.md b/Features.md
new file mode 100644
index 0000000..a06fee2
--- /dev/null
+++ b/Features.md
@@ -0,0 +1,32 @@
+# Features
+
+1. Automatic Dark/Light mode based on system settings
+2. Dark/Light mode switcher
+3. Automatic Diagram dark/light switch
+4. Automatic Giscus dark/light switch
+
+| Feature (light/dark mode) | Anubis2 |
+| ---------------------------------------------------------------------- | ------- |
+| Line Number (table) and Hilight Lines | ✅ |
+| Line Number (true) and Hilight Lines | ✅ |
+| Line Number (inline) and Hilight Lines | ✅ |
+| Line Number (false) and Hilight Lines | ✅ |
+| Line Number (table) and Hilight Lines and Anchor Line | ✅ |
+| Line Number (table) and Hilight Inline | ✅ |
+| Highlight Shortcode, Line Number (table) and Hilight Lines and Anchor | ✅ |
+| Highlight Shortcode, Line Number (inline) and Hilight Lines and Anchor | ✅ |
+| Highlight Shortcode, Line Number (false) and Hilight Lines and Anchor | ✅ |
+| Mermaid Support (No Config, Lazy Load, Dark/Light Auto Switch) | ✅ |
+| MathJax Support (No Config, Lazy Load, Dark/Light Auto Switch) | ✅ |
+| Giscus Support (Dark/Light Auto Switch) | ✅ |
+| Umami Support (Dark/Light Auto Switch) | ✅ |
+| Multi-Author Support | ✅ |
+| Multi-Language Support | ✅ |
+| Support for \ tag | ✅ |
+| Support for \
tag | ✅ |
+| Support for \ tag | ✅ |
+| Support for \ tag | ✅ |
+| Passed CodePreKbdMark test | ✅ |
+| Passed All 8 Summary Rendering Tests | ✅ 8/8 |
+| Mermaid dark/light manual switch | ✅ |
+| Mermaid dark/light auto switch | ✅ |
diff --git a/LICENSE b/LICENSE
index b76ea6d..00b76c4 100644
--- a/LICENSE
+++ b/LICENSE
@@ -17,4 +17,4 @@ 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.
\ No newline at end of file
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
index bfc5ed0..70be5e4 100644
--- a/README.md
+++ b/README.md
@@ -10,12 +10,13 @@ Anubis2 is another simple minimalist theme for [Hugo blog engine](https://gohugo
## Highlighted Features
- Multilingual
-- Dark / Light mode
+- Dark / Light mode (Automatic switch based on system settings)
- Table of Contents
- Comment Support (Giscus, Disque, ISSO, Utterances, GraphComment)
- Analytics (Google, Umami)
- RSS feeds
- Mobile Support
+- [Full Features](wiki/Full-Features)
## Installation
diff --git a/archetypes/default.md b/archetypes/default.md
index 00e77bd..26f317f 100644
--- a/archetypes/default.md
+++ b/archetypes/default.md
@@ -3,4 +3,3 @@ title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---
-
diff --git a/assets/css/dark.css b/assets/css/dark.css
index e8a73cc..d01d145 100644
--- a/assets/css/dark.css
+++ b/assets/css/dark.css
@@ -74,4 +74,4 @@ html[data-theme='dark'] {
--svg-color: #ccc;
--svg-state-color: #ff5858;
-}
\ No newline at end of file
+}
diff --git a/assets/css/light.css b/assets/css/light.css
index e5c0364..c1df0e4 100644
--- a/assets/css/light.css
+++ b/assets/css/light.css
@@ -58,7 +58,7 @@ html[data-theme="light"] {
--pre-bg-color: #eff1f2;
--pre-border-color: #e1e5e9;
--kbd-bg-color: #f7f7f7;
-
+
--bq-color: #ccc;
--hr-color: #ccc;
diff --git a/assets/css/main.css b/assets/css/main.css
index 4298b41..da76a9c 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -179,7 +179,6 @@ kbd {
line-height: 154%;
border-radius: 6px;
border: 1px solid var(--pre-border-color);
- overflow: auto;
}
/*
tag */
@@ -212,8 +211,68 @@ pre kbd kbd {
margin-right: 0.2em;
}
-/* ```python``` like */
-pre code {
+p code,
+p kbd {
+ padding: 0.1em 0.3em;
+ /* top, bottom */
+ /* margin-right: 4px; */
+}
+
+td pre {
+ border: none;
+ /* padding: 0px; */
+ border-radius: 0px;
+}
+
+td:first-child pre {
+ padding-right: 0;
+}
+
+td:last-child pre {
+ padding-left: 0;
+}
+
+td pre code {
+ /* when there is a line number grid */
+ padding: 0px;
+ display: flex;
+ flex-direction: column;
+ border-radius: 0px;
+ /* padding-top: 4px; */
+ /* padding-bottom: 4px; */
+}
+
+div.highlight {
+ border-radius: 6px;
+ border: 1px solid var(--pre-border-color);
+ margin-bottom: 14px;
+}
+
+div.highlight pre {
+ border: none;
+ display: grid;
+ margin: 0px;
+ overflow: auto; /* Have to add this line, otherwise the "pre" and "code" will have different width */
+ /* padding-left: 10px; */
+ /* padding-right: 10px; */
+ /* padding-top: 10px; */
+ /* padding-bottom: 10px; */
+}
+
+div.highlight code {
+ padding-left: 0px;
+ padding-right: 0px;
+}
+
+div.highlight code a:hover,
+div.highlight code a:focus {
+ color: white;
+ border-bottom: 1px solid white;
+ /*for markup.highlight.anchorLineNos = true*/
+}
+
+pre code,
+pre kbd {
color: inherit;
background-color: inherit;
border: none;
@@ -679,6 +738,8 @@ code.has-jax {
.post-translations>li:not(:last-child)::after {
content: "|";
display: inline-block;
+ margin-left: 4px;
+ margin-right: 4px;
}
.post-translations>li a {
@@ -794,33 +855,30 @@ ul.footer-menu>li {
/* Copy code */
.highlight {
position: relative;
- overflow: auto;
-}
-
-.highlight pre {
- padding-right: 75px;
+ overflow: hidden;
}
.highlight:hover .highlight-copy-btn {
display: inline-block;
- border: 1px solid rgba(255, 255, 255, 0.1);
+ border: 1px solid rgba(0, 0, 0, 0.5);
}
.highlight-copy-btn {
display: none;
position: absolute;
- top: 18px;
- right: 2px;
- border: 0;
+ top: 0px;
+ right: 0px;
+ border: 1px solid rgba(0, 0, 0, 0.5);
border-radius: 6px;
padding: 1px;
font-size: 0.7em;
line-height: 1.8;
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
- min-width: 25px;
+ min-width: 22px;
text-align: center;
transition: border 0.3s;
+ transition: background-color 0.3s;
}
.highlight-copy-btn:hover {
@@ -888,23 +946,4 @@ ul.footer-menu>li {
.post-pagination .pagination-item {
max-width: 10em;
}
-}
-
-{{ range site.Params.customCSS }}
- {{ $custom := resources.Get . }}
-
- {{ $custom.Content }}
-{{ end }}
-
-{{ if site.Params.isso.enabled }}
-
-#isso-thread .textarea {
- color: #000;
-}
-
-#isso-thread .isso-feedlink {
- position: relative;
- z-index: 1;
-}
-
-{{ end }}
+}
\ No newline at end of file
diff --git a/assets/images/link.svg b/assets/images/link.svg
index 17830a4..28c8af8 100644
--- a/assets/images/link.svg
+++ b/assets/images/link.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
diff --git a/assets/js/copy-code.js b/assets/js/copy-code.js
index d23b0cf..64aec0c 100644
--- a/assets/js/copy-code.js
+++ b/assets/js/copy-code.js
@@ -61,4 +61,4 @@ document.addEventListener("DOMContentLoaded", function(event) {
// Add copy button to code blocks
let highlightBlocks = document.getElementsByClassName('highlight');
Array.prototype.forEach.call(highlightBlocks, addCopyButton);
-}, false);
\ No newline at end of file
+}, false);
diff --git a/assets/js/load-mermaid.js b/assets/js/load-mermaid.js
index 75b1df5..0c5f143 100644
--- a/assets/js/load-mermaid.js
+++ b/assets/js/load-mermaid.js
@@ -7,7 +7,7 @@
(function(window){
'use strict'
-
+
const elementCode = '.mermaid'
const loadMermaid = function(theme) {
window.mermaid.initialize({theme})
@@ -26,7 +26,7 @@
}
});
} catch (error) {
- reject(error)
+ reject(error)
}
})
}
@@ -46,11 +46,11 @@
}
});
} catch (error) {
- reject(error)
+ reject(error)
}
})
- }
-
+ }
+
const init = ()=>{
saveOriginalData()
.catch( console.error )
@@ -66,4 +66,4 @@
})
}
window.initMermaid = init
- })(window);
\ No newline at end of file
+ })(window);
diff --git a/data/social.yaml b/data/social.yaml
index 4c8461b..65e0ba3 100644
--- a/data/social.yaml
+++ b/data/social.yaml
@@ -35,4 +35,4 @@ social_icons:
tumblr:
weibo:
x: https://twitter.com/%s
- zhihu: https://www.zhihu.com/people/%s
\ No newline at end of file
+ zhihu: https://www.zhihu.com/people/%s
diff --git a/exampleSiteMultilingual/.gitignore b/exampleSiteMultilingual/.gitignore
index df410c6..21730f3 100644
--- a/exampleSiteMultilingual/.gitignore
+++ b/exampleSiteMultilingual/.gitignore
@@ -1,3 +1,3 @@
.hugo_build.lock
public/
-resources/
\ No newline at end of file
+resources/
diff --git a/exampleSiteMultilingual/.pre-commit-config.yaml b/exampleSiteMultilingual/.pre-commit-config.yaml
new file mode 100644
index 0000000..3619705
--- /dev/null
+++ b/exampleSiteMultilingual/.pre-commit-config.yaml
@@ -0,0 +1,11 @@
+# See https://pre-commit.com for more information
+# See https://pre-commit.com/hooks.html for more hooks
+repos:
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v3.2.0
+ hooks:
+ - id: trailing-whitespace
+ # - id: end-of-file-fixer
+ - id: check-yaml
+ - id: check-toml
+ - id: check-added-large-files
diff --git a/exampleSiteMultilingual/assets/custom-css/custom1.scss b/exampleSiteMultilingual/assets/custom-css/custom1.scss
new file mode 100644
index 0000000..caa28e5
--- /dev/null
+++ b/exampleSiteMultilingual/assets/custom-css/custom1.scss
@@ -0,0 +1,9 @@
+@import 'foundation/vars';
+
+junyi {
+ display: block;
+ font: 100% $font-stack;
+ color: $primary-color;
+ background-color: $background-color;
+ margin-top: 1em;
+}
diff --git a/exampleSiteMultilingual/assets/custom-css/custom2.css b/exampleSiteMultilingual/assets/custom-css/custom2.css
new file mode 100644
index 0000000..3dbe013
--- /dev/null
+++ b/exampleSiteMultilingual/assets/custom-css/custom2.css
@@ -0,0 +1,7 @@
+.anubis-custom-style {
+ background-color: pink;
+ color: black;
+ padding: 1em;
+ border-radius: 0.3em;
+ border: 1px solid black;
+}
diff --git a/exampleSiteMultilingual/assets/custom-css/foundation/_vars.scss b/exampleSiteMultilingual/assets/custom-css/foundation/_vars.scss
new file mode 100644
index 0000000..bd810d0
--- /dev/null
+++ b/exampleSiteMultilingual/assets/custom-css/foundation/_vars.scss
@@ -0,0 +1,3 @@
+$font-stack: Helvetica, sans-serif;
+$primary-color: rgb(255, 255, 168);
+$background-color: rgb(85, 85, 85);
diff --git a/exampleSiteMultilingual/content/_index.md b/exampleSiteMultilingual/content/_index.md
index 6abc75e..ed6494b 100644
--- a/exampleSiteMultilingual/content/_index.md
+++ b/exampleSiteMultilingual/content/_index.md
@@ -1,4 +1,3 @@
+++
author = "Hugo Authors"
+++
-
diff --git a/exampleSiteMultilingual/content/about-subpage.md b/exampleSiteMultilingual/content/about-subpage.md
deleted file mode 100644
index 413f0ea..0000000
--- a/exampleSiteMultilingual/content/about-subpage.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-title: "About Subpage"
-description: "About Subpage"
-date: "2019-02-28"
-author: "Hugo Authors"
-slug: /about/subpage
-menu:
- subpage:
- identifier: about-subpage-s
- parent: about
- name: About Subpage
- title: About Subpage
- url: /about/subpage/
- weight: 1
- subpage2:
- identifier: about-subpage2-s
- parent: about
- name: Second About Subpage
- title: Second About Subpage
- url: /about/subpage2/
- weight: 10
----
-
-About subpage
diff --git a/exampleSiteMultilingual/content/about-subpage.pl.md b/exampleSiteMultilingual/content/about-subpage.pl.md
deleted file mode 100644
index 413f0ea..0000000
--- a/exampleSiteMultilingual/content/about-subpage.pl.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-title: "About Subpage"
-description: "About Subpage"
-date: "2019-02-28"
-author: "Hugo Authors"
-slug: /about/subpage
-menu:
- subpage:
- identifier: about-subpage-s
- parent: about
- name: About Subpage
- title: About Subpage
- url: /about/subpage/
- weight: 1
- subpage2:
- identifier: about-subpage2-s
- parent: about
- name: Second About Subpage
- title: Second About Subpage
- url: /about/subpage2/
- weight: 10
----
-
-About subpage
diff --git a/exampleSiteMultilingual/content/about-subpage2.md b/exampleSiteMultilingual/content/about-subpage2.md
deleted file mode 100644
index 372dced..0000000
--- a/exampleSiteMultilingual/content/about-subpage2.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-title: "Second About Subpage"
-description: "Second About Subpage"
-date: "2019-02-28"
-author: "Hugo Authors"
-slug: /about/subpage2
-menu:
- subpage:
- identifier: about-subpage-s2
- parent: about
- name: About Subpage
- title: About Subpage
- url: /about/subpage/
- weight: 1
- subpage2:
- identifier: about-subpage2-s2
- parent: about
- name: Second About Subpage
- title: Second About Subpage
- url: /about/subpage2/
- weight: 10
----
-
-Second About subpage
diff --git a/exampleSiteMultilingual/content/about-subpage2.pl.md b/exampleSiteMultilingual/content/about-subpage2.pl.md
deleted file mode 100644
index 372dced..0000000
--- a/exampleSiteMultilingual/content/about-subpage2.pl.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-title: "Second About Subpage"
-description: "Second About Subpage"
-date: "2019-02-28"
-author: "Hugo Authors"
-slug: /about/subpage2
-menu:
- subpage:
- identifier: about-subpage-s2
- parent: about
- name: About Subpage
- title: About Subpage
- url: /about/subpage/
- weight: 1
- subpage2:
- identifier: about-subpage2-s2
- parent: about
- name: Second About Subpage
- title: Second About Subpage
- url: /about/subpage2/
- weight: 10
----
-
-Second About subpage
diff --git a/exampleSiteMultilingual/content/about.md b/exampleSiteMultilingual/content/about.md
index 438c830..76b72b6 100644
--- a/exampleSiteMultilingual/content/about.md
+++ b/exampleSiteMultilingual/content/about.md
@@ -1,35 +1,22 @@
----
-title: "About"
-description: "Hugo, the world’s fastest framework for building websites"
-date: "2019-02-28"
-aliases: ["about-us","about-hugo","contact"]
-author: "Hugo Authors"
-menu:
- subpage:
- identifier: about-subpage
- parent: about
- name: About Subpage
- title: About Subpage
- url: /about/subpage/
- weight: 1
- subpage2:
- identifier: about-subpage2
- parent: about
- name: Second About Subpage
- title: Second About Subpage
- url: /about/subpage2/
- weight: 10
----
++++
+title = "About"
+description = "Hugo, the world’s fastest framework for building websites"
+date = "2024-04-09"
+aliases = ["about-us", "about-hugo"]
+author = ["Hugo Authors", "Junyi"]
++++
+
+[Anubis2](https://github.com/Junyi-99/hugo-theme-anubis2) is another simple minimalist theme for Hugo blog engine.
Written in Go, Hugo is an open source static site generator available under the [Apache License 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
Hugo makes use of a variety of open source projects including:
-* https://github.com/yuin/goldmark
-* https://github.com/alecthomas/chroma
-* https://github.com/muesli/smartcrop
-* https://github.com/spf13/cobra
-* https://github.com/spf13/viper
+*
`—`
` elements represent six levels of section headings. `
` is the highest section level while `
` is the lowest.
-
-# H1
-## H2
-### H3
-#### H4
-##### H5
-###### H6
-
-## Paragraph
-
-Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
-
-Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
-
-## Blockquotes
-
-The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
-
-#### Blockquote without attribution
-
-> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
-> **Note** that you can use *Markdown syntax* within a blockquote.
-
-#### Blockquote with attribution
-
-> Don't communicate by sharing memory, share memory by communicating.
Test
- - -``` -#### Code block indented with four spaces - - - - - -Test
- - - -#### Code block with Hugo's internal highlight shortcode -{{< highlight html >}} - - - - -Test
- - -{{< /highlight >}} - -## List Types - -#### Ordered List - -1. First item -2. Second item -3. Third item - -#### Unordered List - -* List item -* Another item -* And another item - -#### Nested list - -* Item -1. First Sub-item -2. Second Sub-item - -## Other Elements — abbr, sub, sup, kbd, mark - -GIF is a bitmap image format. - -H2O - -Xn + Yn = Zn - -Press CTRL+ALT+Delete to end the session. - -Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. - diff --git a/exampleSiteMultilingual/content/post/math-typesetting.pl.md b/exampleSiteMultilingual/content/post/math-typesetting.pl.md deleted file mode 100644 index a1467e3..0000000 --- a/exampleSiteMultilingual/content/post/math-typesetting.pl.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -author: Hugo Authors -title: Math Typesetting -date: 2019-03-08 -description: A brief guide to setup KaTeX -math: true ---- - -Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries. - - -In this example we will be using [KaTeX](https://katex.org/) - -- Create a partial under `/layouts/partials/math.html` -- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally. -- Include the partial in your templates like so: - -``` -{{ if or .Params.math .Site.Params.math }} -{{ partial "math.html" . }} -{{ end }} -``` -- To enable KaTex globally set the parameter `math` to `true` in a project's configuration -- To enable KaTex on a per page basis include the parameter `math: true` in content files. - -**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) -{{< math.inline >}} -{{ if or .Page.Params.math .Site.Params.math }} - - - - -{{ end }} -{{ math.inline >}} - -### Examples - -Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$ - -Block math: - -$$ - \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } -$$ - diff --git a/exampleSiteMultilingual/content/post/placeholder-text.pl.md b/exampleSiteMultilingual/content/post/placeholder-text.pl.md deleted file mode 100644 index 29ff09f..0000000 --- a/exampleSiteMultilingual/content/post/placeholder-text.pl.md +++ /dev/null @@ -1,58 +0,0 @@ -+++ -author = "Hugo Authors" -title = "Placeholder Text" -date = "2019-03-09" -description = "Lorem Ipsum Dolor Si Amet" -tags = [ - "markdown", - "text", -] -+++ - -Lorem est tota propiore conpellat pectoribus de -pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice -subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc -caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis -lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. - -1. Exierant elisi ambit vivere dedere -2. Duce pollice -3. Eris modo -4. Spargitque ferrea quos palude - -Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus -silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria -tractus malis. - -1. Comas hunc haec pietate fetum procerum dixit -2. Post torum vates letum Tiresia -3. Flumen querellas -4. Arcanaque montibus omnes -5. Quidem et - -# Vagus elidunt - - - -[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) - -## Mane refeci capiebant unda mulcebat - -Victa caducifer, malo vulnere contra -dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere -furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. - -Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli -Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare -Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert -ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae -vulnus haerentia iuste et exercebat, sui et. - -Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem -Propoetides **parte**. - -{{< css.inline >}} - -{{< /css.inline >}} diff --git a/exampleSiteMultilingual/content/post/rich-content.pl.md b/exampleSiteMultilingual/content/post/rich-content.pl.md deleted file mode 100644 index 71a36e1..0000000 --- a/exampleSiteMultilingual/content/post/rich-content.pl.md +++ /dev/null @@ -1,34 +0,0 @@ -+++ -author = "Hugo Authors" -title = "Rich Content" -date = "2019-03-10" -description = "A brief description of Hugo Shortcodes" -tags = [ - "shortcodes", - "privacy", -] -+++ - -Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. - ---- - -## YouTube Privacy Enhanced Shortcode - -{{< youtube ZJthWmvUzzc >}} - -
-
-Direct Code
-
-`A verrrrrryyyyy llloooonnnggg coooodeeee`
-
-`code` `is` `here`
-
-```plain
-multiline
-code
-here
-```
-
-```typescript
-interface User {
- id: number
- firstName: string
- lastName: string
- role: string
-}
-
-function updateUser(id: number, update: Partial) {
- const user = getUser(id)
- const newUser = { ...user, ...update }
- saveUser(id, newUser)
-}
-```
-
-## \
-
-pre text
-pre text
-pre text
-
-## \
-
-
-Press CTRL + C to copy text (Windows).
-
-Press CMD + C to copy text (Mac OS).
-
-Press CTRL+ALT+Delete to end the session.
-
-Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
-
-Press CTRL+ALT+Delete to end the session.
\ No newline at end of file
diff --git a/exampleSiteMultilingual/content/posts/advancedstyle/index.md b/exampleSiteMultilingual/content/posts/advancedstyle/index.md
new file mode 100644
index 0000000..40e522a
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/advancedstyle/index.md
@@ -0,0 +1,66 @@
++++
+author = "Hugo Authors"
+title = "Advanced Style"
+date = "2024-04-09"
+description = "Guide to advanced usage of Anubis2"
+tags = [
+ "emoji",
+]
++++
+
+There are examples of how to use custom `global-wise style` or `page-wise style`.
+
+
+
+
+The custom .css
.scss
.sass
file should be placed in assets/
folder. (instead of static/
)
+
+
+
+This page is affected by assets/css/custom1.scss
and assets/css/custom2.css
and advanced-style/style.css
+
+
+advanced-style/style.css
affects only the current page.
+
+```html
+
+```
+
+
+
+assets/css/custom1.scss
and assets/css/custom2.scss
will have global effect.
+
+```scss
+// assets/css/custom2.css
+.anubis-custom-style {
+ background-color: pink;
+ color: black;
+ padding: 1em;
+ border-radius: 0.3em;
+ border: 1px solid black;
+}
+```
+
+```scss
+// assets/css/foundation/_vars.scss
+$font-stack: Helvetica, sans-serif;
+$primary-color: rgb(255, 255, 168);
+$background-color: rgb(85, 85, 85);
+```
+
+```scss
+// assets/css/custom1.scss
+@import 'foundation/vars';
+
+junyi {
+ display: block;
+ font: 100% $font-stack;
+ color: $primary-color;
+ background-color: $background-color;
+ margin-top: 1em;
+}
+```
\ No newline at end of file
diff --git a/exampleSiteMultilingual/content/posts/advancedstyle/style.css b/exampleSiteMultilingual/content/posts/advancedstyle/style.css
new file mode 100644
index 0000000..6937f22
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/advancedstyle/style.css
@@ -0,0 +1,8 @@
+@import 'subfolder/hello.scss';
+
+.container {
+ max-width: none;
+ padding-left: 5em;
+ padding-right: 5em;
+ background-color: white;
+}
\ No newline at end of file
diff --git a/exampleSiteMultilingual/content/posts/demo-code-pre-kbd-mark.md b/exampleSiteMultilingual/content/posts/demo-code-pre-kbd-mark.md
new file mode 100644
index 0000000..7e024a4
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/demo-code-pre-kbd-mark.md
@@ -0,0 +1,120 @@
++++
+author = "Hugo Authors"
+title = "Demo - Support for code, pre, kbd, mark"
+date = "2024-04-22"
+description = "Guide to advanced usage of Anubis2"
+tags = [
+ "emoji",
+]
++++
+
+## Individual support for code, pre, kbd, mark
+
+`code` pre
+
+CRTL + K + B + D
+
+
+
+Feel free to switch between the light and dark themes to see the rendering differences.
+
+### Support for \ tag
+
+Direct Code
+
+`A verrrrrryyyyy llloooonnnggg coooodeeee`
+
+`code` `is` `here`
+
+```plain
+multiline
+code
+here
+```
+
+```typescript
+// ```typescript
+interface User {
+ id: number
+ firstName: string
+ lastName: string
+ role: string
+}
+```
+
+```typescript {linenos=inline}
+// ```typescript {linenos=inline}
+function updateUser(id: number, update: Partial) {
+ const user = getUser(id)
+ const newUser = { ...user, ...update }
+ saveUser(id, newUser)
+}
+```
+
+```typescript {linenos=true}
+// ```typescript {linenos=true}
+function updateUser(id: number, update: Partial) {
+ const user = getUser(id)
+ const newUser = { ...user, ...update }
+ saveUser(id, newUser)
+}
+```
+
+### Support for \ tag
+
+pre text
+pre text
+pre text
+
+### Support for \ tag
+
+
+Press CTRL + C to copy text (Windows).
+
+Press CMD + C to copy text (Mac OS).
+
+Press CTRL+ALT+Delete to end the session.
+
+
+### Support for \ tag
+
+Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
+Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
+
+Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
+
+### Support for \ in \
+
+This is a KBD inside a pre.
+
+### Support for \ in \ (❌ Should not be used)
+
+This is a KBD inside a code.
+
+### Support for \ in \ (❌ Should not be used)
+
+This is a CODE
inside a pre.
+
+### Support for \ in \ (❌ Should not be used)
+
+This is a CODE
inside a kbd.
+
+### Support for \ in \ (❌ Should not be used)
+
+This is a PRE
inside a kbd.
+
+### Support for \ in \ (❌ Should not be used)
+
+This is a PRE
inside a code.
+
+### Support for \ in \
+
+This is a MARK inside a kbd.
+
+### Support for \ in \
+
+This is a MARK inside a code.
+
+### Support for \ in \
+
+This is a MARK inside a pre.
\ No newline at end of file
diff --git a/exampleSiteMultilingual/content/posts/advanced.md b/exampleSiteMultilingual/content/posts/demo-diagram.md
similarity index 89%
rename from exampleSiteMultilingual/content/posts/advanced.md
rename to exampleSiteMultilingual/content/posts/demo-diagram.md
index 1c8f723..47d9852 100644
--- a/exampleSiteMultilingual/content/posts/advanced.md
+++ b/exampleSiteMultilingual/content/posts/demo-diagram.md
@@ -1,29 +1,33 @@
+++
author = "Hugo Authors"
-title = "Advanced Diagram Usage"
-date = "2024-04-09"
+title = "Demo - Support for Diagrams"
+date = "2024-04-19"
description = "Guide to advanced usage of Anubis2"
tags = [
"emoji",
]
+++
-
-## GoAT
-
-```goat
- . . . .--- 1 .-- 1 / 1
- / \ | | .---+ .-+ +
- / \ .---+---. .--+--. | '--- 2 | '-- 2 / \ 2
- + + | | | | ---+ ---+ +
- / \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
- / \ / \ | | | | | | | | '---+ '-+ +
- 1 2 3 4 1 2 3 4 1 2 3 4 '--- 4 '-- 4 \ 4
-```
+Feel free to switch between the light and dark themes to see how the diagram adapts its colors accordingly.
## Mermaid Diagrams
-Get more examples at [here](https://mermaid.js.org/intro/)
+```mermaid
+gantt
+ title A Gantt Diagram
+ dateFormat YYYY-MM-DD
+ section Section
+ A task :a1, 2014-01-01, 30d
+ Another task :after a1, 20d
+ section Another
+ Task in Another :2014-01-12, 12d
+ another task :24d
+
+```
+
+Get more examples at [About Mermaid](https://mermaid.js.org/intro/)
+
+
```mermaid
gitGraph:
@@ -41,18 +45,7 @@ gitGraph:
commit
```
-```mermaid
-gantt
- title A Gantt Diagram
- dateFormat YYYY-MM-DD
- section Section
- A task :a1, 2014-01-01, 30d
- Another task :after a1, 20d
- section Another
- Task in Another :2014-01-12, 12d
- another task :24d
-```
```mermaid
stateDiagram
@@ -103,3 +96,15 @@ sequenceDiagram
John->>Bob: How about you?
Bob-->>John: Jolly good!
```
+
+## GoAT
+
+```goat
+ . . . .--- 1 .-- 1 / 1
+ / \ | | .---+ .-+ +
+ / \ .---+---. .--+--. | '--- 2 | '-- 2 / \ 2
+ + + | | | | ---+ ---+ +
+ / \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
+ / \ / \ | | | | | | | | '---+ '-+ +
+ 1 2 3 4 1 2 3 4 1 2 3 4 '--- 4 '-- 4 \ 4
+```
diff --git a/exampleSiteMultilingual/content/posts/demo-multiline-codes.md b/exampleSiteMultilingual/content/posts/demo-multiline-codes.md
new file mode 100644
index 0000000..e3df562
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/demo-multiline-codes.md
@@ -0,0 +1,178 @@
++++
+author = "Junyi"
+title = "Demo - Multiline Codes"
+date = "2024-04-23"
+description = "Codes, Codefences, and Syntax Highlighting."
+tags = [
+ "icons",
+ "anubis2",
+ "hugo"
+]
++++
+
+There are 9 tests.
+
+
+
+## Line Numbers, Highlight Lines
+
+### Line Number (table) and Highlight Lines
+
+`linenos=table` will give copy-and-paste friendly code blocks.
+
+ ```c {linenos=table, hl_lines=[1,"3-4",8], linenostart=199}
+ // codes ...
+ ```
+
+```c {linenos=table, hl_lines=[1,"3-4",8], linenostart=199}
+int main() {
+ int a = 1;
+ if (a == 999)
+ // This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
+ // If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
+ }
+ return 0;
+}
+```
+
+### Line Number (true) and Highlight Lines
+
+ ```c {linenos=true, hl_lines=[1,"3-4",8], linenostart=1}
+ // codes ...
+ ```
+
+```c {linenos=true, hl_lines=[1,"3-4",8], linenostart=1}
+int main() {
+ int a = 1;
+ if (a == 999)
+ // This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
+ // If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
+ }
+ return 0;
+}
+```
+
+### Line Number (inline) and Highlight Lines
+
+ ```c {linenos=inline, hl_lines=[1,"3-4",8], linenostart=1}
+ // codes ...
+ ```
+
+```c {linenos=inline, hl_lines=[1,"3-4",8], linenostart=1}
+int main() {
+ int a = 1;
+ if (a == 999)
+ // This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
+ // If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
+ }
+ return 0;
+}
+```
+
+### Line Number (false) and Highlight Lines
+
+`linenos=false` will turn off line numbers if it’s configured to be on in site configuration.
+
+ ```c {linenos=false, hl_lines=[1,"3-4",8]}
+ // codes ...
+ ```
+
+```c {linenos=false, hl_lines=[1,"3-4",8]}
+int main() {
+ int a = 1;
+ if (a == 999)
+ // This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
+ // If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
+ }
+ return 0;
+}
+```
+
+## Anchor, Inline, Shortcode
+
+### Line Number (table) and Highlight Lines and Anchor
+
+Now you can click on the line number to get a link to that line.
+
+ ```c {linenos=table, hl_lines=[1,"3-4",8], linenostart=199, anchorlinenos=true}
+ // codes ...
+ ```
+
+```c {linenos=table, hl_lines=[1,"3-4",8], linenostart=199, anchorlinenos=true}
+int main() {
+ int a = 1;
+ if (a == 999)
+ // This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
+ // If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
+ }
+ return 0;
+}
+```
+
+### Line Number (table) and Highlight Inline (❌ Not supported by Anubis2)
+
+ ```c {linenos=true,hl_lines=[1,"3-4",8], hl_inline=true}
+ // codes ...
+ ```
+
+```c {linenos=true,hl_lines=[1,"3-4",8], hl_inline=true}
+int main() {
+ int a = 1;
+ if (a == 999)
+ // This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
+ // If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
+ }
+ return 0;
+}
+```
+
+### Highlight shortcode, with Line Number (table), with Highlight Lines and Anchor
+
+ {{* highlight c "linenos=table,hl_lines=1 3-4 8, anchorlinenos=true" */>}}
+ // codes
+ {{* /highlight */>}}
+
+{{< highlight c "linenos=table,hl_lines=1 3-4 8, anchorlinenos=true" >}}
+int main() {
+int a = 1;
+if (a == 999)
+// This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
+// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
+}
+return 0;
+}
+{{< / highlight >}}
+
+### Highlight shortcode, with Line Number (inline), with Highlight Lines and Anchor
+
+ {{* highlight c "linenos=inline,hl_lines=1 3-4 8, anchorlinenos=true" */>}}
+ // codes
+ {{* /highlight */>}}
+
+{{< highlight c "linenos=inline,hl_lines=1 3-4 8, anchorlinenos=true" >}}
+int main() {
+int a = 1;
+if (a == 999)
+// This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
+// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
+}
+return 0;
+}
+{{< / highlight >}}
+
+### Highlight shortcode, No Line Number, With Highlight Lines and Anchor
+
+ {{* highlight c "linenos=false,hl_lines=1 3-4 8, anchorlinenos=true" */>}}
+ // codes
+ {{* /highlight */>}}
+
+{{< highlight c "linenos=false,hl_lines=1 3-4 8, anchorlinenos=true" >}}
+int main() {
+int a = 1;
+if (a == 999)
+// This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
+// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
+}
+return 0;
+}
+{{< / highlight >}}
diff --git a/exampleSiteMultilingual/content/posts/demo-summary-rendering-1.md b/exampleSiteMultilingual/content/posts/demo-summary-rendering-1.md
new file mode 100644
index 0000000..7670383
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/demo-summary-rendering-1.md
@@ -0,0 +1,23 @@
+---
+title: "Demo - Summary Rendering Test 1 (😃 Easy)"
+date: 2024-04-25T1:54:12+08:00
+draft: true
+tags: [Hugo]
+---
+
+This is a summary rendering test.
+
+## Test Heading
+
+
+`` is applied here.
+
+## Test Heading Again
+
+The content below should be hidden in the summary view.
+
+
+
+```html
+Will cause a rendering issue?
+```
diff --git a/exampleSiteMultilingual/content/posts/demo-summary-rendering-2.md b/exampleSiteMultilingual/content/posts/demo-summary-rendering-2.md
new file mode 100644
index 0000000..6d051f4
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/demo-summary-rendering-2.md
@@ -0,0 +1,20 @@
+---
+title: "Demo - Summary Rendering Test 2 (😏 Easy)"
+date: 2024-04-25T1:54:13+08:00
+draft: true
+tags: [Hugo]
+---
+
+
+
+You should not see this line in preview
+
+## Test Heading
+
+The content below should also be hidden in the summary view.
+
+
+
+```html
+Will cause a rendering issue?
+```
diff --git a/exampleSiteMultilingual/content/posts/demo-summary-rendering-3.md b/exampleSiteMultilingual/content/posts/demo-summary-rendering-3.md
new file mode 100644
index 0000000..8b0b1e9
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/demo-summary-rendering-3.md
@@ -0,0 +1,26 @@
+---
+title: "Demo - Summary Rendering Test 3 (🤔 Easy)"
+date: 2024-04-25T1:54:14+08:00
+draft: true
+tags: [Hugo]
+---
+
+```c
+int main() {
+ return 0; // Only see this in the summary view
+}
+```
+
+
+
+You MUST NOT see me in the preview
+
+## Test Heading
+
+The content below should also be hidden in the summary view.
+
+
+
+```html
+Will cause a rendering issue?
+```
diff --git a/exampleSiteMultilingual/content/posts/demo-summary-rendering-4.md b/exampleSiteMultilingual/content/posts/demo-summary-rendering-4.md
new file mode 100644
index 0000000..1400d39
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/demo-summary-rendering-4.md
@@ -0,0 +1,24 @@
+---
+title: "Demo - Summary Rendering Test 4 (😅 Easy?)"
+date: 2024-04-25T1:54:15+08:00
+draft: true
+tags: [Hugo]
+---
+
+## Hi, can you see "aaa" in the summary?
+
+aaa
+
+
+
+You MUST NOT see me in the preview
+
+## Test Heading
+
+The content below should also be hidden in the summary view.
+
+
+
+```html
+Will cause a rendering issue?
+```
diff --git a/exampleSiteMultilingual/content/posts/demo-summary-rendering-5.md b/exampleSiteMultilingual/content/posts/demo-summary-rendering-5.md
new file mode 100644
index 0000000..7b9673f
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/demo-summary-rendering-5.md
@@ -0,0 +1,26 @@
+---
+title: "Demo - Summary Rendering Test 5 (😥 Medium)"
+date: 2024-04-25T1:54:16+08:00
+draft: true
+tags: [Hugo]
+---
+
+```c
+int main() {
+ return 0; // Only see this in the summary view
+}
+```
+
+
+
+You MUST NOT see me in the preview
+
+## Test Heading
+
+The content below should also be hidden in the summary view.
+
+
+
+```html
+Will cause a rendering issue?
+```
diff --git a/exampleSiteMultilingual/content/posts/demo-summary-rendering-6.md b/exampleSiteMultilingual/content/posts/demo-summary-rendering-6.md
new file mode 100644
index 0000000..1ad288c
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/demo-summary-rendering-6.md
@@ -0,0 +1,28 @@
+---
+title: "Demo - Summary Rendering Test 6 (🤯 Hard)"
+date: 2024-04-25T1:54:17+08:00
+draft: true
+tags: [Hugo]
+---
+
+```c {linenos=inline}
+int main() {
+ // Is your theme able to handle this?
+ // Are the content below rendered correctly?
+ return 0; // Only see this in the summary view
+}
+```
+
+
+
+You MUST NOT see me in the preview
+
+## Test Heading
+
+The content below should also be hidden in the summary view.
+
+
+
+```html
+Will cause a rendering issue?
+```
diff --git a/exampleSiteMultilingual/content/posts/demo-summary-rendering-7.md b/exampleSiteMultilingual/content/posts/demo-summary-rendering-7.md
new file mode 100644
index 0000000..add4a4d
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/demo-summary-rendering-7.md
@@ -0,0 +1,28 @@
+---
+title: "Demo - Summary Rendering Test 7 (😱 Bad Dream)"
+date: 2024-04-25T1:54:18+08:00
+draft: true
+tags: [Hugo]
+---
+
+```c {linenos=table}
+int main() {
+ // Is your theme able to handle this?
+ // Are the content below rendered correctly?
+ return 0; // Only see this in the summary view
+}
+```
+
+
+
+You MUST NOT see me in the preview
+
+## Test Heading
+
+The content below should also be hidden in the summary view.
+
+
+
+```html
+Will cause a rendering issue?
+```
diff --git a/exampleSiteMultilingual/content/posts/demo-summary-rendering-8.md b/exampleSiteMultilingual/content/posts/demo-summary-rendering-8.md
new file mode 100644
index 0000000..27c02f7
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/demo-summary-rendering-8.md
@@ -0,0 +1,28 @@
+---
+title: "Demo - Summary Rendering Test 8 (💀 Nightmare)"
+date: 2024-04-25T1:54:19+08:00
+draft: true
+tags: [Hugo]
+---
+
+```c {linenos=table}
+int main() {
+ // Is your theme able to handle this?
+ // Are the content below rendered correctly?
+ return 0; // Only see this in the summary view
+}
+```
+
+
+
+You MUST NOT see me in the preview
+
+## Test Heading
+
+The content below should also be hidden in the summary view.
+
+
+
+```html
+Will cause a rendering issue?
+```
diff --git a/exampleSiteMultilingual/content/post/emoji-support.md b/exampleSiteMultilingual/content/posts/emoji-support.md
similarity index 91%
rename from exampleSiteMultilingual/content/post/emoji-support.md
rename to exampleSiteMultilingual/content/posts/emoji-support.md
index ecf6c86..119346a 100644
--- a/exampleSiteMultilingual/content/post/emoji-support.md
+++ b/exampleSiteMultilingual/content/posts/emoji-support.md
@@ -8,9 +8,9 @@ tags = [
]
+++
-Emoji can be enabled in a Hugo project in a number of ways.
+Emoji can be enabled in a Hugo project in a number of ways.
-The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
+The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
To enable emoji globally, set `enableEmoji` to `true` in your site’s [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
@@ -44,4 +44,4 @@ font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,And
}
}
-{{< /css.inline >}}
\ No newline at end of file
+{{< /css.inline >}}
diff --git a/exampleSiteMultilingual/content/post/emoji-support.pl.md b/exampleSiteMultilingual/content/posts/emoji-support.zh.md
similarity index 79%
rename from exampleSiteMultilingual/content/post/emoji-support.pl.md
rename to exampleSiteMultilingual/content/posts/emoji-support.zh.md
index ecf6c86..5c11cf4 100644
--- a/exampleSiteMultilingual/content/post/emoji-support.pl.md
+++ b/exampleSiteMultilingual/content/posts/emoji-support.zh.md
@@ -1,6 +1,6 @@
+++
author = "Hugo Authors"
-title = "Emoji Support"
+title = "Emoji 支持"
date = "2019-03-05"
description = "Guide to emoji usage in Hugo"
tags = [
@@ -8,13 +8,14 @@ tags = [
]
+++
-Emoji can be enabled in a Hugo project in a number of ways.
+在 Hugo 博客里,你可以用多种方式使用 Emoji:
+
-The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
+
+The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
To enable emoji globally, set `enableEmoji` to `true` in your site’s [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
-
🙈 :see_no_evil:
🙉 :hear_no_evil:
🙊 :speak_no_evil:
@@ -33,15 +34,15 @@ font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,And
{{< css.inline >}}
-{{< /css.inline >}}
\ No newline at end of file
+{{< /css.inline >}}
diff --git a/exampleSiteMultilingual/content/post/hidden-post.md b/exampleSiteMultilingual/content/posts/hidden-post.md
similarity index 88%
rename from exampleSiteMultilingual/content/post/hidden-post.md
rename to exampleSiteMultilingual/content/posts/hidden-post.md
index 96b33ed..7556132 100644
--- a/exampleSiteMultilingual/content/post/hidden-post.md
+++ b/exampleSiteMultilingual/content/posts/hidden-post.md
@@ -9,4 +9,4 @@ tags = [
hidden = true
+++
-This is hidden post
\ No newline at end of file
+This is hidden post
diff --git a/exampleSiteMultilingual/content/post/hidden-post.pl.md b/exampleSiteMultilingual/content/posts/hidden-post.pl.md
similarity index 88%
rename from exampleSiteMultilingual/content/post/hidden-post.pl.md
rename to exampleSiteMultilingual/content/posts/hidden-post.pl.md
index 96b33ed..7556132 100644
--- a/exampleSiteMultilingual/content/post/hidden-post.pl.md
+++ b/exampleSiteMultilingual/content/posts/hidden-post.pl.md
@@ -9,4 +9,4 @@ tags = [
hidden = true
+++
-This is hidden post
\ No newline at end of file
+This is hidden post
diff --git a/exampleSiteMultilingual/content/posts/icons.md b/exampleSiteMultilingual/content/posts/icons.md
new file mode 100644
index 0000000..0f85c12
--- /dev/null
+++ b/exampleSiteMultilingual/content/posts/icons.md
@@ -0,0 +1,58 @@
++++
+author = "Junyi"
+title = "Demo - Social Icons"
+date = "2024-04-23"
+description = "Guide to using social icons supported by Anubis2."
+tags = [
+ "icons",
+ "anubis2",
+ "hugo"
+]
++++
+
+To use an icon, simply copy its shortcode and paste it into your content where you want the icon to appear. The shortcode must be enclosed in `{{* */>}}`.
+
+
+
+Here is a list of available icons, their shortcodes, and what they look like when rendered:
+
+
+| name | shortcode | icon |
+| ---------- | ---------------------------------- | ---------------------------- |
+| 4chan | `{{* icon "4chan" */>}}` | {{< icon "4chan" >}} |
+| leetcode | `{{* icon "leetcode" */>}}` | {{< icon "leetcode" >}} |
+| qq | `{{* icon "qq" */>}}` | {{< icon "qq" >}} |
+| spotify | `{{* icon "spotify" */>}}` | {{< icon "spotify" >}} |
+| tinder | `{{* icon "tinder" */>}}` | {{< icon "tinder" >}} |
+| youtube | `{{* icon "youtube" */>}}` | {{< icon "youtube" >}} |
+| docs | `{{* icon "docs" */>}}` | {{< icon "docs" >}} |
+| linkedin | `{{* icon "linkedin" */>}}` | {{< icon "linkedin" >}} |
+| reddit | `{{* icon "reddit" */>}}` | {{< icon "reddit" >}} |
+| steam | `{{* icon "steam" */>}}` | {{< icon "steam" >}} |
+| tumblr | `{{* icon "tumblr" */>}}` | {{< icon "tumblr" >}} |
+| zhihu | `{{* icon "zhihu" */>}}` | {{< icon "zhihu" >}} |
+| email | `{{* icon "email" */>}}` | {{< icon "email" >}} |
+| mastodon | `{{* icon "mastodon" */>}}` | {{< icon "mastodon" >}} |
+| rss | `{{* icon "rss" */>}}` | {{< icon "rss" >}} |
+| teams | `{{* icon "teams" */>}}` | {{< icon "teams" >}} |
+| twitch | `{{* icon "twitch" */>}}` | {{< icon "twitch" >}} |
+| facebook | `{{* icon "facebook" */>}}` | {{< icon "facebook" >}} |
+| medium | `{{* icon "medium" */>}}` | {{< icon "medium" >}} |
+| skype | `{{* icon "skype" */>}}` | {{< icon "skype" >}} |
+| telegram | `{{* icon "telegram" */>}}` | {{< icon "telegram" >}} |
+| twitter | `{{* icon "twitter" */>}}` | {{< icon "twitter" >}} |
+| github | `{{* icon "github" */>}}` | {{< icon "github" >}} |
+| netease | `{{* icon "netease-music" */>}}` | {{< icon "netease-music" >}} |
+| slack | `{{* icon "slack" */>}}` | {{< icon "slack" >}} |
+| theme | `{{* icon "theme-dark" */>}}` | {{< icon "theme-dark" >}} |
+| vk | `{{* icon "vk" */>}}` | {{< icon "vk" >}} |
+| gitlab | `{{* icon "gitlab" */>}}` | {{< icon "gitlab" >}} |
+| notion | `{{* icon "notion" */>}}` | {{< icon "notion" >}} |
+| snapchat | `{{* icon "snapchat" */>}}` | {{< icon "snapchat" >}} |
+| theme | `{{* icon "theme-light" */>}}` | {{< icon "theme-light" >}} |
+| weibo | `{{* icon "weibo" */>}}` | {{< icon "weibo" >}} |
+| instagram | `{{* icon "instagram" */>}}` | {{< icon "instagram" >}} |
+| patreon | `{{* icon "patreon" */>}}` | {{< icon "patreon" >}} |
+| soundcloud | `{{* icon "soundcloud" */>}}` | {{< icon "soundcloud" >}} |
+| tiktok | `{{* icon "tiktok" */>}}` | {{< icon "tiktok" >}} |
+| x | `{{* icon "x" */>}}` | {{< icon "x" >}} |
\ No newline at end of file
diff --git a/exampleSiteMultilingual/content/post/markdown-syntax.md b/exampleSiteMultilingual/content/posts/markdown-syntax.md
similarity index 84%
rename from exampleSiteMultilingual/content/post/markdown-syntax.md
rename to exampleSiteMultilingual/content/posts/markdown-syntax.md
index 534b67b..9524293 100644
--- a/exampleSiteMultilingual/content/post/markdown-syntax.md
+++ b/exampleSiteMultilingual/content/posts/markdown-syntax.md
@@ -26,10 +26,23 @@ This article offers a sample of basic Markdown syntax that can be used in Hugo c
The following HTML ``—`` elements represent six levels of section headings. `` is the highest section level while `` is the lowest.
# H1
+
+You should not use `# H1` in your markdown file, since the title is `#H1`.
+
+If you use, you will get a warning from linter:
+
+```txt
+MD025/single-title/single-h1: Multiple top-level headings in the same document
+```
+
## H2
+
### H3
+
#### H4
+
##### H5
+
###### H6
## Paragraph
@@ -42,9 +55,10 @@ Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sap
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
-#### Blockquote without attribution
+### Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
+>
> **Note** that you can use *Markdown syntax* within a blockquote.
#### Blockquote with attribution
@@ -52,7 +66,6 @@ The blockquote element represents content that is quoted from another source, op
> Don't communicate by sharing memory, share memory by communicating.
> — Rob Pike[^1]
-
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
## Tables
@@ -61,18 +74,18 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou
Name | Age
--------|------
- Bob | 27
+ Bob | 27
Alice | 23
-#### Inline Markdown within tables
+### Inline Markdown within tables
-| Inline | Markdown | In | Table |
-| ---------- | --------- | ----------------- | ---------- |
-| *italics* | **bold** | ~~strikethrough~~ | `code` |
+ Inline | Markdown | In | Table
+---------- | --------- | ----------------- | ----------
+*italics* | **bold** | ~~strikethrough~~ | `code`
## Code Blocks
-#### Code block with backticks
+### Code block with backticks
```html
@@ -86,7 +99,8 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou