diff options
author | Matt <kendoran@gmail.com> | 2019-01-15 10:36:34 +0300 |
---|---|---|
committer | Matt <kendoran@gmail.com> | 2019-01-15 12:06:33 +0300 |
commit | 0bcdf0a16dd768b054adc752cbd368a3b9aa7d61 (patch) | |
tree | 270ed5942310a329b0b6af1e58953b55bd88278c | |
parent | a773430691db3edece668916cd015a956896e579 (diff) |
add configurable social profiles
-rw-r--r-- | exampleSite/config.toml | 10 | ||||
-rw-r--r-- | layouts/partials/head-meta.html | 13 | ||||
-rw-r--r-- | layouts/partials/social-icons.html | 12 |
3 files changed, 27 insertions, 8 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4d457c2..fa71f5c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -11,7 +11,13 @@ pygmentsUseClasses=true #disqusShortname = "" #googleAnalytics = "" -[Params] +[params] author = "Steve Francia" introDescription = "Hi, I'm Steve Francia. Author, Speaker, Developer, Creator of Hugo, Cobra and spf13-vim. Former Docker and MongoDB." -contentSharing = "I'm happy for you to share content on this site, but please provide attribution."
\ No newline at end of file +contentSharing = "I'm happy for you to share content on this site, but please provide attribution." + +[social] +instagram = "realmattbutton" +linkedin = "matt-button-2225537" +twitter = "realmattbutton" + diff --git a/layouts/partials/head-meta.html b/layouts/partials/head-meta.html index 468443b..3f9585f 100644 --- a/layouts/partials/head-meta.html +++ b/layouts/partials/head-meta.html @@ -1,6 +1,13 @@ -<link rel="me" type="text/html" href="https://twitter.com/sombradelrio"/> -<link rel="me" type="text/html" href="https://www.linkedin.com/pub/matt-button/7/553/222"/> -<link rel="me" type="text/html" href="https://www.instagram.com/sombradelrio/" /> +{{ with .Site.Social.instagram -}} +<link rel="me" type="text/html" href="https://www.instagram.com/{{ . }}/" /> +{{ end -}} +{{ with .Site.Social.twitter -}} +<link rel="me" type="text/html" href="https://twitter.com/{{ . }}"/> +{{ end -}} +{{ with .Site.Social.linkedin -}} +<link rel="me" type="text/html" href="https://www.linkedin.com/in/{{ . }}/"/> +{{ end -}} + <link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16"> <link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32"> diff --git a/layouts/partials/social-icons.html b/layouts/partials/social-icons.html index 905692b..043e072 100644 --- a/layouts/partials/social-icons.html +++ b/layouts/partials/social-icons.html @@ -1,4 +1,10 @@ -<a class="py-2 px-2 d-none d-lg-inline-block" href="https://twitter.com/sombradelrio"><i class="fab fa-twitter"></i></a> -<a class="py-2 px-2 d-none d-lg-inline-block" href="https://instagram.com/sombradelrio"><i class="fab fa-instagram"></i></a> -<a class="py-2 px-2 d-none d-lg-inline-block" href="https://www.linkedin.com/in/matt-button-2225537"><i class="fab fa-linkedin"></i></a> +{{ with .Site.Social.instagram -}} +<a class="py-2 px-2 d-none d-lg-inline-block" href="https://twitter.com/{{ . }}"><i class="fab fa-twitter"></i></a> +{{ end -}} +{{ with .Site.Social.twitter -}} +<a class="py-2 px-2 d-none d-lg-inline-block" href="https://instagram.com/{{ . }}"><i class="fab fa-instagram"></i></a> +{{ end -}} +{{ with .Site.Social.linkedin -}} +<a class="py-2 px-2 d-none d-lg-inline-block" href="https://www.linkedin.com/in/{{ . }}/"><i class="fab fa-linkedin"></i></a> +{{ end -}} <a class="py-2 px-2 d-none d-lg-inline-block" href='{{ "index.xml" | absURL }}'><i class="fas fa-rss"></i></a>
\ No newline at end of file |