Pages #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
So what is supposed to happens to pages? This is my root url (should have the slickest og:image really!)

When the plugin is installed on a micro.blog hosted blog it will generate the appropriate meta tags in the <head></head> element for Open Graph previews places like Facebook and Twitter.
I notice in your screenshots that the url you are using is
http://micro.blog/w4rner
which is the timeline for your account on micro.blog and not the blog itself,https://w4rner.micro.blog
, which does have tagsThe missing
property="og:image"
tag on your main page is because your Hugo theme does not have any images in the Front matter for your main page.The url I'm using is actually https://blog.w4rner.com.

From this site,
Agreed, it stems from the Typerwriter default theme doesn't have any image specified in head. When you say front matter, do you just mean colloquially or Hugo specific?
<script async defer data-domain="blog.w4rner.com" src="https://plausible.io/js/plausible.js"></script>I'm tryna advocate @manton to allow updating og: meta tags on default themes for mid-technical folks like me who don't wanna do custom theme. Please feel free to add your support!
Alternatively, is this something that could be solved with a plug-in, similar to the Plausible Analytics one I use, which seems to just inject this line in the head:
I did mean Hugo specific front matter.
This is something that could be solved with a plug-in that lets you add configurable meta tags to the <head>. I actually stopped using a custom theme for my own blog’s custom them and moved the small changes I had into a template instead.
Maybe I will take a crack at such a plugin later this week
Ahh please do! Happy to do a Code review for ya!
w4rner
Sent from my Doesnt.FlipPh.one
On Tue, Oct 20, 2020 at 1:01 AM, James Griffin notifications@github.com wrote:
Also, a note about optimization on the original og: plugin:
for og:description tags, 155-160 char is considered optimal by the SEO community to get search engines to actually use the description rather than their own, but also for other uses such as RSS feeds where you want to give a short preview.
In this example the generated description is way too long at 536 char. Looks like it just took all the text until it reached a non-text element (image): is that correct?
If so would you consider tweaking / suggest ways we can adapt our blogging to make it work?
As far as the plugin is concerned it is just pulling the description metadata out of Hugo (and a few conditionals to account for pages instead of posts). There is no logic about generating the description content for a given Post/Page in this plugin, that is all handled in the Hugo Theme. If you want to make adjustments to how much content shows up in the open graph tags you can adjust how Hugo parses the content.
As for RSS feeds that wouldn’t have anything to do with the open graph tags. The RSS feeds do use the same description or summary source metadata from Hugo though so fixing the generation of Summary/Description would fix both RSS summaries and the Open Graph content
As far as SEO goes I don’t really give much thought to the area.
So would we have to do Micro.Blog custom theme in order to change how Hugo handles it (all micro.blog themes are Hugo right?).
I believe that a custom theme can alter how the front matter is generated. I haven't dug very far into Hugo so I am not sure how flexible the changes to front matter can be.
The content of this plugin is really just the default Hugo open graph template but I didn't want to have to maintain a custom theme just to enable it :)
Update: Manton has now created a custom meta tag adder:
https://github.com/microdotblog/plugin-metatags
It would appear it adds the identical tags to every page's Head End, which obviously is way inferior to yours for posts, but might be worth it just to customize home page.
It would appear that browsers only accept the first meta tag they read and ignore subsequent, so to use his I believe you have to delete yours.
Just for clarity,
these are all the tags it had generated and were removed:
The one that tripped me out is description cos the default is empty
So dunno where Hugo is pulling that from (on my test blog's Simple theme).