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

github.com/matcornic/hugo-theme-learn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Sousa <asousa@roundstone.pt>2016-05-24 17:08:53 +0300
committerAndre Sousa <asousa@roundstone.pt>2016-05-24 17:08:53 +0300
commitb644aa817bbe8a4f70ee0862766aceb8615d9b4b (patch)
tree832f199c9c2d64169d24ad832fddd8aa06d9b760 /layouts/partials
parent079e2a0400aa2a16c9b8daaeaf3eb4ed7549074b (diff)
add an optional boolean showVisitedLinks parameter
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/menu.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index 4fd9fa7..25a0ae0 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -27,7 +27,9 @@
{{ printf $first.Params.icon | safeHTML }}
{{ end }}
{{ $first.Title }}
+ {{ if .Site.Params.showVisitedLinks}}
<i class="fa fa-check read-icon"></i>
+ {{ end }}
</span>
</a>
{{ if gt .Pages.Len 1}}
@@ -36,7 +38,7 @@
{{ if gt $k 0 }}
<li class="dd-item {{ if eq $page.RelPermalink $p.RelPermalink }}active{{ end }}" data-nav-id="{{ $p.RelPermalink }}">
<a href="{{ $p.RelPermalink }}">
- <span>{{ $p.Title }} <i class="fa fa-check read-icon"></i></span>
+ <span>{{ $p.Title }} {{ if .Site.Params.showVisitedLinks}} <i class="fa fa-check read-icon"> {{ end }} </i></span>
</a>
</li>
{{ end }}
@@ -48,7 +50,9 @@
{{ end }}
</ul>
<hr>
+ {{ if .Site.Params.showVisitedLinks}}
<a class="padding" href="#" data-clear-history-toggle=""><i class="fa fa-fw fa-history"></i> Clear History</a>
+ {{ end }}
<section id="footer">
<p>Built with <a href="https://github.com/matcornic/hugo-theme-learn"><i class="fa fa-heart"></i></a> from <a href="http://getgrav.org">Grav</a> and <a href="http://gohugo.io/">Hugo</a></p>
</section>