Skip to content

Commit db61e4c

Browse files
authored
feat: RSS (#17)
* fix: A bunch o' stuff * feat: Update puggle config
1 parent 45be50d commit db61e4c

File tree

6 files changed

+23
-43
lines changed

6 files changed

+23
-43
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ dist
88
public/
99
.DS_Store
1010
node_modules
11+
*~

blog/posts/create-rust-binaries-and-docker-images-with-nix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ custom:
3737

3838
## Introduction
3939

40-
A few days ago, I [released](/posts/what-i-learned-from-building-a-rust-emoji-url-shortener)
40+
A few days ago, I [released](/blog/what-i-learned-from-building-a-rust-emoji-url-shortener)
4141
~~the abomination of~~ a project called `emojied`
4242
([website](https://emojied.net), [repo](https://github.com/sekunho/emojied)) to
4343
the world. It went great, I'm glad people found it funny. However, I'm not too

flake.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
url = "git+ssh://git@github.com/tacohirosystems/tacopkgs";
99
inputs = {
1010
nixpkgs.follows = "nixpkgs";
11-
# flake-parts.follows = "flake-parts";
12-
# git-hooks.follows = "git-hooks";
1311
};
1412
};
1513
};

puggle.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
templates_dir: templates
22
dest_dir: public
33
assets_dir: assets
4+
base_url: https://sekun.net
45

56
pages:
67
- name: .
@@ -10,7 +11,10 @@ pages:
1011
template_path: layout/contact.html
1112

1213
- name: blog
14+
description: Technical writings, and ramblings about computers
1315
template_path: layout/blog.html
16+
rss: true
17+
rss_name: sekun's blog
1418

1519
entries:
1620
- source_dir: blog/posts

templates/component/img.html

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
11
{% macro img(class="cover", src="", alt="", size="base") %}
2-
<x-img>
3-
<template shadowrootmode="open">
4-
<img src="{{ src }}" alt="{{ alt }}"/>
5-
6-
<style>
7-
x-img-foo:not(:defined) > template[shadowrootmode] ~ * {
8-
display: none;
9-
}
10-
11-
img {
12-
{% if size == "sm" %}
13-
width: 50%;
14-
{% endif %}
15-
16-
{% if size == "base" %}
17-
width: 100%;
18-
{% endif %}
19-
20-
display: block;
21-
margin: 1rem auto;
22-
}
23-
</style>
24-
</template>
25-
</x-img>
2+
<img src="{{ src }}" alt="{{ alt }}">
263
{% endmacro %}

0 commit comments

Comments
 (0)