Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Set meta headers by default
· 10 years ago
Ok nice but still, I just want that the admin panel just add this things in the frontmatter of each page : title: "Things" h1: "Things" facebook-page: "things" And not have to copy/paste it every time
-
Set meta headers by default
· 10 years ago
You can put it in twig and still customize. You can add per-page headers that get passed on to the twig template: https://learn.getgrav.org/content/headers#custom-page-headers.
-
Set meta headers by default
· 10 years ago
Yes :) For each page I want the title be the <title> and I want to create a different "h1" for exemple. I want also set up manually Facebook markups or the Twitter ones. It's not convenient to s
-
Set meta headers by default
· 10 years ago
Can you give an example of what you mean? "Metadata" usually means <meta> tags or the YAML at the top of the raw article file, but <h1> and <img> tags are neither of those things. If
-
Set meta headers by default
· 10 years ago
My goal is simply having typical metadata (H1, image, etc.) add by default in the header markdown of each article to fill them ^^ no needs of a huge things. But thanks to you for your ideas and projec
-
Set meta headers by default
· 10 years ago
Ahh. Found Common\Page\Header API. We'll see how that goes.
-
Set meta headers by default
· 10 years ago
@rhukster So can you inject headers during the onBuildPagesInitialized event? Ideally I'd just inject the metadata headers into page header and let the core Grav system process them. I'll keep looking
-
Set meta headers by default
· 10 years ago
Obviously you can put meta tags in your templates, if they're truly global.
-
Set meta headers by default
· 10 years ago
Oh, so you're saying you'd want to set metadata by taxonomy? Like the same meta for all pages in a category or tag?
-
Set meta headers by default
· 10 years ago
Might be an interesting project. I'll tinker a bit.