feat: add rel-me and mastodon #114
Labels
No Label
in progress
kind/bug
kind/deployment
kind/docs
kind/enhancement
kind/feature
kind/lint
kind/proposal
kind/question
kind/security
kind/testing
kind/translation
kind/ui
lgtm/done
lgtm/need 1
lgtm/need 2
priority/critical
priority/low
priority/maybe
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
status/blocked
status/needs-feedback
status/wip
No Milestone
No Assignees
3 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/website#114
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "jolheiser/website:mastodon"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #106
@ -15,3 +15,3 @@
</div>
{{ else }}
<a class="navbar-item" href="{{ .URL }}">
<a class="navbar-item" {{ if .Params.rel }}rel="{{ .Params.rel }}"{{ end }} href="{{ .URL }}">
Looks like it fails when no
.Params
is defined, should probaly check alsoif .Params
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...
Ah, the issue is that the drone plugin is >30 versions behind Hugo ?
https://github.com/drone-plugins/drone-hugo/pull/34
Looking at the initial commit vs the second commit, this is a little hacky now...but until the drone plugin is updated to a newer Hugo version or we switch plugins, this seemed easiest instead of coercing one of the other fields.
@ -67,0 +69,4 @@
weight: 75
pre: mastodon
params:
rel: me
Leaving this here for when we eventually update the plugin.
I forgot to mention, in order for mastodon to re-check the link, it will need to be removed and re-added to the profile.
You can also save profile without changing anything and it will recheck links
Oh, good to know!