Moving theming and other resources (css, images, etc.) to src/res and hiding in-progress pages from public site

This commit is contained in:
gil 2024-06-24 01:33:28 -05:00
parent fb0719db65
commit 1364cca5ce
39 changed files with 45 additions and 10 deletions

View file

@ -8,15 +8,15 @@ module.exports = function (eleventyConfig) {
return DateTime.fromJSDate(dateObj).toFormat("y'-'LL'-'dd");
});
eleventyConfig.addPassthroughCopy("./src/css/**/*.css");
eleventyConfig.addPassthroughCopy("./src/font");
eleventyConfig.addPassthroughCopy("./src/img");
eleventyConfig.addWatchTarget("./src/css");
eleventyConfig.addPassthroughCopy({ "./src/res/css/**/*.css": "css" });
eleventyConfig.addPassthroughCopy({ "./src/res/font": "font" });
eleventyConfig.addPassthroughCopy({ "./src/res/img": "img" });
eleventyConfig.addWatchTarget("./src/res/css");
return {
dir: {
input: "src",
output: "public",
output: "_site",
},
};
};

View file

@ -4,8 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"watch:sass": "sass --watch src/scss:src/css",
"build:sass": "sass src/scss:src/css",
"watch:sass": "sass --watch src/res/scss:src/res/css",
"build:sass": "sass src/res/scss:src/res/css",
"watch:eleventy": "eleventy --serve",
"build:eleventy": "eleventy",
"start": "npm-run-all build:sass --parallel watch:*",

View file

@ -7,4 +7,4 @@ permalink: 404.html
There's nothing here.
<a href="/"><- Home page</a>
<a href="/">&larr; Home page</a>

View file

@ -1,5 +1,4 @@
---
date: Last Modified
eleventyNavigation:
key: About
order: 1

View file

@ -0,0 +1,12 @@
---
title: Finally updating my website
date: 2024-06-24T00:56:00-5
---
<time datetime="{{ date | formatDate }}">{{ date | formatDate }}</time>
# Finally updating my website
It took a long time, but I *finally* updated my website (the one you're looking at right now). The biggest thing, for me, is that I've actually built a layout and theme I can live with. It's *extremely* basic, and there isn't a lot to it&mdash;the goal is to incrementally add more personal touches and make the site look more lived in.
The other thing I've taken up is using [Obsidian](https://obsidian.md/) to journal. I only started a week ago so I don't know how much I'll adhere to it right now; however, I'm hoping that it'll buff my writing habits and translate into more activity here.

22
src/journal/index.md Normal file
View file

@ -0,0 +1,22 @@
---
title: Journal
override:tags: []
pagination:
data: collections.journal
size: 2
generatePageOnEmptyData: true
eleventyNavigation:
key: Journal
order: 2
---
# Journal
Small updates from the wiz himself
<ul>
{%- for post in pagination.items %}
<li><a href="{{ post.url }}">{{ post.data.title }}</a>
&mdash; <i>updated <time datetime="{{ post.date | formatDate }}">{{ post.date | formatDate }}</time></i></li>
{% endfor -%}
</ul>

3
src/journal/journal.json Normal file
View file

@ -0,0 +1,3 @@
{
"tags": "journal"
}

View file

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -1,7 +1,6 @@
---
title: Hey Girl
date: 2023-05-31T12:00:00-5
excerpt: test
---
Hey girl,