feat: add rel-me and mastodon #114
@ -64,6 +64,12 @@ menu:
|
||||
url: https://discourse.gitea.io/
|
||||
weight: 70
|
||||
pre: group
|
||||
- name: Mastodon
|
||||
url: https://social.gitea.io/@gitea
|
||||
weight: 75
|
||||
pre: mastodon
|
||||
params:
|
||||
rel: me
|
||||
|
||||
- name: Twitter
|
||||
url: https://twitter.com/giteaio
|
||||
weight: 80
|
||||
|
@ -14,7 +14,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
<a class="navbar-item" href="{{ .URL }}">
|
||||
<a class="navbar-item" {{ if eq .Name "Mastodon" }}rel="me"{{ end }} href="{{ .URL }}">
|
||||
jolheiser marked this conversation as resolved
Outdated
lafriks
commented
Looks like it fails when no Looks like it fails when no `.Params` is defined, should probaly check also `if .Params`
jolheiser
commented
Odd, it doesn't fail locally when I tested. Odd, it doesn't fail locally when I tested.
jolheiser
commented
I've even updated my local hugo version to latest and it still compiles. Very odd... I've even updated my local hugo version to latest and it still compiles. Very odd...
jolheiser
commented
Ah, the issue is that the drone plugin is >30 versions behind Hugo ? Ah, the issue is that the drone plugin is >30 versions behind Hugo ?
https://github.com/drone-plugins/drone-hugo/pull/34
|
||||
<i class="fa fa-{{ .Pre }}"></i>
|
||||
{{ .Name }}
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user
Leaving this here for when we eventually update the plugin.