diff --git a/config/_default/params.toml b/config/_default/params.toml index 3671d76..60a4fc2 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -26,7 +26,7 @@ math = false readingTime = true [article.license] -enabled = true +enabled = false default = "Licensed under CC BY-NC-SA 4.0" ## Widgets @@ -75,7 +75,7 @@ enabled = true ## Comments [comments] -enabled = true +enabled = false provider = "disqus" [comments.disqusjs] diff --git a/content/post/hello-world/cover.jpg b/content/post/hello-world/cover.jpg deleted file mode 100644 index 1634e85..0000000 Binary files a/content/post/hello-world/cover.jpg and /dev/null differ diff --git a/content/post/hello-world/index.md b/content/post/hello-world/index.md deleted file mode 100644 index 381ffff..0000000 --- a/content/post/hello-world/index.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Hello World -description: Welcome to Hugo Theme Stack -slug: hello-world -date: 2022-03-06 00:00:00+0000 -image: cover.jpg -categories: - - Example Category -tags: - - Example Tag -weight: 1 # You can add weight to some posts to override the default sorting (date descending) ---- - -Welcome to Hugo theme Stack. This is your first post. Edit or delete it, then start writing! - -For more information about this theme, check the documentation: https://stack.jimmycai.com/ - -Want a site like this? Check out [hugo-theme-stack-stater](https://github.com/CaiJimmy/hugo-theme-stack-starter) - -> Photo by [Pawel Czerwinski](https://unsplash.com/@pawel_czerwinski) on [Unsplash](https://unsplash.com/) \ No newline at end of file diff --git a/content/post/image-gallery/1.jpg b/content/post/image-gallery/1.jpg deleted file mode 100644 index 3f1f905..0000000 Binary files a/content/post/image-gallery/1.jpg and /dev/null differ diff --git a/content/post/image-gallery/2.jpg b/content/post/image-gallery/2.jpg deleted file mode 100644 index d19214e..0000000 Binary files a/content/post/image-gallery/2.jpg and /dev/null differ diff --git a/content/post/image-gallery/index.md b/content/post/image-gallery/index.md deleted file mode 100644 index 94bc377..0000000 --- a/content/post/image-gallery/index.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: Image gallery -description: Create beautiful interactive image gallery using Markdown -date: 2023-08-26 00:00:00+0000 -image: 2.jpg ---- - -Hugo theme Stack supports the creation of interactive image galleries using Markdown. It's powered by [PhotoSwipe](https://photoswipe.com/) and its syntax was inspired by [Typlog](https://typlog.com/). - -To use this feature, the image must be in the same directory as the Markdown file, as it uses Hugo's page bundle feature to read the dimensions of the image. **External images are not supported.** - -## Syntax - -```markdown -![Image 1](1.jpg) ![Image 2](2.jpg) -``` - -## Result - -![Image 1](1.jpg) ![Image 2](2.jpg) - -> Photo by [mymind](https://unsplash.com/@mymind) and [Luke Chesser](https://unsplash.com/@lukechesser) on [Unsplash](https://unsplash.com/) \ No newline at end of file diff --git a/content/post/markdown-syntax/index.md b/content/post/markdown-syntax/index.md deleted file mode 100644 index e004892..0000000 --- a/content/post/markdown-syntax/index.md +++ /dev/null @@ -1,150 +0,0 @@ ---- -title: Markdown Syntax Guide -date: 2023-09-07 -description: Sample article showcasing basic Markdown syntax and formatting for HTML elements. -tags: - - markdown - - css - - html - - themes -categories: - - themes - - syntax ---- - -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. - -# 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.
-> — 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 - -Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box. - - Name | Age ---------|------ - Bob | 27 - Alice | 23 - -### Inline Markdown within tables - -| Italics | Bold | Code | -| -------- | -------- | ------ | -| *italics* | **bold** | `code` | - -| A | B | C | D | E | F | -|----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------|------------------------------------------------------------|----------------------------------------------------------------------| -| Lorem ipsum dolor sit amet, consectetur adipiscing elit. | Phasellus ultricies, sapien non euismod aliquam, dui ligula tincidunt odio, at accumsan nulla sapien eget ex. | Proin eleifend dictum ipsum, non euismod ipsum pulvinar et. Vivamus sollicitudin, quam in pulvinar aliquam, metus elit pretium purus | Proin sit amet velit nec enim imperdiet vehicula. | Ut bibendum vestibulum quam, eu egestas turpis gravida nec | Sed scelerisque nec turpis vel viverra. Vivamus vitae pretium sapien | - -## Code Blocks -### Code block with backticks - -```html - - - - - Example HTML5 Document - - -

Test

- - -``` - -### Code block indented with four spaces - - - - - - Example HTML5 Document - - -

Test

- - - -### Diff code block - -```diff -[dependencies.bevy] -git = "https://github.com/bevyengine/bevy" -rev = "11f52b8c72fc3a568e8bb4a4cd1f3eb025ac2e13" -- features = ["dynamic"] -+ features = ["jpeg", "dynamic"] -``` - -### One line code block - -```html -

A paragraph

-``` - -## List Types - -### Ordered List - -1. First item -2. Second item -3. Third item - -### Unordered List - -* List item -* Another item -* And another item - -### Nested list - -* Fruit - * Apple - * Orange - * Banana -* Dairy - * Milk - * Cheese - -## 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. \ No newline at end of file diff --git a/content/post/math-typesetting/index.md b/content/post/math-typesetting/index.md deleted file mode 100644 index d206914..0000000 --- a/content/post/math-typesetting/index.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: Math Typesetting -description: Math typesetting using KaTeX -date: 2023-08-24 00:00:00+0000 -math: true ---- - -Stack has built-in support for math typesetting using [KaTeX](https://katex.org/). - -**It's not enabled by default side-wide,** but you can enable it for individual posts by adding `math: true` to the front matter. Or you can enable it side-wide by adding `math = true` to the `params.article` section in `config.toml`. - -## Inline math - -This is an inline mathematical expression: $\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…$ - -```markdown -$\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…$ -``` - -## Block math - -$$ - \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } -$$ - -```markdown -$$ - \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } -$$ -``` - -$$ - f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi -$$ - -```markdown -$$ - f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi -$$ -``` \ No newline at end of file diff --git a/content/post/shortcodes/cover.jpg b/content/post/shortcodes/cover.jpg deleted file mode 100644 index 3bdd200..0000000 Binary files a/content/post/shortcodes/cover.jpg and /dev/null differ diff --git a/content/post/shortcodes/index.md b/content/post/shortcodes/index.md deleted file mode 100644 index 72d8166..0000000 --- a/content/post/shortcodes/index.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -title: Shortcodes -description: Useful shortcodes that can be used in Markdown -date: 2023-08-25 00:00:00+0000 -image: cover.jpg ---- - -For more details, check out the [documentation](https://stack.jimmycai.com/writing/shortcodes). - -## Bilibili video - -{{< bilibili "BV1d4411N7zD" >}} - -## Tencent video - -{{< tencent "g0014r3khdw" >}} - -## YouTube video - -{{< youtube "0qwALOOvUik" >}} - -## Generic video file - -{{< video "https://www.w3schools.com/tags/movie.mp4" >}} - -## Gist - -{{< gist CaiJimmy e2751a943de10b2a5b3a8a6c2120cb86 >}} - -## GitLab - -{{< gitlab 2589724 >}} - -## Quote - -{{< quote author="A famous person" source="The book they wrote" url="https://en.wikipedia.org/wiki/Book">}} -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -{{< /quote >}} - ------ - -> Photo by [Codioful](https://unsplash.com/@codioful) on [Unsplash](https://unsplash.com/photos/WDSN62Qdxuk) \ No newline at end of file