Skip to content

Commit 80881e3

Browse files
committed
fix _layouts to use site.categories.Mapnik (case-sensitive!)
1 parent 1e3bc9c commit 80881e3

4 files changed

Lines changed: 299 additions & 326 deletions

File tree

_layouts/01_page.html

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
11
<!DOCTYPE html>
22
<html>
3-
4-
<head>
3+
<head>
54
{% include mapnik.meta %}
6-
<title>{{ page.title }}</title>
7-
</head>
8-
9-
<body>
10-
{% include stickynav.html %}
11-
12-
<div class="contain col12 clearfix">
13-
14-
<div class='col8 margin2 stickymove'>
15-
<h3 class='space-bottom2 big'>{{ page.title }}</h3>
16-
17-
<div class='col12 pad4y space-bottom4'>
18-
{{ content }}
19-
</div>
20-
21-
</div>
22-
</div>
23-
24-
{% include footer.html %}
25-
{% include scripts.html %}
26-
27-
</body>
5+
<title>{{ page.title }}</title>
6+
</head>
7+
<body>
8+
{% include stickynav.html %}
9+
<div class="contain col12 clearfix">
10+
<div class='col8 margin2 stickymove'>
11+
<h3 class='space-bottom2 big'>{{ page.title }}</h3>
12+
<div class='col12 pad4y space-bottom4'>
13+
{{ content }}
14+
</div>
15+
</div>
16+
</div>
17+
{% include footer.html %}
18+
{% include scripts.html %}
19+
</body>
2820
</html>
29-
30-

_layouts/01_post.html

Lines changed: 44 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,49 @@
11
<!DOCTYPE html>
22
<html>
33

4-
<head>
4+
<head>
55
{% include mapnik.meta %}
6-
<title>{{ page.title }}</title>
7-
</head>
8-
9-
<body>
10-
{% include stickynav.html %}
11-
{% assign author = site.data.author[page.author] %}
12-
13-
<div class="contain col12 clearfix">
14-
15-
<div class='col2 stickymove pad2x fill-light'>
16-
{% for post in site.categories.mapnik limit:12 %}
17-
{% if post.type != 'install' %}
18-
<a class='block news' href="{{site.baseurl}}{{post.url}}">{{post.title}}</a> <span class='date'>{{post.date | date: "%b %d, %Y" }} | {{post.author}}</span><br>
19-
{% endif %}
20-
{% endfor %}
21-
</div>
22-
23-
<div class='col8 pad4x stickymove'><h3 class='space-bottom2 big'>latest news</h3>
24-
<h1 class='space-bottom2' ><a href="{{site.baseurl}}{{post.url}}">{{ page.title }}</a></h1>
25-
<p>{{ page.date | date: "%b %d, %Y" }}</p>
26-
27-
<div class='col12 pad2y'>
28-
<div class='col6 small'>BY: <span class='pad1x'><img class='dot' src='{{ author[0].image }}' width='30'>
29-
&nbsp;
30-
{% if author[0].github != null %}
31-
<a href='{{ author[0].github }}'>{{ page.author }}</a>
32-
{% else %}
33-
{{ page.author }}
34-
{% endif %}
35-
</div></span>
36-
</div>
37-
38-
<div class='col12 pad4y space-bottom4'>
39-
{{ content }}
40-
</div>
41-
42-
</div>
43-
</div>
44-
45-
{% include footer.html %}
46-
{% include scripts.html %}
47-
48-
</body>
6+
<title>{{ page.title }}</title>
7+
</head>
8+
9+
<body>
10+
{% include stickynav.html %}
11+
{% assign author = site.data.author[page.author] %}
12+
13+
<div class="contain col12 clearfix">
14+
15+
<div class='col2 stickymove pad2x fill-light'>
16+
{% for post in site.categories.Mapnik limit:12 %}
17+
{% if post.type != 'install' %}
18+
<a class='block news' href="{{site.baseurl}}{{post.url}}">{{post.title}}</a> <span class='date'>{{post.date | date: "%b %d, %Y" }} | {{post.author}}</span><br>
19+
{% endif %}
20+
{% endfor %}
21+
</div>
22+
23+
<div class='col8 pad4x stickymove'><h3 class='space-bottom2 big'>latest news</h3>
24+
<h1 class='space-bottom2' ><a href="{{site.baseurl}}{{post.url}}">{{ page.title }}</a></h1>
25+
<p>{{ page.date | date: "%b %d, %Y" }}</p>
26+
27+
<div class='col12 pad2y'>
28+
<div class='col6 small'>BY: <span class='pad1x'><img class='dot' src='{{ author[0].image }}' width='30'>
29+
&nbsp;
30+
{% if author[0].github != null %}
31+
<a href='{{ author[0].github }}'>{{ page.author }}</a>
32+
{% else %}
33+
{{ page.author }}
34+
{% endif %}
35+
</div></span>
36+
</div>
37+
38+
<div class='col12 pad4y space-bottom4'>
39+
{{ content }}
40+
</div>
41+
42+
</div>
43+
</div>
44+
45+
{% include footer.html %}
46+
{% include scripts.html %}
47+
48+
</body>
4949
</html>
50-
51-

_layouts/01_section.html

Lines changed: 34 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,39 @@
11
<!DOCTYPE html>
22
<html>
3-
4-
<head>
3+
<head>
54
{% include mapnik.meta %}
6-
<title>{{ page.title }}</title>
7-
8-
</head>
9-
10-
<body>
11-
12-
{% include stickynav.html %}
13-
14-
<div class="contain col12 clearfix">
15-
<div class='stickymove clearfix fill-light col2 pad2x'>
16-
{% for post in site.categories.mapnik %}
17-
{% if post.type != 'install' %}
18-
<a class='block news' href="{{site.baseurl}}{{post.url}}">{{post.title}}</a> <span class='date'>{{post.date | date: "%b %d, %Y" }} | {{post.author}}</span><br>
19-
{% endif %}
20-
{% endfor %}
5+
<title>{{ page.title }}</title>
6+
</head>
7+
<body>
8+
{% include stickynav.html %}
9+
<div class="contain col12 clearfix">
10+
<div class='stickymove clearfix fill-light col2 pad2x'>
11+
{% for post in site.categories.Mapnik %}
12+
{% if post.type != 'install' %}
13+
<a class='block news' href="{{site.baseurl}}{{post.url}}">{{post.title}}</a> <span class='date'>{{post.date | date: "%b %d, %Y" }} | {{post.author}}</span><br>
14+
{% endif %}
15+
{% endfor %}
16+
</div>
17+
<div class="stickymove clearfix pad4x col6">
18+
<div class=''>
19+
<h3 class='space-bottom2 big'>{{ page.title }}</h3>
20+
{% for post in site.categories.Mapnik limit:12 %}
21+
{% if post.type != 'install' %}
22+
<p><a href="{{site.baseurl}}{{post.url}}">{{post.title}}</a><br>
23+
<span class='date'>{{post.date | date: "%b %d, %Y" }} | {{post.author}}</span></p>
24+
<div class='col12 space-bottom2'>
25+
<p> {{ post.excerpt }}</p>
26+
<a class='news' href="{{site.baseurl}}{{post.url}}">read more...</a>
27+
</div>
28+
<div class='col12 space-bottom4 '>
29+
<p><hr></p>
30+
</div>
31+
{% endif %}
32+
{% endfor %}
2133
</div>
22-
<div class="stickymove clearfix pad4x col6">
23-
24-
<div class=''>
25-
26-
<h3 class='space-bottom2 big'>{{ page.title }}</h3>
27-
28-
{% for post in site.categories.mapnik %}
29-
{% if post.type != 'install' %}
30-
<p><a href="{{site.baseurl}}{{post.url}}">{{post.title}}</a><br>
31-
<span class='date'>{{post.date | date: "%b %d, %Y" }} | {{post.author}}</span></p>
32-
<div class='col12 space-bottom2'>
33-
<p> {{ post.excerpt }}</p>
34-
<a class='news' href="{{site.baseurl}}{{post.url}}">read more...</a>
35-
</div>
36-
<div class='col12 space-bottom4 '>
37-
<p><hr></p>
38-
</div>
39-
40-
{% endif %}
41-
{% endfor %}
42-
43-
</div>
44-
45-
</div>
46-
</div>
47-
48-
{% include footer.html %}
49-
{% include scripts.html %}
50-
51-
</body>
34+
</div>
35+
</div>
36+
{% include footer.html %}
37+
{% include scripts.html %}
38+
</body>
5239
</html>
53-
54-

0 commit comments

Comments
 (0)