* 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>
* 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>
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>
* 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>
* Add support for Twemoji
* Add post on Twemoji support
* Regenrate CSS files
* Fix missing backtick in twemoji-support.md
* Rename useTwemoji to enableTwemoji
* Move Twemoji script tag into head tag
* Fix markdown link sytnax in twemoji-support
* Fix typo in Twemoji Support post
* Support two SEO friendly tags: <meta name="description"> and <meta name="keywords">.
* Support two SEO friendly tags: <meta name="description"> and <meta name="keywords">.
* 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>
* Automatic dark/light colorschemes
A new `colorscheme` option is added with the capability to be always dark,
always light, or automatic based on the user's browser setting. This
makes the `inverted` option superfluous, and therefore deprecated.
Nomenclature of files, variables, etc are changed from `inverted` to
`dark` to reflect this change.
Closes#226.
* Remove inverted option completely
The `inverted` option is now not just deprecated, but removed
completely.
* Add custom_js site param for enabling custom js
I've hit that when adding Cookie Consent on my web page. https://github.com/insites/cookieconsent
* PR Remarks - added Custom JS into exampleSite
* Update layouts/_default/baseof.html
Co-Authored-By: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
* Update CONTRIBUTORS.md
* Add trailing slash to remove redirects.
When you request /tags/foo, the web server will redirect you to
/tags/foo/ so the browser needs to make two requests. Add the trailing
slash in the link so that only one request is needed.
* Add trailing slash to remove redirects.
* Improve how trailing slash is added.
Co-Authored-By: tobinjt <johntobin@johntobin.ie>
* Improve how trailing slash is added.
Co-Authored-By: tobinjt <johntobin@johntobin.ie>
* Add John Tobin.
* Replace deprecated .Hugo with hugo.
Hugo 0.55 deprecates .Hugo and produces this warning:
"Page's .Hugo is deprecated and will be removed in a future release.
Use the global hugo function."
* Bump version to brute-force figure out when "hugo" function was introduced because it is not documented.
* Bump version to brute-force figure out when "hugo" function was introduced because it is not documented.
* Bump version to brute-force figure out when "hugo" function was introduced because it is not documented.
* Bump version to brute-force figure out when "hugo" function was introduced because it is not documented.
* Bump version to brute-force figure out when "hugo" function was introduced because it is not documented.
* Update minimum required version.
OpenGraph Protocol is used by sites like Facebook to display a rich object in a social graph.
* Add OpenGraph Protocol to each page
Hugo has an internal template for [Open Graph](https://gohugo.io/templates/internal/#open-graph). It takes necessary information from either site's or post's config thus it makes sense to add it to each page.
* Add 'series' to posts archetype
This taxonomy is used to specify related “see also” pages by placing them in the same series.
* Add series taxonomy to exampleSite config.
* Add example of series to exampleSite
* Add spaz926 to Contributors
* Making easy to customize listing
* adding styles to listing
* removing unintended changes
* correcting declaration
* including files for release
* changing url to be relative so it can work on localhost
* Including suggestions