* Add extension points for template customization
Today, if you use the hugo-coder template, you can't modify <head>
without having to write the entire template from scratch. This makes
small point modifications or adjustments impractical and means that
downstream consumers will quickly be out of sync with upstream
changes.
To remedy this, we split up the template into more modular extension
points. This commit adds one extension point to <body> for arbitrary
scripting and several more to <head> for different existing
touchpoints.
* Add John Feminella to CONTRIBUTORS.md
* Modularize home.html template
Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
* Add a license param in the config used in footer
Also adds initial EN and NL i18n statements referring to the license.
* Add Michiel to CONTRIBUTOR
* Add example text for i18n of `licensed_under`
* Add safeHTML filter to license value in the footer
Also updates the example config in the exampleSite config.toml to link
to Creative Commons.
* Fix separator dot in footer within License ifdef
* Fix customJS function
In the current state the customJS feature doesn't work, because an asset will only be generated to `/public` when `.RelPermalink` is used as mentioned in the [document](https://gohugo.io/hugo-pipes/introduction/#asset-publishing).
* Update CONTRIBUTORS.md
* Fix customCSS as well
* Add ability to embed custom code to <head>
* add myself to CONTRIBUTORS.md
* implement dedicated template for Google Tag Manager
* move google tag manager to bottom of the body tag
* feat: added csp.html template to theme head element
* feat: added my name to CONTRIBUTORS
* fix: added conditional logic for templating to stabilize build
* feat: Added CSP section to example config.toml
* fix: updated template logic
* updated contributors to reference website and not github
* fix conflict with contributors, moved csp out of _shared dir
Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
* Defer non-critical resources and use more sensible CDN provider
* Seems like defer doesn't work for css
* Delete vscode related files
* Remove comments from as per code review
Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
* Add authors taxonomy and layout
* Add my name to contributors file
* Add authors to front matter post archetypes
* Add author to i18n for en
* Add authors taxonomy to exampleSite config
* Add some author names to exampleSite for demo
* Tested authors on pt-br and externally-linked post
* Also ran make release again
* Resources
Deleted resources in exampleSite and added resources in root
* Add color scheme toggle
Add hidedarkmodetoggle to exampleSite, stackbit
Change property name to hidecolorscheme toggle
* Add my name to CONTRIBUTORS.md
There were a few places still using absolute URLs, including <link rel="icon">
tags, <link rel="alternate"> tags, and nav menu links. In addition, the
presence of a <base> tag caused the browser to absolute-ize all relative
URLs. This also removed "canonifyurls = true" from the example site config.
This is a problem for things like render.com, which will put the site on its
own domain for previews. For example, I have a preview site at
https://houseabsolute-com.onrender.com/. Ultimately this will be served at
https://houseabsolute.com/, but before I switched over I wanted to preview the
site.
The absolute URLs were being generated for https://houseabsolute.com/ because
of my baseURL setting in config and the presence of the <base> tag. This
completely breaks the preview site.
* Add \\( and \\[ as mathjax delimiters
* Make it possible to enable katex and mathjax globally in config.toml
* Add apple-touch-icon
* Add default apple touch icon
Co-authored-by: KK <bebound@users.noreply.github.com>