1
0

Add intro to plamo page and rename some related files and variable.

This commit is contained in:
Kevin Matsubara 2025-12-20 15:17:41 +01:00
parent 58ffb1215e
commit 490be0776e
3 changed files with 6 additions and 5 deletions

View File

@ -66,9 +66,9 @@ main = hakyll $ do
create ["plamo.html"] $ do create ["plamo.html"] $ do
route idRoute route idRoute
compile $ do compile $ do
posts <- recentFirst =<< loadAll "pages/en/plamo/gundam/**" kits <- recentFirst =<< loadAll "pages/en/plamo/**"
let plamoCtx = let plamoCtx =
listField "posts" postCtx (return posts) `mappend` listField "kits" postCtx (return kits) `mappend`
constField "title" "Plamo" `mappend` constField "title" "Plamo" `mappend`
constField "logosub" "Plamo enthousiast" `mappend` constField "logosub" "Plamo enthousiast" `mappend`
defaultContext defaultContext

View File

@ -1,5 +1,5 @@
<div class="row row-cols-1 row-cols-lg-2 row-cols-xl-3 g-4 p-1"> <div class="row row-cols-1 row-cols-lg-2 row-cols-xl-3 g-4 p-1">
$for(posts)$ $for(kits)$
<div class="col"> <div class="col">
<div class="card h-100 mb-3" style="max-width: 500px; min-width: 300px;"> <div class="card h-100 mb-3" style="max-width: 500px; min-width: 300px;">
<div class="row g-0"> <div class="row g-0">

View File

@ -1,3 +1,4 @@
<p>Plamo section</p> <p>The word "Plamo" is a portmonteau of the words "plastic" and "modelling". It involves building and painting models and figures from historic, science-fiction and fantasy themes.</p>
<p>Here you can find my collection and notes on this hobby.</p>
$partial("templates/plamo-showcase.html")$ $partial("templates/model-kits.html")$