diff --git a/_config.yml b/_config.yml index bc19a8c..eba548b 100644 --- a/_config.yml +++ b/_config.yml @@ -13,6 +13,25 @@ pagination: sort_field: 'date' sort_reverse: true +autopages: + enabled: true + + categories: + layouts: + - pagination.html + title: "Category: :cat" + permalink: /categories/:cat + + tags: + layouts: + - pagination.html + title: "Posts tagged with :tag" + permalink: /tags/:tag + + collections: + enabled: false + + defaults: - scope: path: "" diff --git a/_includes/header.html b/_includes/header.html index ceb9880..6716901 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -3,9 +3,9 @@

Bune City Blog

\ No newline at end of file diff --git a/_layouts/pagination.html b/_layouts/pagination.html new file mode 100644 index 0000000..a0f3cbf --- /dev/null +++ b/_layouts/pagination.html @@ -0,0 +1,36 @@ +--- +layout: default +--- +{% include header.html %} +

{{ site.title }}

+{%- if page.autopages %} +
Posts in category "{{ page.autopages.display_name }}"
+{% endif -%} +
+
+ {% for post in paginator.posts %} +
+

{{ post.title }}

+
+ access_time {{ post.date | date_to_string: "ordinal" }} + group_work + {{ " " }}{%- for category in post.categories -%} + {{ category }} + {%- unless category == post.categories.last %}, {% endunless %} + {%- endfor %}
+
+
+

{{ post.summary | default: post.excerpt }}

+
+
+ {% endfor %} + + {%- if paginator.total_pages > 1 %} + + {%- endif %} +
+
\ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index 546a55e..a75cf6f 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -9,12 +9,12 @@ layout: default access_time Published {{ page.date | date_to_long_string: "ordinal" }}
group_work Categories: {{ " " }}{%- for category in page.categories -%} - {{ category }} + {{ category }} {%- unless category == page.categories.last %}, {% endunless %} {%- endfor %}
label Tags: {{ " " }}{%- for tag in page.tags -%} - {{ tag }} + {{ tag }} {%- unless tag == page.tags.last %}, {% endunless %} {%- endfor %} @@ -43,7 +43,8 @@ layout: default {%- unless summary %} {%- assign summary = page.excerpt | summarise | truncate: 150 %} {%- endunless %} - + {%- assign summary = summary | escape %} +
diff --git a/assets/style.css b/assets/style.css index 0d62e14..4b97f97 100644 --- a/assets/style.css +++ b/assets/style.css @@ -13,6 +13,13 @@ h1#logo { font-family: "Playfair Display", serif; } +#subheading { + text-align: center; + font-family: serif; + font-size: 1.3em; + margin-top: -20px; +} + header { font-family: sans-serif; background: #fafafa; diff --git a/index.html b/index.html index ebfcf00..d12c0c3 100644 --- a/index.html +++ b/index.html @@ -1,36 +1,6 @@ --- -layout: default +layout: pagination title: "bune.city - Home" pagination: enabled: true --- -{% include header.html %} -

{{ site.title }}

-
-
- {% for post in paginator.posts %} -
-

{{ post.title }}

-
- access_time {{ post.date | date_to_string: "ordinal" }} - group_work - {{ " " }}{%- for category in post.categories -%} - {{ category }} - {%- unless category == post.categories.last %}, {% endunless %} - {%- endfor %}
-
-
-

{{ post.summary | default: post.excerpt }}

-
-
- {% endfor %} - - {%- if paginator.total_pages > 1 %} - - {%- endif %} -
-
\ No newline at end of file