From 01418511856c11307f2048af761f518d481425eb Mon Sep 17 00:00:00 2001 From: George Field Date: Sat, 1 Aug 2020 07:19:14 +0100 Subject: [PATCH 1/3] Add Google Maps social icon support. Icon by https://icons8.com/icons/set/google-maps --- README.md | 3 +++ exampleSite/config.toml | 3 +++ layouts/partials/social.html | 9 +++++++++ 3 files changed, 15 insertions(+) diff --git a/README.md b/README.md index 7eb31da..c7a2c1e 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,9 @@ codepen = "#" googlescholar = "#" impactstory = "#" orcid = "#" + +# Travel +googlemaps = "#" ``` diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2609614..1fb781a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -73,6 +73,9 @@ disqusShortname = "" impactstory = "#" orcid = "#" + # Travel + googlemaps = "#" + # Menu links along the sidebar navigation. [[menu.main]] identifier = "about" diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 5372740..67ebeaa 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -218,6 +218,15 @@ {{ end }} + {{ if isset .Site.Params "googlemaps" }} + + + + + + + {{ end }} + From b3147e3dd8f91601e2f5ce14862bb6a740c5f171 Mon Sep 17 00:00:00 2001 From: George Field Date: Sat, 1 Aug 2020 15:00:22 +0100 Subject: [PATCH 2/3] Add Tripadvisor social icon support. Icon by https://icons8.com/icons/set/tripadvisor --- README.md | 1 + exampleSite/config.toml | 1 + layouts/partials/social.html | 9 +++++++++ 3 files changed, 11 insertions(+) diff --git a/README.md b/README.md index c7a2c1e..bf540ba 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ orcid = "#" # Travel googlemaps = "#" +tripadvisor = "#" ``` diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1fb781a..a8ecb5d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -75,6 +75,7 @@ disqusShortname = "" # Travel googlemaps = "#" + tripadvisor = "#" # Menu links along the sidebar navigation. [[menu.main]] diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 67ebeaa..c4eba73 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -227,6 +227,15 @@ {{ end }} + {{ if isset .Site.Params "tripadvisor" }} + + {{ end }} + From 8e3ed9af3bb95ad5fccff84eb718efe8f100f3e5 Mon Sep 17 00:00:00 2001 From: George Field Date: Sat, 1 Aug 2020 15:31:05 +0100 Subject: [PATCH 3/3] Make whitespace more consistent. --- README.md | 12 +++--- exampleSite/config.toml | 84 ++++++++++++++++++++--------------------- 2 files changed, 48 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index bf540ba..f620b31 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Refer to the [Hugo docs](https://gohugo.io/getting-started/quick-start/) for mor ## Image shortcode for large images -To add images using the resize-image shortcode included with this theme, you will need to create a [Post Bundle](https://gohugo.io/content-management/organization/#page-bundles). Create a folder for your post, put your Markdown file and images inside, and rename your Markdown file `index.md`. For example: +To add images using the resize-image shortcode included with this theme, you will need to create a [Post Bundle](https://gohugo.io/content-management/organization/#page-bundles). Create a folder for your post, put your Markdown file and images inside, and rename your Markdown file `index.md`. For example: ``` my-new-post @@ -45,7 +45,7 @@ Then, you can add an image within your Markdown file by using the shortcode like {{< resize-image src="image1.jpg" alt="My first image" >}} ``` -Add captions like this: +Add captions like this: ``` {{< resize-image src="image2.png" alt="My second image" caption="My caption" >}} @@ -97,7 +97,7 @@ codepen = "#" # Academic googlescholar = "#" impactstory = "#" -orcid = "#" +orcid = "#" # Travel googlemaps = "#" @@ -111,10 +111,10 @@ Add your Disqus shortname and Google Analytics identifier in the `config.toml` f ``` # Add your Disqus shortname here. -disqusShortname = "" +disqusShortname = "" # Add your Google Analytics identifier: UA-XXXXXXXX-X -googleAnalytics = "" +googleAnalytics = "" ``` ## Ko-fi donation button @@ -130,4 +130,4 @@ kofi = "" ## License -Released under the [MIT License](https://github.com/kimcc/hugo-theme-noteworthy/blob/master/LICENSE.md). \ No newline at end of file +Released under the [MIT License](https://github.com/kimcc/hugo-theme-noteworthy/blob/master/LICENSE.md). diff --git a/exampleSite/config.toml b/exampleSite/config.toml index a8ecb5d..25af6f1 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -7,25 +7,25 @@ paginate = 4 # Set the number of posts to show before overflowing to the next pa summaryLength = 10 # Configure how long the post summary should be on the homepage. # Add your Google Analytics identifier: UA-XXXXXXXX-X -googleAnalytics = "" +googleAnalytics = "" # Add your Disqus shortname here. -disqusShortname = "" +disqusShortname = "" [taxonomies] tag = "tags" [author] - name = "kimcc" + name = "kimcc" # Set to false to disallow raw HTML in markdown files [markup.goldmark.renderer] unsafe = true [params] - math = true - # Blog description at the top of the homepage. Supports markdown. - description = "Noteworthy is a minimalist Hugo theme, perfect for writers and bloggers." + math = true + # Blog description at the top of the homepage. Supports markdown. + description = "Noteworthy is a minimalist Hugo theme, perfect for writers and bloggers." showReadMore = false @@ -33,45 +33,45 @@ disqusShortname = "" enableKofi = false kofi = "" - # Add links to your accounts. Remove the ones you don't want to include. - # Main - email = "#" + # Add links to your accounts. Remove the ones you don't want to include. + # Main + email = "#" facebook = "#" twitter = "#" - instagram = "#" - tumblr = "#" - reddit = "#" - pinterest = "#" - youtube = "#" + instagram = "#" + tumblr = "#" + reddit = "#" + pinterest = "#" + youtube = "#" vimeo = "#" - weibo = "#" - vk = "#" - linkedin = "#" + weibo = "#" + vk = "#" + linkedin = "#" - # Writing + # Writing medium = "#" - blogger = "#" - wordpress = "#" + blogger = "#" + wordpress = "#" - # Creative & Visual + # Creative & Visual dribbble = "#" - behance = "#" - deviantart = "#" - flickr = "#" + behance = "#" + deviantart = "#" + flickr = "#" # Audio & Music soundcloud = "#" - # Programming + # Programming github = "#" - stackoverflow = "#" - gitlab = "#" - codepen = "#" + stackoverflow = "#" + gitlab = "#" + codepen = "#" # Academic googlescholar = "#" impactstory = "#" - orcid = "#" + orcid = "#" # Travel googlemaps = "#" @@ -79,22 +79,22 @@ disqusShortname = "" # Menu links along the sidebar navigation. [[menu.main]] - identifier = "about" - name = "About" - url = "/about/" - weight = 1 # Weight is an integer used to sort the menu items. The sorting goes from smallest to largest numbers. If weight is not defined for each menu entry, Hugo will sort the entries alphabetically. + identifier = "about" + name = "About" + url = "/about/" + weight = 1 # Weight is an integer used to sort the menu items. The sorting goes from smallest to largest numbers. If weight is not defined for each menu entry, Hugo will sort the entries alphabetically. [[menu.main]] - identifier = "tags" - name = "Tags" - url = "/tags/" - weight = 2 + identifier = "tags" + name = "Tags" + url = "/tags/" + weight = 2 [[menu.main]] - name = "Archives" - identifier = "archives" - url = "/archives/" - weight = 3 + name = "Archives" + identifier = "archives" + url = "/archives/" + weight = 3 # Privacy configurations: https://gohugo.io/about/hugo-and-gdpr/ [privacy] @@ -117,4 +117,4 @@ disqusShortname = "" simple = false [privacy.youtube] disable = false - privacyEnhanced = true \ No newline at end of file + privacyEnhanced = true