diff options
author | Karl <kc0bfv@gmail.com> | 2020-02-03 01:02:09 +0300 |
---|---|---|
committer | Karl <kc0bfv@gmail.com> | 2020-02-03 01:02:09 +0300 |
commit | cd9eb74a8587a621dbf895be12a0aaf321a26772 (patch) | |
tree | 0f701bf6c6111ef4eadedf6f00ee06d5598ea363 | |
parent | 739fb971597bd487a0cf9051d520c4dba1d179a5 (diff) |
Remove some broken html, add emoji
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | exampleSite/config_for_github_pages.toml | 1 | ||||
-rw-r--r-- | exampleSite/content/emoji-support.md | 5 | ||||
-rw-r--r-- | exampleSite/content/markdown-syntax.md | 16 | ||||
-rw-r--r-- | exampleSite/content/rich-content.md | 4 | ||||
-rw-r--r-- | layouts/partials/head.html | 2 |
6 files changed, 8 insertions, 21 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index ace17d8..4cb9398 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -4,6 +4,7 @@ title = "Ticky Tacky Dark" theme = "ticky_tacky_dark" #googleAnalytics = "" disableKinds = ["taxonomy", "taxonomyTerm"] +enableEmoji = true [params] favicon = "favicon.ico" diff --git a/exampleSite/config_for_github_pages.toml b/exampleSite/config_for_github_pages.toml index dd76d8d..4fb2402 100644 --- a/exampleSite/config_for_github_pages.toml +++ b/exampleSite/config_for_github_pages.toml @@ -3,6 +3,7 @@ languageCode = "en-us" title = "Ticky Tacky Dark" theme = "ticky_tacky_dark" #googleAnalytics = "" +enableEmoji = true disableKinds = ["taxonomy", "taxonomyTerm"] [params] diff --git a/exampleSite/content/emoji-support.md b/exampleSite/content/emoji-support.md index 5a7858b..8b48c0d 100644 --- a/exampleSite/content/emoji-support.md +++ b/exampleSite/content/emoji-support.md @@ -21,8 +21,9 @@ The [`emojify`](https://gohugo.io/functions/emojify/) function can be called dir 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> +:see_no_evil: :hear_no_evil: :speak_no_evil: + +π π π The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. diff --git a/exampleSite/content/markdown-syntax.md b/exampleSite/content/markdown-syntax.md index ee170be..8bb4658 100644 --- a/exampleSite/content/markdown-syntax.md +++ b/exampleSite/content/markdown-syntax.md @@ -54,8 +54,8 @@ The blockquote element represents content that is quoted from another source, op #### Blockquote with attribution -> Don't communicate by sharing memory, share memory by communicating.</p> -> β <cite>Rob Pike[^1]</cite> +> 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. @@ -139,15 +139,3 @@ html 1. First Sub-item 2. Second Sub-item -## Other Elements β abbr, sub, sup, kbd, mark - -<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format. - -H<sub>2</sub>O - -X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup> - -Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session. - -Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures. - diff --git a/exampleSite/content/rich-content.md b/exampleSite/content/rich-content.md index f67c4f9..14d106b 100644 --- a/exampleSite/content/rich-content.md +++ b/exampleSite/content/rich-content.md @@ -21,7 +21,6 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme {{< instagram_simple BGvuInzyFAe hidecaption >}} -<br> --- @@ -29,7 +28,6 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme {{< youtube ZJthWmvUzzc >}} -<br> --- @@ -37,8 +35,6 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme {{< twitter_simple 1085870671291310081 >}} -<br> - --- ## Vimeo Simple Shortcode diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 34a32b1..75ceab9 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,7 +1,7 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>{{ .Site.Title }}{{ with .Params.title }} - {{ . }}{{ end }}</title> -{{ $description := .Params.description | default .Site.Params.description }} +{{ $description := $.Param "description" }} {{- with $description }}<meta name="description" content="{{ . }}">{{ end }} {{ $author := .Params.author.name | default .Site.Author.name }} {{- with $author }}<meta name="author" content="{{ . }}">{{ end }} |