diff --git a/config.toml b/config.toml index 38d07ef1..8b08f3c3 100644 --- a/config.toml +++ b/config.toml @@ -7,6 +7,7 @@ paginate = 3 languageCode = "en" DefaultContentLanguage = "en" enableInlineShortcodes = true +footnoteReturnLinkContents = "^" [menu] diff --git a/configTaxo.toml b/configTaxo.toml index 90c63be8..ce7667fa 100644 --- a/configTaxo.toml +++ b/configTaxo.toml @@ -1,3 +1,5 @@ +enableInlineShortcodes = true +footnoteReturnLinkContents = "^" [taxonomies] category = "categories" diff --git a/content/cannabis_leaf.svg b/content/cannabis_leaf.svg deleted file mode 100644 index 8f4b712e..00000000 --- a/content/cannabis_leaf.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - Mutant Standard emoji v0.3.1 - - - - - Dzuk - http://mutant.tech/ - - - - - \ No newline at end of file diff --git a/content/orc.svg b/content/orc.svg deleted file mode 100644 index 132eaf51..00000000 --- a/content/orc.svg +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - Mutant Standard emoji v0.3.1 - - - - - Dzuk - http://mutant.tech/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/content/post/emoji-support.md b/content/post/emoji-support.md index c03c089b..04452945 100644 --- a/content/post/emoji-support.md +++ b/content/post/emoji-support.md @@ -31,37 +31,8 @@ font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,And } {{< /highlight >}} -*** - - -If you feel restricted by Unicode Standard emoji and want to use custom emoji the [`replaceRE`](https://gohugo.io/functions/replacere/#readout) function makes it easy to perform Static Image Replacement in Hugo. - -In this example we will be using emoji from the [Mutant Standard](https://mutant.tech/) set. - -- Do not use `enableEmoji` in your Hugo project's configuration - -- Store the icons of the custom emoji set under `/static/` - -- Use the shorthand codes provided by the custom emoji set in your content files e.g. `:orc:` - -- In your templates execute the Image Replacement like so: - -{{< highlight html >}} -{{ replaceRE "(\\:([a-zA-Z0-9_]*)\\:)" `${1}` .Content | markdownify | safeHTML }} -{{< /highlight >}} - - {{< css.inline >}} -

{{ replaceRE "(\\ :([a-zA-Z0-9_]*)\\: )" `${1}` .Page.Params.emoji | safeHTML }}

-{{< /css.inline >}} - - -**N.B.** The above RegEx captures all alphanumerics and underscores within two colon `:` characters (amend it according to your custom emoji set's specification). \ No newline at end of file +{{< /css.inline >}} \ No newline at end of file diff --git a/content/post/markdown-and-html-syntax.md b/content/post/markdown-syntax.md similarity index 61% rename from content/post/markdown-and-html-syntax.md rename to content/post/markdown-syntax.md index 98c56f9c..d60c404e 100644 --- a/content/post/markdown-and-html-syntax.md +++ b/content/post/markdown-syntax.md @@ -1,6 +1,6 @@ +++ author = "Hugo Authors" -title = "Markdown & HTML Syntax Guide" +title = "Markdown Syntax Guide" date = "2019-03-11" description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." tags = [ @@ -17,9 +17,8 @@ series = ["Themes Guide"] aliases = ["migrate-from-jekyl"] +++ -This article offers a sample of basic Markdown and HTML syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. +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 @@ -32,82 +31,47 @@ The following HTML `

`—`

` elements represent six levels of section head ##### 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
+#### 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.

- -
+> Don't communicate by sharing memory, share memory by communicating.

+> — Rob Pike[^1] -###### The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. -*** +[^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. -
Markdown Input
- -``` - Name | Age ---------|------ - Bob | 27 - Alice | 23 -``` -
HTML Output
- Name | Age --------|------ Bob | 27 Alice | 23 -
- - -

Sample Inline Markdown within tables

- -
Markdown Input
- -``` -| Inline | Markdown | In | Table | -| ---------- | --------- | ----------------- | ---------- | -| *italics* | **bold** | ~~strikethrough~~ | `code` | -``` - - -
HTML Output
+#### Inline Markdown within tables | Inline    | Markdown    | In    | Table | | ---------- | --------- | ----------------- | ---------- | | *italics* | **bold** | ~~strikethrough~~    | `code` | -
- ---- - ## Code Blocks -
Code block with backticks
+#### Code block with backticks ``` html @@ -122,8 +86,7 @@ html ``` -
-
Code block indented with four spaces
+#### Code block indented with four spaces @@ -136,8 +99,7 @@ html -
-
Code block with Hugo's internal highlight shortcode
+#### Code block with Hugo's internal highlight shortcode {{< highlight html >}} @@ -151,83 +113,25 @@ html {{< /highlight >}} ---- - ## List Types -### Ordered List +#### Ordered List 1. First item 2. Second item 3. Third item -
-### Unordered List +#### Unordered List -
Markdown Input
- -``` * List item * Another item * And another item -``` -
HTML Output
+#### Nested list - - -
-### Nested list - -
Markdown Input
- -``` * Item 1. First Sub-item 2. Second Sub-item -``` - -
HTML Output
- - - -
-### Definition List - -
HTML Input
- -``` -
-
Aque venitatiusda cum
-
Voluptionse latur sitiae dolessi...
-
Dantinc itiur
-
Axim reperum ese eaquam, coriatiorita...
-
-``` - -
HTML Output
- -
-
Aque venitatiusda cum
-
Voluptionse latur sitiae dolessi...
-
Dantinc itiur
-
Axim reperum ese eaquam, coriatiorita...
-
- -
- ---- ## Other Elements — abbr, sub, sup, kbd, mark @@ -239,4 +143,5 @@ 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 +Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. + diff --git a/content/post/placeholder-text.md b/content/post/placeholder-text.md index 44c0d5f4..76d3e77a 100644 --- a/content/post/placeholder-text.md +++ b/content/post/placeholder-text.md @@ -11,7 +11,7 @@ tags = [ # Vagus elidunt - + [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) diff --git a/content/posts/markdown-and-html-syntax.md b/content/posts/markdown-and-html-syntax.md deleted file mode 120000 index 88249129..00000000 --- a/content/posts/markdown-and-html-syntax.md +++ /dev/null @@ -1 +0,0 @@ -../post/markdown-and-html-syntax.md \ No newline at end of file diff --git a/content/posts/markdown-syntax.md b/content/posts/markdown-syntax.md new file mode 120000 index 00000000..436deee7 --- /dev/null +++ b/content/posts/markdown-syntax.md @@ -0,0 +1 @@ +../post/markdown-syntax.md \ No newline at end of file diff --git a/content/v_paw_fk1.svg b/content/v_paw_fk1.svg deleted file mode 100644 index 1753dc1d..00000000 --- a/content/v_paw_fk1.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - Mutant Standard emoji v0.3.1 - - - - - Dzuk - http://mutant.tech/ - - - - - \ No newline at end of file