Skip to content

Commit

Permalink
Merge pull request #307 from photogabble/feature/306-rename-changelog
Browse files Browse the repository at this point in the history
Move changelog posts to /changelog/* permalink
  • Loading branch information
carbontwelve authored Dec 13, 2023
2 parents 354c09c + e9c50e6 commit a500774
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions _redirects
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
/about/content/ /glossary/content-types/
/about/growth/ /glossary/growth/

# Updates moved to changelog
/colophon/update/ /changelog/
/colophon/update/* /changelog/:splat

# 2022 Weeks in review re-slugging
/thoughts/week-25-in-review/ /thoughts/2022-week-25-in-review/
/thoughts/week-26-in-review/ /thoughts/2022-week-26-in-review/
Expand Down
8 changes: 4 additions & 4 deletions lib/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ module.exports = function loadCollection(eleventyConfig) {
name: 'Mirrored Code Snippets',
slug: 'mirrored',
items: []
}, colophon: {
id: 'colophon',
name: 'Colophon',
slug: 'colophon/update',
}, changelog: {
id: 'changelog',
name: 'Changelog',
slug: 'changelog',
items: []
}, resource: {
id: 'resource',
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
<dt>Etc.</dt>
<dd><a href="/special-thanks/" title="List of special people">Special Thanks</a></dd>
<dd><a href="/colophon/" title="About this website">Colophon</a></dd>
<dd><a href="/colophon/update/" title="Website Changelog">Changelog</a></dd>
<dd><a href="/changelog/" title="Website Changelog">Changelog</a></dd>
<dd><a href="/styleguide/" title="The styleguide page, a demo of the stylesheet">Styleguide</a></dd>
<dd><a href="/blank" title="Blank Page">Blank page</a></dd>
</dl>
Expand Down
4 changes: 2 additions & 2 deletions src/colophon.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ folder: 'about'

{% set title = 'Colophon' %}
{% set titlePrefix = 'Info' %}
{% set postsList = collections.post | onlyTypes(['colophon']) | reverse %}
{% set postsList = collections.post | onlyTypes(['changelog']) | reverse %}

{% block pageContent %}
<p>
Expand Down Expand Up @@ -36,7 +36,7 @@ folder: 'about'
<li><a href="http://blarg.ca/">Gered’s Ramblings</a></li>
<li><a href="https://johnmathews.is/blog.html">John Mathews Blog</a></li>
<li><a href="https://boehs.org/">Evan Boehs</a>: originally sparked the idea of turning PhotoGabble into a Digital Garden</li>
<li><a href="https://www.benji.dog/">Benji</a>: their tags page is the source of my <a href="/colophon/update/alphabetising-glossary-terms/">alphabetising glossary terms</a></li>
<li><a href="https://www.benji.dog/">Benji</a>: their tags page is the source of my <a href="/changelog/alphabetising-glossary-terms/">alphabetising glossary terms</a></li>
</ul>
</section>

Expand Down
5 changes: 5 additions & 0 deletions src/content/changelog/changelog.11tydata.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
contentType: 'changelog',
permalinkBase: 'changelog',
excludeFromFeed: true,
};
5 changes: 0 additions & 5 deletions src/content/colophon/colophon.11tydata.js

This file was deleted.

0 comments on commit a500774

Please sign in to comment.