[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"
|
identifier = "github"
|
||||||
url = "https://github.com/strolch-li"
|
url = "https://github.com/strolch-li"
|
||||||
weight = 10
|
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>
|
<ul>
|
||||||
{{ range sort . "Weight"}}
|
{{ range sort . "Weight"}}
|
||||||
<li>
|
<li>
|
||||||
{{ if gt (strings.Count "http" .URL) 0}}
|
{{ if gt (strings.Count "mastodon" .Identifier) 0}}
|
||||||
{{.Pre}}<a class="padding" href="{{.URL | absLangURL }}" target="_blank">{{safeHTML .Name}}</a>{{.Post}}
|
{{.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 }}
|
{{ else }}
|
||||||
{{.Pre}}<a class="padding" href="{{.URL | absLangURL }}">{{safeHTML .Name}}</a>{{.Post}}
|
{{.Pre}}<a class="padding" href="{{.URL | absLangURL }}">{{safeHTML .Name}}</a>{{.Post}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue