From 21194a8d92e43890451a1dec790b6b7cd425a724 Mon Sep 17 00:00:00 2001
From: Khusika Dhamar Gusti
Date: Mon, 27 Mar 2023 04:46:12 +0700
Subject: [PATCH] fix(html): Avoid "javascript:void(0)" for empty links
Fix crawable link
Signed-off-by: Khusika Dhamar Gusti
---
layouts/404.html | 2 +-
layouts/_default/single.html | 2 +-
layouts/partials/header.html | 4 +--
layouts/partials/plugin/share.html | 54 +++++++++++++++---------------
4 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/layouts/404.html b/layouts/404.html
index 895706a7..bb3c6bb1 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -9,6 +9,6 @@ 404
{{- T "pageNotFoundText" -}}
{{ T `home` }}
- {{ T `back` }}
+ {{ T `back` }}
{{- end -}}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index a1f2021a..a5e5ba31 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -110,7 +110,7 @@ {{ .Title }}
{{- T "pageOffline" -}}
{{ T `home` }}
- {{ T `back` }}
+ {{ T `back` }}
{{- end -}}
{{- end -}}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index e8577a45..b29a3744 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -79,7 +79,7 @@
{{- with .Site.Params.header.title.rss -}}
{{- end -}}
-
@@ -154,7 +154,7 @@
|
{{- end -}}
-
+
diff --git a/layouts/partials/plugin/share.html b/layouts/partials/plugin/share.html
index 76ab8cd8..bce47228 100644
--- a/layouts/partials/plugin/share.html
+++ b/layouts/partials/plugin/share.html
@@ -3,189 +3,189 @@
{{- if $share.enable -}}
{{- /* 001: Twitter */ -}}
{{- if $share.Twitter -}}
-
+
{{- dict "Class" "fab fa-twitter fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 002: Facebook */ -}}
{{- if $share.Facebook -}}
-
+
{{- dict "Class" "fab fa-facebook-square fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 003: Linkedin */ -}}
{{- if $share.Linkedin -}}
-
+
{{- dict "Class" "fab fa-linkedin fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 004: WhatsApp */ -}}
{{- if $share.Whatsapp -}}
-
+
{{- dict "Class" "fab fa-whatsapp fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 005: Viber */ -}}
{{- if $share.Viber -}}
-
+
{{- dict "Class" "fab fa-viber fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 006: Pinterest */ -}}
{{- if $share.Pinterest -}}
-
+
{{- dict "Class" "fab fa-pinterest fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 007: Tumblr */ -}}
{{- if $share.Tumblr -}}
-
+
{{- dict "Class" "fab fa-tumblr fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 008: Hacker News */ -}}
{{- if $share.Hackernews -}}
-
+
{{- dict "Class" "fab fa-hacker-news fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 009: Reddit */ -}}
{{- if $share.Reddit -}}
-
+
{{- dict "Class" "fab fa-reddit fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 010: VK */ -}}
{{- if $share.VK -}}
-
+
{{- dict "Class" "fab fa-vk fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 011: Buffer */ -}}
{{- if $share.Buffer -}}
-
+
{{- dict "Class" "fab fa-buffer fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 012: Xing */ -}}
{{- if $share.Xing -}}
-
+
{{- dict "Class" "fab fa-xing fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 013: Line */ -}}
{{- if $share.Line -}}
-
+
{{- dict "Class" "fab fa-line fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 014: Instapaper */ -}}
{{- if $share.Instapaper -}}
-
+
{{- dict "Simpleicons" "instapaper" "Prefix" (.Scratch.Get "cdn" | default dict).simpleIconsPrefix | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 015: Pocket */ -}}
{{- if $share.Pocket -}}
-
+
{{- dict "Class" "fab fa-get-pocket fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 016: Digg */ -}}
{{- if $share.Digg -}}
-
+
{{- dict "Class" "fab fa-digg fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 017: StumbleUpon */ -}}
{{- if $share.Stumbleupon -}}
-
+
{{- dict "Class" "fab fa-stumbleupon fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 018: Flipboard */ -}}
{{- if $share.Flipboard -}}
-
+
{{- dict "Class" "fab fa-flipboard fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 019: 微博 */ -}}
{{- if $share.Weibo -}}
-
+
{{- dict "Class" "fab fa-weibo fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 020: 人人 */ -}}
{{- if $share.Renren -}}
-
+
{{- dict "Class" "fab fa-renren fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 021: Myspace */ -}}
{{- if $share.Myspace -}}
-
+
{{- dict "Simpleicons" "myspace" "Prefix" (.Scratch.Get "cdn" | default dict).simpleIconsPrefix | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 022: Blogger */ -}}
{{- if $share.Blogger -}}
-
+
{{- dict "Class" "fab fa-blogger fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 023: 百度 */ -}}
{{- if $share.Baidu -}}
-
+
{{- dict "Simpleicons" "baidu" "Prefix" (.Scratch.Get "cdn" | default dict).simpleIconsPrefix | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 024: OK.RU */ -}}
{{- if $share.Odnoklassniki -}}
-
+
{{- dict "Class" "fab fa-odnoklassniki fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 025: Evernote */ -}}
{{- if $share.Evernote -}}
-
+
{{- dict "Class" "fab fa-evernote fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 026: Skype */ -}}
{{- if $share.Skype -}}
-
+
{{- dict "Class" "fab fa-skype fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}
{{- /* 027: Trello */ -}}
{{- if $share.Trello -}}
-
+
{{- dict "Class" "fab fa-trello fa-fw" | partial "plugin/icon.html" -}}
{{- end -}}