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

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruPagge <git@upagge.ru>2021-01-30 12:41:46 +0300
committeruPagge <git@upagge.ru>2021-01-30 12:41:46 +0300
commit55255ae8f795f956dd1b77815c3dff8e46b6d75c (patch)
tree2fd2a71c63dafd312a0cfbcd5a875e6580225367
parentcbd6a354bf6824e18496362ddac015a485e8e2ff (diff)
hackernews fix issue 25
-rw-r--r--assets/css/_partial/_share-icon.scss5
-rw-r--r--layouts/partials/plugin/share.html7
2 files changed, 12 insertions, 0 deletions
diff --git a/assets/css/_partial/_share-icon.scss b/assets/css/_partial/_share-icon.scss
index 4a5adbb..19daa28 100644
--- a/assets/css/_partial/_share-icon.scss
+++ b/assets/css/_partial/_share-icon.scss
@@ -175,4 +175,9 @@
.share-mix {
background: #FF8126;
border: solid 2px #FF8126;
+}
+
+.share-hackernews {
+ background: #FF8126;
+ border: solid 2px #FF8126;
} \ No newline at end of file
diff --git a/layouts/partials/plugin/share.html b/layouts/partials/plugin/share.html
index edab144..7b29f7b 100644
--- a/layouts/partials/plugin/share.html
+++ b/layouts/partials/plugin/share.html
@@ -254,4 +254,11 @@
</a>
</div>
{{- end -}}
+
+ {{- /* 029: Hacker News */ -}}
+ {{- if $share.Hackernews -}}
+ <a class="share-icon share-hackernews" href="javascript:void(0);" title="{{ T `shareOn` }} Hacker News" data-sharer="hackernews" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
+ {{- dict "Class" "fab fa-hacker-news fa-fw" | partial "plugin/icon.html" -}}
+ </a>
+ {{- end -}}
{{- end -}}