From fd0ea710395904e1b4cf5f22fd17af13db43ce5f Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 16 Jul 2024 13:12:33 +0100 Subject: webtorrent and teaser support --- templates/article.html | 44 ++++++++++++++++++++++++++++++++++++++++++ templates/base.html | 2 +- templates/default.html | 33 ------------------------------- templates/load-webtorrent.html | 9 +++++++++ templates/post.html | 30 ++-------------------------- templates/thumbs.html | 18 ++++++++++++++++- 6 files changed, 73 insertions(+), 63 deletions(-) create mode 100644 templates/article.html delete mode 100644 templates/default.html create mode 100644 templates/load-webtorrent.html (limited to 'templates') diff --git a/templates/article.html b/templates/article.html new file mode 100644 index 0000000..e5ed720 --- /dev/null +++ b/templates/article.html @@ -0,0 +1,44 @@ +
+ $if(thumbnail)$ +
$thumbnail$
+ $endif$ + $if(torrent)$ +
+ + +
+ $endif$ +
+
+
+

$title$

+ permalink + raw + $if(torrent)$ + magnet link + $endif$ +
+
+ $if(author)$ +

$author$

+ $endif$ +

$date$

+ $if(tags)$ +

$tags$

+ $endif$ +
+
+
+
+
+ $body$ +
+
+
diff --git a/templates/base.html b/templates/base.html index 321ab9d..1875345 100644 --- a/templates/base.html +++ b/templates/base.html @@ -38,4 +38,4 @@ - + \ No newline at end of file diff --git a/templates/default.html b/templates/default.html deleted file mode 100644 index e91badc..0000000 --- a/templates/default.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - My Hakyll Blog - $title$ - - - -
- - -
- -
-

$title$

- $body$ -
- - - - diff --git a/templates/load-webtorrent.html b/templates/load-webtorrent.html new file mode 100644 index 0000000..0d7347f --- /dev/null +++ b/templates/load-webtorrent.html @@ -0,0 +1,9 @@ + diff --git a/templates/post.html b/templates/post.html index 77986ae..ddbd384 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,30 +1,4 @@
-
- $if(thumbnail)$ -
$thumbnail$
- $endif$ -
-
-
-

$title$

- permalink - raw -
-
- $if(author)$ -

$author$

- $endif$ -

$date$

- $if(tags)$ -

$tags$

- $endif$ -
-
-
-
-
- $body$ -
-
-
+ $partial("templates/load-webtorrent.html")$ + $partial("templates/article.html")$
\ No newline at end of file diff --git a/templates/thumbs.html b/templates/thumbs.html index 91cfd74..3fcc6f7 100644 --- a/templates/thumbs.html +++ b/templates/thumbs.html @@ -5,6 +5,17 @@
$thumbnail$

$endif$ + $if(torrent)$ + + + $endif$

$title$

@@ -22,6 +33,11 @@ $subtitle$
$endif$ + $if(teaser)$ +
+ $teaser$read more... +
+ $endif$ $endfor$ - \ No newline at end of file + -- cgit