Which metadata should Tabi include and how? #529
Almost-Senseless-Coder
started this conversation in
Ideas
Replies: 1 comment
-
Is the Also, I think this will interest you: #528 :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the spirit of getoutofmyhead.dev I've been contemplating what the best approach to adding (custom) metadata to Tabi might be.
Right now, Tabi does a fairly good job of only including metadata which is absolutely necessary. However, to support correct importing of blog posts into Zotero, Tabi would (at least) have to add
<meta name="DC.type" content="blogPost">as well as a<link>importing the necessary Dublin Core namespaces and vocabularies.It would also have to include the publication date nof the blog post, either through
article:published_time(or something similar, I'm not 100 % sure right now) from Open Graph orDC.dateform Dublin Core, or both. At that point, I noticed thatpartials/header.htmlis ued both in the blog post content and the archive, likely any context wherepage.htmlgets used as the template. Which isn't a big deal, I just conditionally add the date if it's available, but now my archive page (erroneously) gets classified as a blog post too. Which I could fix by spinning out a separate header template for the archive page but... This just adds a lot of fluff and unnecessary complexity, especially sinceheader.htmlis one of the partials that changes frequently, and every time it changes in Tabi, I have to go and merge the change into my custom version too, so... not exactly ergonomic.I propose the following options:
[extra]section; ideally this should be doable on a section level, but that, again, leads to complexity as/blogvery likely should have a different type than/blog/some_post.html[extra]metadata (though a clever person could probably write themselves an appropriate macro to reduce boilerplate).I don't think there's any one "correct" approach to this and some or all of these approaches could get mixed and matched.
It's also not super important--but I'd be curious to see which of the approaches, if any, you choose. ^^ If you decide that this shouldn't be something Tabi provides and leave that particular responsibility squarely with the theme users, that's also fair.
Beta Was this translation helpful? Give feedback.
All reactions