From 78f7d5b9ce6fc15a5749a07d043f8c394791ec9d Mon Sep 17 00:00:00 2001 From: Oscar Date: Mon, 17 Feb 2020 00:12:18 +0100 Subject: [PATCH] feat(permalink): revert cherry-picked changes to structure --- 11ty/filters/_tests/definitionPermalink.spec.js | 2 +- 11ty/filters/definitionPermalink.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/11ty/filters/_tests/definitionPermalink.spec.js b/11ty/filters/_tests/definitionPermalink.spec.js index 8a971b3a..fa7d2859 100644 --- a/11ty/filters/_tests/definitionPermalink.spec.js +++ b/11ty/filters/_tests/definitionPermalink.spec.js @@ -3,5 +3,5 @@ import test from 'ava'; import definitionPermalink from '../definitionPermalink'; test('constructs correct detail link', (t) => { - t.is(definitionPermalink('test-slug'), '/definitions/test-slug/'); + t.is(definitionPermalink('test-slug'), '/#test-slug'); }); diff --git a/11ty/filters/definitionPermalink.js b/11ty/filters/definitionPermalink.js index b9d05ee7..7bddb523 100644 --- a/11ty/filters/definitionPermalink.js +++ b/11ty/filters/definitionPermalink.js @@ -1,3 +1,3 @@ module.exports = function(slug) { - return `/definitions/${slug}/`; + return `/#${slug}`; };