hyde-blog

Blog extension for Hyde

Hyde-Blog Extension

hyde-blog is an extension for Hyde that adds static blogging functionality.

Installation

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

Configuration

prefix

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"

permalink

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" 

pretty_urls

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

layout

Set the layout to be used for blog posts.

blog.layout = "blog_layout"

taglink

Set the path at which you can find articles tagged with a particular tag.

blog.taglink = "tags/{tag}.html"

Contributing

  1. Fork it (https://github.com/your-github-user/hyde-blog/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Owner
github statistic
  • 0
  • 0
  • 0
  • 1
  • 9 months ago
  • May 13, 2019
License

MIT License

Links
Synced at

Fri, 28 Feb 2020 19:22:27 GMT