fix: misc

This commit is contained in:
Cory Dransfeldt 2024-03-14 10:50:32 -07:00
parent 745b374e3c
commit 355aa615b1
No known key found for this signature in database
5 changed files with 13 additions and 21 deletions

View file

@ -11,9 +11,6 @@ const BASE_URL = 'https://coryd.dev'
export default { export default {
// general // general
trim: (string, limit) => {
return string.length <= limit ? string : `${string.slice(0, limit)}...`
},
btoa: (string) => { btoa: (string) => {
return btoa(string) return btoa(string)
}, },
@ -193,7 +190,7 @@ export default {
const capitalizeFirstLetter = (string) => { const capitalizeFirstLetter = (string) => {
return string.charAt(0).toUpperCase() + string.slice(1); 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)}` if (!string.includes(' ')) return `#${capitalizeFirstLetter(string)}`
return `#${string.split(' ').map(s => capitalizeFirstLetter(s)).join('')}` return `#${string.split(' ').map(s => capitalizeFirstLetter(s)).join('')}`
} }

View file

@ -1,4 +1,4 @@
<div class="main__title"> <section class="main__title">
<h1> <h1>
{% if page.url != '/' %} {% if page.url != '/' %}
<a href="/">{{ meta.siteName }}</a> <a href="/">{{ meta.siteName }}</a>
@ -7,4 +7,4 @@
{% endif %} {% endif %}
</h1> </h1>
{% render "partials/nav/menu.liquid", page:page, nav:nav %} {% render "partials/nav/menu.liquid", page:page, nav:nav %}
</div> </section>

View file

@ -1,5 +1,5 @@
<nav <nav
class="menu--primary flex--centered flex--wrap justify--center" class="menu__primary flex--centered flex--wrap justify--center"
aria-label="Primary site navigation"> aria-label="Primary site navigation">
{% for link in nav.menu %} {% for link in nav.menu %}
{% render "partials/nav/link.liquid", page:page, link:link.name, icon:link.icon %} {% render "partials/nav/link.liquid", page:page, link:link.name, icon:link.icon %}

View file

@ -57,7 +57,6 @@ blockquote {
/* links */ /* links */
a { a {
transition-property: color;
text-decoration: none; text-decoration: none;
} }
@ -73,11 +72,7 @@ a:active,
:is(.main__title, footer nav:last-child) a:focus, :is(.main__title, footer nav:last-child) a:focus,
:is(.main__title, footer nav:last-child) a:active { :is(.main__title, footer nav:last-child) a:active {
color: var(--accent-color-hover); color: var(--accent-color-hover);
} transition-property: color;
a:hover,
a:focus,
a:active {
transition-timing-function: var(--transition-ease-in-out); transition-timing-function: var(--transition-ease-in-out);
transition-duration: var(--transition-duration-default); transition-duration: var(--transition-duration-default);
} }
@ -172,12 +167,12 @@ th {
} }
/* nav */ /* nav */
.main__title nav { nav.menu__primary {
gap: var(--sizing-sm); gap: var(--sizing-sm);
} }
.main__title nav a, nav.menu__primary a,
.main__title nav span { nav.menu__primary span {
height: var(--sizing-xl); height: var(--sizing-xl);
} }
@ -441,7 +436,7 @@ li {
padding-bottom: 0; padding-bottom: 0;
} }
.main__title nav { nav.menu__primary {
gap: var(--sizing-md); gap: var(--sizing-md);
} }

View file

@ -4,8 +4,8 @@ eleventyExcludeFromCollections: true
dynamicPermalink: false dynamicPermalink: false
--- ---
{ {
"subject": "acct:coryd@social.lol", "subject": "acct:cory@social.lol",
"aliases": ["https://coryd.dev", "https://social.lol/@coryd", "https://social.lol/users/coryd"], "aliases": ["https://coryd.dev", "https://social.lol/@cory", "https://social.lol/users/cory"],
"links": [ "links": [
{ {
"rel": "http://webfinger.net/rel/avatar", "rel": "http://webfinger.net/rel/avatar",
@ -20,12 +20,12 @@ dynamicPermalink: false
{ {
"rel": "http://webfinger.net/rel/profile-page", "rel": "http://webfinger.net/rel/profile-page",
"type": "text/html", "type": "text/html",
"href": "https://social.lol/users/coryd" "href": "https://social.lol/users/cory"
}, },
{ {
"rel": "self", "rel": "self",
"type": "application/activity+json", "type": "application/activity+json",
"href": "https://social.lol/users/coryd" "href": "https://social.lol/users/cory"
}, },
{ {
"rel": "http://ostatus.org/schema/1.0/subscribe", "rel": "http://ostatus.org/schema/1.0/subscribe",