You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature Proposal: Add Metadata Support in Realm for gnoweb Customization
There is a need to enhance gnoweb customization capabilities by allowing the addition of metadata like meta-title, description, and other relevant information directly within the realm. This enhancement would significantly improve the flexibility and functionality of gnoweb by enabling customization of the <head> section of the generated webpages for example.
Proposed Solution
Introduce a method to embed metadata within realm files to allow for greater customization of gnoweb. This can be achieved with different approaches such as:
Front-Matter in Markdown Files:
Utilize front-matter syntax to include metadata at the beginning of Markdown files.
Example:
---meta-title: "Custom Page Title"description: "This is a custom description for the page."---# Your Markdown Content
Advantages:
Compatible with Goldmark, our Go-based Markdown renderer, via existing plugins.
Adheres to a standard that remains invisible on many Markdown platforms (e.g., HackMD does not display front-matter).
Comments Within Markdown Files:
Embed metadata within comments to keep it hidden from the rendered output.
Example:
<!--meta-title: "Custom Page Title"description: "This is a custom description for the page."--># Your Markdown Content
⚠️ However, this second approach is not the best IMO since we disabled html within realm but also because it is less structured.
Benefits
Enhanced Customization: Allows for specifying page-specific metadata, which can be injected into the <head> section of gnoweb pages, improving SEO and user experience.
Compatibility: Front-matter is a widely adopted standard, ensuring compatibility with existing tools and platforms (not visible in HackMD, for example).
Non-Intrusive: Metadata remains hidden from the end-users, maintaining the cleanliness of the rendered content.
Implementation Considerations
Would be good to brainstorm about this in this issue but in any way, I'll add a PR to experiment the first approach once gnoweb refactor (#3195) will be merged.
Front-Matter Parsing: Leverage existing Goldmark plugins to parse front-matter without additional overhead.
Validation: Implement validation to ensure that the metadata fields are correctly formatted and used.
Documentation: Update the Gnoweb documentation to include guidelines on how to use metadata in realm files.
The text was updated successfully, but these errors were encountered:
Feature Proposal: Add Metadata Support in Realm for gnoweb Customization
There is a need to enhance gnoweb customization capabilities by allowing the addition of metadata like
meta-title
,description
, and other relevant information directly within the realm. This enhancement would significantly improve the flexibility and functionality of gnoweb by enabling customization of the<head>
section of the generated webpages for example.Proposed Solution
Introduce a method to embed metadata within realm files to allow for greater customization of gnoweb. This can be achieved with different approaches such as:
Front-Matter in Markdown Files:
Comments Within Markdown Files:
Benefits
<head>
section of gnoweb pages, improving SEO and user experience.Implementation Considerations
Would be good to brainstorm about this in this issue but in any way, I'll add a PR to experiment the first approach once gnoweb refactor (#3195) will be merged.
The text was updated successfully, but these errors were encountered: