diff options
author | Jimmy Cai <github@jimmycai.com> | 2022-10-29 18:02:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-29 18:02:24 +0300 |
commit | 8a597a5c9c861d2bce22a5e06c7667cd9c8e263a (patch) | |
tree | aa4d68efec6db197b9bb22479177aafe6fc4f91c /exampleSite/content | |
parent | d60083e055dad5c5c4c0b07568b3df24df8daad7 (diff) |
Merge branch 'canary' into master (#711)
* refactor(i18n): simplify the structure of the translation file
* chore: prepare repository for v4.0.0-alpha
* chore: modify go.mod to v4
* refactor: migrate theme configuration to TOML
* fix: exampleSite not using correct theme
* feat: add favicon from assets folder
* refactor: drop linear grandient background feature
remove node-vibrant from dependencies
* feat: use Hugo's code block render hook to implement code copy button
Now it can have i18n support
* refactor: delete color.ts
* refactor: delete Emoji support post from example site
* refactor: drop support for `hidden` field in front matter
* feat: upgrade to PhotoSwipe v5
* chore: bump the required hugo version to 0.100.0
* refactor: remove PhotoSwipe from external.yaml
* fix: extra margin in search result
* fix: incorrect markdown heading level in example site
* refactor: remove some usages of `default` in template
No longer needed thanks to Hugo's configuration merge
* fix: one line codeblock style in firefox
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/564
* feat: add style to new codeblock
* feat: i18n support for codeblock copy text
* fix(menu): jitter when closing menu
It's caused by flexbox gap property, which can't animate
* fix(search): long text overflows under the Search icon
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/515
Diffstat (limited to 'exampleSite/content')
-rw-r--r-- | exampleSite/content/post/emoji-support/index.md | 50 | ||||
-rw-r--r-- | exampleSite/content/post/emoji-support/the-creative-exchange-d2zvqp3fpro-unsplash.jpg | bin | 35369 -> 0 bytes | |||
-rw-r--r-- | exampleSite/content/post/markdown-syntax/index.md | 39 |
3 files changed, 15 insertions, 74 deletions
diff --git a/exampleSite/content/post/emoji-support/index.md b/exampleSite/content/post/emoji-support/index.md deleted file mode 100644 index bc3e348..0000000 --- a/exampleSite/content/post/emoji-support/index.md +++ /dev/null @@ -1,50 +0,0 @@ -+++ -author = "Hugo Authors" -title = "Emoji Support" -date = "2019-03-05" -description = "Guide to emoji usage in Hugo" -categories = [ - "Test" -] -tags = [ - "emoji", -] -image = "the-creative-exchange-d2zvqp3fpro-unsplash.jpg" -+++ - -Emoji can be enabled in a Hugo project in a number of ways. -<!--more--> -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. - -<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p> -<br> - -The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. - -*** - -**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g. - -{{< highlight html >}} -.emoji { - font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; -} -{{< /highlight >}} - -{{< css.inline >}} -<style> -.emojify { - font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; - font-size: 2rem; - vertical-align: middle; -} -@media screen and (max-width:650px) { - .nowrap { - display: block; - margin: 25px 0; - } -} -</style> -{{< /css.inline >}} diff --git a/exampleSite/content/post/emoji-support/the-creative-exchange-d2zvqp3fpro-unsplash.jpg b/exampleSite/content/post/emoji-support/the-creative-exchange-d2zvqp3fpro-unsplash.jpg Binary files differdeleted file mode 100644 index e34a59d..0000000 --- a/exampleSite/content/post/emoji-support/the-creative-exchange-d2zvqp3fpro-unsplash.jpg +++ /dev/null diff --git a/exampleSite/content/post/markdown-syntax/index.md b/exampleSite/content/post/markdown-syntax/index.md index 0254cca..752a655 100644 --- a/exampleSite/content/post/markdown-syntax/index.md +++ b/exampleSite/content/post/markdown-syntax/index.md @@ -42,12 +42,12 @@ 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 +### Blockquote with attribution > Don't communicate by sharing memory, share memory by communicating.<br> > — <cite>Rob Pike[^1]</cite> @@ -63,7 +63,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou Bob | 27 Alice | 23 -#### Inline Markdown within tables +### Inline Markdown within tables | Italics | Bold | Code | | -------- | -------- | ------ | @@ -74,8 +74,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou | 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 +### Code block with backticks ```html <!doctype html> @@ -90,7 +89,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou </html> ``` -#### Code block indented with four spaces +### Code block indented with four spaces <!doctype html> <html lang="en"> @@ -103,21 +102,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou </body> </html> -#### Code block with Hugo's internal highlight shortcode -{{< highlight html >}} -<!doctype html> -<html lang="en"> -<head> - <meta charset="utf-8"> - <title>Example HTML5 Document</title> -</head> -<body> - <p>Test</p> -</body> -</html> -{{< /highlight >}} - -#### Diff code block +### Diff code block ```diff [dependencies.bevy] @@ -127,21 +112,27 @@ rev = "11f52b8c72fc3a568e8bb4a4cd1f3eb025ac2e13" + features = ["jpeg", "dynamic"] ``` +### One line code block + +```html +<p>A paragraph</p> +``` + ## List Types -#### Ordered List +### Ordered List 1. First item 2. Second item 3. Third item -#### Unordered List +### Unordered List * List item * Another item * And another item -#### Nested list +### Nested list * Fruit * Apple |