From 0f646e7082a0fb2d9687ad057466616f52171d3e Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Tue, 9 Apr 2024 20:14:49 +0800 Subject: [PATCH] rename post -> posts --- .../assets/css/custom1.scss | 7 +-- .../assets/css/foundation/_code.scss | 5 -- .../assets/css/foundation/_vars.scss | 3 ++ .../content/{post => posts}/_index.md | 0 .../content/{post => posts}/_index.pl.md | 0 .../{advanced copy.md => advanced-code.md} | 6 ++- .../{advanced.md => advanced-diagram.md} | 53 ++++++++++--------- .../index.md | 20 ++++--- .../style.css | 0 .../content/{post => posts}/emoji-support.md | 0 .../{post => posts}/emoji-support.pl.md | 0 .../content/{post => posts}/hidden-post.md | 0 .../content/{post => posts}/hidden-post.pl.md | 0 .../{post => posts}/markdown-syntax.md | 0 .../{post => posts}/markdown-syntax.pl.md | 0 .../{post => posts}/math-typesetting.md | 0 .../{post => posts}/math-typesetting.pl.md | 0 .../{post => posts}/placeholder-text.md | 0 .../{post => posts}/placeholder-text.pl.md | 0 .../content/{post => posts}/rich-content.md | 0 .../{post => posts}/rich-content.pl.md | 0 21 files changed, 46 insertions(+), 48 deletions(-) delete mode 100644 exampleSiteMultilingual/assets/css/foundation/_code.scss create mode 100644 exampleSiteMultilingual/assets/css/foundation/_vars.scss rename exampleSiteMultilingual/content/{post => posts}/_index.md (100%) rename exampleSiteMultilingual/content/{post => posts}/_index.pl.md (100%) rename exampleSiteMultilingual/content/posts/{advanced copy.md => advanced-code.md} (87%) rename exampleSiteMultilingual/content/posts/{advanced.md => advanced-diagram.md} (97%) rename exampleSiteMultilingual/content/posts/{advanced-style => advancedstyle}/index.md (88%) rename exampleSiteMultilingual/content/posts/{advanced-style => advancedstyle}/style.css (100%) rename exampleSiteMultilingual/content/{post => posts}/emoji-support.md (100%) rename exampleSiteMultilingual/content/{post => posts}/emoji-support.pl.md (100%) rename exampleSiteMultilingual/content/{post => posts}/hidden-post.md (100%) rename exampleSiteMultilingual/content/{post => posts}/hidden-post.pl.md (100%) rename exampleSiteMultilingual/content/{post => posts}/markdown-syntax.md (100%) rename exampleSiteMultilingual/content/{post => posts}/markdown-syntax.pl.md (100%) rename exampleSiteMultilingual/content/{post => posts}/math-typesetting.md (100%) rename exampleSiteMultilingual/content/{post => posts}/math-typesetting.pl.md (100%) rename exampleSiteMultilingual/content/{post => posts}/placeholder-text.md (100%) rename exampleSiteMultilingual/content/{post => posts}/placeholder-text.pl.md (100%) rename exampleSiteMultilingual/content/{post => posts}/rich-content.md (100%) rename exampleSiteMultilingual/content/{post => posts}/rich-content.pl.md (100%) diff --git a/exampleSiteMultilingual/assets/css/custom1.scss b/exampleSiteMultilingual/assets/css/custom1.scss index 2ead31f..caa28e5 100644 --- a/exampleSiteMultilingual/assets/css/custom1.scss +++ b/exampleSiteMultilingual/assets/css/custom1.scss @@ -1,8 +1,4 @@ -@import 'foundation/code'; - -$font-stack: Helvetica, sans-serif; -$primary-color: rgb(255, 255, 168); -$background-color: rgb(85, 85, 85); +@import 'foundation/vars'; junyi { display: block; @@ -11,4 +7,3 @@ junyi { background-color: $background-color; margin-top: 1em; } - diff --git a/exampleSiteMultilingual/assets/css/foundation/_code.scss b/exampleSiteMultilingual/assets/css/foundation/_code.scss deleted file mode 100644 index c0fa7fd..0000000 --- a/exampleSiteMultilingual/assets/css/foundation/_code.scss +++ /dev/null @@ -1,5 +0,0 @@ -code { - padding: .25em; - line-height: 2; - background-color: rgb(189, 204, 255); -} diff --git a/exampleSiteMultilingual/assets/css/foundation/_vars.scss b/exampleSiteMultilingual/assets/css/foundation/_vars.scss new file mode 100644 index 0000000..bd810d0 --- /dev/null +++ b/exampleSiteMultilingual/assets/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/post/_index.md b/exampleSiteMultilingual/content/posts/_index.md similarity index 100% rename from exampleSiteMultilingual/content/post/_index.md rename to exampleSiteMultilingual/content/posts/_index.md diff --git a/exampleSiteMultilingual/content/post/_index.pl.md b/exampleSiteMultilingual/content/posts/_index.pl.md similarity index 100% rename from exampleSiteMultilingual/content/post/_index.pl.md rename to exampleSiteMultilingual/content/posts/_index.pl.md diff --git a/exampleSiteMultilingual/content/posts/advanced copy.md b/exampleSiteMultilingual/content/posts/advanced-code.md similarity index 87% rename from exampleSiteMultilingual/content/posts/advanced copy.md rename to exampleSiteMultilingual/content/posts/advanced-code.md index 9fc13b1..8404c7c 100644 --- a/exampleSiteMultilingual/content/posts/advanced copy.md +++ b/exampleSiteMultilingual/content/posts/advanced-code.md @@ -1,6 +1,6 @@ +++ author = "Hugo Authors" -title = "Usage of code, pre, kbd" +title = "Advanced Usage of code, pre, kbd" date = "2024-04-09" description = "Guide to advanced usage of Anubis2" tags = [ @@ -8,6 +8,10 @@ tags = [ ] +++ +`code`
pre
+ +CRTL + K + B + D + ## \ diff --git a/exampleSiteMultilingual/content/posts/advanced.md b/exampleSiteMultilingual/content/posts/advanced-diagram.md similarity index 97% rename from exampleSiteMultilingual/content/posts/advanced.md rename to exampleSiteMultilingual/content/posts/advanced-diagram.md index 1c8f723..e5907ea 100644 --- a/exampleSiteMultilingual/content/posts/advanced.md +++ b/exampleSiteMultilingual/content/posts/advanced-diagram.md @@ -1,6 +1,6 @@ +++ author = "Hugo Authors" -title = "Advanced Diagram Usage" +title = "Advanced Usage of Diagrams" date = "2024-04-09" description = "Guide to advanced usage of Anubis2" tags = [ @@ -8,23 +8,25 @@ tags = [ ] +++ - -## 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 -``` - ## Mermaid Diagrams +```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 [here](https://mermaid.js.org/intro/) + + ```mermaid gitGraph: commit "Ashish" @@ -41,18 +43,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 +94,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/advanced-style/index.md b/exampleSiteMultilingual/content/posts/advancedstyle/index.md similarity index 88% rename from exampleSiteMultilingual/content/posts/advanced-style/index.md rename to exampleSiteMultilingual/content/posts/advancedstyle/index.md index 250fe0d..40e522a 100644 --- a/exampleSiteMultilingual/content/posts/advanced-style/index.md +++ b/exampleSiteMultilingual/content/posts/advancedstyle/index.md @@ -8,6 +8,10 @@ tags = [ ] +++ +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/)
@@ -42,21 +46,15 @@ This page is affected by assets/css/custom1.scss and assets/c ``` ```scss -// assets/css/foundation/_code.scss -code { - padding: .25em; - line-height: 2; - background-color: rgb(189, 204, 255); -} +// 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/code'; - -$font-stack: Helvetica, sans-serif; -$primary-color: rgb(255, 255, 168); -$background-color: rgb(85, 85, 85); +@import 'foundation/vars'; junyi { display: block; diff --git a/exampleSiteMultilingual/content/posts/advanced-style/style.css b/exampleSiteMultilingual/content/posts/advancedstyle/style.css similarity index 100% rename from exampleSiteMultilingual/content/posts/advanced-style/style.css rename to exampleSiteMultilingual/content/posts/advancedstyle/style.css diff --git a/exampleSiteMultilingual/content/post/emoji-support.md b/exampleSiteMultilingual/content/posts/emoji-support.md similarity index 100% rename from exampleSiteMultilingual/content/post/emoji-support.md rename to exampleSiteMultilingual/content/posts/emoji-support.md diff --git a/exampleSiteMultilingual/content/post/emoji-support.pl.md b/exampleSiteMultilingual/content/posts/emoji-support.pl.md similarity index 100% rename from exampleSiteMultilingual/content/post/emoji-support.pl.md rename to exampleSiteMultilingual/content/posts/emoji-support.pl.md diff --git a/exampleSiteMultilingual/content/post/hidden-post.md b/exampleSiteMultilingual/content/posts/hidden-post.md similarity index 100% rename from exampleSiteMultilingual/content/post/hidden-post.md rename to exampleSiteMultilingual/content/posts/hidden-post.md diff --git a/exampleSiteMultilingual/content/post/hidden-post.pl.md b/exampleSiteMultilingual/content/posts/hidden-post.pl.md similarity index 100% rename from exampleSiteMultilingual/content/post/hidden-post.pl.md rename to exampleSiteMultilingual/content/posts/hidden-post.pl.md diff --git a/exampleSiteMultilingual/content/post/markdown-syntax.md b/exampleSiteMultilingual/content/posts/markdown-syntax.md similarity index 100% rename from exampleSiteMultilingual/content/post/markdown-syntax.md rename to exampleSiteMultilingual/content/posts/markdown-syntax.md diff --git a/exampleSiteMultilingual/content/post/markdown-syntax.pl.md b/exampleSiteMultilingual/content/posts/markdown-syntax.pl.md similarity index 100% rename from exampleSiteMultilingual/content/post/markdown-syntax.pl.md rename to exampleSiteMultilingual/content/posts/markdown-syntax.pl.md diff --git a/exampleSiteMultilingual/content/post/math-typesetting.md b/exampleSiteMultilingual/content/posts/math-typesetting.md similarity index 100% rename from exampleSiteMultilingual/content/post/math-typesetting.md rename to exampleSiteMultilingual/content/posts/math-typesetting.md diff --git a/exampleSiteMultilingual/content/post/math-typesetting.pl.md b/exampleSiteMultilingual/content/posts/math-typesetting.pl.md similarity index 100% rename from exampleSiteMultilingual/content/post/math-typesetting.pl.md rename to exampleSiteMultilingual/content/posts/math-typesetting.pl.md diff --git a/exampleSiteMultilingual/content/post/placeholder-text.md b/exampleSiteMultilingual/content/posts/placeholder-text.md similarity index 100% rename from exampleSiteMultilingual/content/post/placeholder-text.md rename to exampleSiteMultilingual/content/posts/placeholder-text.md diff --git a/exampleSiteMultilingual/content/post/placeholder-text.pl.md b/exampleSiteMultilingual/content/posts/placeholder-text.pl.md similarity index 100% rename from exampleSiteMultilingual/content/post/placeholder-text.pl.md rename to exampleSiteMultilingual/content/posts/placeholder-text.pl.md diff --git a/exampleSiteMultilingual/content/post/rich-content.md b/exampleSiteMultilingual/content/posts/rich-content.md similarity index 100% rename from exampleSiteMultilingual/content/post/rich-content.md rename to exampleSiteMultilingual/content/posts/rich-content.md diff --git a/exampleSiteMultilingual/content/post/rich-content.pl.md b/exampleSiteMultilingual/content/posts/rich-content.pl.md similarity index 100% rename from exampleSiteMultilingual/content/post/rich-content.pl.md rename to exampleSiteMultilingual/content/posts/rich-content.pl.md