Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/huyb1991/hugo-lamp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuy Nguyen <huyb.1991@gmail.com>2020-07-02 10:03:40 +0300
committerHuy Nguyen <huyb.1991@gmail.com>2020-07-02 10:03:40 +0300
commit91ffa8a55c1d6eda2ec333d0035dc47c03ee2445 (patch)
treecbb6dae27e5011ccf9435f1d8045eab83ee7f1be
parent6a8f21ba55fc790d7cadd0f866ce60a3a2ff58f9 (diff)
Add icon to header
-rw-r--r--layouts/partials/header.html8
1 files changed, 3 insertions, 5 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index dee2d8a..8b2e762 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -23,11 +23,9 @@
</ul>
</nav>
- <button
- [text]="darkMode ? 'Light Mode' : 'Dark Mode'"
- on="tap:AMP.setState({darkMode: !darkMode})"
- >
- Dark Mode
+ <button on="tap:AMP.setState({darkMode: !darkMode})">
+ <svg class="icon moon" fill="currentColor"><use xlink:href="#icon-moon" /></svg>
+ <svg class="icon sunny" fill="currentColor"><use xlink:href="#icon-sunny" /></svg>
</button>
{{ partial "social.html" . }}