Skip to content

Commit dff80aa

Browse files
committed
unbungle blog feed
1 parent 351425d commit dff80aa

File tree

8 files changed

+46
-25
lines changed

8 files changed

+46
-25
lines changed

Diff for: _config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ plugins:
5858
# /____/
5959
#
6060
paginate: 5 # Paginates all X entries
61-
paginate_path: "/feed/page-:num" # Pagination path › Important for blog page in /feed/ to work
61+
paginate_path: "blog/page:num" # Pagination path › Important for blog page in /blog/ to work
6262

6363

6464
# Theme works best with Kramdown (using the table of contents function)

Diff for: _config_dev.yml

-16
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,3 @@
88
url: 'http://localhost:4000'
99
baseurl: ''
1010
urlimg: 'http://localhost:4000/images/'
11-
12-
# See › https://github.com/jekyll/jekyll-gist#disabling-noscript-support
13-
gist:
14-
noscript: false
15-
16-
sass:
17-
# http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
18-
style: :expanded
19-
line_numbers: true
20-
# trace_selectors: true
21-
# debug_info: true
22-
# FUTURE https://github.com/jekyll/jekyll-sass-converter/issues/12
23-
sourcemap: true
24-
25-
# Disable when not in production
26-
google_analytics_tracking_id: false

Diff for: _includes/_meta_information.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{% if page.previous.url %}
2323
<div class="small-5 columns"><a class="button small radius prev" href="{{ site.url }}{{ site.baseurl }}{{page.previous.url}}">&laquo; {{page.previous.title}}</a></div><!-- /.small-4.columns -->
2424
{% endif %}
25-
<div class="small-2 columns text-center"><a class="radius button small" href="{{ site.url }}{{ site.baseurl }}/feed/archive/" title="Blog {{ site.data.language.archive }}">{{ site.data.language.archive }}</a></div><!-- /.small-4.columns -->
25+
<div class="small-2 columns text-center"><a class="radius button small" href="{{ site.url }}{{ site.baseurl }}/blog/archive/" title="Blog {{ site.data.language.archive }}">{{ site.data.language.archive }}</a></div><!-- /.small-4.columns -->
2626
{% if page.next.url %}
2727
<div class="small-5 columns text-right"><a class="button small radius next" href="{{ site.url }}{{ site.baseurl }}{{page.next.url}}">{{page.next.title}} &raquo;</a></div><!-- /.small-4.columns -->
2828
{% else %}

Diff for: _includes/_pagination.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ <h2><a href="{{ site.url }}{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a
2727
<nav id="pagination">
2828
{% if paginator.previous_page %}
2929
{% if paginator.previous_page == 1 %}
30-
<a rel="prev" class="radius button small" href="{{ site.url }}{{ site.baseurl }}/feed/" title="{{ site.data.language.previous_posts }}">&laquo; {{ site.data.language.previous_posts }}</a>
30+
<a rel="prev" class="radius button small" href="{{ site.url }}{{ site.baseurl }}/blog/" title="{{ site.data.language.previous_posts }}">&laquo; {{ site.data.language.previous_posts }}</a>
3131
{% else %}
32-
<a rel="prev" class="radius button small" href="{{ site.url }}{{ site.baseurl }}/feed/page{{ paginator.previous_page }}/" title="{{ site.data.language.previous_posts }}">&laquo; {{ site.data.language.previous }}</a>
32+
<a rel="prev" class="radius button small" href="{{ site.url }}{{ site.baseurl }}/blog/page{{ paginator.previous_page }}/" title="{{ site.data.language.previous_posts }}">&laquo; {{ site.data.language.previous }}</a>
3333
{% endif %}
3434
{% endif %}
3535

36-
<a class="radius button small" href="{{ site.url }}{{ site.baseurl }}/feed/archive/" title="{{ site.data.language.blog_archive }}">{{ site.data.language.blog_archive }}</a>
36+
<a class="radius button small" href="{{ site.url }}{{ site.baseurl }}/blog/archive/" title="{{ site.data.language.blog_archive }}">{{ site.data.language.blog_archive }}</a>
3737

3838
{% if paginator.next_page %}
39-
<a rel="next" class="radius button small" href="{{ site.url }}{{ site.baseurl }}/feed/page{{ paginator.next_page }}/" title="{{ site.data.language.next_posts }}">{{ site.data.language.next }} &raquo;</a>
39+
<a rel="next" class="radius button small" href="{{ site.url }}{{ site.baseurl }}/blog/page{{ paginator.next_page }}/" title="{{ site.data.language.next_posts }}">{{ site.data.language.next }} &raquo;</a>
4040
{% endif %}
4141
</nav>
4242

Diff for: _includes/list-posts

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
{% for post in site.posts limit:include.entries offset:include.offset %}
3232
<li><a href="{{ site.url }}{{ site.baseurl }}{{ post.url }}">{% if post.subheadline %}{{ post.subheadline }} &middot; {% endif %}<strong>{{ post.title }}</strong></a></li>
3333
{% endfor %}
34-
<li class="text-right"><a href="{{ site.url }}{{ site.baseurl }}/feed/archive/"><strong>{{ site.data.language.more }}</strong></a></li>
34+
<li class="text-right"><a href="{{ site.url }}{{ site.baseurl }}/blog/archive/"><strong>{{ site.data.language.more }}</strong></a></li>
3535

3636

3737
{% elsif category %}
3838

3939
{% for post in site.categories.[category] limit:include.entries offset:include.offset %}
4040
<li><a href="{{ site.url }}{{ site.baseurl }}{{ post.url }}">{% if post.subheadline %}{{ post.subheadline }} &middot; {% endif %}<strong>{{ post.title }}</strong></a></li>
4141
{% endfor %}
42-
<li class="text-right"><a href="{{ site.url }}{{ site.baseurl }}/feed/archive/"><strong>{{ site.data.language.more }}</strong></a></li>
42+
<li class="text-right"><a href="{{ site.url }}{{ site.baseurl }}/blog/archive/"><strong>{{ site.data.language.more }}</strong></a></li>
4343

4444

4545
{% elsif tag %}

Diff for: blog/archive.html

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: default
3+
title: "Blog Archive"
4+
teaser: "Check out all blog posts in my blog archive. Click on a headline to read the teaser."
5+
breadcrumb: true
6+
header:
7+
image_fullwidth: header_unsplash_8.jpg
8+
permalink: "blog/archive/"
9+
---
10+
<div id="blog-index" class="row">
11+
<div class="small-12 columns t30">
12+
<h1>{{ page.title }}</h1>
13+
{% if page.teaser %}<p class="teaser">{{ page.teaser }}</p>{% endif %}
14+
15+
<dl class="accordion" data-accordion>
16+
{% assign counter = 1 %}
17+
{% for post in site.posts limit:1000 %}
18+
<dd class="accordion-navigation">
19+
<a href="#panel{{ counter }}"><span class="iconfont"></span> {% if post.subheadline %}{{ post.subheadline }} › {% endif %}<strong>{{ post.title }}</strong></a>
20+
<div id="panel{{ counter }}" class="content">
21+
{% if post.meta_description %}{{ post.meta_description | strip_html | escape }}{% elsif post.teaser %}{{ post.teaser | strip_html | escape }}{% endif %}
22+
<a href="{{ site.url }}{{ site.baseurl }}{{ post.url }}" title="Read {{ post.title | escape_once }}"><strong>{{ site.data.language.read_more }}</strong></a><br><br>
23+
</div>
24+
</dd>
25+
{% assign counter=counter | plus:1 %}
26+
{% endfor %}
27+
</dl>
28+
</div><!-- /.small-12.columns -->
29+
</div><!-- /.row -->

Diff for: blog/index.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: blog
3+
title: "Blog of Feeling Responsive"
4+
teaser: "This is the Feeling Responsive Blog Template."
5+
header:
6+
image_fullwidth: "header-bus.jpg"
7+
---
8+

Diff for: feed/archive.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
title: "Bitcoinfo, Blog Feed"
44
teaser: "Check out all posts in the feed. Click on a headline to read the teaser."
55
breadcrumb: true
6-
permalink: "/feed/archive/"
6+
permalink: "/blog/archive/"
77
---
88
<div id="blog-index" class="row">
99
<div class="small-12 columns t30">

0 commit comments

Comments
 (0)