diff --git a/config/filters/index.js b/config/filters/index.js index 53008eb3..92cc82e1 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -43,6 +43,10 @@ export default { const normalizedPage = page.includes('.html') ? page.replace('.html', '/') : page return !!normalizedPage && normalizedPage.includes(category) && !/\d+/.test(normalizedPage); }, + isPost: (url) => { + if (url.includes('post')) return true; + return false + }, // analytics getPopularPosts: (posts, analytics) => { diff --git a/package.json b/package.json index 0304fa69..425eb9b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "10.2.3", + "version": "10.3.3", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid index ec3daa12..1e9b525a 100644 --- a/src/_includes/base.liquid +++ b/src/_includes/base.liquid @@ -1,5 +1,11 @@ -{%- capture fullUrl %}{{ meta.url }}{{ page.url }}{% endcapture -%} -{%- capture pageTitle %}{% if title %}{{ title }} • {% endif %}{{meta.siteName}}{% endcapture -%} +{%- capture fullUrl -%}{{ meta.url }}{{ page.url }}{%- endcapture -%} +{%- capture pageTitle -%} + {% if page.url | isPost %} + {{ title }} + {% else %} + {{ title }} • {{meta.siteName}} + {% endif %} +{%- endcapture -%}