-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from andybelldesign/cms/a-simple-post
Automatically generated. Merged on Netlify CMS.
- Loading branch information
1 parent
d42f8d1
commit ab690a3
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
--- | ||
title: 'A simple post' | ||
title: A simple post | ||
date: '2019-06-18' | ||
tags: | ||
- demo-content | ||
- simple-post | ||
- blog | ||
--- | ||
A simple post to demonstrate how a normal blog post looks on Hylia. Content is all set in the “Body” field as markdown and Eleventy transforms it into a proper HTML post. You can also edit the markdown file directly if you prefer not to use the CMS. | ||
|
||
If you want to make an image bleed-out, add a title attribute to it and the front-end will automatically wrap it in a `<figure>` tag for you. | ||
|
||
![The top of a grey concrete building with a blue sky in the background](/images/demo-image-1.jpg "Brutalism at its finest. Photo by Artificial Photography on Unsplash.") | ||
|
||
You can also add videos to posts from YouTube or Vimeo (or wherever, really) and the front-end will also make those bleed-out for you too. | ||
|
||
<iframe width="560" height="315" src="https://www.youtube.com/embed/_38JDGnr0vA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> | ||
|
||
Finally, how about a `<blockquote>`? | ||
|
||
> Quotes will take a slightly different style to normal body text and look fancy. | ||
Hopefully, this has demonstrated how simple it is to make a nice looking blog with Hylia. |