From e7c8221ef2d9436d1ee99688f06e2af1efc953db Mon Sep 17 00:00:00 2001 From: Jens Sauer Date: Wed, 17 Oct 2018 21:15:16 +0200 Subject: partials/social: Add reddit social button A social button for Reddit.com is missing in this theme. This adds a optional reddit social button. --- config.toml.example | 1 + layouts/partials/social.html | 7 +++++++ static/icons/reddit-alien.svg | 5 +++++ 3 files changed, 13 insertions(+) create mode 100644 static/icons/reddit-alien.svg diff --git a/config.toml.example b/config.toml.example index abeda4c..a2ae0cf 100644 --- a/config.toml.example +++ b/config.toml.example @@ -25,6 +25,7 @@ theme = "indigo" StackOverflowUser = "StackOverflowUserName" TumblrUser = "TumblrUserName" TwitterUser = "TwitterUserName" + RedditUser = "RedditUser" # These are parameters used for indieweb identity. You should set these along # with the above email/social network parameters. diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 2f10661..161af1b 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -55,5 +55,12 @@ {{ end }} + {{ if isset .Site.Params "reddituser" }} +
+ + + +
+ {{ end }} diff --git a/static/icons/reddit-alien.svg b/static/icons/reddit-alien.svg new file mode 100644 index 0000000..092250e --- /dev/null +++ b/static/icons/reddit-alien.svg @@ -0,0 +1,5 @@ + + \ No newline at end of file -- cgit v1.2.3 From 58e6e1f426abad6f427411a961614ff2bc12fdc4 Mon Sep 17 00:00:00 2001 From: Jens Sauer Date: Wed, 17 Oct 2018 21:46:40 +0200 Subject: static/icons/reddit-alien: Change background fill color Adjust the background fill color of the reddit social icon --- static/icons/reddit-alien.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/icons/reddit-alien.svg b/static/icons/reddit-alien.svg index 092250e..56b913c 100644 --- a/static/icons/reddit-alien.svg +++ b/static/icons/reddit-alien.svg @@ -1,5 +1,5 @@ - + \ No newline at end of file +--> -- cgit v1.2.3 From de1fe66e730e6c910080eff7f4b55e93d18ac596 Mon Sep 17 00:00:00 2001 From: Jens Sauer Date: Thu, 18 Oct 2018 17:02:41 +0200 Subject: config.toml.example: Change RedditUser default value To keep consistency with the other social platform default values, change the RedditUser param. --- config.toml.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.toml.example b/config.toml.example index a2ae0cf..846d2d9 100644 --- a/config.toml.example +++ b/config.toml.example @@ -25,7 +25,7 @@ theme = "indigo" StackOverflowUser = "StackOverflowUserName" TumblrUser = "TumblrUserName" TwitterUser = "TwitterUserName" - RedditUser = "RedditUser" + RedditUser = "RedditUserName" # These are parameters used for indieweb identity. You should set these along # with the above email/social network parameters. -- cgit v1.2.3 From 092fc83aa724c16fb2934f1fbffd2da5ed5da297 Mon Sep 17 00:00:00 2001 From: Jens Sauer Date: Thu, 18 Oct 2018 17:06:01 +0200 Subject: partials/social: Change conditional for reddit button To keep consistency with the generation of the other social buttons generation, change the conditional to a '{{ with }}' because a call to '{{ .Site.BaseURL }}' seems not necessary. --- layouts/partials/social.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 161af1b..70ee33b 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -55,10 +55,10 @@ {{ end }} - {{ if isset .Site.Params "reddituser" }} + {{ with .Site.Params.RedditUser }} {{ end }} -- cgit v1.2.3 From 33bf6a82d0a13578dca2a7fa298a5aad44caf790 Mon Sep 17 00:00:00 2001 From: Jens Sauer Date: Thu, 18 Oct 2018 17:10:32 +0200 Subject: Reorder Reddit button to keep alphabetical order Alphabetical order in the social buttons is essential. Reorder the Reddit.com social button. --- config.toml.example | 2 +- layouts/partials/social.html | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config.toml.example b/config.toml.example index 846d2d9..cc66b3b 100644 --- a/config.toml.example +++ b/config.toml.example @@ -22,10 +22,10 @@ theme = "indigo" GlitchUser = "GlitchUserName" KeybaseUser = "KeybaseUserName" MicroBlogUser = "MicroBlogUserName" + RedditUser = "RedditUserName" StackOverflowUser = "StackOverflowUserName" TumblrUser = "TumblrUserName" TwitterUser = "TwitterUserName" - RedditUser = "RedditUserName" # These are parameters used for indieweb identity. You should set these along # with the above email/social network parameters. diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 70ee33b..42780a8 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -40,6 +40,13 @@ {{ end }} + {{ with .Site.Params.RedditUser }} +
+ + + +
+ {{ end }} {{ with .Site.Params.StackOverflowUser }}
@@ -55,12 +62,5 @@
{{ end }} - {{ with .Site.Params.RedditUser }} -
- - - -
- {{ end }} -- cgit v1.2.3 From 698fb868a192b7cc7c0c0ae0edb1eacdf674e07f Mon Sep 17 00:00:00 2001 From: Jens Sauer Date: Thu, 18 Oct 2018 17:20:53 +0200 Subject: exampleSite/config.toml: Add reddit social button Add the reddit social button to the demo site. --- exampleSite/config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 0165b55..4b41519 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -23,6 +23,7 @@ paginate = 3 GlitchUser = "GlitchUserName" KeybaseUser = "KeybaseUserName" MicroBlogUser = "MicroBlogUserName" + RedditUser = "RedditUserName" StackOverflowUser = "StackOverflowUserName" TumblrUser = "TumblrUserName" TwitterUser = "TwitterUserName" -- cgit v1.2.3