From 203d4932183de989a3f725458a60307b12c1c3e5 Mon Sep 17 00:00:00 2001 From: Jordan Kaye Date: Sun, 13 Dec 2020 13:29:20 -0700 Subject: 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. --- README.md | 12 ++++++++++-- layouts/partials/sidebar-content.html | 14 ++++++++++---- static/css/strange-case.css | 4 +++- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b380692..874a365 100644 --- a/README.md +++ b/README.md @@ -49,14 +49,22 @@ This text will appear in a free paragraph below the Title & Description and abov sidebarFreeText = "A optional paragraph of free text. Set to blank in config.toml to clear..." -You can also include useful menu links by including `"menu=main"` items in your `config.toml`. Example: +You can include clickable icons (e.g. for social networks )by including `"menu=icons"` items in your `config.toml`. Example: + + [[menu.icons]] + name = "GitHub" + post = " {{ end }} + + + {{ range .Site.Menus.main }} +
  • » {{ .Name }}{{ .Post }}
  • + {{end}} +