mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
Merge pull request #77 from dillonzq/feature/improve_share
feature(share): support 28 kinds of share links
This commit is contained in:
commit
d8681cd489
18 changed files with 397 additions and 202 deletions
|
@ -31,20 +31,23 @@
|
|||
}
|
||||
}
|
||||
|
||||
.post-info-md
|
||||
a {
|
||||
font-size: 0.8em;
|
||||
color: $single-link-color;
|
||||
.post-info-md {
|
||||
width: 8rem;
|
||||
|
||||
.dark-theme & {
|
||||
color: $single-link-color-dark;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $single-link-hover-color;
|
||||
a {
|
||||
font-size: 0.8rem;
|
||||
color: $single-link-color;
|
||||
|
||||
.dark-theme & {
|
||||
color: $single-link-hover-color-dark;
|
||||
color: $single-link-color-dark;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $single-link-hover-color;
|
||||
|
||||
.dark-theme & {
|
||||
color: $single-link-hover-color-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -8,3 +8,4 @@ typeit@6.5.1
|
|||
aplayer@1.10.1
|
||||
meting@2.0.1
|
||||
smooth-scroll@16.1.2
|
||||
sharer@0.4.0
|
||||
|
|
1
assets/js/lib/sharer/sharer.min.js
vendored
Normal file
1
assets/js/lib/sharer/sharer.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -159,67 +159,67 @@ dateFormatToUse = "2006-01-02"
|
|||
GitHub = "xxxx"
|
||||
Linkedin = "xxxx"
|
||||
Twitter = "xxxx"
|
||||
#Instagram = "xxxx"
|
||||
Instagram = "xxxx"
|
||||
Email = "xxxx@outlook.com"
|
||||
Facebook = "xxxx"
|
||||
Telegram = "xxxx"
|
||||
#Medium = "xxxx"
|
||||
#Gitlab = "xxxx"
|
||||
#Youtubelegacy = "xxxx"
|
||||
#Youtubecustom = "xxxx"
|
||||
#Youtubechannel = "xxxx"
|
||||
#Tumblr ="xxxx"
|
||||
#Quora = "xxxx"
|
||||
#Keybase = "xxxx"
|
||||
#Pinterest = "xxxx"
|
||||
#Reddit = "xxxx"
|
||||
#Codepen = "xxxx"
|
||||
#FreeCodeCamp = "xxxx"
|
||||
#Bitbucket = "xxxx"
|
||||
#Stackoverflow = "xxxx"
|
||||
#Weibo = "xxxx"
|
||||
#Odnoklassniki = "xxxx"
|
||||
#VKontakte = "xxxx"
|
||||
#Flickr = "xxxx"
|
||||
#Xing = "xxxx"
|
||||
#Snapchat = "xxxx"
|
||||
#Soundcloud = "xxxx"
|
||||
#Spotify = "xxxx"
|
||||
#Bandcamp = "xxxx"
|
||||
#Paypal = "xxxx"
|
||||
#Fivehundredpx = "xxxx"
|
||||
#Mix = "xxxx"
|
||||
#Goodreads = "xxxx"
|
||||
#Lastfm = "xxxx"
|
||||
#Foursquare = "xxxx"
|
||||
#Hackernews = "xxxx"
|
||||
#Kickstarter = "xxxx"
|
||||
#Patreon = "xxxx"
|
||||
#Steam = "xxxx"
|
||||
#Twitch = "xxxx"
|
||||
#Strava = "xxxx"
|
||||
#Skype = "xxxx"
|
||||
#Whatsapp = "xxxx"
|
||||
#Zhihu = "xxxx"
|
||||
#Douban = "xxxx"
|
||||
#Angellist = "xxxx"
|
||||
#Slidershare = "xxxx"
|
||||
#Jsfiddle = "xxxx"
|
||||
#Deviantart = "xxxx"
|
||||
#Behance = "xxxx"
|
||||
#Dribble = "xxxx"
|
||||
#Wordpress = "xxxx"
|
||||
#Vine = "xxxx"
|
||||
#Googlescholar = "xxxx"
|
||||
#Researchgate = "xxxx"
|
||||
#Mastodon = "xxxx"
|
||||
#MastodonPrefix = "https://mastodon.technology/"
|
||||
#Thingiverse = "xxxx"
|
||||
#Devto = "xxxx"
|
||||
#Gitea = "xxxx"
|
||||
#XMPP = "xxxx"
|
||||
#Matrix ="xxxx"
|
||||
#Bilibili = ""
|
||||
# Medium = "xxxx"
|
||||
# Gitlab = "xxxx"
|
||||
# Youtubelegacy = "xxxx"
|
||||
# Youtubecustom = "xxxx"
|
||||
# Youtubechannel = "xxxx"
|
||||
# Tumblr ="xxxx"
|
||||
# Quora = "xxxx"
|
||||
# Keybase = "xxxx"
|
||||
# Pinterest = "xxxx"
|
||||
# Reddit = "xxxx"
|
||||
# Codepen = "xxxx"
|
||||
# FreeCodeCamp = "xxxx"
|
||||
# Bitbucket = "xxxx"
|
||||
# Stackoverflow = "xxxx"
|
||||
# Weibo = "xxxx"
|
||||
# Odnoklassniki = "xxxx"
|
||||
# VK = "xxxx"
|
||||
# Flickr = "xxxx"
|
||||
# Xing = "xxxx"
|
||||
# Snapchat = "xxxx"
|
||||
# Soundcloud = "xxxx"
|
||||
# Spotify = "xxxx"
|
||||
# Bandcamp = "xxxx"
|
||||
# Paypal = "xxxx"
|
||||
# Fivehundredpx = "xxxx"
|
||||
# Mix = "xxxx"
|
||||
# Goodreads = "xxxx"
|
||||
# Lastfm = "xxxx"
|
||||
# Foursquare = "xxxx"
|
||||
# Hackernews = "xxxx"
|
||||
# Kickstarter = "xxxx"
|
||||
# Patreon = "xxxx"
|
||||
# Steam = "xxxx"
|
||||
# Twitch = "xxxx"
|
||||
# Strava = "xxxx"
|
||||
# Skype = "xxxx"
|
||||
# Whatsapp = "xxxx"
|
||||
# Zhihu = "xxxx"
|
||||
# Douban = "xxxx"
|
||||
# Angellist = "xxxx"
|
||||
# Slidershare = "xxxx"
|
||||
# Jsfiddle = "xxxx"
|
||||
# Deviantart = "xxxx"
|
||||
# Behance = "xxxx"
|
||||
# Dribble = "xxxx"
|
||||
# Wordpress = "xxxx"
|
||||
# Vine = "xxxx"
|
||||
# Googlescholar = "xxxx"
|
||||
# Researchgate = "xxxx"
|
||||
# Mastodon = "xxxx"
|
||||
# MastodonPrefix = "https://mastodon.technology/"
|
||||
# Thingiverse = "xxxx"
|
||||
# Devto = "xxxx"
|
||||
# Gitea = "xxxx"
|
||||
# XMPP = "xxxx"
|
||||
# Matrix = "xxxx"
|
||||
# Bilibili = "xxxx"
|
||||
|
||||
# Page config
|
||||
[params.page]
|
||||
|
@ -233,14 +233,31 @@ dateFormatToUse = "2006-01-02"
|
|||
enable = true
|
||||
Twitter = true
|
||||
Facebook = true
|
||||
Reddit = true
|
||||
#Linkedin = true
|
||||
#Pinterest = true
|
||||
#HackerNews = true
|
||||
#Mix = true
|
||||
#Tumblr = true
|
||||
#VKontakte = true
|
||||
#Weibo = true
|
||||
Linkedin = true
|
||||
Whatsapp = true
|
||||
Pinterest = true
|
||||
Tumblr = true
|
||||
HackerNews = true
|
||||
# Reddit = true
|
||||
# VK = true
|
||||
# Buffer = true
|
||||
# Xing = true
|
||||
# Line = true
|
||||
# Instapaper = true
|
||||
# Pocket = true
|
||||
# Digg = true
|
||||
# Stumbleupon = true
|
||||
# Flipboard = true
|
||||
# Weibo = true
|
||||
# Renren = true
|
||||
# Myspace = true
|
||||
# Blogger = true
|
||||
# Baidu = true
|
||||
# Odnoklassniki = true
|
||||
# Evernote = true
|
||||
# Skype = true
|
||||
# Trello = true
|
||||
# Mix = true
|
||||
|
||||
# mathematical formulas (KaTeX)
|
||||
[params.math]
|
||||
|
@ -264,6 +281,7 @@ dateFormatToUse = "2006-01-02"
|
|||
valineJS = ''
|
||||
lazysizesJS = ''
|
||||
smoothScrollJS = ''
|
||||
sharerJS = ''
|
||||
katexCSS = ''
|
||||
katexJS = ''
|
||||
katexAutoRenderJS = ''
|
||||
|
@ -331,7 +349,7 @@ dateFormatToUse = "2006-01-02"
|
|||
notify = false
|
||||
verify = true
|
||||
avatar = "mp"
|
||||
#meta= ""
|
||||
# meta= ""
|
||||
pageSize = 10
|
||||
visitor = true
|
||||
recordIP = true
|
||||
|
|
|
@ -157,69 +157,69 @@ dateFormatToUse = "2006-01-02"
|
|||
# 主页的社交信息设置
|
||||
[params.social]
|
||||
GitHub = "xxxx"
|
||||
Linkedin = "xxxx"
|
||||
# Linkedin = "xxxx"
|
||||
Twitter = "xxxx"
|
||||
#Instagram = "xxxx"
|
||||
Instagram = "xxxx"
|
||||
Email = "xxxx@outlook.com"
|
||||
Facebook = "xxxx"
|
||||
Telegram = "xxxx"
|
||||
#Medium = "xxxx"
|
||||
#Gitlab = "xxxx"
|
||||
#Youtubelegacy = "xxxx"
|
||||
#Youtubecustom = "xxxx"
|
||||
#Youtubechannel = "xxxx"
|
||||
#Tumblr ="xxxx"
|
||||
#Quora = "xxxx"
|
||||
#Keybase = "xxxx"
|
||||
#Pinterest = "xxxx"
|
||||
#Reddit = "xxxx"
|
||||
#Codepen = "xxxx"
|
||||
#FreeCodeCamp = "xxxx"
|
||||
#Bitbucket = "xxxx"
|
||||
#Stackoverflow = "xxxx"
|
||||
#Weibo = "xxxx"
|
||||
#Odnoklassniki = "xxxx"
|
||||
#VKontakte = "xxxx"
|
||||
#Flickr = "xxxx"
|
||||
#Xing = "xxxx"
|
||||
#Snapchat = "xxxx"
|
||||
#Soundcloud = "xxxx"
|
||||
#Spotify = "xxxx"
|
||||
#Bandcamp = "xxxx"
|
||||
#Paypal = "xxxx"
|
||||
#Fivehundredpx = "xxxx"
|
||||
#Mix = "xxxx"
|
||||
#Goodreads = "xxxx"
|
||||
#Lastfm = "xxxx"
|
||||
#Foursquare = "xxxx"
|
||||
#Hackernews = "xxxx"
|
||||
#Kickstarter = "xxxx"
|
||||
#Patreon = "xxxx"
|
||||
#Steam = "xxxx"
|
||||
#Twitch = "xxxx"
|
||||
#Strava = "xxxx"
|
||||
#Skype = "xxxx"
|
||||
#Whatsapp = "xxxx"
|
||||
#Zhihu = "xxxx"
|
||||
#Douban = "xxxx"
|
||||
#Angellist = "xxxx"
|
||||
#Slidershare = "xxxx"
|
||||
#Jsfiddle = "xxxx"
|
||||
#Deviantart = "xxxx"
|
||||
#Behance = "xxxx"
|
||||
#Dribble = "xxxx"
|
||||
#Wordpress = "xxxx"
|
||||
#Vine = "xxxx"
|
||||
#Googlescholar = "xxxx"
|
||||
#Researchgate = "xxxx"
|
||||
#Mastodon = "xxxx"
|
||||
#MastodonPrefix = "https://mastodon.technology/"
|
||||
#Thingiverse = "xxxx"
|
||||
#Devto = "xxxx"
|
||||
#Gitea = "xxxx"
|
||||
#XMPP = "xxxx"
|
||||
#Matrix = "xxxx"
|
||||
#Bilibili = ""
|
||||
# Facebook = "xxxx"
|
||||
# Telegram = "xxxx"
|
||||
# Medium = "xxxx"
|
||||
# Gitlab = "xxxx"
|
||||
# Youtubelegacy = "xxxx"
|
||||
# Youtubecustom = "xxxx"
|
||||
# Youtubechannel = "xxxx"
|
||||
# Tumblr ="xxxx"
|
||||
# Quora = "xxxx"
|
||||
# Keybase = "xxxx"
|
||||
# Pinterest = "xxxx"
|
||||
# Reddit = "xxxx"
|
||||
# Codepen = "xxxx"
|
||||
# FreeCodeCamp = "xxxx"
|
||||
# Bitbucket = "xxxx"
|
||||
# Stackoverflow = "xxxx"
|
||||
Weibo = "xxxx"
|
||||
# Odnoklassniki = "xxxx"
|
||||
# VK = "xxxx"
|
||||
# Flickr = "xxxx"
|
||||
# Xing = "xxxx"
|
||||
# Snapchat = "xxxx"
|
||||
# Soundcloud = "xxxx"
|
||||
# Spotify = "xxxx"
|
||||
# Bandcamp = "xxxx"
|
||||
# Paypal = "xxxx"
|
||||
# Fivehundredpx = "xxxx"
|
||||
# Mix = "xxxx"
|
||||
# Goodreads = "xxxx"
|
||||
# Lastfm = "xxxx"
|
||||
# Foursquare = "xxxx"
|
||||
# Hackernews = "xxxx"
|
||||
# Kickstarter = "xxxx"
|
||||
# Patreon = "xxxx"
|
||||
# Steam = "xxxx"
|
||||
# Twitch = "xxxx"
|
||||
# Strava = "xxxx"
|
||||
# Skype = "xxxx"
|
||||
# Whatsapp = "xxxx"
|
||||
Zhihu = "xxxx"
|
||||
Douban = "xxxx"
|
||||
# Angellist = "xxxx"
|
||||
# Slidershare = "xxxx"
|
||||
# Jsfiddle = "xxxx"
|
||||
# Deviantart = "xxxx"
|
||||
# Behance = "xxxx"
|
||||
# Dribble = "xxxx"
|
||||
# Wordpress = "xxxx"
|
||||
# Vine = "xxxx"
|
||||
# Googlescholar = "xxxx"
|
||||
# Researchgate = "xxxx"
|
||||
# Mastodon = "xxxx"
|
||||
# MastodonPrefix = "https://mastodon.technology/"
|
||||
# Thingiverse = "xxxx"
|
||||
# Devto = "xxxx"
|
||||
# Gitea = "xxxx"
|
||||
# XMPP = "xxxx"
|
||||
# Matrix = "xxxx"
|
||||
Bilibili = "xxxx"
|
||||
|
||||
# 文章页面配置
|
||||
[params.page]
|
||||
|
@ -233,14 +233,31 @@ dateFormatToUse = "2006-01-02"
|
|||
enable = true
|
||||
Twitter = true
|
||||
Facebook = true
|
||||
Reddit = true
|
||||
#Linkedin = true
|
||||
#Pinterest = true
|
||||
#HackerNews = true
|
||||
#Mix = true
|
||||
#Tumblr = true
|
||||
#VKontakte = true
|
||||
#Weibo = true
|
||||
# Linkedin = true
|
||||
# Whatsapp = true
|
||||
# Pinterest = true
|
||||
# Tumblr = true
|
||||
# HackerNews = true
|
||||
# Reddit = true
|
||||
# VK = true
|
||||
# Buffer = true
|
||||
# Xing = true
|
||||
# Line = true
|
||||
Instapaper = true
|
||||
Pocket = true
|
||||
# Digg = true
|
||||
# Stumbleupon = true
|
||||
# Flipboard = true
|
||||
Weibo = true
|
||||
Renren = true
|
||||
# Myspace = true
|
||||
# Blogger = true
|
||||
Baidu = true
|
||||
# Odnoklassniki = true
|
||||
Evernote = true
|
||||
# Skype = true
|
||||
# Trello = true
|
||||
# Mix = true
|
||||
|
||||
# 数学公式 (KaTeX https://katex.org/)
|
||||
[params.math]
|
||||
|
@ -264,6 +281,7 @@ dateFormatToUse = "2006-01-02"
|
|||
valineJS = ''
|
||||
lazysizesJS = ''
|
||||
smoothScrollJS = ''
|
||||
sharerJS = ''
|
||||
katexCSS = ''
|
||||
katexJS = ''
|
||||
katexAutoRenderJS = ''
|
||||
|
@ -331,7 +349,7 @@ dateFormatToUse = "2006-01-02"
|
|||
notify = false
|
||||
verify = true
|
||||
avatar = "mp"
|
||||
#meta= ""
|
||||
# meta= ""
|
||||
pageSize = 10
|
||||
visitor = true
|
||||
recordIP = true
|
||||
|
|
|
@ -79,6 +79,9 @@ other = "The article was updated on %s"
|
|||
[license]
|
||||
other = "Published under the %s license"
|
||||
|
||||
[seeMarkdown]
|
||||
other = "Read Markdown"
|
||||
|
||||
[back]
|
||||
other = "Back"
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ other = "本文于 %s 更新"
|
|||
[license]
|
||||
other = "采用 %s 协议发布"
|
||||
|
||||
[seeMarkDown]
|
||||
[seeMarkdown]
|
||||
other = "阅读原始文档"
|
||||
|
||||
[back]
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
{{- partial "function/icon-link.html" $options -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 013: Tumblr */ -}}
|
||||
{{- /* 013: Quora */ -}}
|
||||
{{- with .Site.Params.Social.Quora -}}
|
||||
{{- $options := dict "href" (printf "https://www.quora.com/profile/%s" .) "title" "Quora" -}}
|
||||
{{- $options = dict "class" "fab fa-quora fa-fw" | merge $options -}}
|
||||
|
@ -152,9 +152,9 @@
|
|||
{{- partial "function/icon-link.html" $options -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 023: VKontakte */ -}}
|
||||
{{- with .Site.Params.Social.VKontakte -}}
|
||||
{{- $options := dict "href" (printf "https://vk.com/%s" .) "title" "VKontakte" -}}
|
||||
{{- /* 023: VK */ -}}
|
||||
{{- with .Site.Params.Social.VK -}}
|
||||
{{- $options := dict "href" (printf "https://vk.com/%s" .) "title" "VK" -}}
|
||||
{{- $options = dict "class" "fab fa-vk fa-fw" | merge $options -}}
|
||||
{{- partial "function/icon-link.html" $options -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
{{- with .OutputFormats.Get "markdown" -}}
|
||||
<span>
|
||||
<a class="link-to-markdown" href="{{ .Permalink }}" target="_blank">
|
||||
{{- T "seeMarkDown" -}}
|
||||
{{- T "seeMarkdown" -}}
|
||||
</a>
|
||||
</span>
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,71 +1,199 @@
|
|||
{{- if .Params.share.enable | default .Site.Params.share.enable | eq true -}}
|
||||
{{- .Scratch.Set "share" true -}}
|
||||
|
||||
{{- /* 001: Twitter */ -}}
|
||||
{{- if .Params.Share.Twitter | default .Site.Params.Share.Twitter | eq true -}}
|
||||
<a href="//twitter.com/share?url={{ .Permalink }}&text={{ .Title }}&via={{ .Site.Params.Social.Twitter }}" target="_blank" title="{{ T "share" }} Twitter">
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Twitter" data-sharer="twitter" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Site.Params.Social.Twitter }} data-via="{{ . }}"{{ end }}{{ with .Params.tags }} data-hashtags="{{ delimit . `,` }}"{{ end }}>
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-twitter fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 002: Facebook */ -}}
|
||||
{{- if .Params.Share.Facebook | default .Site.Params.Share.Facebook | eq true -}}
|
||||
<a href="//www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" target="_blank" title="{{ T "share" }} Facebook">
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Facebook" data-sharer="facebook" data-url="{{ .Permalink }}"{{ with .Params.tags }} data-hashtag="{{ index . 0 }}"{{ end }}>
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-facebook-square fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 003: Reddit */ -}}
|
||||
{{- if .Params.Share.Reddit | default .Site.Params.Share.Reddit | eq true -}}
|
||||
<a href="//reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}" target="_blank" title="{{ T "share" }} Reddit">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-reddit fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 004: Linkedin */ -}}
|
||||
{{- /* 003: Linkedin */ -}}
|
||||
{{- if .Params.Share.Linkedin | default .Site.Params.Share.Linkedin | eq true -}}
|
||||
<a href="//www.linkedin.com/shareArticle?url={{ .Permalink }}&title={{ .Title }}" target="_blank" title="{{ T "share" }} LinkedIn">
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Linkedin" data-sharer="linkedin" data-url="{{ .Permalink }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-linkedin fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 005: Pinterest */ -}}
|
||||
{{- /* 004: WhatsApp */ -}}
|
||||
{{- if .Params.Share.Whatsapp | default .Site.Params.Share.Whatsapp | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} WhatsApp" data-sharer="whatsapp" data-url="{{ .Permalink }}" data-title="{{ .Title }}" data-web>
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-whatsapp fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 005: Viber */ -}}
|
||||
{{- if .Params.Share.Viber | default .Site.Params.Share.Viber | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Viber" data-sharer="viber" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-viber fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 006: Pinterest */ -}}
|
||||
{{- if .Params.Share.Pinterest | default .Site.Params.Share.Pinterest | eq true -}}
|
||||
<a href="//www.pinterest.com/pin/create/button/?url={{ .Permalink }}&description={{ .Title }}" target="_blank" title="{{ T "share" }} Pinterest">
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Pinterest" data-sharer="pinterest" data-url="{{ .Permalink }}"{{ with .Description }} data-description="{{ . }}"{{ end }}{{ with .Params.featuredImage }} data-image="{{ . }}"{{ end }}>
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-pinterest fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 006: Hacker News */ -}}
|
||||
{{- if .Params.Share.Hackernews | default .Site.Params.Share.Hackernews | eq true -}}
|
||||
<a href="//news.ycombinator.com/submitlink?u={{ .Permalink }}&description={{ .Title }}" target="_blank" title="{{ T "share" }} Hacker News">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-hacker-news fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 007: Mix */ -}}
|
||||
{{- if .Params.Share.Mix | default .Site.Params.Share.Mix | eq true -}}
|
||||
<a href="//mix.com/add?url={{ .Permalink }}&description={{ .Title }}" target="_blank" title="{{ T "share" }} Mix">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-mix fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 008: Tumblr */ -}}
|
||||
{{- /* 007: Tumblr */ -}}
|
||||
{{- if .Params.Share.Tumblr | default .Site.Params.Share.Tumblr | eq true -}}
|
||||
<a href="//www.tumblr.com/widgets/share/tool?canonicalUrl={{ .Permalink }}&title={{ .Title }}" target="_blank" title="{{ T "share" }} Tumblr">
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Tumblr" data-sharer="tumblr" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Description }} data-caption="{{ . }}"{{ end }}{{ with .Params.tags }} data-tags="{{ delimit . `,` }}"{{ end }}>
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-tumblr fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 009: VKontakte */ -}}
|
||||
{{- if .Params.Share.VKontakte | default .Site.Params.Share.VKontakte | eq true -}}
|
||||
<a href="//vk.com/share.php?url={{ .Permalink }}&title={{ .Title }}" target="_blank" title="{{ T "share" }} VKontakte ">
|
||||
{{- /* 008: Hacker News */ -}}
|
||||
{{- if .Params.Share.Hackernews | default .Site.Params.Share.Hackernews | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Hacker News" data-sharer="hackernews" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-hacker-news fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 009: Reddit */ -}}
|
||||
{{- if .Params.Share.Reddit | default .Site.Params.Share.Reddit | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Reddit" data-sharer="reddit" data-url="{{ .Permalink }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-reddit fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 010: VK */ -}}
|
||||
{{- if .Params.Share.VK | default .Site.Params.Share.VK | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} VK" data-sharer="vk" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Description }} data-caption="{{ . }}"{{ end }}{{ with .Params.featuredImage }} data-image="{{ . }}"{{ end }}>
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-vk fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 010: 微博 */ -}}
|
||||
{{- /* 011: Buffer */ -}}
|
||||
{{- if .Params.Share.Buffer | default .Site.Params.Share.Buffer | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Buffer" data-sharer="buffer" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Site.Params.Social.Twitter }} data-via="{{ . }}"{{ end }}{{ with .Params.featuredImage }} data-picture="{{ . }}"{{ end }}>
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-buffer fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 012: Xing */ -}}
|
||||
{{- if .Params.Share.Xing | default .Site.Params.Share.Xing | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Xing" data-sharer="xing" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-xing fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 013: Line */ -}}
|
||||
{{- if .Params.Share.Line | default .Site.Params.Share.Line | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Line" data-sharer="line" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-line fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 014: Instapaper */ -}}
|
||||
{{- if .Params.Share.Instapaper | default .Site.Params.Share.Instapaper | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Instapaper" data-sharer="instapaper" data-url="{{ .Permalink }}" data-title="{{ .Title }}" data-description="{{ .Description }}">
|
||||
{{- partial "function/icon.html" (dict "class" "loveit it-instapaper-fill" "type" "other" "scratch" .Scratch) -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 015: Pocket */ -}}
|
||||
{{- if .Params.Share.Pocket | default .Site.Params.Share.Pocket | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Pocket" data-sharer="pocket" data-url="{{ .Permalink }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-get-pocket fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 016: Digg */ -}}
|
||||
{{- if .Params.Share.Digg | default .Site.Params.Share.Digg | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Digg" data-sharer="digg" data-url="{{ .Permalink }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-digg fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 017: StumbleUpon */ -}}
|
||||
{{- if .Params.Share.Stumbleupon | default .Site.Params.Share.Stumbleupon | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} StumbleUpon" data-sharer="stumbleupon" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-stumbleupon fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 018: Flipboard */ -}}
|
||||
{{- if .Params.Share.Flipboard | default .Site.Params.Share.Flipboard | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Flipboard" data-sharer="flipboard" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-flipboard fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 019: 微博 */ -}}
|
||||
{{- if .Params.Share.Weibo | default .Site.Params.Share.Weibo | eq true -}}
|
||||
<a href="//service.weibo.com/share/share.php?url={{ .Permalink }}&appkey=&title={{ .Title }}{{ with $.Params.featuredImage }}&pic={{ . }}{{- end -}}" target="_blank" title="{{ T "share" }} 微博">
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} 微博" data-sharer="weibo" data-url="{{ .Permalink }}" data-title="{{ .Title }}"{{ with .Params.featuredImage }} data-image="{{ . }}"{{ end }}{{ with .Site.Params.Social.Weibo }} data-ralateuid="{{ . }}"{{ end }}>
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-weibo fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 020: 人人 */ -}}
|
||||
{{- if .Params.Share.Renren | default .Site.Params.Share.Renren | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} 人人" data-sharer="renren" data-url="{{ .Permalink }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-renren fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 021: Myspace */ -}}
|
||||
{{- if .Params.Share.Myspace | default .Site.Params.Share.Myspace | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Myspace" data-sharer="myspace" data-url="{{ .Permalink }}" data-title="{{ .Title }}" data-description="{{ .Description }}">
|
||||
{{- partial "function/icon.html" (dict "class" "loveit it-myspace-fill" "type" "other" "scratch" .Scratch) -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 022: Blogger */ -}}
|
||||
{{- if .Params.Share.Blogger | default .Site.Params.Share.Blogger | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Blogger" data-sharer="blogger" data-url="{{ .Permalink }}" data-title="{{ .Title }}" data-description="{{ .Description }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-blogger fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 023: 百度 */ -}}
|
||||
{{- if .Params.Share.Baidu | default .Site.Params.Share.Baidu | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} 百度" data-sharer="baidu" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
|
||||
{{- partial "function/icon.html" (dict "class" "loveit it-baidu-fill" "type" "other" "scratch" .Scratch) -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 024: OK.RU */ -}}
|
||||
{{- if .Params.Share.Odnoklassniki | default .Site.Params.Share.Odnoklassniki | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} OK.RU" data-sharer="okru" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-odnoklassniki fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 025: Evernote */ -}}
|
||||
{{- if .Params.Share.Evernote | default .Site.Params.Share.Evernote | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Evernote" data-sharer="evernote" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-evernote fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 026: Skype */ -}}
|
||||
{{- if .Params.Share.Skype | default .Site.Params.Share.Skype | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Skype" data-sharer="skype" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-skype fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 027: Trello */ -}}
|
||||
{{- if .Params.Share.Trello | default .Site.Params.Share.Trello | eq true -}}
|
||||
<a href="javascript:void(0);" title="{{ T `share` }} Trello" data-sharer="trello" data-url="{{ .Permalink }}" data-title="{{ .Title }}" data-description="{{ .Description }}">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-trello fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 028: Mix */ -}}
|
||||
{{- if .Params.Share.Mix | default .Site.Params.Share.Mix | eq true -}}
|
||||
<a href="//mix.com/add?url={{ .Permalink }}&description={{ .Title }}" target="_blank" title="{{ T `share` }} Mix">
|
||||
{{- partial "function/icon.html" (dict "class" "fab fa-mix fa-fw") -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -10,13 +10,6 @@
|
|||
{{- slice "css/lib/iconfont/iconfont.css" | .Scratch.Add "linkLocal" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* lazysizes https://github.com/aFarkas/lazysizes */ -}}
|
||||
{{- with $CDN.lazysizesJS -}}
|
||||
{{- slice . | $.Scratch.Add "scriptCDN" -}}
|
||||
{{- else -}}
|
||||
{{- slice "js/lib/lazysizes/lazysizes.min.js" | .Scratch.Add "scriptLocal" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Smooth Scroll https://github.com/cferdinandi/smooth-scroll */ -}}
|
||||
{{- with $CDN.smoothScrollJS -}}
|
||||
{{- slice . | $.Scratch.Add "scriptCDN" -}}
|
||||
|
@ -24,6 +17,22 @@
|
|||
{{- slice "js/lib/smooth-scroll/smooth-scroll.polyfills.min.js" | .Scratch.Add "scriptLocal" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Sharer.js https://github.com/ellisonleao/sharer.js */ -}}
|
||||
{{- if .Scratch.Get "share" -}}
|
||||
{{- with $CDN.sharerJS -}}
|
||||
{{- slice . | $.Scratch.Add "scriptCDN" -}}
|
||||
{{- else -}}
|
||||
{{- slice "js/lib/sharer/sharer.min.js" | .Scratch.Add "scriptLocal" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* lazysizes https://github.com/aFarkas/lazysizes */ -}}
|
||||
{{- with $CDN.lazysizesJS -}}
|
||||
{{- slice . | $.Scratch.Add "scriptCDN" -}}
|
||||
{{- else -}}
|
||||
{{- slice "js/lib/lazysizes/lazysizes.min.js" | .Scratch.Add "scriptLocal" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* TypeIt https://github.com/alexmacarthur/typeit */ -}}
|
||||
{{- with .Scratch.Get "typeitMap" -}}
|
||||
{{- with $CDN.typeitJS -}}
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -20,6 +20,12 @@ Created by iconfont
|
|||
/>
|
||||
<missing-glyph />
|
||||
|
||||
<glyph glyph-name="myspace-fill" unicode="" d="M844.928 372.30933300000004c89.941333 0 162.901333 72.661333 162.901333 162.304s-72.96 161.92-162.901333 161.92a162.816 162.816 0 0 1-162.901333-162.56 162.858667 162.858667 0 0 1 162.901333-162.602666v0.938666z m-367.061333-30.08c80.938667 0 146.602667 65.408 146.602666 146.090667S558.848 634.4533329999999 477.866667 634.4533329999999 331.264 568.490667 331.264 487.850667A146.602667 146.602667 0 0 1 477.866667 341.33333300000004v0.896z m-332.8-27.093333c72.96 0 131.968 58.88 131.968 131.456 0 72.704-59.52 131.584-132.48 131.584A131.669333 131.669333 0 0 1 12.8 446.336c0-72.533333 59.178667-131.328 132.053333-131.328l0.213334 0.128z m0-30.08c-83.626667 0-145.066667-73.258667-145.066667-149.12v-51.029333c0-7.253333 5.888-13.226667 13.226667-13.226667h263.68a13.226667 13.226667 0 0 1 13.184 13.226667v51.029333c0 75.904-61.312 149.333333-144.981334 149.333333l-0.042666-0.213333z m332.8 23.893333c-92.970667 0-161.28-81.706667-161.28-166.016v-56.789333c0-8.021333 6.656-14.677333 14.72-14.677333h293.162666a14.677333 14.677333 0 0 1 14.592 14.677333V142.93333299999995c0 84.309333-68.181333 166.016-161.194666 166.016z m367.061333 26.325334c-103.338667 0-179.072-90.709333-179.072-184.448v-63.018667c0-8.96 7.338667-16.256 16.298667-16.256h325.546666c8.96 0 16.341333 7.296 16.341334 16.256v63.018667c-0.042667 93.738667-75.776 184.448-179.114667 184.448z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="instapaper-fill" unicode="" d="M426.666667 682.666667C426.666667 706.133333 407.466667 725.333333 384 725.333333L341.333333 725.333333 341.333333 810.666667 682.666667 810.666667 682.666667 725.333333 640 725.333333C616.533333 725.333333 597.333333 706.133333 597.333333 682.666667L597.333333 85.33333300000004C597.333333 61.86666700000001 616.533333 42.66666699999996 640 42.66666699999996L682.666667 42.66666699999996 682.666667-42.66666699999996 341.333333-42.66666699999996 341.333333 42.66666699999996 384 42.66666699999996C407.466667 42.66666699999996 426.666667 61.86666700000001 426.666667 85.33333300000004L426.666667 682.666667Z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="alipay-line" unicode="" d="M785.408 179.626667c-92.714667 40.533333-158.72 70.229333-197.973333 89.002666-59.733333-72.362667-122.538667-116.053333-216.746667-116.053333S213.333333 210.602667 220.842667 281.941333c5.12 46.762667 37.205333 123.221333 176.128 109.909334 73.386667-6.826667 106.837333-20.48 166.912-40.277334 15.36 28.330667 28.330667 59.733333 37.888 92.842667H336.213333v26.282667h131.072V517.802667H307.2v29.013333h160.085333V614.741333s1.365333 10.581333 13.312 10.581334H546.133333v-78.848h170.666667v-29.013334h-170.666667v-47.104h139.264a529.493333 529.493333 0 0 0-56.32-141.653333c21.76-7.765333 89.472-28.842667 203.093334-63.274667a341.333333 341.333333 0 1 1-46.762667-85.845333zM512-42.666667C276.352-42.666667 85.333333 148.352 85.333333 384S276.352 810.666667 512 810.666667s426.666667-191.018667 426.666667-426.666667-191.018667-426.666667-426.666667-426.666667z m-152.234667 240.298667c61.44 0 120.490667 37.205333 168.96 100.352-68.608 33.109333-125.610667 49.493333-189.44 49.493333-55.637333 0-84.650667-34.133333-89.770666-60.416-5.12-26.282667 10.581333-89.429333 110.250666-89.429333z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
|
|
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 187 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue