Replies: 10 comments 11 replies
-
We could also consider adding support for very specific metadata properties/names, ie.g. by letting authors provide labels like |
Beta Was this translation helpful? Give feedback.
-
i like it a lot. the one thing i would want to test with non-web authors is what they would call this. |
Beta Was this translation helpful? Give feedback.
-
I see a potential clash with the page blocks (#159 (comment)). maybe we can use some kind of namespace instead of just |
Beta Was this translation helpful? Give feedback.
-
I would support "properties" slightly more than "metadata", sounds a little less technical. What about existing gdocs properties, couldn't we use them? I would assume there are at least some, but I'm not an gdocs expert. Just stumbled over this: while googling: https://blog.ouseful.info/2015/01/28/adding-metadata-to-google-docs/ |
Beta Was this translation helpful? Give feedback.
-
i think it would be great for a range of uses to be able to manage certain meta data in a more table oriented fashion. so if had a way to address a page's metadata in a dedicated spreadsheet (json source) that would allow for usecases where a centralized approach to metadata is more intuitive. i envision a table that has a column that identifies the path and additionally columns for the meta properties. i think they could be combined with the meta data on the doc with some sort of precendence.
i think it would also be great if the Path allows for globbing patterns. |
Beta Was this translation helpful? Give feedback.
-
Regarding meta images: I think these can come in the following variety from the document, as plain text, link or pasted image: |Image|https\://www\.adobe.com/thumb.800.480.png|
|Image|<https://www.adobe.com/thumb.800.480.png>|
|Image|![](https://hlx.blob.core.windows.net/external/d6675ca179a0837756ceebe7f93aba2f14dabde9#image.jpeg)| leading to the following block row output: <div><div>Image</div><div>https://www.adobe.com/thumb.800.480.png</div></div>
<div><div>Image</div><div><a href="https://www.adobe.com/thumb.800.480.png">https://www.adobe.com/thumb.800.480.png</a></div></div>
<div><div>Image</div><div><picture><source media="(max-width: 400px)" srcset="/hlx_d6675ca179a0837756ceebe7f93aba2f14dabde9.jpeg?width=750&format=webply&optimize=medium"><img src="/hlx_d6675ca179a0837756ceebe7f93aba2f14dabde9.jpeg?width=2000&format=webply&optimize=medium" alt="" loading="eager"></picture></div></div> All of these should work and have precedence over the first image in the content. |
Beta Was this translation helpful? Give feedback.
-
Arbitrary metadata: besides the well known metadata keys like title, description, image, keywords and tags, authors can also add arbitrary ones like |Template|default|
|article:publisher|<https://www.facebook.com/Adobe>| which will get rendered like this: <meta name="template" content="default">
<meta property="article:publisher" content="https://www.facebook.com/Adobe"> |
Beta Was this translation helpful? Give feedback.
-
@davidnuescheler I was thinking about date values: should we try and parse them and always output UTC date strings? |
Beta Was this translation helpful? Give feedback.
-
From adobe/helix-pages#786: if the metadata block contains a title, that should also win over the first heading 1 in the content as the document title. |
Beta Was this translation helpful? Give feedback.
-
@davidnuescheler should we make |
Beta Was this translation helpful? Give feedback.
-
Helix Pages currently doesn't give authors full control over metadata values beyond what they choose as title/heading, first larger paragraph and first image in their document.
Several projects have a requirement to extend metadata authoring. Here's a proposal how to do that:
helix-word2md
andhelix-gdoc2md
transforms such a table into the following midmatter:helix-pipeline
orhelix-pages
then transforms it into metadata tags in HTML:<my_domain>
If no metadata table is present in the content, or only partial properties are provided, Helix Pages will extract the missing metadata values from the content, like it does today.
wdyt?
Beta Was this translation helpful? Give feedback.
All reactions