feat: another project reorg
This commit is contained in:
parent
93165ee35b
commit
1e37d2cd93
126 changed files with 57 additions and 8 deletions
|
@ -85,6 +85,8 @@ const filterCatalogueTags = (tags) => {
|
|||
return filter(tags, [tags[0], tags[1]]);
|
||||
};
|
||||
|
||||
const limit = (collection, limit = 5) => collection.slice(0, limit);
|
||||
|
||||
module.exports = {
|
||||
allTagCounts,
|
||||
allTags,
|
||||
|
@ -93,6 +95,7 @@ module.exports = {
|
|||
filterCatalogueTags,
|
||||
formatDate,
|
||||
keys,
|
||||
limit,
|
||||
minifyCss,
|
||||
organizeByDate,
|
||||
pluralize,
|
||||
|
|
|
@ -16,6 +16,7 @@ const {
|
|||
filter,
|
||||
pluralize,
|
||||
filterCatalogueTags,
|
||||
limit,
|
||||
} = require("./config/filters/index.js");
|
||||
const markdown = require("./config/plugins/markdown.js");
|
||||
const imageShortcode = require("./config/shortcodes/image.js");
|
||||
|
@ -38,6 +39,7 @@ module.exports = (eleventyConfig) => {
|
|||
eleventyConfig.addFilter("filterCatalogueTags", filterCatalogueTags);
|
||||
eleventyConfig.addFilter("formatDate", formatDate);
|
||||
eleventyConfig.addFilter("keys", keys);
|
||||
eleventyConfig.addFilter("limit", limit);
|
||||
eleventyConfig.addFilter("minifyCss", minifyCss);
|
||||
eleventyConfig.addFilter("organizeByDate", organizeByDate);
|
||||
eleventyConfig.addFilter("values", values);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
layout: "layouts/base"
|
||||
permalink: /404.html
|
||||
youtube: true
|
||||
---
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
layout: "layouts/base"
|
||||
permalink: /about/index.html
|
||||
title: About
|
||||
---
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
layout: "layouts/base"
|
||||
permalink: /blogroll/index.html
|
||||
title: Blogroll
|
||||
---
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
layout: "layouts/base"
|
||||
permalink: /colophon/index.html
|
||||
title: Colophon
|
||||
---
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
permalink: /
|
||||
---
|
||||
|
||||
Hello from index.
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"layout": "layouts/base"
|
||||
}
|
|
@ -9,3 +9,19 @@
|
|||
color: var(--color-fadeText);
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.archive-item {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--s1);
|
||||
}
|
||||
|
||||
.archive-item > * {
|
||||
flex-grow: 1;
|
||||
flex-basis: calc((30rem - 100%) * 999);
|
||||
}
|
||||
|
||||
.archive-item > :nth-last-child(n + 4),
|
||||
.archive-item > :nth-last-child(n + 4) ~ * {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
|
|
27
src/index.html
Normal file
27
src/index.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
layout: "layouts/base"
|
||||
permalink: /
|
||||
---
|
||||
|
||||
<h1>Ahoj!</h1>
|
||||
<p>Hello! My name is Devin.</p>
|
||||
<p>I'm a creative developer who specializes in web and mobile development.</p>
|
||||
<p>
|
||||
Welcome to my little slice of the internet. I like to <a href="/posts">write</a> and <a href="/catalogue">catalogue</a> things. There's a lot to explore, and I hope you have fun!
|
||||
</p>
|
||||
<p>
|
||||
If you're interested, I have an <a href="/about">about page</a> all about me!
|
||||
</p>
|
||||
<h2>Favourite posts</h2>
|
||||
<h2>Recent posts</h2>
|
||||
<ul class="[ list-none p-0 flow mt-1 mb-0 ]"
|
||||
style="--flow-space: 0.25rem">
|
||||
{% for item in collections.post | reverse | limit(5) %}
|
||||
<li class="[ flex flex-wrap column-gap-0.5 row-gap-0 ]">
|
||||
<div>
|
||||
<a href="{{ item.url }}">{{ item.data.title }}</a>
|
||||
</div>
|
||||
<div class="[ text-fadeText ]" style="font-size: 0.8rem">{{ item.data.date | formatDate("MM/DD/YYYY") }}</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
layout: "layouts/base"
|
||||
permalink: /links/index.html
|
||||
title: Links
|
||||
---
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
layout: "layouts/base"
|
||||
permalink: /now/index.html
|
||||
title: /now
|
||||
---
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
layout: "layouts/base"
|
||||
permalink: /posts/index.html
|
||||
title: Posts
|
||||
---
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue