-
Notifications
You must be signed in to change notification settings - Fork 9
Add a sample post template #430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
bc6c090
9e89557
855cc2e
b9a0ffd
a89ff96
a9798dd
ca7b183
94872c2
3c5eb18
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| --- | ||
| layout: page | ||
| title: A sample post template | ||
| description: You can use this template to get you started. | ||
| eleventyNavigation: | ||
| parent: Guide | ||
| --- | ||
|
|
||
| This template contains all the possible metadata you can add to a post, and some sample markdown for the content (see [full markdown guide](/guide/using-markdown/)). | ||
|
|
||
| You don’t have to use this template, but it may be helpful. | ||
|
|
||
| To use it, create a new subfolder for your post, add an `index.md` file in the subfolder and copy in template below. | ||
|
|
||
| For any metadata not needed, you can delete those lines. | ||
|
|
||
| ```markdown | ||
| --- | ||
| title: This is the title of the post | ||
| date: 2025-12-01 | ||
| description: This description will appear on index pages. | ||
| tags: | ||
| - add | ||
| - tags | ||
| - to help group | ||
| - related posts | ||
| author: | ||
| - Your Name (optional) | ||
| - Another Name | ||
| opengraphImage: | ||
| src: /your-service/2025/12/post-title/image-name.png | ||
| alt: Alternative text for the lead image (appears when sharing) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should probably say which of these are optional or not
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think technically everything is optional apart from title and date. Wasn't sure how best to make this clear though. Perhaps rather than adding
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @edwardhorsford Updated in b9a0ffd - look ok?
frankieroberto marked this conversation as resolved.
Outdated
|
||
| --- | ||
|
|
||
| An intro paragraph which summarises the whole thing. | ||
|
|
||
| ## Heading | ||
|
|
||
| Some content. | ||
|
|
||
| [A link to another post](/your-service/2025/11/another-post-title/) | ||
|
frankieroberto marked this conversation as resolved.
|
||
|
|
||
| ### Subheading | ||
|
|
||
| More content | ||
|
|
||
|  | ||
|
frankieroberto marked this conversation as resolved.
|
||
|
|
||
|
|
||
| ``` | ||
Uh oh!
There was an error while loading. Please reload this page.