hyde-blog is an extension for Hyde that adds static blogging functionality.
Add hyde-blog to your shard.yml
file
dependencies:
hyde:
github: hydecr/hyde
hyde-blog:
github: hydect/hyde-blog
Activate the extension in your config.cr
activate :blog do |blog|
# Configure the extension here
end
The base path for your blog defaults to the site root, but that can be overridden with the prefix option.
# Will set the blog path to {{base_url}}/blog
blog.prefix = "blog"
The permalink for viewing your blog posts. Ideally this should be set once and then left alone, otherwise you kind of lose the perm part of permalink.
# All configuration values are available here, as well as year, month,
# and day which are parsed from the `date` field.
blog.permalink = "{year}/{month}/{day}/{title}.html"
You might also consider enabling the pretty urls feature if you want your blog posts to appear as directories instead of HTML files.
blog.pretty_urls = true
Set the layout to be used for blog posts.
blog.layout = "blog_layout"
Set the path at which you can find articles tagged with a particular tag.
blog.taglink = "tags/{tag}.html"
- Fork it (https://github.com/your-github-user/hyde-blog/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Chris Watson - creator and maintainer