change blog permalink behaviour
Tom Rutgers
committed Aug 18, 2018
commit b20db78bcc394d8ec21126cab689cfba7a90f061
Showing 3
changed files with
9 additions
and 29 deletions
config.rb
+2
-22
| @@ | @@ -28,28 +28,8 @@ page "/admin/*", layout: false |
| activate :blog do |blog| | |
| - | # This will add a prefix to all links, template references and source paths |
| - | blog.prefix = "posts" |
| - | |
| - | blog.permalink = "/{title}.html" |
| - | # Matcher for blog source files |
| - | blog.sources = "{year}-{month}-{day}-{title}.html" |
| - | # blog.taglink = "tags/{tag}.html" |
| - | # blog.layout = "layout" |
| - | # blog.summary_separator = /(READMORE)/ |
| - | # blog.summary_length = 50 |
| - | # blog.year_link = "{year}.html" |
| - | # blog.month_link = "{year}/{month}.html" |
| - | # blog.day_link = "{year}/{month}/{day}.html" |
| - | blog.default_extension = ".md" |
| - | |
| - | #blog.tag_template = "tag.html" |
| - | #blog.calendar_template = "calendar.html" |
| - | |
| - | # Enable pagination |
| - | blog.paginate = true |
| - | blog.per_page = 50 |
| - | blog.page_link = "page/{num}" |
| + | blog.permalink = "posts/{title}.html" |
| + | blog.sources = "posts/{year}-{month}-{day}-{title}.html" |
| end | |
| #Use pretty urls | |
source/posts/2018-08-17-trying-a-html-md-extension-again.md
+7
-0
| @@ | @@ -0,0 +1,7 @@ |
| + | --- |
| + | title: Trying a .html.md extension again |
| + | date: 2018-08-17T11:55:10.648Z |
| + | description: 'Reading works fine, saving doesn''t' |
| + | image: /images/uploads/news_item-01.jpg |
| + | --- |
| + | Let's try again |
source/posts/2018-08-18-trying-a-html-md-extension-again.md
+0
-7
| @@ | @@ -1,7 +0,0 @@ |
| - | --- |
| - | title: Trying a .html.md extension again |
| - | date: 2018-08-18T11:55:10.648Z |
| - | description: 'Reading works fine, saving doesn''t' |
| - | image: /images/uploads/news_item-01.jpg |
| - | --- |
| - | Let's try again |