Skip to content

Commit d23a3de

Browse files
committed
- cleanup post template
1 parent 0765d2c commit d23a3de

File tree

2 files changed

+41
-75
lines changed

2 files changed

+41
-75
lines changed

_includes/google-search.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
s.parentNode.insertBefore(gcse, s);
1111
})();
1212
</script>
13-
<gcse:search></gcse:search>
13+
<gcse:search data-proofer-ignore></gcse:search>

_layouts/post.html

Lines changed: 40 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,30 @@
44
<div class="post">
55
<header class="post-header">
66
<h1 class="post-title">{{ page.title }}</h1>
7+
78
<div class="post-meta">
8-
<ul>
9-
<li>
10-
<time pubdate datetime="{{ page.date | date: '%Y-%m-%d' }}"
11-
title="{{ page.date | date: '%b %-d, %Y' }}">{{ page.date | date: "%b %-d, %Y" }}
12-
</time>
13-
</li>
14-
<li>
15-
<address class="author">&nbsp;by
16-
{% if page.author.name %}
17-
{% assign author_name = page.author.name %}
18-
{% else %}
19-
{% assign author_name = site.title %}
20-
{% endif %}
9+
<ul>
10+
<li>
11+
<time pubdate datetime="{{ page.date | date: '%Y-%m-%d' }}"
12+
title="{{ page.date | date: '%b %-d, %Y' }}">{{ page.date | date: "%b %-d, %Y" }}
13+
</time>
14+
</li>
15+
<li>
16+
<address class="author">&nbsp;by
17+
{% if page.author.name %}
18+
{% assign author_name = page.author.name %}
19+
{% else %}
20+
{% assign author_name = site.title %}
21+
{% endif %}
2122

22-
{% if page.author.url %}
23-
<a href="{{ page.author.url }}" target="_blank">{{ author_name }}</a>
24-
{% else %}
25-
{{ author_name }}
26-
{% endif %}
27-
</address>
28-
</li>
29-
</ul>
23+
{% if page.author.url %}
24+
<a href="{{ page.author.url }}" target="_blank">{{ author_name }}</a>
25+
{% else %}
26+
{{ author_name }}
27+
{% endif %}
28+
</address>
29+
</li>
30+
</ul>
3031
</div>
3132
</header>
3233

@@ -35,15 +36,15 @@ <h1 class="post-title">{{ page.title }}</h1>
3536
<div class="col-md-8 NL_post">
3637
<article class="post-content">
3738
{% if page.image.url %}
38-
{% unless page.image.hide %}
39-
{% if page.image.width %}
40-
{% assign image_width = page.image.width %}
41-
{% else %}
42-
{% assign image_width = '100%' %}
43-
{% endif %}
44-
<img src="{{ page.image.url }}" alt="{{ page.title }}" class="blog-thumbnail" width="{{ image_width }}">
45-
{% endunless %}
39+
{% unless page.image.hide %}
40+
{% if page.image.width %}
41+
{% assign image_width = page.image.width %}
42+
{% else %}
43+
{% assign image_width = '100%' %}
4644
{% endif %}
45+
<img src="{{ page.image.url }}" alt="{{ page.title }}" class="blog-thumbnail" width="{{ image_width }}">
46+
{% endunless %}
47+
{% endif %}
4748
{{ content }}
4849
</article>
4950

@@ -52,62 +53,27 @@ <h1 class="post-title">{{ page.title }}</h1>
5253
</div>
5354
<div class="col-md-3 col-md-offset-1 NL_other_posts">
5455
<div class="NL_previous_post">
55-
{% if page.previous.url %}
56+
{% if page.previous.url %}
5657
<h4>Read previous article: </h4>
5758
<a class="prev" href="{{page.previous.url}}">
58-
<img src="{{ page.previous.image.url }}" alt="{{ page.previous.title }}" class="NL_post_img NL_img_hover" >
59+
<img src="{{ page.previous.image.url }}" alt="{{ page.previous.title }}"
60+
class="NL_post_img NL_img_hover">
61+
5962
<p><span>{{page.previous.title}}</span></p>
6063
</a>
61-
{% endif %}
64+
{% endif %}
6265
</div>
6366

6467
<div class="NL_next_post">
65-
{% if page.next.url %}
68+
{% if page.next.url %}
6669
<h4>Read next article: </h4>
6770
<a class="next" href="{{page.next.url}}">
68-
<img src="{{ page.next.image.url }}" alt="{{ page.next.title }}" class="NL_post_img NL_img_hover" >
71+
<img src="{{ page.next.image.url }}" alt="{{ page.next.title }}" class="NL_post_img NL_img_hover">
72+
6973
<p><span>{{page.next.title}}</span></p>
7074
</a>
71-
{% endif %}
75+
{% endif %}
7276
</div>
7377
</div>
7478
</div>
75-
76-
77-
78-
<!--<article class="post-content">
79-
{% if page.image.url %}
80-
{% if page.image.width %}
81-
{% assign image_width = page.image.width %}
82-
{% else %}
83-
{% assign image_width = '30%' %}
84-
{% endif %}
85-
<img src="{{ page.image.url }}" alt="{{ page.title }}" class="blog-thumbnail" width="{{ image_width }}">
86-
{% endif %}
87-
{{ content }}
88-
</article>
89-
90-
{% include addthis.html %}
91-
<div class="NL_disqus">{% include disqus.html %}</div>
92-
93-
<div class="NL_page_navigation">
94-
<h3>Read more:</h3>
95-
<div class="NL_previous_post">
96-
{% if page.previous.url %}
97-
<a class="prev" href="{{page.previous.url}}">
98-
<img src="{{ page.previous.image.url }}" alt="{{ page.previous.title }}" >
99-
<p>{{page.previous.title}}</p>
100-
</a>
101-
{% endif %}
102-
</div>
103-
<div class="NL_next_post">
104-
{% if page.next.url %}
105-
<a class="next" href="{{page.next.url}}">
106-
<img src="{{ page.next.image.url }}" alt="{{ page.next.title }}" >
107-
<p>{{page.next.title}}</p>
108-
</a>
109-
{% endif %}
110-
</div>
111-
</div>
112-
<div class="row"/>
113-
</div> -->
79+
</div>

0 commit comments

Comments
 (0)