make resources configurable by the user without modifying code

This commit is contained in:
zyl 2024-11-04 13:00:25 -08:00
parent 50574bf352
commit 159c8fa5b3
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
21 changed files with 181 additions and 337 deletions

View file

@ -2,7 +2,32 @@ base_url: "https://zyl.gay"
title: zyl is gay
description: "zyl's website."
sass_styles: [index.scss, pet.scss, click.scss]
images_per_page: 10
blog_posts_per_page: 20
cdn_url: "https://i.zyl.gay"
s3_prefix: # no longer prefixed
resources:
blog:
source_path: blog
output_path_short: blog
output_path_long: blog
resource_template: blog-post
resource_list_template: blog-list
rss_template: rss/blog-post
rss_title: zyl's blog
rss_description: feed of recent blog posts on zyl's website.
list_title: blog
tag_list_title: blog tags
resource_name_plural: blog posts
resources_per_page: 20
images:
source_path: images
output_path_short: i
output_path_long: images
resource_template: image
resource_list_template: images
rss_template: rss/image
rss_title: zyl's images
rss_description: feed of newly uploaded images from zyl's website.
list_title: images
tag_list_title: image tags
resource_name_plural: images
resources_per_page: 10

View file

@ -3,7 +3,7 @@ title: being gay is so cool
timestamp: 2023-11-14T23:09:00.00Z
tags: [gay, lesbiab, trans]
desc: holy shit being gay is cool y'all
header_image_file: 2023/11/pfp.png
cdn_file: 2023/11/pfp.png
header_image_alt: A dead Among Us bean layered on top of transgender, lesbian, and bisexual pride flags.
---

View file

@ -3,7 +3,7 @@ title: estradiol delivery methods
timestamp: 2023-11-12T20:55:00.00Z
tags: [trans, hrt, estradiol]
desc: a comparison of the four forms of estradiol i've taken since starting hrt
header_image_file: 2023/11/syringe.jpeg
cdn_file: 2023/11/syringe.jpeg
header_image_alt: A photograph of a syringe for instramuscular injection with needle still in its wrapper.
---

View file

@ -3,7 +3,7 @@ title: i built a minecraft classic server
timestamp: 2024-07-08T10:37:00.00Z
tags: [minecraft, minecraft classic, dev]
desc: i got bored and built a minecraft classic server
header_image_file: 2024/07/classic2.png
cdn_file: 2024/07/classic2.png
header_image_alt: Screenshot of my Minecraft classic server showing two players standing in front of a stack of blocks.
---

View file

@ -3,7 +3,7 @@ title: send trans people money.
timestamp: 2024-06-21T14:05:00.00Z
tags: [trans, money]
desc: you should send trans people money. i'm trans btw
header_image_file: 2024/06/gamecube.jpeg
cdn_file: 2024/06/gamecube.jpeg
header_image_alt: A photo of me holding a Cipon-branded Gamecube controller in my lap.
---

View file

@ -3,7 +3,7 @@ title: so now i have a blog
timestamp: 2023-06-09T22:20:00.00Z
tags: [meta, blog]
desc: I added a blog to my site. Here's a picture of some smoke.
header_image_file: 2023/06/smoke.jpeg
cdn_file: 2023/06/smoke.jpeg
header_image_alt: Photo of smoke engulfing an interstate from a highway across a river.
---

View file

@ -3,7 +3,7 @@ title: among us 😱
timestamp: 2022-12-14T00:00:00.00Z
alt: Screenshot of Pokémon White on an evolution screen. Text reads "Congratulations! Your amogus evolved into Amoonguss!"
desc: aaahhhh
file: amogus.png
cdn_file: amogus.png
tags: [pokémon, sussy]
---

View file

@ -2,6 +2,6 @@
title: cat 3
timestamp: 2022-12-14T00:00:00.00Z
alt: Picture of my cat sleeping in a box barely large enough for them. Their head is resting on one edge of the box.
file: boxtop.jpeg
cdn_file: boxtop.jpeg
tags: [cat]
---

View file

@ -2,6 +2,6 @@
title: cat
timestamp: 2022-12-14T00:00:00.00Z
alt: Picture of my cat sleeping curled up on top of some pillows.
file: cat.jpeg
cdn_file: cat.jpeg
tags: [cat]
---

View file

@ -2,6 +2,6 @@
title: cat 2
timestamp: 2022-12-14T00:00:00.00Z
alt: Close up picture of my cat laying on a shelf while staring not quite at the camera.
file: cat2.jpeg
cdn_file: cat2.jpeg
tags: [cat]
---

View file

@ -2,7 +2,7 @@
title: shorts to dresses
timestamp: 2022-12-14T00:00:00.00Z
alt: Screenshot from Pokémon Black 2 of an NPC saying "This dress is comfy and easy to wear..."
file: trans-comfy.png
cdn_file: trans-comfy.png
tags: [pokémon, trans]
---

View file

@ -6,8 +6,8 @@
{{/if}}
<div class="header-image-wrapper">
<p class="short-desc">{{desc}}</p>
<img class="header-image" src="{{header_image}}" alt="{{header_image_alt}}"
style="object-fit: {{object_fit}}; object-position: {{object_position}};">
<img class="header-image" src="{{cdn_file}}" alt="{{header_image_alt}}"
style="object-fit: cover; object-position: 50% 50%">
</div>
<div class="content">
{{{content}}}

View file

@ -1,9 +1,9 @@
<div class="image-full">
<h1 class="title">{{title}}</h1>
<span class="timestamp">published {{timestamp}}</span>
<img class="image-actual" src="{{src}}" alt="{{alt}}">
<img class="image-actual" src="{{cdn_file}}" alt="{{alt}}">
{{{content}}}
<p><a href="{{src}}">view full size image</a></p>
<p><a href="{{cdn_file}}">view full size image</a></p>
<h3 class="tags-title">tags</h3>
<div class="image-tags">
{{#each tags}}

View file

@ -16,7 +16,7 @@
<div class="images-list">
{{#each resources}}
<a class="image" href="/i/{{id}}">
<img class="image-actual" src="{{src}}" alt="{{alt}}">
<img class="image-actual" src="{{cdn_file}}" alt="{{alt}}">
<span class="title">{{title}}</span>
</a>
{{/each}}