Commit a47ecca3 authored by Jamie Tanna's avatar Jamie Tanna

Update permalinks for taxonomy pages

Because the taxonomy links are global across all content types, we need
to remove the `/posts/` distinction for them.

This means that there are a number of links to the taxonomies that need
to be updated.

As part of #443.
parent 86fd2514
......@@ -27,14 +27,14 @@ enableGitInfo = true
[permalinks]
bookmarks = "/bookmarks/:slug"
categories = "/posts/categories/:title/"
categories = "/categories/:title/"
events = "/:sections/:slug/"
likes = "/likes/:slug"
notes = "/notes/:slug"
posts = "/posts/:year/:month/:day/:slug/"
reposts = "/reposts/:slug"
rsvps = "/rsvps/:slug"
tags = "/posts/tags/:title/"
tags = "/tags/:title/"
# https://discourse.gohugo.io/t/how-can-i-change-the-rss-url/118/17
[outputs]
......
......@@ -56,7 +56,7 @@ If you wish to hear me write about something, please [raise an issue on my issue
[issue-board-article]: https://gitlab.com/jamietanna/jvt.me/boards/320660
[keysleft]: http://keysleft.com
[extracting-certs]: {{< ref 2017-04-28-extract-tls-certificate >}}
[blogumentation]: /posts/categories/blogumentation/
[blogumentation]: /categories/blogumentation/
[docker-systemd-article-issue]: https://gitlab.com/jamietanna/jvt.me/issues/151
[technotts-twitter]: https://twitter.com/TechNottingham
[technotts-blog-channel]: https://technottingham.slack.com/messages/C4WR48CTB/
......
......@@ -529,8 +529,8 @@ If you've made it this far I want to say thanks for reading! And even if you had
[so-count-commit-dates]: https://stackoverflow.com/a/31190624
[gitlab-first-prod-deploy]: https://gitlab.com/jamietanna/jvt.me/commit/545d721056d33e5b3144fbfa513ae787c61b2b0c
[jvtme-talks]: /talks/
[category-fosdem]: /posts/categories/fosdem/
[tag-findings]: /posts/tags/blogumentation/
[category-fosdem]: /categories/fosdem/
[tag-findings]: /tags/blogumentation/
[matomo]: https://matomo.org
[piwik-rename-matomo]: https://matomo.org/blog/2018/01/piwik-is-now-matomo/
[jekyll-seo-tag]: https://github.com/jekyll/jekyll-seo-tag
......
......@@ -30,6 +30,6 @@ For reasons I won't go into, I'm still using Rubocop over the Chef-recommended [
Note that some, but not all, of the Rubocop fixes can be automagically resolved using `rubocop --auto-correct`.
[chef-12-eol]: https://www.chef.io/eol-chef12-and-chefdk1/
[chef-13-upgrade-rubocop]: /posts/tags/chef-13-upgrade-rubocop/
[chef-13-upgrade-chefspec]: /posts/tags/chef-13-upgrade-chefspec/
[chef-13-upgrade-rubocop]: /tags/chef-13-upgrade-rubocop/
[chef-13-upgrade-chefspec]: /tags/chef-13-upgrade-chefspec/
[cookstyle]: https://docs.chef.io/cookstyle.html
......@@ -382,7 +382,7 @@ At this point, we've now got a Gem ready to release to RubyGems which pins exact
There will be a follow-up post to describe how I build out my GitLab CI configuration for cookbooks.
[name-your-gem]: http://guides.rubygems.org/name-your-gem
[tags-knife-cookbook-doc]: /posts/tags/knife-cookbook-doc/
[tags-knife-cookbook-doc]: /tags/knife-cookbook-doc/
[rubocop]: https://github.com/bbatsov/rubocop
[foodcritic]: http://foodcritic.io
[chefspec]: https://github.com/chefspec/chefspec
......
......@@ -17,7 +17,7 @@ license_prose: CC-BY-NC-SA-4.0
license_code: Apache-2.0
slug: chef-14-features
---
Update: I've also started to document [any interesting changes required for Chef 14](/posts/tags/chef-14-upgrade).
Update: I've also started to document [any interesting changes required for Chef 14](/tags/chef-14-upgrade).
Last Wednesday, I was able to attend the [Chef Users UK] meetup where Chef Community Engineer [Thom May] came to talk about Chef 14 (and beyond):
......@@ -152,7 +152,7 @@ The full release notes are documented on the [Chef Docs website][14-release-note
Additionally, Chef has released a [webinar on their YouTube channel][14-youtube] to help explain about the upgrade.
[Chef 13 upgrades]: /posts/tags/chef-13-upgrade/
[Chef 13 upgrades]: /tags/chef-13-upgrade/
[Thom May]: https://twitter.com/thommay
[Chef Users UK]: https://www.meetup.com/Chef-Users-London/events/249461424/
[14-release-notes]: https://docs.chef.io/release_notes.html#what-s-new-in-14-0
......
......@@ -34,4 +34,4 @@ There may be some posts that I want to license even more liberally (such as allo
I'm calling out the licensing in two places; at-a-glance in the post header, and more detailed in the footer. This makes it easier for a reader to know up front whether they'll be able to use any content/code in the post privately, instead of having to read all the way to the bottom of the page to understand licensing.
[blogumentation]: /posts/categories/blogumentation
[blogumentation]: /categories/blogumentation
......@@ -15,7 +15,7 @@ license_prose: CC-BY-NC-SA-4.0
license_code: Apache-2.0
slug: chef-14-coerce-nil-to-hash-property
---
While [upgrading to Chef 14](/posts/tags/chef-14-upgrade/), I found that `nil`s are being silently coerced to an empty `Hash`, `{}`.
While [upgrading to Chef 14](/tags/chef-14-upgrade/), I found that `nil`s are being silently coerced to an empty `Hash`, `{}`.
This can be seen where we have the following resource, ensuring that the provided `tls_options` is a `Hash`:
......
<blockquote>As part of an <a href="{{ ref . "2018-03-06-chef-13-upgrades" }}">upgrade from Chef 12 to Chef 13</a>, this is one of the posts in which I've been <a href="/posts/tags/chef-13-upgrade">detailing the issues I've encountered, and how I've resolved them </a>.</blockquote>
<blockquote>As part of an <a href="{{ ref . "2018-03-06-chef-13-upgrades" }}">upgrade from Chef 12 to Chef 13</a>, this is one of the posts in which I've been <a href="/tags/chef-13-upgrade">detailing the issues I've encountered, and how I've resolved them </a>.</blockquote>
......@@ -22,8 +22,8 @@
<p>This post is tagged under:</p>
<ul>
<li>
<a class="p-category" href="/posts/tags/wibble">wibble</a>
<a class="p-category" href="/posts/tags/blah">blah</a>
<a class="p-category" href="/tags/wibble">wibble</a>
<a class="p-category" href="/tags/blah">blah</a>
</li>
</ul>
<p>This post's canonical URL is <a href="http://this-post.is">http://this-post.is</a>, and the image is <a class="u-featured" href="https://www.jvt.me/img/profile.png">https://www.jvt.me/img/profile.png</a>.</p>
......
......@@ -78,7 +78,7 @@ describe 'PostsPagesHaveValidHentry' do
context 'when not on a blog post' do
let(:html) { Nokogiri::HTML(File.read('spec/fixtures/post_no_hentry.html')) }
let(:sut) { PostsPagesHaveValidHentry.new('', './public/posts/tags/chef/index.html', html, {})}
let(:sut) { PostsPagesHaveValidHentry.new('', './public/tags/chef/index.html', html, {})}
it 'skips' do
expect(sut).to_not receive(:add_issue)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment