From a66012965897579f404593ef4a8808a5e5620925 Mon Sep 17 00:00:00 2001 From: Guillermo Guerrero Ibarra Date: Sun, 5 Sep 2021 23:40:02 +0200 Subject: [PATCH] Safe topbar links. (#324) Co-authored-by: Guillermo Guerrero Ibarra --- exampleSite/config.toml | 12 +++++++++--- layouts/partials/top.html | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1dd0b4ab4..358829291 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -355,24 +355,30 @@ paginate = 10 [[menu.topbar]] weight = 1 + name = "Phone" + url = "tel:+12 34 567 89 01" + pre = "" + +[[menu.topbar]] + weight = 2 name = "GitHub" url = "https://github.com/devcows/hugo-universal-theme" pre = "" [[menu.topbar]] - weight = 2 + weight = 3 name = "Facebook" url = "http://facebook.com" pre = "" [[menu.topbar]] - weight = 3 + weight = 4 name = "Twitter" url = "http://twitter.com" pre = "" [[menu.topbar]] - weight = 4 + weight = 5 name = "Email" url = "mailto:hello@universal.com" pre = "" diff --git a/layouts/partials/top.html b/layouts/partials/top.html index fd4b7a938..25351adb0 100644 --- a/layouts/partials/top.html +++ b/layouts/partials/top.html @@ -9,7 +9,7 @@