middleman-blog 4.0.2 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ci.yml +25 -0
  3. data/.github/workflows/stale.yml +21 -0
  4. data/CHANGELOG.md +72 -60
  5. data/Gemfile +16 -26
  6. data/README.md +20 -36
  7. data/Rakefile +15 -19
  8. data/features/summary.feature +3 -6
  9. data/features/support/env.rb +9 -10
  10. data/features/support/time_steps.rb +13 -14
  11. data/features/tags.feature +5 -1
  12. data/fixtures/article-dirs-app/config-directory-indexes.rb +4 -2
  13. data/fixtures/article-dirs-app/config-permalink-with-dot.rb +4 -2
  14. data/fixtures/article-dirs-app/config.rb +4 -2
  15. data/fixtures/blog-sources-app/config.rb +3 -4
  16. data/fixtures/blog-sources-no-date-app/config.rb +3 -4
  17. data/fixtures/blog-sources-no-day-app/config.rb +3 -4
  18. data/fixtures/blog-sources-no-title-app/config.rb +2 -3
  19. data/fixtures/blog-sources-subdirs-app/config.rb +4 -5
  20. data/fixtures/calendar-and-tag-app/config-directory-indexes.rb +5 -3
  21. data/fixtures/calendar-and-tag-app/config.rb +6 -4
  22. data/fixtures/calendar-app/config-directory-indexes.rb +6 -6
  23. data/fixtures/calendar-app/config-only-year.rb +8 -8
  24. data/fixtures/calendar-app/config.rb +6 -6
  25. data/fixtures/calendar-multiblog-app/config.rb +14 -12
  26. data/fixtures/custom-article-template-app/config.rb +2 -0
  27. data/fixtures/custom-collections-app/config-blog-prefix.rb +9 -7
  28. data/fixtures/custom-collections-app/config-directory-indexes.rb +8 -6
  29. data/fixtures/custom-collections-app/config.rb +8 -6
  30. data/fixtures/custom-collections-multiblog-app/config.rb +16 -14
  31. data/fixtures/custom-collections-sources-app/config.rb +7 -5
  32. data/fixtures/custom-permalinks-app/config-directory-indexes.rb +5 -3
  33. data/fixtures/custom-permalinks-app/config.rb +5 -3
  34. data/fixtures/filename-date-app/config.rb +3 -1
  35. data/fixtures/future-date-app/config.rb +4 -2
  36. data/fixtures/indexes-app/config.rb +4 -2
  37. data/fixtures/lang-path-app/config.rb +4 -2
  38. data/fixtures/language-app/config.rb +3 -1
  39. data/fixtures/layouts-app/config.rb +3 -1
  40. data/fixtures/paginate-app/config-directory-indexes.rb +13 -13
  41. data/fixtures/paginate-app/config-paginate-off.rb +13 -13
  42. data/fixtures/paginate-app/config.rb +13 -13
  43. data/fixtures/paginate-multiblog-app/config.rb +15 -13
  44. data/fixtures/permalink-app/config.rb +4 -5
  45. data/fixtures/preview-app/config.rb +4 -2
  46. data/fixtures/published-app/config.rb +4 -2
  47. data/fixtures/summary-app/config.rb +2 -0
  48. data/fixtures/tags-app/config-directory-indexes.rb +7 -5
  49. data/fixtures/tags-app/config-filters.rb +2 -0
  50. data/fixtures/tags-app/config-no-tags.rb +2 -0
  51. data/fixtures/tags-app/config.rb +7 -5
  52. data/fixtures/tags-app/source/blog/2011-01-01-new-article.html.markdown +1 -1
  53. data/fixtures/tags-app/source/blog/2011-01-02-another-article.html.markdown +1 -0
  54. data/fixtures/tags-multiblog-app/config.rb +12 -10
  55. data/fixtures/time-zone-app/config.rb +2 -0
  56. data/lib/middleman-blog/blog_article.rb +20 -41
  57. data/lib/middleman-blog/blog_data.rb +22 -33
  58. data/lib/middleman-blog/calendar_pages.rb +16 -20
  59. data/lib/middleman-blog/commands/article.rb +54 -61
  60. data/lib/middleman-blog/commands/article.tt +2 -2
  61. data/lib/middleman-blog/custom_pages.rb +10 -9
  62. data/lib/middleman-blog/extension.rb +22 -19
  63. data/lib/middleman-blog/helpers.rb +18 -25
  64. data/lib/middleman-blog/paginator.rb +8 -5
  65. data/lib/middleman-blog/tag_pages.rb +13 -23
  66. data/lib/middleman-blog/truncate_html.rb +14 -11
  67. data/lib/middleman-blog/uri_templates.rb +37 -17
  68. data/lib/middleman-blog/version.rb +3 -3
  69. data/lib/middleman-blog.rb +7 -7
  70. data/lib/middleman_extension.rb +3 -1
  71. data/middleman-blog.gemspec +16 -23
  72. data/spec/spec_helper.rb +3 -4
  73. data/spec/uri_templates_spec.rb +24 -29
  74. metadata +15 -37
  75. data/.travis.yml +0 -38
  76. data/fixtures/default-template-app/Gemfile +0 -6
  77. data/fixtures/default-template-app/config.rb +0 -35
  78. data/fixtures/default-template-app/source/2013-04-01-new-article.html.markdown +0 -25
  79. data/fixtures/default-template-app/source/about-me.html.erb +0 -0
  80. data/fixtures/default-template-app/source/archives.html.erb +0 -10
  81. data/fixtures/default-template-app/source/index.html.erb +0 -11
  82. data/fixtures/default-template-app/source/javascripts/_zepto.pjax.js +0 -744
  83. data/fixtures/default-template-app/source/javascripts/app.js +0 -11
  84. data/fixtures/default-template-app/source/javascripts/modernizr.js +0 -1
  85. data/fixtures/default-template-app/source/layouts/layout.erb +0 -62
  86. data/fixtures/default-template-app/source/stylesheets/app.css.scss +0 -109
  87. /data/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
  88. /data/{ISSUE_TEMPLATE.md → .github/ISSUE_TEMPLATE.md} +0 -0
@@ -1,6 +1,5 @@
1
+ # frozen_string_literal: true
1
2
 
2
- activate :blog do | blog |
3
-
4
- blog.sources = "blog/:title.html"
5
-
3
+ activate :blog do |blog|
4
+ blog.sources = 'blog/:title.html'
6
5
  end
@@ -1,6 +1,5 @@
1
+ # frozen_string_literal: true
1
2
 
2
- activate :blog do | blog |
3
-
4
- blog.sources = ":year-:month-:title.html"
5
-
3
+ activate :blog do |blog|
4
+ blog.sources = ':year-:month-:title.html'
6
5
  end
@@ -1,6 +1,5 @@
1
+ # frozen_string_literal: true
1
2
 
2
3
  activate :blog do |blog|
3
-
4
- blog.sources = ":year-:month-:day.html"
5
-
4
+ blog.sources = ':year-:month-:day.html'
6
5
  end
@@ -1,7 +1,6 @@
1
+ # frozen_string_literal: true
1
2
 
2
- activate :blog do | blog |
3
-
4
- blog.sources = "blog/:title.html"
5
- blog.permalink = "blog/{title}.html"
6
-
3
+ activate :blog do |blog|
4
+ blog.sources = 'blog/:title.html'
5
+ blog.permalink = 'blog/{title}.html'
7
6
  end
@@ -1,8 +1,10 @@
1
- Time.zone = "Pacific Time (US & Canada)"
1
+ # frozen_string_literal: true
2
+
3
+ Time.zone = 'Pacific Time (US & Canada)'
2
4
 
3
5
  activate :blog do |blog|
4
- blog.sources = "blog/:year-:month-:day-:title.html"
5
- blog.permalink = "blog/:year-:month-:day-:title.html"
6
+ blog.sources = 'blog/:year-:month-:day-:title.html'
7
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
6
8
  blog.calendar_template = 'calendar.html'
7
9
  end
8
10
 
@@ -1,7 +1,9 @@
1
- Time.zone = "Pacific Time (US & Canada)"
1
+ # frozen_string_literal: true
2
+
3
+ Time.zone = 'Pacific Time (US & Canada)'
2
4
 
3
5
  activate :blog do |blog|
4
- blog.sources = "blog/:year-:month-:day-:title.html"
5
- blog.permalink = "blog/:year-:month-:day-:title.html"
6
- blog.calendar_template = blog.tag_template = "archive.html"
6
+ blog.sources = 'blog/:year-:month-:day-:title.html'
7
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
8
+ blog.calendar_template = blog.tag_template = 'archive.html'
7
9
  end
@@ -1,11 +1,11 @@
1
- Time.zone = "Pacific Time (US & Canada)"
1
+ # frozen_string_literal: true
2
2
 
3
- activate :blog do | blog |
4
-
5
- blog.sources = "blog/:year-:month-:day-:title.html"
6
- blog.permalink = "blog/:year-:month-:day-:title.html"
7
- blog.calendar_template = 'calendar.html'
3
+ Time.zone = 'Pacific Time (US & Canada)'
8
4
 
5
+ activate :blog do |blog|
6
+ blog.sources = 'blog/:year-:month-:day-:title.html'
7
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
8
+ blog.calendar_template = 'calendar.html'
9
9
  end
10
10
 
11
11
  activate :directory_indexes
@@ -1,11 +1,11 @@
1
- Time.zone = "Pacific Time (US & Canada)"
1
+ # frozen_string_literal: true
2
2
 
3
- activate :blog do | blog |
4
-
5
- blog.sources = "blog/:year-:month-:day-:title.html"
6
- blog.permalink = "blog/:year-:month-:day-:title.html"
7
- blog.calendar_template = 'calendar.html'
8
- blog.generate_month_pages = false
9
- blog.generate_day_pages = false
3
+ Time.zone = 'Pacific Time (US & Canada)'
10
4
 
5
+ activate :blog do |blog|
6
+ blog.sources = 'blog/:year-:month-:day-:title.html'
7
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
8
+ blog.calendar_template = 'calendar.html'
9
+ blog.generate_month_pages = false
10
+ blog.generate_day_pages = false
11
11
  end
@@ -1,9 +1,9 @@
1
- Time.zone = "Pacific Time (US & Canada)"
1
+ # frozen_string_literal: true
2
2
 
3
- activate :blog do | blog |
4
-
5
- blog.sources = "blog/:year-:month-:day-:title.html"
6
- blog.permalink = "blog/:year-:month-:day-:title.html"
7
- blog.calendar_template = 'calendar.html'
3
+ Time.zone = 'Pacific Time (US & Canada)'
8
4
 
5
+ activate :blog do |blog|
6
+ blog.sources = 'blog/:year-:month-:day-:title.html'
7
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
8
+ blog.calendar_template = 'calendar.html'
9
9
  end
@@ -1,17 +1,19 @@
1
- Time.zone = "Pacific Time (US & Canada)"
1
+ # frozen_string_literal: true
2
+
3
+ Time.zone = 'Pacific Time (US & Canada)'
2
4
 
3
5
  activate :blog do |blog|
4
- blog.name = "blog_name_1"
5
- blog.prefix = "blog1"
6
- blog.sources = ":year-:month-:day-:title.html"
7
- blog.permalink = ":year-:month-:day-:title.html"
8
- blog.calendar_template = "calendar1.html"
6
+ blog.name = 'blog_name_1'
7
+ blog.prefix = 'blog1'
8
+ blog.sources = ':year-:month-:day-:title.html'
9
+ blog.permalink = ':year-:month-:day-:title.html'
10
+ blog.calendar_template = 'calendar1.html'
9
11
  end
10
12
 
11
13
  activate :blog do |blog|
