summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-12-27 13:35:27 +0100
committerVolpeon <git@volpeon.ink>2021-12-27 13:35:27 +0100
commit84dcb995a86e5fcd904bd31a692492768ddefdc1 (patch)
treebad21661fc64908c880474fdd9cbb5b3c9e674ba
parentAdded project (diff)
downloadvolpeon.ink-84dcb995a86e5fcd904bd31a692492768ddefdc1.tar.gz
volpeon.ink-84dcb995a86e5fcd904bd31a692492768ddefdc1.tar.bz2
volpeon.ink-84dcb995a86e5fcd904bd31a692492768ddefdc1.zip
Simplified thumbnails
-rw-r--r--content/projects/doodles/2021-lazy-firefox/index.md2
-rw-r--r--content/projects/drawings/2021-cute-ava/index.md2
-rw-r--r--content/projects/drawings/2021-eeveelutions/index.md2
-rw-r--r--content/projects/drawings/2021-lycanroc-ava/index.md2
-rw-r--r--content/projects/drawings/2021-refsheet/index.md2
-rw-r--r--content/projects/drawings/2021-spooky-ava-1/index.md2
-rw-r--r--content/projects/drawings/2021-spooky-ava-2/index.md2
-rw-r--r--content/projects/emojis/blobfox/index.md2
-rw-r--r--content/projects/emojis/bunhd/index.md2
-rw-r--r--content/projects/emojis/vlpn/index.md2
-rw-r--r--scripts/metadata_filter.lua12
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---
2title: Lazy Firefox 2title: Lazy Firefox
3date: 2021-10-16 3date: 2021-10-16
4thumbnail: thumbnail.png 4thumbnail: 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---
2title: Cute Avatar 2title: Cute Avatar
3date: 2021-03-01 3date: 2021-03-01
4thumbnail: thumbnail.png 4thumbnail: 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---
2title: Eeveelutions 2title: Eeveelutions
3date: 2021-08-19 3date: 2021-08-19
4thumbnail: thumbnail.png 4thumbnail: 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---
2title: Lycanroc Avatar 2title: Lycanroc Avatar
3date: 2021-10-19 3date: 2021-10-19
4thumbnail: thumbnail.png 4thumbnail: 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---
2title: Reference Sheet Views 2title: Reference Sheet Views
3date: 2021-10-06 3date: 2021-10-06
4thumbnail: thumbnail.png 4thumbnail: 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---
2title: \"Spooky\" Avatar 2title: \"Spooky\" Avatar
3date: 2021-10-07 3date: 2021-10-07
4thumbnail: thumbnail.png 4thumbnail: 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---
2title: Spooky Avatar 2title: Spooky Avatar
3date: 2021-10-14 3date: 2021-10-14
4thumbnail: thumbnail.png 4thumbnail: 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---
2title: Blobfox 2title: Blobfox
3date: 2020-09-04 3date: 2020-09-04
4thumbnail: thumbnail.jpg 4thumbnail: 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---
2title: BunHD 2title: BunHD
3date: 2019-09-30 3date: 2019-09-30
4thumbnail: thumbnail.png 4thumbnail: 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---
2title: vlpn 2title: vlpn
3date: 2021-07-23 3date: 2021-07-23
4thumbnail: thumbnail.png 4thumbnail: 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
20end 20end
21 21
22function 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
29end
30
22function format_date(date) 31function 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