Skip to content

Commit 59ae2ef

Browse files
committed
Move archive to blog
1 parent ae8cbaf commit 59ae2ef

File tree

5 files changed

+57
-4
lines changed

5 files changed

+57
-4
lines changed

404.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ things you can do from here:
1414

1515
1. [Head back to the home page](/)
1616
2. [Search Google for what you were looking for](https://www.google.com/search?q=site%3Acsswizardry.com+YOUR+SEARCH+TERM)
17-
3. [Browse the archives](/archive/)
17+
3. [Browse the blog](/blog/)
1818
4. Read [<cite>{{ site.posts[random].title }}</cite>]({{ site.posts[random].url }}) <small>({{ site.posts[random].date | date: "%Y" }})</small>
1919

2020
<script>

_includes/sub-content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
href=https://web.archive.org/web/20190630140300/https://thenetawards.com/previous-winners/>award-winning</a>
2121
Consultant Web Performance Engineer</b>, <b>designer</b>, <b>developer</b>,
2222
<b>writer</b>, and <b>speaker</b> from the UK. I <b><a
23-
href=/archive/>write</a></b>, <b><a
23+
href=/blog/>write</a></b>, <b><a
2424
href=https://twitter.com/csswizardry>Tweet</a></b>, <b><a
2525
href=/speaking/>speak</a></b>, and <b><a
2626
href=http://github.com/csswizardry>share code</a></b> about measuring and

archive.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
layout: page
3-
title: CSS Wizardry Posts Archive
3+
title: CSS Wizardry Blog Archives
44
page-class: page--archive
55
permalink: /archive/
6+
canonical: 'https://csswizardry.com/blog/'
67
---
78

89
<section class="posts">

blog.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
layout: page
3+
title: CSS Wizardry Blog Archives
4+
page-class: page--archive
5+
permalink: /blog/
6+
---
7+
8+
<section class="posts">
9+
10+
{% assign random = site.time | date: "%s%N" | modulo: site.posts.size %}
11+
12+
<p>I have written <b>{{ site.posts | size }}</b> post on this site, mostly
13+
covering CSS, architecture, performance, and web development. Find
14+
a reverse-chronological list of them below, or, at random, why not read
15+
<a href="{{ site.posts[random].url }}"><cite>{{ site.posts[random].title }}</cite></a> <small>(<time>{{ site.posts[random].date | date: "%Y" }}</time>)</small>?</p>
16+
17+
{% for post in site.posts %}
18+
{% assign currentDate = post.date | date: "%Y" %}
19+
{% if currentDate != myDate %}
20+
{% unless forloop.first %}</ol>{% endunless %}
21+
<hr />
22+
<h2 id=year-{{ currentDate }}>{{ currentDate }}</h2>
23+
<ol reversed>
24+
{% assign myDate = currentDate %}
25+
{% endif %}
26+
<li>
27+
<b><time datetime="{{ post.date | date: "%Y-%m-%d" }}">{{ post.date | date: "%B %d" }}</time></b>
28+
<br>
29+
<a href="{{ post.url }}" style="view-transition-name: x-{{ post.date | date: '%Y-%m-%d' }}">{{ post.title }}</a>
30+
</li>
31+
{% if forloop.last %}</ol>{% endif %}
32+
{% endfor %}
33+
34+
<script type="application/ld+json">
35+
{
36+
"@context": "https://schema.org",
37+
"@type": "BreadcrumbList",
38+
"itemListElement": [{
39+
"@type": "ListItem",
40+
"position": 1,
41+
"name": "CSS Wizardry",
42+
"item": "https://csswizardry.com/"
43+
},{
44+
"@type": "ListItem",
45+
"position": 2,
46+
"name": "Blog",
47+
"item": "https://csswizardry.com/archive/"
48+
}]
49+
}
50+
</script>
51+
52+
</section>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<h3 class=heading>Articles</h3>
3131

3232
<p>There are <b>{{ site.posts | size }}</b> articles on this blog.
33-
Find them all on the <a href="/archive/">archive page</a>.</p>
33+
Find them all on the <a href="/blog/">blog page</a>.</p>
3434

3535
{% if paginator.page != 1 %}
3636
{% include pagination.html %}

0 commit comments

Comments
 (0)