[Minor] Added Mastodon link
This commit is contained in:
parent
7121520fcb
commit
cc1e4860a5
|
@ -108,3 +108,9 @@ name = "<i class='fab fa-github'></i> GitHub project"
|
|||
identifier = "github"
|
||||
url = "https://github.com/strolch-li"
|
||||
weight = 10
|
||||
|
||||
[[menu.shortcuts]]
|
||||
name = "<i class='fab fa-mastodon'></i> Mastodon"
|
||||
identifier = "mastodon"
|
||||
url = "https://mstdn.gsi.li/@eitch"
|
||||
weight = 10
|
||||
|
|
|
@ -41,8 +41,10 @@
|
|||
<ul>
|
||||
{{ range sort . "Weight"}}
|
||||
<li>
|
||||
{{ if gt (strings.Count "http" .URL) 0}}
|
||||
{{.Pre}}<a class="padding" href="{{.URL | absLangURL }}" target="_blank">{{safeHTML .Name}}</a>{{.Post}}
|
||||
{{ if gt (strings.Count "mastodon" .Identifier) 0}}
|
||||
{{.Pre}}<a rel="me" class="padding" href="{{.URL | absLangURL }}" target="_blank">{{safeHTML .Name}}</a>{{.Post}}
|
||||
{{ else if gt (strings.Count "http" .URL) 0 }}
|
||||
{{.Pre}}<a class="padding" href="{{.URL | absLangURL }}">{{safeHTML .Name}}</a>{{.Post}}
|
||||
{{ else }}
|
||||
{{.Pre}}<a class="padding" href="{{.URL | absLangURL }}">{{safeHTML .Name}}</a>{{.Post}}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue