diff options
author | Adrián Moreno <adrian@morenomartinez.com> | 2017-05-26 16:13:04 +0300 |
---|---|---|
committer | Guillermo Guerrero Ibarra <wolf.fox1985@gmail.com> | 2017-05-26 16:13:04 +0300 |
commit | f79fe7db3a22d644c691e4947df7d073287a00fc (patch) | |
tree | dbe1c58bcb1edb81ac684e382181433b4698f09d /exampleSite/config.toml | |
parent | 27412573e83a5f11807932c5d46dc3f4af468a38 (diff) |
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
Diffstat (limited to 'exampleSite/config.toml')
-rw-r--r-- | exampleSite/config.toml | 37 |
1 files changed, 37 insertions, 0 deletions
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 = "<i class='fa fa-2x fa-github'></i>" + +[[menu.topbar]] + weight = 2 + name = "Facebook" + url = "http://facebook.com" + pre = "<i class='fa fa-2x fa-facebook'></i>" + +[[menu.topbar]] + weight = 3 + name = "Twitter" + url = "http://twitter.com" + pre = "<i class='fa fa-2x fa-twitter'></i>" + +[[menu.topbar]] + weight = 4 + name = "Email" + url = "mailto:your@email.com" + pre = "<i class='fa fa-2x fa-envelope'></i>" + [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 = """<p class="hidden-sm hidden-xs">Contact us on +420 777 555 333 or hello@universal.com.</p> + <p class="hidden-md hidden-lg"><a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a> + <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a> + </p> + """ + # Enable and disable widgets for the right sidebar [params.widgets] categories = true |