From 92cfcd67f51671b7f0dc015f510d0acfd3a46c46 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 12 Mar 2019 00:53:47 +0200 Subject: Corretions --- config.toml | 1 + configTaxo.toml | 2 + content/cannabis_leaf.svg | 20 --- content/orc.svg | 45 ------ content/post/emoji-support.md | 34 +---- content/post/markdown-and-html-syntax.md | 242 ------------------------------ content/post/markdown-syntax.md | 147 ++++++++++++++++++ content/post/placeholder-text.md | 2 +- content/posts/markdown-and-html-syntax.md | 1 - content/posts/markdown-syntax.md | 1 + content/v_paw_fk1.svg | 20 --- 11 files changed, 153 insertions(+), 362 deletions(-) delete mode 100644 content/cannabis_leaf.svg delete mode 100644 content/orc.svg delete mode 100644 content/post/markdown-and-html-syntax.md create mode 100644 content/post/markdown-syntax.md delete mode 120000 content/posts/markdown-and-html-syntax.md create mode 120000 content/posts/markdown-syntax.md delete mode 100644 content/v_paw_fk1.svg diff --git a/config.toml b/config.toml index 38d07ef..8b08f3c 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 90c63be..ce7667f 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 8f4b712..0000000 --- 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 132eaf5..0000000 --- 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 c03c089..0445294 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-and-html-syntax.md deleted file mode 100644 index 98c56f9..0000000 --- a/content/post/markdown-and-html-syntax.md +++ /dev/null @@ -1,242 +0,0 @@ -+++ -author = "Hugo Authors" -title = "Markdown & HTML Syntax Guide" -date = "2019-03-11" -description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." -tags = [ - "markdown", - "css", - "html", - "themes", -] -categories = [ - "themes", - "syntax", -] -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. - -*** - -## 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
-
- -###### 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    | In    | Table | -| ---------- | --------- | ----------------- | ---------- | -| *italics* | **bold** | ~~strikethrough~~    | `code` | - -
- ---- - -## Code Blocks - -
Code block with backticks
- -``` -html - - - - - Example HTML5 Document - - -

Test

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

Test

- - - -
-
Code block with Hugo's internal highlight shortcode
-{{< highlight html >}} - - - - - Example HTML5 Document - - -

Test

- - -{{< /highlight >}} - ---- - -## List Types - -### Ordered List - -1. First item -2. Second item -3. Third item - -
-### Unordered List - -
Markdown Input
- -``` -* List item -* Another item -* And another item -``` - -
HTML Output
- - - -
-### 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 - -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/markdown-syntax.md b/content/post/markdown-syntax.md new file mode 100644 index 0000000..d60c404 --- /dev/null +++ b/content/post/markdown-syntax.md @@ -0,0 +1,147 @@ ++++ +author = "Hugo Authors" +title = "Markdown Syntax Guide" +date = "2019-03-11" +description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." +tags = [ + "markdown", + "css", + "html", + "themes", +] +categories = [ + "themes", + "syntax", +] +series = ["Themes Guide"] +aliases = ["migrate-from-jekyl"] ++++ + +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 + +| Inline    | Markdown    | In    | Table | +| ---------- | --------- | ----------------- | ---------- | +| *italics* | **bold** | ~~strikethrough~~    | `code` | + +## Code Blocks + +#### Code block with backticks + +``` +html + + + + + Example HTML5 Document + + +

Test

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

Test

+ + + +#### Code block with Hugo's internal highlight shortcode +{{< highlight html >}} + + + + + Example HTML5 Document + + +

Test

+ + +{{< /highlight >}} + +## List Types + +#### Ordered List + +1. First item +2. Second item +3. Third item + +#### Unordered List + +* List item +* Another item +* And another item + +#### Nested list + +* Item +1. First Sub-item +2. Second Sub-item + +## 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. + diff --git a/content/post/placeholder-text.md b/content/post/placeholder-text.md index 44c0d5f..76d3e77 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 8824912..0000000 --- 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 0000000..436deee --- /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 1753dc1..0000000 --- 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 -- cgit v1.2.3