Skip to content

Commit

Permalink
Close Issue #40
Browse files Browse the repository at this point in the history
  • Loading branch information
1bl4z3r committed Nov 5, 2023
1 parent 7edf26a commit a475592
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion content/posts/explaining-configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Lastmod : 2023-10-28T20:30:30+05:30
- `enableEmoji` : Enables shorthand emojis in content files. [Info](https://gohugo.io/functions/emojify/)
- `googleAnalytics` : Enter Google Analytics UA code to invoke inbuilt Google Analytics.
- `disqusShortname` : To enable Disqus.
- `[author]`
- `[params.author]`
- `name` : Name of Site-wide or default author.
- `about` : Name of the about page of the Site-wide or default author.
- `[params]`
Expand Down
2 changes: 1 addition & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ enableEmoji = true
dateformNumTime = "2006-01-02 15:04 -0700"

# Metadata mostly used in document's head
# description = ""
# description = "Continuing Hermit's legacy to be minimal and fast theme"
# images = [""]
themeColor = "#494f5c"

Expand Down
5 changes: 3 additions & 2 deletions layouts/partials/social-share.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<div id="share-links" class="animated fast">
{{ $title := .Title }}
{{ $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>
<li>
<a href="https://twitter.com/intent/tweet?hashtags=hermit2&amp;url={{ .Permalink }}&amp;text={{ .Title }}" target="_blank" rel="noopener" aria-label="Share on X">{{- partial "svg.html" (dict "context" . "name" "x") -}}</a>
Expand All @@ -15,7 +16,7 @@
<a href="mailto:?subject={{ .Title }}&amp;body={{ .Permalink }}" target="_self" rel="noopener" aria-label="Share on Email">{{- partial "svg.html" (dict "context" . "name" "email") -}}</a>
</li>
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&amp;url={{ .Permalink }}&amp;title={{ .Title }}&amp;summary={{ $body }}&amp;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&amp;url={{ $url }}&amp;source={{ .Site.BaseURL }}&amp;title={{ $title }}&amp;summary={{ $summary }}" target="_blank" rel="noopener" aria-label="Share on LinkedIn">{{- partial "svg.html" (dict "context" . "name" "linkedin") -}}</a>
</li>
</ul>
</div>

0 comments on commit a475592

Please sign in to comment.