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

github.com/jbub/ghostwriter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuraj Bubniak <juraj.bubniak@exponea.com>2020-09-21 19:45:55 +0300
committerJuraj Bubniak <juraj.bubniak@exponea.com>2020-09-21 19:45:55 +0300
commit21fff9bb2a2297152a7619d3130af7737ab1114a (patch)
treef218b9e5577d4d7ef0ca086d4da5474c3ca12ccd
parent047cb099cb60a0483e213f3d77270093bd3efb1e (diff)
parent60d9c5d7d6b72202031ac2cf27527742e93f0e3e (diff)
Merge branch 'master' of github.com:jbub/ghostwriter into master.
-rw-r--r--exampleSite/config.yml1
-rw-r--r--layouts/partials/header.html4
-rw-r--r--layouts/partials/post-footer.html8
3 files changed, 8 insertions, 5 deletions
diff --git a/exampleSite/config.yml b/exampleSite/config.yml
index 658b49d..8fcfc34 100644
--- a/exampleSite/config.yml
+++ b/exampleSite/config.yml
@@ -49,6 +49,7 @@ params:
email: XXX@example.com
opengraph: true
shareTwitter: true
+ rss: true
shareFacebook: true
shareGooglePlus: true
shareLinkedIn: false
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index fc00b7a..6db2e65 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -38,7 +38,9 @@
<a title="{{ .Site.Title }}" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
</h1>
{{ end }}
- <a class="button-square" href="{{ .Site.BaseURL }}index.xml"><i class="fa fa-rss"></i></a>
+ {{ if .Site.Params.rss }}
+ <a class="button-square" href="{{ .Site.BaseURL }}index.xml"><i class="fa fa-rss"></i></a>
+ {{ end }}
{{ with .Site.Params.twitter }}
<a class="button-square button-social hint--top" data-hint="Twitter" title="Twitter" href="{{ . }}" rel="me">
<i class="fa fa-twitter"></i>
diff --git a/layouts/partials/post-footer.html b/layouts/partials/post-footer.html
index fd62181..3effc75 100644
--- a/layouts/partials/post-footer.html
+++ b/layouts/partials/post-footer.html
@@ -11,7 +11,7 @@
{{ end}}
<div class="share">
- {{ if or (not (isset .Site.Params "sharetwitter")) .Site.Params.shareTwitter }}
+ {{ if .Site.Params.shareTwitter }}
<a class="icon-twitter" href="https://twitter.com/share?text={{ .Title }}&url={{ .Permalink }}"
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
<i class="fa fa-twitter"></i>
@@ -19,7 +19,7 @@
</a>
{{ end }}
- {{ if or (not (isset .Site.Params "sharefacebook")) .Site.Params.shareFacebook }}
+ {{ if .Site.Params.sharefacebook }}
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}"
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
<i class="fa fa-facebook"></i>
@@ -27,7 +27,7 @@
</a>
{{ end }}
- {{ if or (not (isset .Site.Params "sharegoogleplus")) .Site.Params.shareGooglePlus }}
+ {{ if .Site.Params.shareGooglePlus }}
<a class="icon-google-plus" href="https://plus.google.com/share?url={{ .Permalink }}"
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
<i class="fa fa-google-plus"></i>
@@ -42,4 +42,4 @@
</a>
{{ end }}
</div>
-</footer> \ No newline at end of file
+</footer>