middleman-blog 4.0.3 → 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 (89) hide show
  1. checksums.yaml +4 -4
  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 +15 -24
  6. data/README.md +20 -30
  7. data/Rakefile +8 -14
  8. data/features/support/env.rb +2 -0
  9. data/features/support/time_steps.rb +9 -7
  10. data/features/tags.feature +4 -0
  11. data/fixtures/article-dirs-app/config-directory-indexes.rb +2 -0
  12. data/fixtures/article-dirs-app/config-permalink-with-dot.rb +2 -0
  13. data/fixtures/article-dirs-app/config.rb +2 -0
  14. data/fixtures/blog-sources-app/config.rb +2 -0
  15. data/fixtures/blog-sources-no-date-app/config.rb +2 -0
  16. data/fixtures/blog-sources-no-day-app/config.rb +2 -0
  17. data/fixtures/blog-sources-no-title-app/config.rb +2 -0
  18. data/fixtures/blog-sources-subdirs-app/config.rb +2 -0
  19. data/fixtures/calendar-and-tag-app/config-directory-indexes.rb +2 -0
  20. data/fixtures/calendar-and-tag-app/config.rb +2 -0
  21. data/fixtures/calendar-app/config-directory-indexes.rb +2 -0
  22. data/fixtures/calendar-app/config-only-year.rb +2 -0
  23. data/fixtures/calendar-app/config.rb +2 -0
  24. data/fixtures/calendar-multiblog-app/config.rb +2 -0
  25. data/fixtures/custom-article-template-app/config.rb +2 -0
  26. data/fixtures/custom-collections-app/config-blog-prefix.rb +2 -0
  27. data/fixtures/custom-collections-app/config-directory-indexes.rb +2 -0
  28. data/fixtures/custom-collections-app/config.rb +2 -0
  29. data/fixtures/custom-collections-multiblog-app/config.rb +2 -0
  30. data/fixtures/custom-collections-sources-app/config.rb +2 -0
  31. data/fixtures/custom-permalinks-app/config-directory-indexes.rb +2 -0
  32. data/fixtures/custom-permalinks-app/config.rb +2 -0
  33. data/fixtures/filename-date-app/config.rb +2 -0
  34. data/fixtures/future-date-app/config.rb +2 -0
  35. data/fixtures/indexes-app/config.rb +2 -0
  36. data/fixtures/lang-path-app/config.rb +2 -0
  37. data/fixtures/language-app/config.rb +3 -1
  38. data/fixtures/layouts-app/config.rb +2 -0
  39. data/fixtures/paginate-app/config-directory-indexes.rb +2 -0
  40. data/fixtures/paginate-app/config-paginate-off.rb +2 -0
  41. data/fixtures/paginate-app/config.rb +2 -0
  42. data/fixtures/paginate-multiblog-app/config.rb +2 -0
  43. data/fixtures/permalink-app/config.rb +2 -0
  44. data/fixtures/preview-app/config.rb +2 -0
  45. data/fixtures/published-app/config.rb +2 -0
  46. data/fixtures/summary-app/config.rb +2 -0
  47. data/fixtures/tags-app/config-directory-indexes.rb +2 -0
  48. data/fixtures/tags-app/config-filters.rb +2 -0
  49. data/fixtures/tags-app/config-no-tags.rb +2 -0
  50. data/fixtures/tags-app/config.rb +2 -0
  51. data/fixtures/tags-app/source/blog/2011-01-01-new-article.html.markdown +1 -1
  52. data/fixtures/tags-app/source/blog/2011-01-02-another-article.html.markdown +1 -0
  53. data/fixtures/tags-multiblog-app/config.rb +2 -0
  54. data/fixtures/time-zone-app/config.rb +2 -0
  55. data/lib/middleman-blog/blog_article.rb +6 -7
  56. data/lib/middleman-blog/blog_data.rb +3 -7
  57. data/lib/middleman-blog/calendar_pages.rb +8 -6
  58. data/lib/middleman-blog/commands/article.rb +7 -5
  59. data/lib/middleman-blog/commands/article.tt +2 -2
  60. data/lib/middleman-blog/custom_pages.rb +2 -0
  61. data/lib/middleman-blog/extension.rb +16 -12
  62. data/lib/middleman-blog/helpers.rb +4 -2
  63. data/lib/middleman-blog/paginator.rb +3 -1
  64. data/lib/middleman-blog/tag_pages.rb +2 -0
  65. data/lib/middleman-blog/truncate_html.rb +7 -5
  66. data/lib/middleman-blog/uri_templates.rb +8 -2
  67. data/lib/middleman-blog/version.rb +3 -1
  68. data/lib/middleman-blog.rb +2 -0
  69. data/lib/middleman_extension.rb +2 -0
  70. data/middleman-blog.gemspec +15 -22
  71. data/spec/spec_helper.rb +3 -1
  72. data/spec/uri_templates_spec.rb +2 -0
  73. metadata +11 -34
  74. data/.rubocop.yml +0 -69
  75. data/.travis.yml +0 -30
  76. data/Gemfile-4.x +0 -38
  77. data/fixtures/default-template-app/Gemfile +0 -6
  78. data/fixtures/default-template-app/config.rb +0 -35
  79. data/fixtures/default-template-app/source/2013-04-01-new-article.html.markdown +0 -25
  80. data/fixtures/default-template-app/source/about-me.html.erb +0 -0
  81. data/fixtures/default-template-app/source/archives.html.erb +0 -10
  82. data/fixtures/default-template-app/source/index.html.erb +0 -11
  83. data/fixtures/default-template-app/source/javascripts/_zepto.pjax.js +0 -744
  84. data/fixtures/default-template-app/source/javascripts/app.js +0 -11
  85. data/fixtures/default-template-app/source/javascripts/modernizr.js +0 -1
  86. data/fixtures/default-template-app/source/layouts/layout.erb +0 -62
  87. data/fixtures/default-template-app/source/stylesheets/app.css.scss +0 -109
  88. /data/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
  89. /data/{ISSUE_TEMPLATE.md → .github/ISSUE_TEMPLATE.md} +0 -0
@@ -1,11 +0,0 @@
1
- /*
2
- =require vendor/zepto
3
- =require foundation/foundation
4
- =require foundation/foundation.section
5
- =require foundation/foundation.tooltips
6
- =require foundation/foundation.topbar
7
- =require _zepto.pjax
8
- */
9
-
10
- $(document).foundation();
11
- $(document).pjax('a', '#container', { fragment: '#container' });
@@ -1 +0,0 @@
1
- //= require "vendor/custom.modernizr"
@@ -1,62 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
3
- <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
4
- <head>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width">
7
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
- <title><%= page_title %></title>
9
- <%= javascript_include_tag :modernizr %>
10
- <%= stylesheet_link_tag :app %>
11
- </head>
12
- <body>
13
- <div class="contain-to-grid">
14
- <nav class="top-bar">
15
- <ul class="title-area">
16
- <li class="name">
17
- <h1><%= link_to_with_active top_nav_title[:title], top_nav_title[:target] %></h1>
18
- </li>
19
- <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
20
- </ul>
21
-
22
- <section class="top-bar-section">
23
- <ul class="left">
24
- <% top_nav_items.each do |item| %>
25
- <li><%= link_to_with_active item[:title], item[:target] %></li>
26
- <% end %>
27
- </ul>
28
- </section>
29
- </nav>
30
- </div>
31
-
32
- <header>
33
- <div class="row">
34
- <div class="large-12 columns">
35
- <div class="bar large-2 columns large-centered hide-for-small"></div>
36
- <h1><%= blog_name %> <small>by <%= blog_author %></small></h1>
37
- </div>
38
- </div>
39
- </header>
40
-
41
- <div id="container">
42
- <% if is_blog_article? %>
43
- <article class="row">
44
- <div class="large-12 columns">
45
- <time class="updated"><%= current_article.date.strftime('%b %e %Y') %></time>
46
- <h1 class="entry-title">
47
- <%= current_article.title %>
48
- </h1>
49
-
50
- <div class="entry-content">
51
- <%= yield %>
52
- </div>
53
- </div>
54
- </article>
55
- <% else %>
56
- <%= yield %>
57
- <% end %>
58
- </div>
59
-
60
- <%= javascript_include_tag :app %>
61
- </body>
62
- </html>
@@ -1,109 +0,0 @@
1
- @import "normalize";
2
- @import url(http://fonts.googleapis.com/css?family=Lato:400,700,900,400italic,700italic);
3
-
4
- // Make sure the charset is set appropriately
5
- @charset "UTF-8";
6
-
7
- // This includes all of the foundation global elements that are needed to work with any of the other files.
8
- @import "foundation/variables";
9
-
10
- $topbar-bg: #262626;
11
- $topbar-height: 35px;
12
- $topbar-margin-bottom: 0;
13
- $topbar-breakpoint: emCalc(767px);
14
-
15
- $topbar-title-font-size: emCalc(12px);
16
- $topbar-link-color: #999999;
17
- $topbar-link-font-size: emCalc(12px);
18
-
19
- $body-font-color: #444;
20
- $body-font-family: "Lato", sans-serif;
21
-
22
- $row-width: emCalc(768px);
23
-
24
- // Foundation Components
25
- @import
26
- "foundation/components/global",
27
- "foundation/components/grid",
28
- "foundation/components/visibility",
29
- "foundation/components/block-grid",
30
- "foundation/components/type",
31
- "foundation/components/buttons",
32
- "foundation/components/forms",
33
- "foundation/components/custom-forms",
34
- "foundation/components/button-groups",
35
- "foundation/components/dropdown-buttons",
36
- "foundation/components/split-buttons",
37
- "foundation/components/flex-video",
38
- "foundation/components/section",
39
- "foundation/components/top-bar",
40
- "foundation/components/orbit",
41
- "foundation/components/reveal",
42
- "foundation/components/joyride",
43
- "foundation/components/clearing",
44
- "foundation/components/alert-boxes",
45
- "foundation/components/breadcrumbs",
46
- "foundation/components/keystrokes",
47
- "foundation/components/labels",
48
- "foundation/components/inline-lists",
49
- "foundation/components/pagination",
50
- "foundation/components/panels",
51
- "foundation/components/pricing-tables",
52
- "foundation/components/progress-bars",
53
- "foundation/components/side-nav",
54
- "foundation/components/sub-nav",
55
- "foundation/components/switch",
56
- "foundation/components/magellan",
57
- "foundation/components/tables",
58
- "foundation/components/thumbs",
59
- "foundation/components/tooltips",
60
- "foundation/components/dropdown";
61
-
62
- body {
63
- }
64
-
65
- nav {
66
- -webkit-font-smoothing: antialiased;
67
- }
68
-
69
- header {
70
- background: #333333;
71
-
72
- .row {
73
- padding: emCalc(15px) 0;
74
- @media #{$small} {
75
- padding: emCalc(55px) 0;
76
- }
77
- }
78
-
79
- .bar {
80
- border-top: 2px solid white;
81
- height: 0;
82
- overflow: hidden;
83
- margin-bottom: emCalc(10px);
84
- }
85
-
86
- h1 {
87
- text-align: center;
88
- font-size: emCalc(40px);
89
- @media #{$small} {
90
- font-size: emCalc(60px);
91
- }
92
- line-height: 1em;
93
- font-weight: 900;
94
- color: white;
95
- text-transform: uppercase;
96
- margin: 0 0 10px 0;
97
- -webkit-font-smoothing: antialiased;
98
-
99
- small {
100
- display: block;
101
- margin-top: 10px;
102
- font-size: 14px;
103
- font-weight: 700;
104
- font-style: italic;
105
- color: white;
106
- text-transform: none;
107
- }
108
- }
109
- }
File without changes
File without changes