Commit Graph

42 Commits

Author SHA1 Message Date
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
zwbetz-gh
fa9968a3ed new site param: logoAlt 2021-05-16 01:44:41 -05:00
zwbetz-gh
78021345d9 new param: moveFooterToHeader 2021-01-13 15:08:57 -06:00
zwbetz-gh
1a3ed20f93 config option to show theme switcher 2021-01-10 13:36:21 -06:00
zwbetz-gh
2c39eba5a6 remove darkThemeAsDefault 2020-11-24 20:52:10 -06:00
zwbetz-gh
9824fe3e2e support custom css and js files 2020-11-16 20:32:11 -06:00
zwbetz-gh
72bb0d7e7e do #42 2020-08-04 21:25:42 -05:00
zwbetz-gh
67f79b8474 add search by title 2020-06-20 22:16:24 -05:00
zwbetz-gh
10ae1fcf36 fix issue #36 2020-06-17 22:32:30 -05:00
zwbetz-gh
e9a24f95ec config for hide header links 2020-06-11 13:12:51 -05:00
zwbetz
1ca7249810 add param to set dark theme as default 2020-06-02 21:14:46 -05: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
zwbetz
9e3ec40f5b upgrade to hugo 0.60.1 2019-12-10 21:06:02 -06:00
zwbetz
315fe6a8d9 rename figure shortcode to figureCupper 2019-10-02 20:03:16 -05:00
zwbetz
5c9b53e9a5 special character test 2019-09-10 20:28:10 -05:00
zwbetz
a5e57ae133 Revert "Remove katex support, for now"
This reverts commit 56f7738d6e.
2019-04-21 11:42:51 -05:00
zwbetz
90caaa368c Add lastmod to post 2019-04-14 21:24:47 -05:00
zwbetz
56f7738d6e Remove katex support, for now 2019-04-11 09:32:07 -05:00
zwbetz
31c33627e6 Add Katex support 2019-04-02 20:59:56 -05:00
Zachary Betz
71ea476b5a Fix ignored files 2019-03-06 11:17:45 -06:00
Zachary Betz
58913dcd56 Add disqus comments 2019-03-06 11:01:16 -06:00
zwbetz-gh
8196dc8aae
Link to full browser list 2019-02-22 10:25:49 -06:00
Zachary Betz
ebea25e223 Active nav padding 2019-02-20 22:16:10 -06:00
Zachary Betz
d58a5faefd Param for home meta tag content 2019-02-20 14:07:34 -06:00
Zachary Betz
f1b9ef4abf Add config.yaml option 2019-02-18 09:49:41 -06:00
Zachary Betz
03c49d8257 Fix fonts path 2019-02-15 11:01:38 -06:00
Zachary Betz
a4227b559c Execute CSS resource as template 2019-02-15 10:57:49 -06:00
Zachary Betz
9192276af6 Update wording 2019-02-15 09:20:39 -06:00
Zachary Betz
adc8f2ffea Fix inline and block code examples 2019-02-15 09:17:46 -06:00
Zachary Betz
8b5fb3132c Typography post 2019-02-14 15:53:48 -06:00
Zachary Betz
bbe004e8f2 Markdown code fences example 2019-02-14 11:27:35 -06:00
Zachary Betz
8d456b3731 Reorder shortcodes 2019-02-14 09:22:14 -06:00
Zachary Betz
7d392cda21 Add other favicon files 2019-02-14 09:12:23 -06:00
Zachary Betz
8168ee9456 Prism syntax highlighting tweaks 2019-02-13 14:50:51 -06:00
zwbetz-gh
24137e96bb
Link to shortcode data files 2019-02-13 12:56:18 -06:00
Zachary Betz
a553a9526f Shortcode overhaul 2019-02-12 23:52:29 -06:00
Zachary Betz
0d0e73dd2f Doc updates 2019-02-12 23:13:39 -06:00
Zachary Betz
d9f6db9f67 Update wording 2019-02-12 20:33:05 -06:00
Zachary Betz
f0179670ed Change example site. Make layouts blog friendly 2019-02-12 16:25:13 -06:00
Zachary Betz
ac614e6ab5 Nav menu 2019-02-08 15:49:18 -06:00
Zachary Betz
13fee6dcdf Cleanup 2019-01-31 18:38:14 -06:00
Zachary Betz
7802890078 Reorganize 2019-01-31 18:19:20 -06:00