From 5583510cddaeca504c0e18ecf597033dff5159b5 Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Tue, 7 May 2024 15:49:30 +0800 Subject: [PATCH 1/3] fix: fix #47 --- assets/css/main.css | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/css/main.css b/assets/css/main.css index da76a9c..2ca1337 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -179,6 +179,7 @@ kbd { line-height: 154%; border-radius: 6px; border: 1px solid var(--pre-border-color); + overflow: scroll; } /* tag */ From 8f622b49cf6acb84ce0817e38e6bf5f7d90f74a7 Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Tue, 7 May 2024 15:56:37 +0800 Subject: [PATCH 2/3] fix: fix the linenumber disappearing because of fix previous bug. --- assets/css/main.css | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/css/main.css b/assets/css/main.css index 2ca1337..419a06c 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -263,6 +263,7 @@ div.highlight pre { div.highlight code { padding-left: 0px; padding-right: 0px; + overflow: unset; } div.highlight code a:hover, From bd3ab84db8d9ac736e7e2a2c423961ef1f84a4eb Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Tue, 7 May 2024 16:03:03 +0800 Subject: [PATCH 3/3] update: change demo site posts order to attract more peoples. --- .../content/posts/demo-code-pre-kbd-mark.md | 2 +- .../content/posts/demo-diagram.md | 2 +- .../content/posts/icons.md | 2 +- .../content/posts/markdown-syntax.md | 25 ++++++++++--------- 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/exampleSiteMultilingual/content/posts/demo-code-pre-kbd-mark.md b/exampleSiteMultilingual/content/posts/demo-code-pre-kbd-mark.md index 7e024a4..280fa88 100644 --- a/exampleSiteMultilingual/content/posts/demo-code-pre-kbd-mark.md +++ b/exampleSiteMultilingual/content/posts/demo-code-pre-kbd-mark.md @@ -1,7 +1,7 @@ +++ author = "Hugo Authors" title = "Demo - Support for code, pre, kbd, mark" -date = "2024-04-22" +date = "2024-04-30" description = "Guide to advanced usage of Anubis2" tags = [ "emoji", diff --git a/exampleSiteMultilingual/content/posts/demo-diagram.md b/exampleSiteMultilingual/content/posts/demo-diagram.md index 47d9852..7a09429 100644 --- a/exampleSiteMultilingual/content/posts/demo-diagram.md +++ b/exampleSiteMultilingual/content/posts/demo-diagram.md @@ -1,7 +1,7 @@ +++ author = "Hugo Authors" title = "Demo - Support for Diagrams" -date = "2024-04-19" +date = "2024-05-06" description = "Guide to advanced usage of Anubis2" tags = [ "emoji", diff --git a/exampleSiteMultilingual/content/posts/icons.md b/exampleSiteMultilingual/content/posts/icons.md index 0f85c12..5f8cd12 100644 --- a/exampleSiteMultilingual/content/posts/icons.md +++ b/exampleSiteMultilingual/content/posts/icons.md @@ -1,7 +1,7 @@ +++ author = "Junyi" title = "Demo - Social Icons" -date = "2024-04-23" +date = "2024-05-05" description = "Guide to using social icons supported by Anubis2." tags = [ "icons", diff --git a/exampleSiteMultilingual/content/posts/markdown-syntax.md b/exampleSiteMultilingual/content/posts/markdown-syntax.md index 9524293..a092b24 100644 --- a/exampleSiteMultilingual/content/posts/markdown-syntax.md +++ b/exampleSiteMultilingual/content/posts/markdown-syntax.md @@ -1,7 +1,7 @@ +++ author = "Hugo Authors" title = "Markdown Syntax Guide" -date = "2019-03-11" +date = "2024-05-07" description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." tags = [ "markdown", @@ -19,24 +19,23 @@ favorite = true +++ This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. + ## Headings -The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. +The following HTML `

`—`

` elements represent 5 levels of section headings. `

` is the highest section level while `

` is the lowest. -# H1 +## H2 -You should not use `# H1` in your markdown file, since the title is `#H1`. +You should using `## H2` as your section title, since the file title is `# H1` -If you use, you will get a warning from linter: +If you use `# H1` as your section title, you will get a warning from linter: ```txt MD025/single-title/single-h1: Multiple top-level headings in the same document ``` -## H2 - ### H3 #### H4 @@ -45,9 +44,11 @@ MD025/single-title/single-h1: Multiple top-level headings in the same document ###### 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. +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? +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. Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. @@ -61,7 +62,7 @@ The blockquote element represents content that is quoted from another source, op > > **Note** that you can use *Markdown syntax* within a blockquote. -#### Blockquote with attribution +### Blockquote with attribution > Don't communicate by sharing memory, share memory by communicating.

> — Rob Pike[^1] @@ -85,9 +86,9 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou ## Code Blocks -### Code block with backticks +### Code block with backticks and showing highlighted lines -```html +```html {linenos=table, hl_lines=[1,"4-5",8], linenostart=199} @@ -158,6 +159,6 @@ H2O Xn + Yn = Zn -Press CTRL+ALT+Delete to end the session. +Press CTRL+ALT+Delete to end the session. Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.