Theme Files Update
This commit is contained in:
parent
556699fcd7
commit
b2cda0d39a
2 changed files with 4 additions and 3 deletions
|
@ -56,7 +56,7 @@ enableEmoji = true
|
||||||
dateformNumTime = "2006-01-02 15:04 -0700"
|
dateformNumTime = "2006-01-02 15:04 -0700"
|
||||||
|
|
||||||
# Metadata mostly used in document's head
|
# Metadata mostly used in document's head
|
||||||
# description = ""
|
# description = "Continuing Hermit's legacy to be minimal and fast theme"
|
||||||
# images = [""]
|
# images = [""]
|
||||||
themeColor = "#494f5c"
|
themeColor = "#494f5c"
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
<div id="share-links" class="animated fast">
|
<div id="share-links" class="animated fast">
|
||||||
{{ $title := .Title }}
|
{{ $title := .Title }}
|
||||||
{{ $url := printf "%s" .Permalink }}
|
{{ $url := printf "%s" .Permalink }}
|
||||||
{{ $body := print $title ", by " .Site.Title "\n" .Params.description "\n\n" $url "\n" }}
|
{{ $author := (.Params.author | default .Site.Params.author.name) }}
|
||||||
|
{{ $summary := print $title ", by " $author "\n\n" .Params.description "\n" }}
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="https://twitter.com/intent/tweet?hashtags=hermit2&url={{ .Permalink }}&text={{ .Title }}" target="_blank" rel="noopener" aria-label="Share on X">{{- partial "svg.html" (dict "context" . "name" "x") -}}</a>
|
<a href="https://twitter.com/intent/tweet?hashtags=hermit2&url={{ .Permalink }}&text={{ .Title }}" target="_blank" rel="noopener" aria-label="Share on X">{{- partial "svg.html" (dict "context" . "name" "x") -}}</a>
|
||||||
|
@ -15,7 +16,7 @@
|
||||||
<a href="mailto:?subject={{ .Title }}&body={{ .Permalink }}" target="_self" rel="noopener" aria-label="Share on Email">{{- partial "svg.html" (dict "context" . "name" "email") -}}</a>
|
<a href="mailto:?subject={{ .Title }}&body={{ .Permalink }}" target="_self" rel="noopener" aria-label="Share on Email">{{- partial "svg.html" (dict "context" . "name" "email") -}}</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ .Permalink }}&title={{ .Title }}&summary={{ $body }}&source={{.Site.BaseURL}}" target="_blank" rel="noopener" aria-label="Share on LinkedIn">{{- partial "svg.html" (dict "context" . "name" "linkedin") -}}</a>
|
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ $url }}&source={{ .Site.BaseURL }}&title={{ $title }}&summary={{ $summary }}" target="_blank" rel="noopener" aria-label="Share on LinkedIn">{{- partial "svg.html" (dict "context" . "name" "linkedin") -}}</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue