From be6de4c8512a493b4cd4445aa2bbdd4ad283d761 Mon Sep 17 00:00:00 2001 From: Luca Fedrizzi <9001053+fedriz@users.noreply.github.com> Date: Tue, 19 Jul 2022 12:55:27 +0200 Subject: [PATCH 01/26] Add Poetry and Tailwind, djlint dependencies --- pyproject.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..173759d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,17 @@ +[tool.poetry] +name = "pelican-blog" +version = "0.1.0" +description = "The Pelican Blog" +authors = ["Luca Fedrizzi <9001053+fedriz@users.noreply.github.com>"] +readme = "README.rst" +packages = [{include = "pelican_blog"}] + +[tool.poetry.dependencies] +python = ">=3.10,<4.0" +pelican-tailwindcss = ">=0.2.0" +djlint = ">=1.7.0" + + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" From b880e581c1d16874bc4d312f54a89a0a0eb8154a Mon Sep 17 00:00:00 2001 From: Luca Fedrizzi <9001053+fedriz@users.noreply.github.com> Date: Tue, 19 Jul 2022 12:58:52 +0200 Subject: [PATCH 02/26] Add Tailwind to theme and configurations --- input.css | 3 +++ pelicanconf.py | 8 ++++++++ tailwind.config.js | 11 +++++++++++ themes/notmyidea/templates/base.html | 1 + 4 files changed, 23 insertions(+) create mode 100644 input.css create mode 100644 tailwind.config.js diff --git a/input.css b/input.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/input.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/pelicanconf.py b/pelicanconf.py index f9ac167..c4af5b4 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -68,3 +68,11 @@ }, "output_format": "html5", } + +TAILWIND = { + "version": "3.0.0", + "plugins": [ + "@tailwindcss/typography", + "@tailwindcss/line-clamp", + ], +} diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..affa5f5 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,11 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: ["./themes/**/*.html", "./themes/**/*.js"], + theme: { + extend: {}, + }, + plugins: [ + require("@tailwindcss/typography"), + require("@tailwindcss/line-clamp"), + ], +}; diff --git a/themes/notmyidea/templates/base.html b/themes/notmyidea/templates/base.html index da6184e..9bfb16b 100644 --- a/themes/notmyidea/templates/base.html +++ b/themes/notmyidea/templates/base.html @@ -14,6 +14,7 @@ +
From 18b540217238c72668595bdb2b875070fb5b9caf Mon Sep 17 00:00:00 2001 From: Luca Fedrizzi <9001053+fedriz@users.noreply.github.com> Date: Tue, 19 Jul 2022 12:59:05 +0200 Subject: [PATCH 03/26] Ignore .vscode folder --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 748deb9..bfb1841 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ *.out *.py[cod] output +.vscode From 68fb6f96b9208a85ae2d90f9166b46d821fea3b0 Mon Sep 17 00:00:00 2001 From: Luca Fedrizzi <9001053+fedriz@users.noreply.github.com> Date: Tue, 19 Jul 2022 13:55:30 +0200 Subject: [PATCH 04/26] Add tool.djlint configuration --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 173759d..7ce19dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,3 +15,8 @@ djlint = ">=1.7.0" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" + +[tool.djlint] +profile="jinja" +indent=2 +ignore="T028,H006" From 28079d2889ff5e717aa5623f7ee30bc5eb54bd4f Mon Sep 17 00:00:00 2001 From: Luca Fedrizzi <9001053+fedriz@users.noreply.github.com> Date: Tue, 19 Jul 2022 14:24:37 +0200 Subject: [PATCH 05/26] Initial fix of base.html --- themes/notmyidea/templates/base.html | 190 ++++++++++++++++----------- 1 file changed, 116 insertions(+), 74 deletions(-) diff --git a/themes/notmyidea/templates/base.html b/themes/notmyidea/templates/base.html index 9bfb16b..6907148 100644 --- a/themes/notmyidea/templates/base.html +++ b/themes/notmyidea/templates/base.html @@ -1,79 +1,121 @@ - - -c}bc!y{n95-GrNCAwa<&HOp{
z6P$~0&JT(6`-wyI?u8oWo4!}i;p$89!wpb5g(xefcLGHq6-<9^zlZz K<582zk+WQ(3IMFpT)44
zLjlG?fiskRtjLs=0=(s*pmPP3p$nUqpb~+=1sVaI21T)Go=Dbul@#r7S)7t&H`gR{
zqU%~`u95p}!4@{Drru%xbCYb6f6;r9+jUXnyHsTLpY1gXc!dHc!39?l4B&zlMD3mH
zMD27P)LtQc`tdP@5r`_YkQt^wg?;pV3kGpI-;zURv&grIKpJISh{Ta{fjAX87onWB
zG~BkoJvyk#HV2#Ms`>v+j}|4n_cz?^v3YF#e52d%adW%X>zjMK#T1PO0SU}{DUIk*
z8C3rMwyTIdZViH*h1>`MP%y?1Le5w~$fo@;22G~ulmZ_L#l28~oCk!L;FpQyyU;R4
zZO|HJ??+#`T{~yvW)m~-WPh?9;wvyi8ugwofL6*-1tdkK>}njY+AGDOM2RE>?1E4w
zZ>^ys_<~TVzrp{jdOAF%Slibq))gXf^ONf&_U@4k
z2{N_#;6IUi@>#V+1D1-XQYlJWnF
`G04R06uFm+~nM3}Q?G#~XyeF+Tyw$cMr~eeW69waI;q
z3UH?a=tKU6lZjLl=(*aUvE$2?YRx5-5FP<7FjE>1?GGuuCJ@VLztwfLNfwDs&00
z&MH1jCfNpS#SCr$a4
$_WOG
mb?#}R*%4j(VLYH*AKF5oSrn0PZ0T66rs0j%h=b^w~umnB;
diff --git a/themes/notmyidea/static/fonts/Yanone_Kaffeesatz_400.svg b/themes/notmyidea/static/fonts/Yanone_Kaffeesatz_400.svg
deleted file mode 100644
index a69669b..0000000
--- a/themes/notmyidea/static/fonts/Yanone_Kaffeesatz_400.svg
+++ /dev/null
@@ -1,407 +0,0 @@
-
-
-
diff --git a/themes/notmyidea/static/fonts/Yanone_Kaffeesatz_400.ttf b/themes/notmyidea/static/fonts/Yanone_Kaffeesatz_400.ttf
deleted file mode 100644
index 6f4feb02d14c849ba1fb7dc112243386b2ad8f2f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 39168
zcmbrn2Y@6;bvItsJ<~lo=RDJs!-kpNnGJV)a~m$~Ue2pad%7s;PFX?;Wk3NWfdmL4
zkPre%2Em>{fI)l)Otdk{SYTTqfj|fw^T&V*Hn;ozUiIwW-XQ^>|0nhIOm}tHt5+|-
zSG9~Y#@zTYFxTqwiB*P23?F3d4UgjLm8&;x-1^*k-@J{n+hUA4A78z7`{#%}&D?%#Lh
z;-e?7Jaoe~j9r2E*#k!pTy`<8yU^c*IGc_hzxv3N=Nx+u@5cQLHXJ*A;E?$@YYs7X
zAr96&h6_qs-ii04PnJD);_|E3-4n#u3-P@C`0 meagOJ$L|dL+lXncbr}#4pn@wLEQwFCze;t
z#dJvX7TritNS`Ei^E
($@BF0DOYBjY?uurWDw7O?fW0>0+qJ;xE&sK?6yQ;Ib%4`i>
z*bN5wznz_Za8<<>!0&xuc_ASmkPs!+dGP^GO?ZYN5+G>Eryo%QqD>S_ViF({h{m9(
zSm_6f%+#4qr~f#uRR?W{sht->Mez$;Tfe5ZDl=8FVwtH`OSL0aN2hiBJ7@2G?8S-w|-2nUpBM8@g