Couple of li'l adjustments to styles, and formatting of excerpts
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m42s
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m42s
This commit is contained in:
parent
5c0928922f
commit
a540c0f1a5
@ -1,6 +1,10 @@
|
||||
module.exports = function (eleventyConfig) {
|
||||
eleventyConfig.addFilter('excerpt', (content, limit = 250) => {
|
||||
const excerpt = content.replace(/(<([^>]+)>)/gi, "").slice(0, limit) + " […]";
|
||||
return excerpt;
|
||||
const withoutTags = content.replace(/(<([^>]+)>)/gi, "");
|
||||
|
||||
if (withoutTags.length > limit) {
|
||||
return withoutTags.slice(0, limit) + " […]";
|
||||
}
|
||||
return withoutTags;
|
||||
});
|
||||
}
|
@ -51,11 +51,8 @@
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<a href="/feed/" class="rss">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" aria-label="RSS" role="img" viewBox="0 0 512 512">
|
||||
<path d="m0 0H512V512H0" fill="none"/>
|
||||
<path fill="currentColor" d="m109 271A132 133 0 01241 403h60A192 193 0 00109 211v-54A246 247 0 01355 403h60A306 307 0 00109 97m35 235a35 35 0 102 0"/>
|
||||
</svg>
|
||||
<a href="/feed/" class="rss" aria-label="RSS feed">
|
||||
<i class="fa-solid fa-rss"></i>
|
||||
</a>
|
||||
|
||||
<fieldset class="color-scheme">
|
||||
|
@ -1,17 +1,10 @@
|
||||
.rss {
|
||||
flex-grow: initial;
|
||||
|
||||
img, svg {
|
||||
width: 20px;
|
||||
aspect-ratio: 1;
|
||||
height: auto;
|
||||
vertical-align: middle;
|
||||
}
|
||||
font-size: var(--text-size-s);
|
||||
padding: 0 var(--space-size-2xs);
|
||||
|
||||
&:hover {
|
||||
svg {
|
||||
background-color: var(--color-primary);
|
||||
color: var(--color-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
title: Saved links
|
||||
layout: base.njk
|
||||
---
|
||||
<main class="wrapper-lg stack-lg">
|
||||
<h1>{{ title }}</h1>
|
||||
|
||||
<p>
|
||||
@ -19,3 +20,4 @@ layout: base.njk
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
</main>
|
Loading…
Reference in New Issue
Block a user