* 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
* 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 myself to contributors.md
* Add plausible config to example
* Add plausible to base layout
* Add plausible analytics snippet
* Remove unneeded part of snippet
* Add plausible config to stackbit
* Add theme toggle button feature
* Add theme toggle button feature
* Replaced svg icon with FA icon + fixed indentation + refactored css
* Added back colorsheme configurations + script moved to be process by hugo pipe
* Make release
* Fix toggle button not working when loading new page + setTheme() refactor
* Make release
* Update exampleSite/config.toml
Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
* Prefix term with taxonomy title
Fix list layout to properly prefix a term with the taxonomy title.
* Replace taxonomy with term kind in title
* Set minimal version for updated taxonomy kinds
* Set minimal version for updated taxonomy kinds
* Update CONTRIBUTORS.md
* Rework commit info display in footer
Use Hugo .GitInfo to get Hash and AbbreviatedHash
Remove leading · because it renders as .· when credits are displayed
* Update CONTRIBUTORS.md
* Add support for Fathom Analytics
* Add myself to CONTRIBUTORS.md
* Set default for serverURL and check for siteID
* Update layouts/_default/baseof.html
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>
* Hide hamburger menu button on mobile when there are no menu items fix 253
* Fix template identation
Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>