mirror of https://github.com/onweru/compose.git

bb1950328
27.33.2021 a03f248319a982926788c5a72356eec408dc66fd
refs
author bb1950328 <bb1950328@gmail.com>
Wednesday, January 27, 2021 16:33 +0100
committer GitHub <noreply@github.com>
Wednesday, January 27, 2021 16:33 +0100
commita03f248319a982926788c5a72356eec408dc66fd
tree c19210137628afa753e45565497d0ae9b49bc05d tree | zip | gz
parent 738844c94d63db557392dea7b819fded33640cfb view | diff
light/dark mode switch improvements and bugfix in search index (#29)

* Display link to source code repo as image if params.source.iconLight is specified
dont use hardcoded "images/" prefix in params.logo.lightMode and .darkMode

* don't use javascript template string in search index because it causes a js ReferenceError if a page contains something like ${variableWhichDoesntExistInJs}

* fix bug where light/dark mode switch isn't in the right position when the user loads the site the first time with preferred dark mode
add a sun icon on the switch in light mode and a moon icon in dark mode (icons are drawn by me so no copyright issues)
2 files added
5 files modified
42 ■■■■■ changed files
assets/js/index.js 7 ●●●● diff | view | raw | blame | history
assets/js/search.js 2 ●●● diff | view | raw | blame | history
assets/sass/_components.sass 11 ●●●●● diff | view | raw | blame | history
assets/sass/_variables.sass 2 ●●●●● diff | view | raw | blame | history
layouts/partials/mode.html 14 ●●●●● diff | view | raw | blame | history
static/icons/moon.svg 3 ●●●●● diff | view | raw | blame | history
static/icons/sun.svg 3 ●●●●● diff | view | raw | blame | history