Skip to content

Commit 62c35f7

Browse files
committed
Fix tags, add tags pages
1 parent 7f36177 commit 62c35f7

11 files changed

+97
-72
lines changed

_config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,21 @@ pagination:
4545
sort_field: 'date'
4646
sort_reverse: true
4747

48+
autopages:
49+
enabled: true
50+
tags:
51+
layouts:
52+
- 'post-list.html'
53+
title: 'Posts tagged with :tag'
54+
permalink: '/tag/:tag'
55+
silent: false
56+
slugify:
57+
mode: 'default' # :tag is slugified.
58+
case: false
59+
categories:
60+
enabled: false
61+
collections:
62+
enabled: false
4863

4964
exclude:
5065
- README.md

_layouts/post-list.html

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
layout: page
3+
pagination:
4+
enabled: true
5+
---
6+
7+
{% if page.message %}
8+
<h2 class="wp-block-heading">{{ page.message }}</h2>
9+
{% endif %}
10+
11+
<div class="wp-block-query is-layout-flow wp-block-query-is-layout-flow">
12+
<ul
13+
class="columns-3 wp-block-post-template is-layout-grid wp-container-core-post-template-is-layout-1 wp-block-post-template-is-layout-grid">
14+
{% for post in paginator.posts %}
15+
<li
16+
class="wp-block-post post-350 post type-post status-publish format-standard has-post-thumbnail hentry category-news">
17+
18+
<div class="wp-block-group is-layout-flow wp-container-core-group-is-layout-9 wp-block-group-is-layout-flow"
19+
style="padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px">
20+
21+
<figure style="height:200px; margin-bottom:var(--wp--preset--spacing--small);"
22+
class="wp-block-post-featured-image">
23+
<a href="{{ post.url | relative_url }}" target="_self"
24+
style="height:200px">
25+
{% if post.featured_image %}
26+
<img
27+
src="{{ post.featured_image | prepend: '/assets/images/' | relative_url }}"
28+
class="attachment-post-thumbnail size-post-thumbnail wp-post-image"
29+
alt="{{ post.title }}" style="border-radius:5px;height:200px;object-fit:cover;">
30+
{% else %}
31+
<div class="missing-image"></div>
32+
{% endif %}
33+
</a>
34+
</figure>
35+
36+
<div class="taxonomy-category has-link-color wp-elements-82b5603708064b06546400967d8e01c5 wp-block-post-terms">
37+
<a href="{{ site.url }}/{{ post.categories | first | downcase }}/" rel="tag">{{post.categories | first}}</a>
38+
</div>
39+
40+
<h5 style="margin-bottom:var(--wp--preset--spacing--x-small);" class="wp-block-post-title"><a
41+
href="{{ post.url | relative_url }}" target="_self">{{ post.title }}</a></h5>
42+
43+
44+
<div
45+
class="wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-10 wp-block-group-is-layout-flex">
46+
<div class="wp-block-post-author-name has-x-small-font-size">{{ post.author }}</div>
47+
48+
<hr
49+
class="wp-block-separator has-text-color has-highlight-color has-alpha-channel-opacity has-highlight-background-color has-background is-style-default wp-container-content-3">
50+
51+
<div class="wp-block-post-date">{{ post.date | date: "%B %-d, %Y" }}</div>
52+
</div>
53+
</div>
54+
55+
</li>
56+
{% endfor %}
57+
</ul>
58+
</div>
59+
60+
61+
{% if paginator.total_pages > 1 %}
62+
<div class="paging-buttons">
63+
{% if paginator.next_page %}
64+
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older Posts</a></div>
65+
{% endif %}
66+
{% if paginator.previous_page %}
67+
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer Posts</a></div>
68+
{% endif %}
69+
</div>
70+
{% endif %}
71+
72+
{{ content }}

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<h3 class="sd-title">Tags:</h3>
4040
<div class="taxonomy-post_tag is-style-swt-post-terms-pill wp-block-post-terms">
4141
{% for tag in page.tags %}
42-
<a href="#" rel="tag">{{ tag }}</a>{% if forloop.last == false %}<span class="wp-block-post-terms__separator">, </span>{% endif %}
42+
<a href="{{ site.url }}/tag/{{ tag | slugify }}" rel="tag">{{ tag }}</a>{% if forloop.last == false %}<span class="wp-block-post-terms__separator">, </span>{% endif %}
4343
{% endfor %}
4444
</div>
4545

_pages/news.html

Lines changed: 3 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,11 @@
11
---
2-
layout: page
2+
layout: post-list
33
title: "News"
44
permalink: /news/
5+
message: Check out our recent news &amp; insights
56
pagination:
67
enabled: true
78
category: News
89
---
910

