For an equation to render inline make sure to wrap it within an inline shortcode so that the Markdown processor is not used for parsing.
Also note that for inline KaTex since `katex@0.11.1` use the `\( ... \)` delimiters and not the `$` sign.
Closes: #60
Closes#7 , closes#9
The existing outdated Hugo documentation in this repo will be replaced with the following more-or-less *evergreen* content:
- **Markdown & HTML Syntax Guide** shows whether a theme has decorated basic HTML elements with CSS. Note that I have not included the Markdown syntax for aligning table columns due to: https://github.com/russross/blackfriday/issues/506
- **Rich Content** features a brief showcase of Hugo’s Privacy config and related Simple shortcodes. Note that I have chosen to embed content that showcases typography by several designers in various media including a 360° interactive YouTube video (for inspiration). Also these embeds should be covered under [Fair Use](https://fairuse.stanford.edu/overview/fair-use/what-is-fair-use/) since these are meant for teaching users how these Hugo shortcodes work.
- **Placeholder Content** includes dummy copy along with a diagram and a link with info about the *Van de Graaf Canon* for constructing layouts (that can also be applied to websites). Note: the diagram is Open Source and taken from https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon (there is a link to this page in the caption).
- **Math Typesetting** a brief tutorial about enabling KaTeX in Hugo (the Hugo Docs mention MathJax which is slower)
- **Emoji Support** brief tutorial about Hugo’s built-in Unicode emoji support (as mentioned in the Hugo Docs) but also this includes an original technique for enabling non Unicode emoji in Hugo by using Static Image Replacement with the `replaceRE` function. Note: custom icons are from the Open Source [Mutant Standard](https://mutant.tech) emoji set.
Also note that the **About** Page has been expanded and updated to reflect Hugo’s current features.
---
**NOTES**
Besides quoting from the Hugo Docs (when needed), these content files contain original content written and curated by me and whatever sources I used were modified to such an extent that there is no need for footnotes.
The author credit for the new content is Hugo Authors since this is meant for the Hugo community -of which I am a current member- furthermore the content also may be modified by someone else in the future, so this credit seems more appropriate than one with my name.
P.S. @digitalcraftsman I have not included a guide about Modular Typography as this would have been quite involved and I am running out of time.
P.S.2 This PR also fixes the path of the `menu.main` `/about/` item see: #41 by @guylyons
This reverts the author front matter parameter back to a string in order to fix the 12 theme demos that broke with #33
The demos that were supposed to be fixed in that PR were whiteListed with https://github.com/gohugoio/hugoThemes/pull/586
This PR adds a `type = "posts"` for themes that need it.
Most notably [Hyde Hyde](https://themes.gohugo.io/theme/hyde-hyde/) that currently has its index page empty will have it populated with posts once again.
If more themes need different content types I will see whether it is possible to turn `type` into an array to add more of these.
This PR adds the default Hugo taxonomies configuration in the second config of the HugoBasicExample.
This PR will fix a number of theme demos that currently require the default Hugo taxonomies.
For example the [Plain Blog](https://themes.gohugo.io/plain-blog/) theme demo will generate once again after this PR is merged.
Some themes like for example [Hyde Hyde](https://github.com/htr3n/hyde-hyde/tree/master/exampleSite/content) have their content files under a section called `posts`
Currently the index page of these theme demos renders empty because there is no `posts` section in the HugoBasicExample.
So to fix this I have added a symlink called `posts` that points to the content files located under the `post` of the HugoBasicExample repo.
In theory this workaround can be used for other sections as well like e.g. `articles` etc (as long as it doesn't break anything).
Commit 93a7b4c had the side effect of causing existing theme demos that rely on the HugoBasicExample to display the French language posts.
So with this PR the French translation of the posts is disabled by default, to keep things for existing demos as before.
**NOTE**
When we are done with overhauling the HugoBasicExample we will need to add documentation in its README.
For example in this case we will need to state that authors who wish to have a multilingual theme demo will need to remove `disableLanguages = ["fr"]` from the exampleSite config.
This reverts commit 4e47e94a69.
A [great number](https://app.netlify.com/sites/hugothemes/deploys/5c6936d1dddaef000819a6e8) of theme demos on the website broke because of this commit due to the following:
- Series is on the predefined frontmatter variable lists due to its use in the internal opengraph template.
- Series is predefined as an array whereas I entered it as a string.
- Also series needs to be defined as a Taxonomy in the config of an exampleSite. Since the config is inherited by theme authors if they have not defined the series taxonomy then their demo will again break.
**NOTE**
I will be more rigorous with testing before sending more PRs.
cc: @digitalcraftsman