Skip to content

Commit 11053a2

Browse files
committed
news page
1 parent 9c73e40 commit 11053a2

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

_pages/news.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
layout: page
3+
title: "News"
4+
permalink: /news/
5+
---
6+
7+
<h2 class="wp-block-heading">Check out our recent news &amp; insights</h2>
8+
9+
<div class="wp-block-query is-layout-flow wp-block-query-is-layout-flow">
10+
<ul
11+
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">
12+
{% for post in site.categories.News %}
13+
<li
14+
class="wp-block-post post-350 post type-post status-publish format-standard has-post-thumbnail hentry category-news">
15+
16+
<div class="wp-block-group is-layout-flow wp-container-core-group-is-layout-7 wp-block-group-is-layout-flow"
17+
style="padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px">
18+
<figure style="height:200px; margin-bottom:var(--wp--preset--spacing--small);"
19+
class="wp-block-post-featured-image"><a
20+
href="{{ post.url | relative_url }}" target="_self"
21+
style="height:200px"><img fetchpriority="high" decoding="async" width="1530" height="520"
22+
src="{{ post.featured_image | prepend: '/assets/images/' | relative_url }}"
23+
class="attachment-post-thumbnail size-post-thumbnail wp-post-image"
24+
alt="SpecFlow end-of-life has been announced" style="border-radius:5px;height:200px;object-fit:cover;"
25+
sizes="(max-width: 1530px) 100vw, 1530px"></a></figure>
26+
27+
<div class="taxonomy-category has-link-color wp-elements-82b5603708064b06546400967d8e01c5 wp-block-post-terms">
28+
<a href="{{ site.url }}/news/" rel="tag">News</a></div>
29+
30+
<h5 style="margin-bottom:var(--wp--preset--spacing--x-small);" class="wp-block-post-title"><a
31+
href="{{ post.url | relative_url }}" target="_self">{{ post.title }}</a></h5>
32+
33+
34+
<div
35+
class="wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-6 wp-block-group-is-layout-flex">
36+
<div class="wp-block-post-author-name has-x-small-font-size">{{ post.author }}</div>
37+
38+
<hr
39+
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">
40+
41+
<div class="wp-block-post-date">{{ post.date | date: "%B %-d, %Y" }}</div>
42+
</div>
43+
</div>
44+
45+
</li>
46+
{% endfor %}
47+
</ul>
48+
</div>

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ <h2 class="wp-block-heading has-text-align-left">Check out our recent news &amp;
398398
{% for category in post.categories %}
399399
<div
400400
class="taxonomy-category has-link-color wp-elements-82b5603708064b06546400967d8e01c5 wp-block-post-terms">
401-
<a href="{{ site.url }}/category/{{category}}/" rel="tag">{{category}}</a>
401+
<a href="{{ site.url }}/{{ category | downcase }}/" rel="tag">{{category}}</a>
402402
</div>
403403
{% endfor %}
404404

@@ -414,7 +414,7 @@ <h2 class="wp-block-heading has-text-align-left">Check out our recent news &amp;
414414
<hr
415415
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">
416416

417-
<div class="wp-block-post-date">{{ post.date | date: "%B %-d %Y" }}</div>
417+
<div class="wp-block-post-date">{{ post.date | date: "%B %-d, %Y" }}</div>
418418
</div>
419419
</div>
420420
</li>

0 commit comments

Comments
 (0)