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

github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2018-12-28 07:53:15 +0300
committerZachary Betz <zwbetz@gmail.com>2018-12-28 07:53:15 +0300
commit2aae2d4384acf96d56418b5cf907f468fe24a3a0 (patch)
treea71f3e49a62a5980db6b637a4d1358ec05226eb8
parent962b255e462399adcb20fe9dbbf3a5a6dad09c7f (diff)
Add icons to nav
-rw-r--r--exampleSite/config.toml10
-rw-r--r--exampleSite/config.yaml10
-rw-r--r--layouts/partials/nav.html2
3 files changed, 11 insertions, 11 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 6ee5cb2..fb167d2 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -18,23 +18,23 @@ googleAnalytics = "UA-123456789-1"
[menu]
[[menu.main]]
- name = "Home"
+ name = """<i data-feather="home"></i> Home"""
url = "/"
weight = 1
[[menu.main]]
- name = "Blog"
+ name = """<i data-feather="edit"></i> Blog"""
url = "/post/"
weight = 2
[[menu.main]]
- name = "Tags"
+ name = """<i data-feather="tag"></i> Tags"""
url = "/tags/"
weight = 3
[[menu.main]]
- name = "About"
+ name = """<i data-feather="smile"></i> About"""
url = "/about/"
weight = 4
[[menu.main]]
- name = "RSS"
+ name = """<i data-feather="rss"></i> RSS"""
url = "/index.xml"
weight = 5
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index e209a38..526f7c1 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -18,19 +18,19 @@ permalinks:
menu:
main:
- - name: Home
+ - name: <i data-feather="home"></i> Home
url: /
weight: 1
- - name: Blog
+ - name: <i data-feather="edit"></i> Blog
url: /post/
weight: 2
- - name: Tags
+ - name: <i data-feather="tag"></i> Tags
url: /tags/
weight: 3
- - name: About
+ - name: <i data-feather="smile"></i> About
url: /about/
weight: 4
- - name: RSS
+ - name: <i data-feather="rss"></i> RSS
url: /index.xml
weight: 5
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 9ea473b..a50e719 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,5 +1,5 @@
<nav id="nav" class="nav justify-content-center">
{{ range .Site.Menus.main }}
- <a class="nav-link" href="{{ .URL }}">{{ .Name }}</a>
+ <a class="nav-link" href="{{ .URL }}">{{ .Name | safeHTML }}</a>
{{ end }}
</nav> \ No newline at end of file