diff options
author | Nick Gracilla <nick.gracilla@gmail.com> | 2020-02-01 21:05:51 +0300 |
---|---|---|
committer | Nick Gracilla <nick.gracilla@gmail.com> | 2020-02-01 21:05:51 +0300 |
commit | e97641fda3cb28d0df7efeb24519f0ec95f36cfd (patch) | |
tree | b5df26e305a9c09feb7efa1989dbdef84aa1a097 | |
parent | 6e5c552d9d623c32293d6b43e279f2ac092f506d (diff) |
remove timetoread from sample data and forestry config
-rw-r--r-- | .forestry/front_matter/templates/post.yml | 14 | ||||
-rw-r--r-- | exampleSite/content/post/emoji-support.md | 7 | ||||
-rw-r--r-- | exampleSite/content/post/markdown-syntax.md | 4 | ||||
-rw-r--r-- | exampleSite/content/post/math-typesetting.mmark | 8 | ||||
-rw-r--r-- | exampleSite/content/post/placeholder-text.md | 1 |
5 files changed, 9 insertions, 25 deletions
diff --git a/.forestry/front_matter/templates/post.yml b/.forestry/front_matter/templates/post.yml index 1fa6fcd..dd1b254 100644 --- a/.forestry/front_matter/templates/post.yml +++ b/.forestry/front_matter/templates/post.yml @@ -18,19 +18,9 @@ fields: description: '' config: required: false - date_format: - time_format: + date_format: + time_format: display_utc: false -- name: timeToRead - type: number - label: Read Time - description: The time it takes to read the post (in minutes) - default: 0 - config: - required: true - min: - max: - step: - name: hero type: file config: diff --git a/exampleSite/content/post/emoji-support.md b/exampleSite/content/post/emoji-support.md index ab97b3a..1c6774c 100644 --- a/exampleSite/content/post/emoji-support.md +++ b/exampleSite/content/post/emoji-support.md @@ -3,15 +3,14 @@ title: Emoji Support date: 2019-03-05 hero: "/images/hero-3.jpg" excerpt: Guide to emoji usage in Hugo -timeToRead: 8 authors: - Hugo Authors --- -Emoji can be enabled in a Hugo project in a number of ways. +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). +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. @@ -45,4 +44,4 @@ font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,And } } </style> -{{< /css.inline >}}
\ No newline at end of file +{{< /css.inline >}} diff --git a/exampleSite/content/post/markdown-syntax.md b/exampleSite/content/post/markdown-syntax.md index c322865..f9b3b4e 100644 --- a/exampleSite/content/post/markdown-syntax.md +++ b/exampleSite/content/post/markdown-syntax.md @@ -3,7 +3,6 @@ title: Markdown Syntax Guide date: 2019-03-11 hero: "/images/hero-2.jpg" excerpt: Sample article showcasing basic Markdown syntax and formatting for HTML elements. -timeToRead: 10 authors: - Hugo Authors @@ -40,7 +39,7 @@ 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. +> Don't communicate by sharing memory, share memory by communicating. > — <cite>Rob Pike[^1]</cite> @@ -124,4 +123,3 @@ 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/post/math-typesetting.mmark b/exampleSite/content/post/math-typesetting.mmark index 5f83130..2c1f412 100644 --- a/exampleSite/content/post/math-typesetting.mmark +++ b/exampleSite/content/post/math-typesetting.mmark @@ -3,7 +3,6 @@ title: Math Typesetting date: 2019-03-08 hero: /images/hero-6.jpg excerpt: A brief guide to setup KaTeX -timeToRead: 8 authors: - Hugo Authors @@ -16,13 +15,13 @@ In this example we will be using [KaTeX](https://katex.org/) - Create a partial under `/layouts/partials/math.html` - Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally. -- Include the partial in your templates like so: +- Include the partial in your templates like so: ```go {{ if or .Params.math .Site.Params.math }} {{ partial "math.html" . }} {{ end }} -``` +``` - To enable KaTex globally set the parameter `math` to `true` in a project's configuration - To enable KaTex on a per page basis include the parameter `math: true` in content files. @@ -43,6 +42,5 @@ Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$ Block math: $$ - \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } + \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$ - diff --git a/exampleSite/content/post/placeholder-text.md b/exampleSite/content/post/placeholder-text.md index 579e441..8e8a710 100644 --- a/exampleSite/content/post/placeholder-text.md +++ b/exampleSite/content/post/placeholder-text.md @@ -3,7 +3,6 @@ title: Placeholder Text date: 2019-03-09 hero: /images/hero-4.jpg excerpt: Lorem Ipsum Dolor Si Amet -timeToRead: 5 authors: - Hugo Authors |