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

github.com/ExchangeRate-API/strange-case.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Kaye <jordan.kaye2@gmail.com>2020-12-13 23:29:20 +0300
committerJordan Kaye <jordan.kaye2@gmail.com>2020-12-13 23:56:25 +0300
commit203d4932183de989a3f725458a60307b12c1c3e5 (patch)
tree3fd96eb3ce227d5c8b7c0e08bb7bce025fa225ec /layouts
parent6458a0b33c6259dee654c0c7100859f81ecc5627 (diff)
Added a social icons section to the sidebar
[[menu.icons]] can now be used to specify icons that will be displayed after the site's description, but before the main menu items.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/sidebar-content.html14
1 files changed, 10 insertions, 4 deletions
diff --git a/layouts/partials/sidebar-content.html b/layouts/partials/sidebar-content.html
index a76501d..dd714c7 100644
--- a/layouts/partials/sidebar-content.html
+++ b/layouts/partials/sidebar-content.html
@@ -10,11 +10,17 @@
</div>
{{ end }}
+ <ul class="sidebar-menus sidebar-icons">
+ {{ range .Site.Menus.icons }}
+ <li><a href="{{.URL}}">{{ .Post }}</a></li>
+ {{end}}
+ </ul>
+
<ul class="sidebar-menus">
- {{ range .Site.Menus.main }}
- <li>&#187; <a href="{{.URL}}">{{ .Name }}</a> {{ .Post }}</li>
- {{end}}
- </ul>
+ {{ range .Site.Menus.main }}
+ <li>&#187; <a href="{{.URL}}">{{ .Name }}</a>{{ .Post }}</li>
+ {{end}}
+ </ul>
<div class="sidebar-recent hidden-xs">
<p>Recent Posts:</p>