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

github.com/danielkvist/hugo-piercer-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/social.html4
3 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index bf1766a..5f0b973 100644
--- a/README.md
+++ b/README.md
@@ -228,6 +228,7 @@ logo = "" # Relative URL for your logo
tumblr = ""
flickr = ""
"500px" = ""
+ rss = ""
```
> icons for social networks depend on Font Awesome.
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index cf21b5e..1d1d46e 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -116,6 +116,7 @@ themesDir = "../.."
tumblr = ""
flickr = ""
"500px" = ""
+ rss = "#"
[params.copy]
message = ""
diff --git a/layouts/partials/social.html b/layouts/partials/social.html
index 4ef72dc..6f111a6 100644
--- a/layouts/partials/social.html
+++ b/layouts/partials/social.html
@@ -7,7 +7,11 @@
<a href="{{ $v }}" class="social-links__link" alt="{{ $k }}" target="_blank" aria-label="{{ $v }}"
rel="noopener noreferrer">
<span class="social-links__link__icon">
+ {{ if eq $k "rss" }}
+ <i class="fas fa-{{ $k }}"></i>
+ {{ else }}
<i class="fab fa-{{ $k }}"></i>
+ {{ end }}
</span>
</a>
{{ end }}