Commit Graph

17 Commits

Author SHA1 Message Date
Sidharth R
efbc6acf90
Canonical URLs should be absolute not relative (#66)
https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls#rel-canonical-link-method
2021-12-13 06:18:39 -06:00
Daniel F. Dickinson
87c4c8dfbd
Add default dark theme for modern browsers (#56)
* Add default dark theme for modern browsers

This version is based on the DOM specification used by Firefox, Chrome,
and the new Edge. Since it is standards compliant it should work on
modern browsers, but dark mode won't be available on IE11 and maybe the
old Edge.
I have avoided the screen flash on loading the page, and toggling from
dark to light (or vice versa) both when dark
is default and when light is default.

Signed-off-by: Daniel F. Dickinson <20735818+danielfdickinson@users.noreply.github.com>

* Edit/improve as suggested by maintainer

* Improves documentation (README.md)
* Improves Go template logic for setting the default theme type
* Improves coding (and markdown) style
* Adds the new param to exampleSite/config.yaml for documentation

Signed-off-by: Daniel F. Dickinson <20735818+danielfdickinson@users.noreply.github.com>
2021-08-16 21:35:09 -05:00
JulesFouchy
2b50ce922a
Fix favicon links when using a / in baseURL (#53)
* Fix favicon links when using a / in baseURL

* Favicon links : Use absURL instead of baseURL
2021-06-02 19:31:04 -05:00
zwbetz-gh
7210152413 meta description 2021-05-19 20:59:38 -05:00
zwbetz-gh
a86462deb4 prefer rel over abs 2020-11-24 20:51:01 -06:00
zwbetz-gh
27dbcc6dd9 prevent white flash on page load when dark theme is persisted 2020-11-23 22:39:04 -06:00
zwbetz-gh
9824fe3e2e support custom css and js files 2020-11-16 20:32:11 -06:00
lucasradaelli
8984ca9d6a
Custom css and localization support (#28)
* Adds i18n support for theme

* Adds a way for sites to have custom css.

This change adds a param to the theme (called customCss), which allows sites to
provide extra css under static/, so that they don't need to copy the theme's css
whole file.

If no custom css is in the params, this change is NOP.
2020-06-01 13:47:51 -05:00
Robert Ignatowicz
eec634badd First attempt at fixing firefox dark mode (#22) 2020-01-25 20:22:16 -06:00
zwbetz
0f986e4800 Use global hugo func 2019-04-11 09:34:41 -05:00
Zachary Betz
d58a5faefd Param for home meta tag content 2019-02-20 14:07:34 -06:00
Zachary Betz
b0c4dc0755 If is home then insert meta description 2019-02-20 14:01:28 -06:00
Zachary Betz
a4227b559c Execute CSS resource as template 2019-02-15 10:57:49 -06:00
Zachary Betz
299d50b7ee Add hugo generator tag 2019-02-14 13:35:17 -06:00
Zachary Betz
14582e042f Remove service worker 2019-02-14 09:11:57 -06:00
Zachary Betz
22ece0bf2e Tweak favicon logic 2019-02-13 15:47:30 -06:00
Zachary Betz
4a3b86afb6 Refactor baseof template 2019-02-12 23:11:59 -06:00