Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kimcc/hugo-theme-noteworthy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Field <gfield145@gmail.com>2020-08-01 17:00:22 +0300
committerGeorge Field <gfield145@gmail.com>2020-08-01 17:06:15 +0300
commitb3147e3dd8f91601e2f5ce14862bb6a740c5f171 (patch)
tree547a1d780e194f0544c09b9b9cdd4238e320e244
parent01418511856c11307f2048af761f518d481425eb (diff)
Add Tripadvisor social icon support.
Icon by https://icons8.com/icons/set/tripadvisor
-rw-r--r--README.md1
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/social.html9
3 files changed, 11 insertions, 0 deletions
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 @@
</a>
{{ end }}
+ {{ if isset .Site.Params "tripadvisor" }}
+ <a class="social-icon" href="{{ .Site.Params.Tripadvisor }}" target="_blank" rel="noopener" title="Tripadvisor">
+ <!-- Tripadvisor icon by https://icons8.com/icons/set/tripadvisor -->
+ <svg width="28px" height="28px" viewBox="0 0 50 50" version="1.1" fill="#ABABAB" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink">
+ <path d="M 25 11 C 19.167969 11 13.84375 12.511719 9.789063 15 L 2 15 C 2 15 3.753906 17.152344 4.578125 19.578125 C 2.96875 21.621094 2 24.195313 2 27 C 2 33.628906 7.371094 39 14 39 C 17.496094 39 20.636719 37.492188 22.828125 35.105469 L 25 38 L 27.171875 35.105469 C 29.363281 37.492188 32.503906 39 36 39 C 42.628906 39 48 33.628906 48 27 C 48 24.195313 47.03125 21.621094 45.421875 19.578125 C 46.246094 17.152344 48 15 48 15 L 40.203125 15 C 36.148438 12.511719 30.828125 11 25 11 Z M 14 18 C 18.972656 18 23 22.027344 23 27 C 23 31.972656 18.972656 36 14 36 C 9.027344 36 5 31.972656 5 27 C 5 22.027344 9.027344 18 14 18 Z M 36 18 C 40.972656 18 45 22.027344 45 27 C 45 31.972656 40.972656 36 36 36 C 31.027344 36 27 31.972656 27 27 C 27 22.027344 31.027344 18 36 18 Z M 14 21 C 10.6875 21 8 23.6875 8 27 C 8 30.3125 10.6875 33 14 33 C 17.3125 33 20 30.3125 20 27 C 20 23.6875 17.3125 21 14 21 Z M 36 21 C 32.6875 21 30 23.6875 30 27 C 30 30.3125 32.6875 33 36 33 C 39.3125 33 42 30.3125 42 27 C 42 23.6875 39.3125 21 36 21 Z M 14 23 C 16.210938 23 18 24.789063 18 27 C 18 29.210938 16.210938 31 14 31 C 11.789063 31 10 29.210938 10 27 C 10 24.789063 11.789063 23 14 23 Z M 36 23 C 38.210938 23 40 24.789063 40 27 C 40 29.210938 38.210938 31 36 31 C 33.789063 31 32 29.210938 32 27 C 32 24.789063 33.789063 23 36 23 Z M 14 25 C 12.894531 25 12 25.894531 12 27 C 12 28.105469 12.894531 29 14 29 C 15.105469 29 16 28.105469 16 27 C 16 25.894531 15.105469 25 14 25 Z M 36 25 C 34.894531 25 34 25.894531 34 27 C 34 28.105469 34.894531 29 36 29 C 37.105469 29 38 28.105469 38 27 C 38 25.894531 37.105469 25 36 25 Z"/>
+ </svg>
+ </a>
+ {{ end }}
+
</div>