1
0
mirror of https://github.com/Damillora/Yuika synced 2024-09-19 16:32:50 +00:00
Yuika/partials/navigation.hbs
Damillora 9f72b03781 feat(theme): add dark mode
With version 3, Yuika now uses Shian as a basis of styling. Since
Shian was written with both light and dark themes in mind, this
means that the theme now is able to support switching between them.

This commit implements a dark theme toggle that will switch the
site between light and dark themes.
2021-04-14 19:38:23 +07:00

14 lines
371 B
Handlebars

<div class="menu">
{{#foreach navigation}}
<div class="menu__item">
<a href={{url absolute="true" }}>
<p class="menu__text">{{label}}</p>
</a>
</div>
{{/foreach}}
<div class="menu__item" id="darkMode">
<i class="material-icons md-24">brightness_low</i>
<p class="menu__text">Dark Mode</p>
</div>
</div>