12
- blog.name = "blog_name_2"
13
- blog.prefix = "blog2"
14
- blog.sources = ":year-:month-:day-:title.html"
15
- blog.permalink = ":year-:month-:day-:title.html"
16
- blog.calendar_template = "calendar2.html"
17
- end
14
+ blog.name = 'blog_name_2'
15
+ blog.prefix = 'blog2'
16
+ blog.sources = ':year-:month-:day-:title.html'
17
+ blog.permalink = ':year-:month-:day-:title.html'
18
+ blog.calendar_template = 'calendar2.html'
19
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  activate :blog do |blog|
2
4
  blog.new_article_template = 'my_custom_article.tt'
3
5
  end
@@ -1,13 +1,15 @@
1
- require "middleman-blog"
1
+ # frozen_string_literal: true
2
+
3
+ require 'middleman-blog'
2
4
  activate :blog do |blog|
3
- blog.prefix = "blog/"
4
- blog.sources = ":year-:month-:day-:title.html"
5
- blog.permalink = ":year-:month-:day-:title.html"
5
+ blog.prefix = 'blog/'
6
+ blog.sources = ':year-:month-:day-:title.html'
7
+ blog.permalink = ':year-:month-:day-:title.html'
6
8
 
7
9
  blog.custom_collections = {
8
- :category => {
9
- :link => '/categories/:category.html',
10
- :template => '/category.html'
10
+ category: {
11
+ link: '/categories/:category.html',
12
+ template: '/category.html'
11
13
  }
12
14
  }
13
15
  end
@@ -1,11 +1,13 @@
1
- require "middleman-blog"
1
+ # frozen_string_literal: true
2
+
3
+ require 'middleman-blog'
2
4
  activate :blog do |blog|
3
- blog.sources = "blog/:year-:month-:day-:title.html"
4
- blog.permalink = "blog/:year-:month-:day-:title.html"
5
+ blog.sources = 'blog/:year-:month-:day-:title.html'
6
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
5
7
  blog.custom_collections = {
6
- :category => {
7
- :link => '/categories/:category.html',
8
- :template => '/category.html'
8
+ category: {
9
+ link: '/categories/:category.html',
10
+ template: '/category.html'
9
11
  }
10
12
  }
11
13
  end
@@ -1,12 +1,14 @@
1
- require "middleman-blog"
1
+ # frozen_string_literal: true
2
+
3
+ require 'middleman-blog'
2
4
  activate :blog do |blog|
3
- blog.sources = "blog/:year-:month-:day-:title.html"
4
- blog.permalink = "blog/:year-:month-:day-:title.html"
5
+ blog.sources = 'blog/:year-:month-:day-:title.html'
6
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
5
7
 
6
8
  blog.custom_collections = {
7
- :category => {
8
- :link => '/categories/:category.html',
9
- :template => '/category.html'
9
+ category: {
10
+ link: '/categories/:category.html',
11
+ template: '/category.html'
10
12
  }
11
13
  }
12
14
  end
@@ -1,27 +1,29 @@
1
+ # frozen_string_literal: true
2
+
1
3
  activate :blog do |blog|
2
- blog.name = "blog_name_1"
3
- blog.prefix = "blog1"
4
- blog.sources = ":year-:month-:day-:title.html"
5
- blog.permalink = ":year-:month-:day-:title.html"
4
+ blog.name = 'blog_name_1'
5
+ blog.prefix = 'blog1'
6
+ blog.sources = ':year-:month-:day-:title.html'
7
+ blog.permalink = ':year-:month-:day-:title.html'
6
8
 
7
9
  blog.custom_collections = {
8
- :category => {
9
- :link => 'categories/:category.html',
10
- :template => 'category1.html'
10
+ category: {
11
+ link: 'categories/:category.html',
12
+ template: 'category1.html'
11
13
  }
12
14
  }
13
15
  end
14
16
 
15
17
  activate :blog do |blog|
16
- blog.name = "blog_name_2"
17
- blog.prefix = "blog2"
18
- blog.sources = ":year-:month-:day-:title.html"
19
- blog.permalink = ":year-:month-:day-:title.html"
18
+ blog.name = 'blog_name_2'
19
+ blog.prefix = 'blog2'
20
+ blog.sources = ':year-:month-:day-:title.html'
21
+ blog.permalink = ':year-:month-:day-:title.html'
20
22
 
21
23
  blog.custom_collections = {
22
- :category => {
23
- :link => 'categories/:category.html',
24
- :template => 'category2.html'
24
+ category: {
25
+ link: 'categories/:category.html',
26
+ template: 'category2.html'
25
27
  }
26
28
  }
27
29
  end
@@ -1,11 +1,13 @@
1
+ # frozen_string_literal: true
2
+
1
3
  activate :blog do |blog|
2
- blog.sources = ":category/:year-:month-:day-:title.html"
3
- blog.permalink = "blog/:year-:month-:day-:title.html"
4
+ blog.sources = ':category/:year-:month-:day-:title.html'
5
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
4
6
 
5
7
  blog.custom_collections = {
6
- :category => {
7
- :link => '/categories/:category.html',
8
- :template => '/category.html'
8
+ category: {
9
+ link: '/categories/:category.html',
10
+ template: '/category.html'
9
11
  }
10
12
  }
11
13
  end
@@ -1,7 +1,9 @@
1
- require "middleman-blog"
1
+ # frozen_string_literal: true
2
+
3
+ require 'middleman-blog'
2
4
  activate :blog do |blog|
3
- blog.sources = "blog/:year-:month-:day-:title.html"
4
- blog.permalink = "blog/:category/:title.html"
5
+ blog.sources = 'blog/:year-:month-:day-:title.html'
6
+ blog.permalink = 'blog/:category/:title.html'
5
7
  end
6
8
 
7
9
  activate :directory_indexes
@@ -1,5 +1,7 @@
1
- require "middleman-blog"
1
+ # frozen_string_literal: true
2
+
3
+ require 'middleman-blog'
2
4
  activate :blog do |blog|
3
- blog.sources = "blog/:year-:month-:day-:title.html"
4
- blog.permalink = "blog/:category/:title.html"
5
+ blog.sources = 'blog/:year-:month-:day-:title.html'
6
+ blog.permalink = 'blog/:category/:title.html'
5
7
  end
@@ -1,3 +1,5 @@
1
- Time.zone = "Pacific Time (US & Canada)"
1
+ # frozen_string_literal: true
2
+
3
+ Time.zone = 'Pacific Time (US & Canada)'
2
4
 
3
5
  activate :blog
@@ -1,5 +1,7 @@
1
- Time.zone = "Pacific Time (US & Canada)"
1
+ # frozen_string_literal: true
2
+
3
+ Time.zone = 'Pacific Time (US & Canada)'
2
4
 
3
5
  activate :blog do |blog|
4
- blog.sources = "blog/:year-:month-:day-:title.html"
6
+ blog.sources = 'blog/:year-:month-:day-:title.html'
5
7
  end
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  activate :blog do |blog|
2
- blog.sources = ":year/:month/:day/:title.html"
4
+ blog.sources = ':year/:month/:day/:title.html'
3
5
  end
4
6
 
5
- activate :directory_indexes
7
+ activate :directory_indexes
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  activate :i18n
2
4
 
3
5
  activate :blog do |blog|
4
- blog.sources = "blog/{year}-{month}-{day}-{title}.{lang}.html"
5
- blog.permalink = "{lang}/{title}.html"
6
+ blog.sources = 'blog/{year}-{month}-{day}-{title}.{lang}.html'
7
+ blog.permalink = '{lang}/{title}.html'
6
8
  end
@@ -1,2 +1,4 @@
1
- activate :i18n
1
+ # frozen_string_literal: true
2
+
3
+ activate :i18n
2
4
  activate :blog
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  activate :blog do |blog|
2
- blog.sources = ":year/:month/:day/:title.html"
4
+ blog.sources = ':year/:month/:day/:title.html'
3
5
  end
@@ -1,19 +1,19 @@
1
- activate :blog do | blog |
1
+ # frozen_string_literal: true
2
2
 
3
- blog.sources = "blog/:year-:month-:day-:title.html"
4
- blog.permalink = "blog/:year-:month-:day-:title.html"
5
- blog.calendar_template = 'calendar.html'
6
- blog.tag_template = 'tag.html'
7
- blog.paginate = true
8
- blog.per_page = 5
3
+ activate :blog do |blog|
4
+ blog.sources = 'blog/:year-:month-:day-:title.html'
5
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
6
+ blog.calendar_template = 'calendar.html'
7
+ blog.tag_template = 'tag.html'
8
+ blog.paginate = true
9
+ blog.per_page = 5
9
10
 
10
- blog.custom_collections = {
11
- :category => {
12
- :link => '/categories/:category.html',
13
- :template => '/category.html'
14
- }
11
+ blog.custom_collections = {
12
+ category: {
13
+ link: '/categories/:category.html',
14
+ template: '/category.html'
15
15
  }
16
-
16
+ }
17
17
  end
18
18
 
19
19
  activate :directory_indexes
@@ -1,17 +1,17 @@
1
- activate :blog do | blog |
1
+ # frozen_string_literal: true
2
2
 
3
- blog.sources = "blog/:year-:month-:day-:title.html"
4
- blog.permalink = "blog/:year-:month-:day-:title.html"
5
- blog.calendar_template = 'calendar.html'
6
- blog.tag_template = 'tag.html'
7
- #blog.paginate = true
8
- blog.per_page = 5
3
+ activate :blog do |blog|
4
+ blog.sources = 'blog/:year-:month-:day-:title.html'
5
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
6
+ blog.calendar_template = 'calendar.html'
7
+ blog.tag_template = 'tag.html'
8
+ # blog.paginate = true
9
+ blog.per_page = 5
9
10
 
10
- blog.custom_collections = {
11
- :category => {
12
- :link => '/categories/:category.html',
13
- :template => '/category.html'
14
- }
11
+ blog.custom_collections = {
12
+ category: {
13
+ link: '/categories/:category.html',
14
+ template: '/category.html'
15
15
  }
16
-
16
+ }
17
17
  end
@@ -1,18 +1,18 @@
1
- activate :blog do | blog |
1
+ # frozen_string_literal: true
2
2
 
3
- blog.sources = "blog/:year-:month-:day-:title.html"
4
- blog.permalink = "blog/:year-:month-:day-:title.html"
5
- blog.calendar_template = 'calendar.html'
6
- blog.tag_template = 'tag.html'
7
- blog.paginate = true
8
- blog.per_page = 5
3
+ activate :blog do |blog|
4
+ blog.sources = 'blog/:year-:month-:day-:title.html'
5
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
6
+ blog.calendar_template = 'calendar.html'
7
+ blog.tag_template = 'tag.html'
8
+ blog.paginate = true
9
+ blog.per_page = 5
9
10
 
10
- blog.custom_collections = {
11
+ blog.custom_collections = {
11
12
 
12
- :category => {
13
- :link => '/categories/:category.html',
14
- :template => '/category.html'
15
- }
13
+ category: {
14
+ link: '/categories/:category.html',
15
+ template: '/category.html'
16
16
  }
17
-
17
+ }
18
18
  end
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  activate :blog do |blog|
2
- blog.name = "blog_name_1"
3
- blog.prefix = "blog1"
4
- blog.sources = ":year-:month-:day-:title.html"
5
- blog.permalink = ":year-:month-:day-:title.html"
4
+ blog.name = 'blog_name_1'
5
+ blog.prefix = 'blog1'
6
+ blog.sources = ':year-:month-:day-:title.html'
7
+ blog.permalink = ':year-:month-:day-:title.html'
6
8
  blog.calendar_template = 'calendar1.html'
7
9
  blog.tag_template = 'tag1.html'
8
10
  blog.paginate = true
@@ -10,10 +12,10 @@ activate :blog do |blog|
10
12
  end
11
13
 
12
14
  activate :blog do |blog2|
13
- blog2.name = "blog_name_2"
14
- blog2.prefix = "blog2"
15
- blog2.sources = ":year-:month-:day-:title.html"
16
- blog2.permalink = ":year-:month-:day-:title.html"
15
+ blog2.name = 'blog_name_2'
16
+ blog2.prefix = 'blog2'
17
+ blog2.sources = ':year-:month-:day-:title.html'
18
+ blog2.permalink = ':year-:month-:day-:title.html'
17
19
  blog2.calendar_template = 'calendar2.html'
18
20
  blog2.tag_template = 'tag2.html'
19
21
  blog2.paginate = true
@@ -21,11 +23,11 @@ activate :blog do |blog2|
21
23
  end
22
24
 
23
25
  activate :blog do |blog3|
24
- blog3.name = "blog_name_3"
25
- blog3.prefix = "blog3"
26
- blog3.sources = ":year-:month-:day-:title.html"
27
- blog3.permalink = ":year-:month-:day-:title.html"
26
+ blog3.name = 'blog_name_3'
27
+ blog3.prefix = 'blog3'
28
+ blog3.sources = ':year-:month-:day-:title.html'
29
+ blog3.permalink = ':year-:month-:day-:title.html'
28
30
  blog3.calendar_template = 'calendar3.html'
29
31
  blog3.tag_template = 'tag3.html'
30
32
  blog3.paginate = false
31
- end
33
+ end
@@ -1,7 +1,6 @@
1
+ # frozen_string_literal: true
1
2
 
2
- activate :blog do | blog |
3
-
4
- blog.sources = ":category/:year-:month-:day-:title.html"
5
- blog.permalink = ":category/:custom-:year-:month-:day-:title.html"
6
-
3
+ activate :blog do |blog|
4
+ blog.sources = ':category/:year-:month-:day-:title.html'
5
+ blog.permalink = ':category/:custom-:year-:month-:day-:title.html'
7
6
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  activate :blog do |blog|
2
- blog.sources = ":year/:month/:day/:title.html"
3
- end
4
+ blog.sources = ':year/:month/:day/:title.html'
5
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  activate :blog do |blog|
2
- blog.sources = "blog/:year-:month-:day-:title.html"
3
- end
4
+ blog.sources = 'blog/:year-:month-:day-:title.html'
5
+ end
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  activate :blog
@@ -1,9 +1,11 @@
1
- require "middleman-blog"
1
+ # frozen_string_literal: true
2
2
 
3
- activate :blog do | blog |
4
- blog.sources = "blog/:year-:month-:day-:title.html"
5
- blog.permalink = "blog/:year-:month-:day-:title.html"
6
- blog.tag_template = "/tag.html"
3
+ require 'middleman-blog'
4
+
5
+ activate :blog do |blog|
6
+ blog.sources = 'blog/:year-:month-:day-:title.html'
7
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
8
+ blog.tag_template = '/tag.html'
7
9
  end
8
10
 
9
11
  activate :directory_indexes
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'middleman-blog'
2
4
 
3
5
  activate :blog do |blog|
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'middleman-blog'
2
4
 
3
5
  activate :blog do |blog|
@@ -1,7 +1,9 @@
1
- require "middleman-blog"
1
+ # frozen_string_literal: true
2
2
 
3
- activate :blog do | blog |
4
- blog.sources = "blog/:year-:month-:day-:title.html"
5
- blog.permalink = "blog/:year-:month-:day-:title.html"
6
- blog.tag_template = "/tag.html"
3
+ require 'middleman-blog'
4
+
5
+ activate :blog do |blog|
6
+ blog.sources = 'blog/:year-:month-:day-:title.html'
7
+ blog.permalink = 'blog/:year-:month-:day-:title.html'
8
+ blog.tag_template = '/tag.html'
7
9
  end
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: "Newer Article"
3
3
  date: 2011-01-01
4
- tags: foo, bar
4
+ tags: foo, bar, 日本語
5
5
  ---
6
6
 
7
7
  Newer Article Content
@@ -4,6 +4,7 @@ date: 2011-01-02
4
4
  tags:
5
5
  - foo
6
6
  - 120
7
+ - 日本語
7
8
  ---
8
9
 
9
10
  Another Article Content