feat: add rel-me and mastodon #114

Merged
lunny merged 2 commits from jolheiser/website:mastodon into main 2022-11-21 23:51:33 +00:00
2 changed files with 7 additions and 1 deletions

@ -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

Leaving this here for when we eventually update the plugin.

Leaving this here for when we eventually update the plugin.
- 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

Looks like it fails when no .Params is defined, should probaly check also if .Params

Looks like it fails when no `.Params` is defined, should probaly check also `if .Params`

Odd, it doesn't fail locally when I tested.

Odd, it doesn't fail locally when I tested.

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...

Ah, the issue is that the drone plugin is >30 versions behind Hugo ?
https://github.com/drone-plugins/drone-hugo/pull/34

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>&nbsp;
{{ .Name }}
</a>