From 079e2a0400aa2a16c9b8daaeaf3eb4ed7549074b Mon Sep 17 00:00:00 2001 From: Andre Sousa Date: Mon, 23 May 2016 21:18:57 +0100 Subject: [PATCH 1/4] Add Checkmark On visited Links --- layouts/partials/header.html | 2 +- layouts/partials/menu.html | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 3ce5e0fad5..533ad0f55d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -19,7 +19,7 @@ {display:none !important;} {{ partial "style.html" . }} - + {{ partial "menu.html" . }}
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index a6cdc6b1b5..4fd9fa7ce5 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -27,6 +27,7 @@ {{ printf $first.Params.icon | safeHTML }} {{ end }} {{ $first.Title }} + {{ if gt .Pages.Len 1}} @@ -35,7 +36,7 @@ {{ if gt $k 0 }} {{ end }} @@ -47,6 +48,7 @@ {{ end }}
+ Clear History From b644aa817bbe8a4f70ee0862766aceb8615d9b4b Mon Sep 17 00:00:00 2001 From: Andre Sousa Date: Tue, 24 May 2016 15:08:53 +0100 Subject: [PATCH 2/4] add an optional boolean showVisitedLinks parameter --- layouts/partials/menu.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 4fd9fa7ce5..25a0ae0434 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}} + {{ end }} {{ if gt .Pages.Len 1}} @@ -36,7 +38,7 @@ {{ if gt $k 0 }} {{ end }} @@ -48,7 +50,9 @@ {{ end }}
+ {{ if .Site.Params.showVisitedLinks}} Clear History + {{ end }} From e0782779f1dfa79fe56fac511e768fe9ea6fd2fa Mon Sep 17 00:00:00 2001 From: Andre Sousa Date: Tue, 24 May 2016 15:52:17 +0100 Subject: [PATCH 3/4] Add checkmark icon align to right and colo --- static/css/theme.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/static/css/theme.css b/static/css/theme.css index 39d009b292..f00679c777 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -988,4 +988,21 @@ pre .copy-to-clipboard:hover { transform-style: preserve-3d; } +/* Add checkmark icon align to right and color*/ +#sidebar ul.topics > li > a .fa { + margin-top: 9px; +} +#sidebar ul li .fa { + display: none; + float: right; + font-size: 13px; + min-width: 16px; + margin: 4px 0 0 0; + text-align: right; +} +#sidebar ul li.visited > a .read-icon { + color: #8451a1; + display: inline; +} + /*# sourceMappingURL=theme.css.map */ From 2adc47aa6f22efd4bb3af62f32479cf7d0da1d5f Mon Sep 17 00:00:00 2001 From: Andre Sousa Date: Tue, 24 May 2016 16:23:11 +0100 Subject: [PATCH 4/4] Fix - Wrong context value --- layouts/partials/menu.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 25a0ae0434..c5d4fd78e2 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -27,7 +27,7 @@ {{ printf $first.Params.icon | safeHTML }} {{ end }} {{ $first.Title }} - {{ if .Site.Params.showVisitedLinks}} + {{ if $page.Site.Params.showVisitedLinks}} {{ end }} @@ -38,7 +38,7 @@ {{ if gt $k 0 }} {{ end }}