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
Owner

preview

Closes #106

![preview](https://gitea.com/attachments/6aa08248-ca59-4f7c-82e2-97ab6d5984a3) Closes #106
jolheiser added 1 commit 2022-11-21 16:35:36 +00:00
feat: add rel-me and mastodon
Some checks failed
continuous-integration/drone/pr Build is failing
1726c31c23
Signed-off-by: jolheiser <john.olheiser@gmail.com>
lafriks approved these changes 2022-11-21 16:43:12 +00:00
lafriks reviewed 2022-11-21 16:44:49 +00:00
@ -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 also if .Params

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

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

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

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

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
jolheiser marked this conversation as resolved
jolheiser added 1 commit 2022-11-21 17:12:21 +00:00
fix: hack for older hugo version
All checks were successful
continuous-integration/drone/pr Build is passing
1b8b247753
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Author
Owner

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.

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.
jolheiser reviewed 2022-11-21 17:22:07 +00:00
config.yaml Outdated
@ -67,0 +69,4 @@
weight: 75
pre: mastodon
params:
rel: me
Author
Owner

Leaving this here for when we eventually update the plugin.

Leaving this here for when we eventually update the plugin.
lafriks approved these changes 2022-11-21 20:55:21 +00:00
lunny approved these changes 2022-11-21 23:51:26 +00:00
lunny merged commit 6fbaa1503f into main 2022-11-21 23:51:33 +00:00
jolheiser deleted branch mastodon 2022-11-21 23:53:09 +00:00
Author
Owner

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.

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

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

> 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
Author
Owner

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!

> > 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!
This repo is archived. You cannot comment on pull requests.
No description provided.