better-minima 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/_layouts/home.html CHANGED
@@ -1,77 +1,77 @@
1
- ---
2
- layout: html_scaffold
3
- ---
4
-
5
- <main class="landing-page" aria-label="Content">
6
-
7
- {%- include landing.html -%}
8
-
9
- <div class="wrapper home-wrapper">
10
-
11
- {% assign featured_posts = site.posts | where: "featured",true %}
12
- {%- if featured_posts.size > 0 -%}
13
- <!-- Add Featured Posts here -->
14
- <div class="featuredposts-container">
15
- <h1>Featured</h1>
16
-
17
- <ul class="post-list">
18
- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
19
- {%- for post in featured_posts limit: site.recent_posts_count -%}
20
- <li>
21
- <span class="post-meta">{{ post.date | date: date_format }}</span>
22
- <h3>
23
- <a class="post-link" href="{{ post.url | relative_url }}">
24
- {{ post.title | escape }}
25
- </a>
26
- </h3>
27
- {%- if site.show_excerpts -%}
28
- {{ post.excerpt }}
29
- {%- endif -%}
30
- </li>
31
- {%- endfor -%}
32
- </ul>
33
-
34
- </div>
35
- {%- endif -%}
36
-
37
- {%- if site.posts.size > 0 -%}
38
- <!-- Add Recent Posts here -->
39
- <div class="recentposts-container">
40
- <h1>Recent Posts</h1>
41
-
42
- <ul class="post-list">
43
- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
44
-
45
- {% if site.recent_posts_count %}
46
- {% assign posts_count = site.recent_posts_count %}
47
- {% else %}
48
- {% assign posts_count = 10 %}
49
- {% endif %}
50
-
51
- {%- for post in site.posts limit: site.recent_posts_count -%}
52
- <li>
53
- <span class="post-meta">{{ post.date | date: date_format }}</span>
54
- <h3>
55
- <a class="post-link" href="{{ post.url | relative_url }}">
56
- {{ post.title | escape }}
57
- </a>
58
- </h3>
59
- {%- if site.show_excerpts -%}
60
- {{ post.excerpt }}
61
- {%- endif -%}
62
- </li>
63
- {%- endfor -%}
64
- </ul>
65
-
66
- {% if site.paginate_root_path %}
67
- <a href="{{ site.paginate_root_path | relative_url }}">
68
- View all posts
69
- </a>
70
- {% endif %}
71
-
72
- </div>
73
- {%- endif -%}
74
-
75
- </div>
76
-
1
+ ---
2
+ layout: html_scaffold
3
+ ---
4
+
5
+ <main class="landing-page" aria-label="Content">
6
+
7
+ {%- include landing.html -%}
8
+
9
+ <div class="wrapper home-wrapper">
10
+
11
+ {% assign featured_posts = site.posts | where: "featured",true %}
12
+ {%- if featured_posts.size > 0 -%}
13
+ <!-- Add Featured Posts here -->
14
+ <div class="featuredposts-container">
15
+ <h1>Featured</h1>
16
+
17
+ <ul class="post-list">
18
+ {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
19
+ {%- for post in featured_posts limit: site.recent_posts_count -%}
20
+ <li>
21
+ <span class="post-meta">{{ post.date | date: date_format }}</span>
22
+ <h3>
23
+ <a class="post-link" href="{{ post.url | relative_url }}">
24
+ {{ post.title | escape }}
25
+ </a>
26
+ </h3>
27
+ {%- if site.show_excerpts -%}
28
+ {{ post.excerpt }}
29
+ {%- endif -%}
30
+ </li>
31
+ {%- endfor -%}
32
+ </ul>
33
+
34
+ </div>
35
+ {%- endif -%}
36
+
37
+ {%- if site.posts.size > 0 -%}
38
+ <!-- Add Recent Posts here -->
39
+ <div class="recentposts-container">
40
+ <h1>Recent Posts</h1>
41
+
42
+ <ul class="post-list">
43
+ {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
44
+
45
+ {% if site.recent_posts_count %}
46
+ {% assign posts_count = site.recent_posts_count %}
47
+ {% else %}
48
+ {% assign posts_count = 10 %}
49
+ {% endif %}
50
+
51
+ {%- for post in site.posts limit: site.recent_posts_count -%}
52
+ <li>
53
+ <span class="post-meta">{{ post.date | date: date_format }}</span>
54
+ <h3>
55
+ <a class="post-link" href="{{ post.url | relative_url }}">
56
+ {{ post.title | escape }}
57
+ </a>
58
+ </h3>
59
+ {%- if site.show_excerpts -%}
60
+ {{ post.excerpt }}
61
+ {%- endif -%}
62
+ </li>
63
+ {%- endfor -%}
64
+ </ul>
65
+
66
+ {% if site.paginate_root_path %}
67
+ <a href="{{ site.paginate_root_path | relative_url }}">
68
+ View all posts
69
+ </a>
70
+ {% endif %}
71
+
72
+ </div>
73
+ {%- endif -%}
74
+
75
+ </div>
76
+
77
77
  </main>
@@ -1,14 +1,14 @@
1
-
2
- <!DOCTYPE html>
3
- <html lang="{{ page.lang | default: site.lang | default: "en" }}">
4
-
5
- {%- include head.html -%}
6
-
7
- <body>
8
-
9
- {{ content }}
10
-
11
- {%- include footer.html -%}
12
- </body>
13
-
1
+
2
+ <!DOCTYPE html>
3
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
4
+
5
+ {%- include head.html -%}
6
+
7
+ <body>
8
+
9
+ {{ content }}
10
+
11
+ {%- include footer.html -%}
12
+ </body>
13
+
14
14
  </html>
data/_layouts/page.html CHANGED
@@ -1,14 +1,14 @@
1
- ---
2
- layout: default
3
- ---
4
- <article class="post">
5
-
6
- <header class="post-header">
7
- <h1 class="post-title">{{ page.title | escape }}</h1>
8
- </header>
9
-
10
- <div class="post-content">
11
- {{ content }}
12
- </div>
13
-
14
- </article>
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title | escape }}</h1>
8
+ </header>
9
+
10
+ <div class="post-content">
11
+ {{ content }}
12
+ </div>
13
+
14
+ </article>
data/_layouts/post.html CHANGED
@@ -1,38 +1,38 @@
1
- ---
2
- layout: default
3
- ---
4
- <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5
-
6
- <header class="post-header">
7
- <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
- <p class="post-meta">
9
- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
10
- <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11
- {{ page.date | date: date_format }}
12
- </time>
13
- {%- if page.modified_date -%}
14
- ~
15
- {%- assign mdate = page.modified_date | date_to_xmlschema -%}
16
- <time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
17
- {{ mdate | date: date_format }}
18
- </time>
19
- {%- endif -%}
20
- {%- if page.author -%}
21
- • {% for author in page.author %}
22
- <span itemprop="author" itemscope itemtype="http://schema.org/Person">
23
- <span class="p-author h-card" itemprop="name">{{ author }}</span></span>
24
- {%- if forloop.last == false %}, {% endif -%}
25
- {% endfor %}
26
- {%- endif -%}</p>
27
- </header>
28
-
29
- <div class="post-content e-content" itemprop="articleBody">
30
- {{ content }}
31
- </div>
32
-
33
- {%- if site.disqus.shortname -%}
34
- {%- include disqus_comments.html -%}
35
- {%- endif -%}
36
-
37
- <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
38
- </article>
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
+ <p class="post-meta">
9
+ {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
10
+ <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11
+ {{ page.date | date: date_format }}
12
+ </time>
13
+ {%- if page.modified_date -%}
14
+ ~
15
+ {%- assign mdate = page.modified_date | date_to_xmlschema -%}
16
+ <time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
17
+ {{ mdate | date: date_format }}
18
+ </time>
19
+ {%- endif -%}
20
+ {%- if page.author -%}
21
+ • {% for author in page.author %}
22
+ <span itemprop="author" itemscope itemtype="http://schema.org/Person">
23
+ <span class="p-author h-card" itemprop="name">{{ author }}</span></span>
24
+ {%- if forloop.last == false %}, {% endif -%}
25
+ {% endfor %}
26
+ {%- endif -%}</p>
27
+ </header>
28
+
29
+ <div class="post-content e-content" itemprop="articleBody">
30
+ {{ content }}
31
+ </div>
32
+
33
+ {%- if site.disqus.shortname -%}
34
+ {%- include disqus_comments.html -%}
35
+ {%- endif -%}
36
+
37
+ <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
38
+ </article>