Skip to content

Commit 46beca5

Browse files
committed
Begin build out of news section to include blog
1 parent df1d2b1 commit 46beca5

File tree

9 files changed

+37
-12
lines changed

9 files changed

+37
-12
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ baseurl: ""
1010
host: 0.0.0.0
1111
port: 4000
1212
safe: true
13-
timezone: Europe/London
13+
timezone: US/Pacific
1414

1515
include:
1616
- _pages

_data/header-menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
href: "/events/"
1212

1313
- title: "News"
14-
href: "/announcements/"
14+
href: "/news/"

_data/sitemap.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,9 @@
4343
href: "/events/"
4444

4545
- title: "News"
46-
href: "/announcements/"
46+
href: "/news/"
47+
sub:
48+
- title: "Announcements"
49+
href: "/announcements/"
50+
- title: "Blog"
51+
href: "/blog/"

_includes/card.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<article class="card">
22
<a class="card-link" href="{{ include.site }}">
33
<h2 class="card-title">{{ include.name }}</h2>
4+
{% if include.logo %}
45
<div class="card-logo-container">
56
<img class="card-logo" src="{{ site.url }}{{ site.baseurl }}/img/{{ include.collection }}/{{ include.logo }}" alt="{{ include.name }} logo">
67
</div>
8+
{% endif %}
79
<div class="card-content">
810
{{ include.content }}
911
</div>

_layouts/announcements.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
<main class="main_announcements-layout">
1111

12+
{% include subnav.html %}
13+
1214
<div class="main-content_announcements-layout">
1315

1416
<header class="page-header_announcements-layout">

_layouts/blog.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,27 @@
33

44
{% include head.html %}
55

6-
<body class="blog-layout page_{{ page.title | slugify }}">
6+
<body class="announcements-layout page_{{ page.title | slugify }}">
77

88
{% include header.html %}
99

10-
<main class="main_blog-layout">
10+
<main class="main_announcements-layout">
1111

12-
<div class="main-content_blog-layout">
12+
{% include subnav.html %}
1313

14-
<header class="page-header_blog-layout">
14+
<div class="main-content_announcements-layout">
1515

16-
<h1 class="page-title_blog-layout">{{ page.title }}</h1>
16+
<header class="page-header_announcements-layout">
17+
18+
<h1 class="page-title_announcements-layout">{{ page.title }}</h1>
1719

1820
{{ content }}
1921

2022
</header>
2123

22-
<div class="posts">
24+
<div class="announcements">
2325

26+
{% assign posts = site.posts | sort: 'date' | reverse %}
2427
{% for post in site.posts %}
2528
{% assign date = post.date | date: '%B %-d, %Y' %}
2629
{% include post.html url=post.url title=post.title excerpt=post.excerpt img=post.img date=date category=post.category %}

_pages/blog.md

100644100755
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
---
22
title: Blog
3-
layout: "center"
43
---
54

65
## Coming Soon
7-
8-
Come back for posts about ongoing JS Foundation initiatives, events and news about our projects and members.

_pages/news.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "News"
3+
---
4+
5+
Keep up with everything going on at the JS Foundation.
6+
7+
## Announcements
8+
9+
JS Foundation news including press releases and project/member announcements.
10+
[More ...]({{site.url}}/announcements/)
11+
12+
## Blog
13+
14+
Deep dives into what's going on at the JS Foundation from project showcases to our work in standards and everything in between.
15+
[More ...]({{site.url}}/blog/)
16+

_pages/projects.md

100644100755
File mode changed.

0 commit comments

Comments
 (0)