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 @@ - \ 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 @@ - - - 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_]*)\\:)" `` .Content | markdownify | safeHTML }} -{{< /highlight >}} - - {{< css.inline >}} -
{{ replaceRE "(\\ :([a-zA-Z0-9_]*)\\: )" `` .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 `-+> 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. -Don't communicate by sharing memory, share memory by communicating.
- -