* 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
Some pygment color schemes (like `bw`, which we use as default in the
exampleSite) do not set a foreground color explicitly, which makes those
themes look bad/illegible when using the dark mode of hugo-coder. Most
such themes are light themes (it seems after a quick research), which
explains this phenomenon.
This commit adds a fix for such color schemes by setting the default
foreground color to the one used in the light hugo-coder colorscheme.
It is overridden by proper syntax highlighting schemes.
* Add support for using as a Hugo module (#534)
* Add support for using as a Hugo module
Fixes#502
* Don't need/want the theme directory with modules
* Fix go.{mod,sum} files
* Set go version and hugo version everywhere
Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
* Remove hugo mod from exampleSite and Netlify build
* Bump hugo version
* Move env vars inside netlify.toml
Co-authored-by: Edward Muller <edward_muller@icloud.com>
* 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>
* 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>
* 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
* 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>
* Make MathJax version 3 work
* Change my contributor link
* Add an optional featured image and table of contents
* Add an optional featured image and table of contents
* Add example of a featured image in post along with table of contents
* Remove word count criteria
* Fix formatting
* Add table of contents options
* Remove toc feature due to markdown bug
* Removing markup configuration
Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
* Adding target if statements
* adding Tobias Lindberg to CONTRIBUTORS.md
* adding swedish language i18n file
* adding author to footer
* adjusting swedish translation made in fc7d7f62af52d180486d0074691ab3747fb1da07
* adding since year functionality in footer
* adding since which year if statement to footer
* removing unnecessary lines in footer file
* adjusting footer again a little
* 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 stackbit.yaml
* update field model for slug
* add config model
* update language config model
* update menu model
* katex should be a boolean value
* add labelField to menu item model
* math should be a boolean value
* Add 1-click create with stackbit button
* 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