Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add rel=me tag to have a verified link on Mastodon #37

Merged
merged 5 commits into from
Aug 25, 2023

Conversation

rugk
Copy link
Contributor

@rugk rugk commented Aug 24, 2023

I admit this is a kinda hackish solution, because it adds this tag to all links in the navigation bar.

It has no other bad influence: https://developer.mozilla.org/docs/Web/HTML/Attributes/rel/me

If anyone has a better solution that does not add it everywhere, feel free t adjust/commit.

Result is this:

<li><a rel="me" href="https://chaos.social/@jetzt" target="_blank">mastodon</a></li>

Edit: Fixed it to only add rel="me" where required:
grafik

I admit this is a kinda hackish solution, because it adds, this tag to _all_ links in the navigation bar. 

It has no other bad influence: https://developer.mozilla.org/docs/Web/HTML/Attributes/rel/me

If anyone has a better solution that does not add it everywhere, feel free t adjust/commit.
@rugk rugk temporarily deployed to development August 24, 2023 16:43 — with GitHub Actions Inactive
@rugk rugk temporarily deployed to development August 24, 2023 17:54 — with GitHub Actions Inactive
This had no bad impact, but looked ugly.
Links was totally unused and was not used anywhere.
rugk added a commit that referenced this pull request Aug 24, 2023
…r similar

See https://containers.dev/
This is e.g. used by GitHub: https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers

You can use it in GitHub Codespaces, just go to github.dev (change the URL from GitHub.com to GitHub.dev) and it should bring up such a cloud development environment with everything preinstalled.

I used this for #37 and it worked glad.

Created with credits to [ChatGPT](https://chat.openai.com/share/4404c038-ff14-446b-a081-b2c33e187486) as I had no real experience with that.
I also tried other thing slike creating a `launch.json` for VSCode there, which failed.
Anyway, you hardly need to debug your Python script hehe.
@scammo scammo merged commit 8907c5f into main Aug 25, 2023
4 checks passed
@rugk rugk deleted the mastodon-verifiedlink branch August 25, 2023 18:36
e1mo added a commit that referenced this pull request Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants