diff options
-rw-r--r-- | content/projects/doodles/2021-lazy-firefox/index.md | 2 | ||||
-rw-r--r-- | content/projects/drawings/2021-cute-ava/index.md | 2 | ||||
-rw-r--r-- | content/projects/drawings/2021-eeveelutions/index.md | 2 | ||||
-rw-r--r-- | content/projects/drawings/2021-lycanroc-ava/index.md | 2 | ||||
-rw-r--r-- | content/projects/drawings/2021-refsheet/index.md | 2 | ||||
-rw-r--r-- | content/projects/drawings/2021-spooky-ava-1/index.md | 2 | ||||
-rw-r--r-- | content/projects/drawings/2021-spooky-ava-2/index.md | 2 | ||||
-rw-r--r-- | content/projects/emojis/blobfox/index.md | 2 | ||||
-rw-r--r-- | content/projects/emojis/bunhd/index.md | 2 | ||||
-rw-r--r-- | content/projects/emojis/vlpn/index.md | 2 | ||||
-rw-r--r-- | scripts/metadata_filter.lua | 12 |
11 files changed, 21 insertions, 11 deletions
diff --git a/content/projects/doodles/2021-lazy-firefox/index.md b/content/projects/doodles/2021-lazy-firefox/index.md index 311ea5e..f97a139 100644 --- a/content/projects/doodles/2021-lazy-firefox/index.md +++ b/content/projects/doodles/2021-lazy-firefox/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Lazy Firefox | 2 | title: Lazy Firefox |
3 | date: 2021-10-16 | 3 | date: 2021-10-16 |
4 | thumbnail: thumbnail.png | 4 | thumbnail: png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](firefox_lazy.png) | 7 | ![](firefox_lazy.png) |
diff --git a/content/projects/drawings/2021-cute-ava/index.md b/content/projects/drawings/2021-cute-ava/index.md index 26d0dfc..43171a9 100644 --- a/content/projects/drawings/2021-cute-ava/index.md +++ b/content/projects/drawings/2021-cute-ava/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Cute Avatar | 2 | title: Cute Avatar |
3 | date: 2021-03-01 | 3 | date: 2021-03-01 |
4 | thumbnail: thumbnail.png | 4 | thumbnail: png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](ava.png) | 7 | ![](ava.png) |
diff --git a/content/projects/drawings/2021-eeveelutions/index.md b/content/projects/drawings/2021-eeveelutions/index.md index 98c071e..b169ee0 100644 --- a/content/projects/drawings/2021-eeveelutions/index.md +++ b/content/projects/drawings/2021-eeveelutions/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Eeveelutions | 2 | title: Eeveelutions |
3 | date: 2021-08-19 | 3 | date: 2021-08-19 |
4 | thumbnail: thumbnail.png | 4 | thumbnail: png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](eevee.png) | 7 | ![](eevee.png) |
diff --git a/content/projects/drawings/2021-lycanroc-ava/index.md b/content/projects/drawings/2021-lycanroc-ava/index.md index 9bf1a5c..275df4d 100644 --- a/content/projects/drawings/2021-lycanroc-ava/index.md +++ b/content/projects/drawings/2021-lycanroc-ava/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Lycanroc Avatar | 2 | title: Lycanroc Avatar |
3 | date: 2021-10-19 | 3 | date: 2021-10-19 |
4 | thumbnail: thumbnail.png | 4 | thumbnail: png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](ava.png) | 7 | ![](ava.png) |
diff --git a/content/projects/drawings/2021-refsheet/index.md b/content/projects/drawings/2021-refsheet/index.md index c4c9bdd..2163fac 100644 --- a/content/projects/drawings/2021-refsheet/index.md +++ b/content/projects/drawings/2021-refsheet/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Reference Sheet Views | 2 | title: Reference Sheet Views |
3 | date: 2021-10-06 | 3 | date: 2021-10-06 |
4 | thumbnail: thumbnail.png | 4 | thumbnail: png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](bottom.png) | 7 | ![](bottom.png) |
diff --git a/content/projects/drawings/2021-spooky-ava-1/index.md b/content/projects/drawings/2021-spooky-ava-1/index.md index 7a988c3..5099dcc 100644 --- a/content/projects/drawings/2021-spooky-ava-1/index.md +++ b/content/projects/drawings/2021-spooky-ava-1/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: \"Spooky\" Avatar | 2 | title: \"Spooky\" Avatar |
3 | date: 2021-10-07 | 3 | date: 2021-10-07 |
4 | thumbnail: thumbnail.png | 4 | thumbnail: png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](ava.png) | 7 | ![](ava.png) |
diff --git a/content/projects/drawings/2021-spooky-ava-2/index.md b/content/projects/drawings/2021-spooky-ava-2/index.md index 9854adf..84064db 100644 --- a/content/projects/drawings/2021-spooky-ava-2/index.md +++ b/content/projects/drawings/2021-spooky-ava-2/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Spooky Avatar | 2 | title: Spooky Avatar |
3 | date: 2021-10-14 | 3 | date: 2021-10-14 |
4 | thumbnail: thumbnail.png | 4 | thumbnail: png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](ava.png) | 7 | ![](ava.png) |
diff --git a/content/projects/emojis/blobfox/index.md b/content/projects/emojis/blobfox/index.md index b7733c9..22c4a93 100644 --- a/content/projects/emojis/blobfox/index.md +++ b/content/projects/emojis/blobfox/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: Blobfox | 2 | title: Blobfox |
3 | date: 2020-09-04 | 3 | date: 2020-09-04 |
4 | thumbnail: thumbnail.jpg | 4 | thumbnail: jpg |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](screenshot.png) | 7 | ![](screenshot.png) |
diff --git a/content/projects/emojis/bunhd/index.md b/content/projects/emojis/bunhd/index.md index 900d910..4181b75 100644 --- a/content/projects/emojis/bunhd/index.md +++ b/content/projects/emojis/bunhd/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: BunHD | 2 | title: BunHD |
3 | date: 2019-09-30 | 3 | date: 2019-09-30 |
4 | thumbnail: thumbnail.png | 4 | thumbnail: png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](screenshot.png) | 7 | ![](screenshot.png) |
diff --git a/content/projects/emojis/vlpn/index.md b/content/projects/emojis/vlpn/index.md index 02b8e38..9cec213 100644 --- a/content/projects/emojis/vlpn/index.md +++ b/content/projects/emojis/vlpn/index.md | |||
@@ -1,7 +1,7 @@ | |||
1 | --- | 1 | --- |
2 | title: vlpn | 2 | title: vlpn |
3 | date: 2021-07-23 | 3 | date: 2021-07-23 |
4 | thumbnail: thumbnail.png | 4 | thumbnail: png |
5 | --- | 5 | --- |
6 | 6 | ||
7 | ![](preview.png) | 7 | ![](preview.png) |
diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index b16ab92..413ded5 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua | |||
@@ -19,6 +19,15 @@ function pandoc.List:take(n) | |||
19 | return result | 19 | return result |
20 | end | 20 | end |
21 | 21 | ||
22 | function file_exists(name) | ||
23 | local f = io.open(name, "r") | ||
24 | if f ~= nil then | ||
25 | io.close(f) | ||
26 | return true | ||
27 | end | ||
28 | return false | ||
29 | end | ||
30 | |||
22 | function format_date(date) | 31 | function format_date(date) |
23 | if not date then return date end | 32 | if not date then return date end |
24 | 33 | ||
@@ -297,7 +306,8 @@ function process(global, meta) | |||
297 | end | 306 | end |
298 | 307 | ||
299 | if meta.thumbnail then | 308 | if meta.thumbnail then |
300 | meta.thumbnail = make_absolute(pandoc.utils.stringify(meta.thumbnail), meta.file_out) | 309 | meta.thumbnail = make_absolute("thumbnail." .. pandoc.utils.stringify(meta.thumbnail), |
310 | meta.file_out) | ||
301 | meta.thumbnail = resolve_url(global.site.url, global.file_out, meta.thumbnail) | 311 | meta.thumbnail = resolve_url(global.site.url, global.file_out, meta.thumbnail) |
302 | end | 312 | end |
303 | 313 | ||