HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

add mastodon verification support #851

Closed benasse closed 5 years ago

benasse commented 5 years ago

It is possible to add the mastodon profile verification like this:

You can verify yourself as the owner of the links in your profile metadata. For that, the linked website must contain a link back to your Mastodon profile. The link back must have a rel="me" attribute. The text content of the link

I added it like this, and it works: ./themes/academic/layouts/partials/widgets/about.html line 52 {{ $target = "target=\"_blank\" rel=\"noopener"" }} line 52 {{ $target = "target=\"_blank\" rel=\"noopener me\"" }}

I share the change if you want to integrate it upstream

gcushen commented 5 years ago

Thanks for sharing, it might be worth posting on the forums too.

rafagalvez commented 5 years ago

Is it possible to code it properly in the theme? I would rather keep the local branch in sync with your master.

adeverteuil commented 1 year ago

Based on this issue: https://github.com/mastodon/mastodon/issues/10345

I added <link rel="me" href="https://mastodon.online/@systempk" /> in my site's layouts/partials/custom_head.html. This partial is included in themes/academic/layouts/partials/site_head.html. This way, upstream changes to layouts/partials/widgets/about.html are not missed.

Edit: see the docs here, the custom_head.html is for Wowchemy <5.6 only. https://wowchemy.com/docs/hugo-tutorials/extending-wowchemy/#custom-head

nhuneke commented 1 year ago

Can confirm the solution above works nicely

highlando commented 1 year ago

works well indeed. a minor downside might be that this link will now be part of the header of all pages (whereas a single link on the main page would be enough)