From f79fe7db3a22d644c691e4947df7d073287a00fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Moreno?= Date: Fri, 26 May 2017 15:13:04 +0200 Subject: Add top bar with social links from official theme (#74) * Add top bar with social links from official theme This adds the official top bar typically used to include contact information and social links. - Ability to enable/disable the top bar (disabled by default) - Ability to customize the text message - Ability to customize the social links and icons from config.toml - Compatible with older config.toml - Fixes #73 * Add top bar usage information in README file --- exampleSite/config.toml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 0e19508..669828a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -14,6 +14,8 @@ paginate = 10 [menu] +# Main menu + [[menu.main]] name = "Home" url = "/" @@ -35,6 +37,32 @@ paginate = 10 url = "/contact/" weight = 4 +# Top bar social links menu + +[[menu.topbar]] + weight = 1 + name = "GitHub" + url = "https://github.com/devcows/hugo-universal-theme" + pre = "" + +[[menu.topbar]] + weight = 2 + name = "Facebook" + url = "http://facebook.com" + pre = "" + +[[menu.topbar]] + weight = 3 + name = "Twitter" + url = "http://twitter.com" + pre = "" + +[[menu.topbar]] + weight = 4 + name = "Email" + url = "mailto:your@email.com" + pre = "" + [params] viewMorePostLink = "/blog/" author = "DevCows" @@ -84,6 +112,15 @@ paginate = 10 [Permalinks] blog = "/blog/:year/:month/:day/:filename/" +# Enable or disable top bar with social icons +[params.topbar] + enable = true + text = """ + + """ + # Enable and disable widgets for the right sidebar [params.widgets] categories = true -- cgit v1.2.3