diff --git a/config/filters/index.js b/config/filters/index.js index e71d09e1..4881440b 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -11,9 +11,6 @@ const BASE_URL = 'https://coryd.dev' export default { // general - trim: (string, limit) => { - return string.length <= limit ? string : `${string.slice(0, limit)}...` - }, btoa: (string) => { return btoa(string) }, @@ -193,7 +190,7 @@ export default { const capitalizeFirstLetter = (string) => { return string.charAt(0).toUpperCase() + string.slice(1); } - if (string === 'iOS' || string === 'macOS') return `#${string}` + if (string === 'iOS' || string === 'macOS' || string === 'RSS') return `#${string}` if (!string.includes(' ')) return `#${capitalizeFirstLetter(string)}` return `#${string.split(' ').map(s => capitalizeFirstLetter(s)).join('')}` } diff --git a/src/_includes/partials/header.liquid b/src/_includes/partials/header.liquid index d05ba03a..077e7f8a 100644 --- a/src/_includes/partials/header.liquid +++ b/src/_includes/partials/header.liquid @@ -1,4 +1,4 @@ -
+

{% if page.url != '/' %} {{ meta.siteName }} @@ -7,4 +7,4 @@ {% endif %}

{% render "partials/nav/menu.liquid", page:page, nav:nav %} -
\ No newline at end of file + \ No newline at end of file diff --git a/src/_includes/partials/nav/menu.liquid b/src/_includes/partials/nav/menu.liquid index bbf4ca55..30db0e06 100644 --- a/src/_includes/partials/nav/menu.liquid +++ b/src/_includes/partials/nav/menu.liquid @@ -1,5 +1,5 @@