10-
<h2 class="wp-block-heading">Check out our recent news &amp; insights</h2>
11-
12-
<div class="wp-block-query is-layout-flow wp-block-query-is-layout-flow">
13-
<ul
14-
class="columns-3 wp-block-post-template is-layout-grid wp-container-core-post-template-is-layout-1 wp-block-post-template-is-layout-grid">
15-
{% for post in paginator.posts %}
16-
<li
17-
class="wp-block-post post-350 post type-post status-publish format-standard has-post-thumbnail hentry category-news">
18-
19-
<div class="wp-block-group is-layout-flow wp-container-core-group-is-layout-9 wp-block-group-is-layout-flow"
20-
style="padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px">
21-
22-
<figure style="height:200px; margin-bottom:var(--wp--preset--spacing--small);"
23-
class="wp-block-post-featured-image">
24-
<a href="{{ post.url | relative_url }}" target="_self"
25-
style="height:200px">
26-
{% if post.featured_image %}
27-
<img
28-
src="{{ post.featured_image | prepend: '/assets/images/' | relative_url }}"
29-
class="attachment-post-thumbnail size-post-thumbnail wp-post-image"
30-
alt="{{ post.title }}" style="border-radius:5px;height:200px;object-fit:cover;">
31-
{% else %}
32-
<div class="missing-image"></div>
33-
{% endif %}
34-
</a>
35-
</figure>
36-
37-
<div class="taxonomy-category has-link-color wp-elements-82b5603708064b06546400967d8e01c5 wp-block-post-terms">
38-
<a href="{{ site.url }}/{{ post.categories | first | downcase }}/" rel="tag">{{post.categories | first}}</a>
39-
</div>
40-
41-
<h5 style="margin-bottom:var(--wp--preset--spacing--x-small);" class="wp-block-post-title"><a
42-
href="{{ post.url | relative_url }}" target="_self">{{ post.title }}</a></h5>
43-
44-
45-
<div
46-
class="wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-10 wp-block-group-is-layout-flex">
47-
<div class="wp-block-post-author-name has-x-small-font-size">{{ post.author }}</div>
48-
49-
<hr
50-
class="wp-block-separator has-text-color has-highlight-color has-alpha-channel-opacity has-highlight-background-color has-background is-style-default wp-container-content-3">
51-
52-
<div class="wp-block-post-date">{{ post.date | date: "%B %-d, %Y" }}</div>
53-
</div>
54-
</div>
55-
56-
</li>
57-
{% endfor %}
58-
</ul>
59-
</div>
60-
61-
62-
{% if paginator.total_pages > 1 %}
63-
<div class="paging-buttons">
64-
{% if paginator.next_page %}
65-
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older Posts</a></div>
66-
{% endif %}
67-
{% if paginator.previous_page %}
68-
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer Posts</a></div>
69-
{% endif %}
70-
</div>
71-
{% endif %}
72-
73-
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
11+
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>

_posts/2024-02-08-from-specflow-to-reqnroll-why-and-how.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: post
33
title: "From SpecFlow to Reqnroll: Why and How"
44
date: 2024-02-08
55
categories: News
6-
tags: .NET BDD Cucumber GitHub IDE migrate opensource Reqnroll SpecFlow VisualStudio
6+
tags: Migration OpenSource SpecFlow VisualStudio
77
featured_image: reqnroll-logo-bubbles.jpg
88
author: Gaspar Nagy
99
---

_posts/2024-02-08-reqnroll-v1-0-released-with-specflow-compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: post
33
title: "Reqnroll v1.0 released with SpecFlow compatibility"
44
date: 2024-02-08
55
categories: News
6-
tags: .NET BDD Cucumber IDE NuGet release Reqnroll SpecFlow VisualStudio
6+
tags: Release
77
featured_image: 2024/announcement-oscar-keys-ojVMh1QTVGY-unsplash.jpg
88
featured_image_caption: "Photo by Oscar Key on Unsplash.com"
99
author: Gaspar Nagy

_posts/2024-02-08-reqnroll-visual-studio-extension-v2024-1-released.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: post
33
title: "Reqnroll Visual Studio Extension v2024.1 released"
44
date: 2024-02-08
55
categories: News
6-
tags: .NET BDD Cucumber extension release Reqnroll SpecFlow VisualStudio
6+
tags: Release SpecFlow VisualStudio
77
featured_image: 2024/backstage-jessie-mccall-2vfKU3bm8xM-unsplash.jpg
88
featured_image_caption: "Photo by Jesse McCall on Unsplash.com"
99
author: Gaspar Nagy

_posts/2024-05-30-reqnroll-v2-0-released.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: post
33
title: "Reqnroll v2.0 released"
44
date: 2024-05-30
55
categories: News
6-
tags: .NET release Reqnroll
6+
tags: Release
77
featured_image: 2024/reqnroll-john-matychuk-gUK3lA3K7Yo-unsplash-scaled.jpg
88
featured_image_caption: "Photo by John Matychuk on Unsplash.com"
99
author: Gaspar Nagy

_posts/2025-01-09-specflow-end-of-life-has-been-announced.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: post
33
title: "SpecFlow end-of-life has been announced"
44
date: 2025-01-09
55
categories: News
6-
tags: AzureDevOps GitHub LivingDoc migrate opensource Reqnroll SpecFlow VisualStudio
6+
tags: LivingDoc Migration OpenSource SpecFlow
77
featured_image: 2025/SF_dead.png
88
featured_image_caption: "Screenshot from the specflow.org website"
99
author: Gaspar Nagy

0 commit comments

Comments
 (0)