Compare commits
4 Commits
b43909cbcc
...
60c3af48f5
| Author | SHA1 | Date | |
|---|---|---|---|
| 60c3af48f5 | |||
| e2175daea7 | |||
| d6c587417e | |||
| 5e7f903750 |
@ -2,6 +2,10 @@
|
|||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.external::after {
|
||||||
|
content: " ↗";
|
||||||
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Plamo
|
title: Plamo
|
||||||
logosub: Plamoa
|
logosub: Plamo
|
||||||
language: "en"
|
language: "en"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -13,9 +13,6 @@ number: "5063349"
|
|||||||
release: "2022"
|
release: "2022"
|
||||||
manufacturer: "Bandai Spirits"
|
manufacturer: "Bandai Spirits"
|
||||||
purchase_date: "2024-08-14"
|
purchase_date: "2024-08-14"
|
||||||
purchase_store: ""
|
|
||||||
purchase_venue: ""
|
|
||||||
purchase_location: ""
|
|
||||||
---
|
---
|
||||||
|
|
||||||
The GAT-X370 Raider Gundam.
|
The GAT-X370 Raider Gundam.
|
||||||
|
|||||||
@ -14,7 +14,6 @@ release: "2011"
|
|||||||
manufacturer: "Bandai"
|
manufacturer: "Bandai"
|
||||||
purchase_date: "??"
|
purchase_date: "??"
|
||||||
purchase_store: "??"
|
purchase_store: "??"
|
||||||
purchase_venue: ""
|
|
||||||
purchase_location: "Japan"
|
purchase_location: "Japan"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,6 @@ manufacturer: "Bandai Spirits"
|
|||||||
purchase_date: "2025-03-10"
|
purchase_date: "2025-03-10"
|
||||||
purchase_store: "Geeks Heaven"
|
purchase_store: "Geeks Heaven"
|
||||||
purchase_venue: "Internet"
|
purchase_venue: "Internet"
|
||||||
purchase_location: ""
|
|
||||||
---
|
---
|
||||||
|
|
||||||
The AMX-104 R-Jarja.
|
The AMX-104 R-Jarja.
|
||||||
@ -14,7 +14,6 @@ release: "2021"
|
|||||||
manufacturer: "Bandai Spirits"
|
manufacturer: "Bandai Spirits"
|
||||||
purchase_date: "2024-09-11"
|
purchase_date: "2024-09-11"
|
||||||
purchase_store: "Gameforce"
|
purchase_store: "Gameforce"
|
||||||
purchase_venue: ""
|
|
||||||
purchase_location: "Eindhoven, Netherlands"
|
purchase_location: "Eindhoven, Netherlands"
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -15,7 +15,6 @@ manufacturer: "Bandai Spirits"
|
|||||||
purchase_date: "2025-10-18"
|
purchase_date: "2025-10-18"
|
||||||
purchase_store: "Geeks Heaven"
|
purchase_store: "Geeks Heaven"
|
||||||
purchase_venue: "Internet"
|
purchase_venue: "Internet"
|
||||||
purchase_location: ""
|
|
||||||
---
|
---
|
||||||
|
|
||||||
The sassy Nobell Gundam.
|
The sassy Nobell Gundam.
|
||||||
|
|||||||
@ -15,7 +15,6 @@ manufacturer: "Bandai Spirits"
|
|||||||
purchase_date: "2025-03-10"
|
purchase_date: "2025-03-10"
|
||||||
purchase_store: "Geeks Heaven"
|
purchase_store: "Geeks Heaven"
|
||||||
purchase_venue: "Internet"
|
purchase_venue: "Internet"
|
||||||
purchase_location: ""
|
|
||||||
---
|
---
|
||||||
|
|
||||||
The ORX-005 Gaplant.
|
The ORX-005 Gaplant.
|
||||||
@ -2,9 +2,9 @@
|
|||||||
logosub: "Plamo"
|
logosub: "Plamo"
|
||||||
language: "en"
|
language: "en"
|
||||||
title: "RX-110 Gabthley"
|
title: "RX-110 Gabthley"
|
||||||
page: "model-kits/gundam/hg/rx-110-gabthley"
|
page: "model-kits/gundam/hg/gabthley"
|
||||||
model_name: "RX-110 Gabthley"
|
model_name: "RX-110 Gabthley"
|
||||||
date: "1990-01-01"
|
date: "2025-12-26"
|
||||||
status: "Complete"
|
status: "Complete"
|
||||||
price: "€17,99"
|
price: "€17,99"
|
||||||
series: "Mobile Suit Zeta Gundam"
|
series: "Mobile Suit Zeta Gundam"
|
||||||
@ -15,7 +15,29 @@ manufacturer: "Bandai Spirits"
|
|||||||
purchase_date: "2025-03-10"
|
purchase_date: "2025-03-10"
|
||||||
purchase_store: "Geeks Heaven"
|
purchase_store: "Geeks Heaven"
|
||||||
purchase_venue: "Internet"
|
purchase_venue: "Internet"
|
||||||
purchase_location: ""
|
|
||||||
---
|
---
|
||||||
|
|
||||||
The RX-110 Gabthley.
|
The RX-110 Gabthley.
|
||||||
|
|
||||||
|
<figure class="text-center">
|
||||||
|
<picture class="d-flex justify-content-center">
|
||||||
|
<source
|
||||||
|
media="(max-width: 510px)"
|
||||||
|
srcset="/images/plamo/model-kits/gundam/hg/gabthley/20251020-box-contents-w240.webp"
|
||||||
|
/>
|
||||||
|
<source
|
||||||
|
media="(max-width: 850px)"
|
||||||
|
srcset="/images/plamo/model-kits/gundam/hg/gabthley/20251020-box-contents-w480.webp"
|
||||||
|
/>
|
||||||
|
<img
|
||||||
|
src="/images/plamo/model-kits/gundam/hg/gabthley/20251020-box-contents-w800.webp"
|
||||||
|
alt="box and contents"
|
||||||
|
class="img-fluid"
|
||||||
|
/>
|
||||||
|
</picture>
|
||||||
|
<figcaption class="figure-caption mt-2">
|
||||||
|
<a href="/images/plamo/model-kits/gundam/hg/gabthley/20251020-box-contents-w800.webp">
|
||||||
|
2025-10-20 - Gabthley box and contents.
|
||||||
|
</a>
|
||||||
|
</figcaption>
|
||||||
|
</figure>
|
||||||
@ -14,7 +14,6 @@ release: "2020"
|
|||||||
manufacturer: "Bandai Spirits"
|
manufacturer: "Bandai Spirits"
|
||||||
purchase_date: "2025-05-12"
|
purchase_date: "2025-05-12"
|
||||||
purchase_store: "The Gundam Base"
|
purchase_store: "The Gundam Base"
|
||||||
purchase_venue: ""
|
|
||||||
purchase_location: "Tokyo, Japan"
|
purchase_location: "Tokyo, Japan"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
logosub: "Plamo"
|
logosub: "Plamo"
|
||||||
language: "en"
|
language: "en"
|
||||||
title: "MS-06S Zaku II"
|
title: "MS-06S Zaku II"
|
||||||
page: "model-kits/gundam/mg/zaku-ii"
|
page: "model-kits/gundam/mg/zaku-2"
|
||||||
model_name: "MS-06S Zaku II"
|
model_name: "MS-06S Zaku II"
|
||||||
date: "1990-01-01"
|
date: "1990-01-01"
|
||||||
status: "Messing it up with putty"
|
status: "Messing it up with putty"
|
||||||
@ -15,7 +15,7 @@ manufacturer: "Bandai Spirits"
|
|||||||
purchase_date: "2025-02-07"
|
purchase_date: "2025-02-07"
|
||||||
purchase_store: "Modelbouw krikke"
|
purchase_store: "Modelbouw krikke"
|
||||||
purchase_venue: "Internet"
|
purchase_venue: "Internet"
|
||||||
purchase_location: ""
|
|
||||||
---
|
---
|
||||||
|
|
||||||
The MS-06S Zaku II.
|
The MS-06S Zaku II.
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ manufacturer: "Bandai Spirits"
|
|||||||
purchase_date: "2025-11-02"
|
purchase_date: "2025-11-02"
|
||||||
purchase_store: "Mecha Universe"
|
purchase_store: "Mecha Universe"
|
||||||
purchase_venue: "Internet"
|
purchase_venue: "Internet"
|
||||||
purchase_location: ""
|
purchase_location: "Barcelona, Spain"
|
||||||
---
|
---
|
||||||
|
|
||||||
The MG RGM-96X JESTA.
|
The MG RGM-96X JESTA.
|
||||||
@ -15,7 +15,6 @@ manufacturer: "Bandai Spirits"
|
|||||||
purchase_date: "2025-03-10"
|
purchase_date: "2025-03-10"
|
||||||
purchase_store: "Geeks Heaven"
|
purchase_store: "Geeks Heaven"
|
||||||
purchase_venue: "Internet"
|
purchase_venue: "Internet"
|
||||||
purchase_location: ""
|
|
||||||
---
|
---
|
||||||
|
|
||||||
The RGZ-95 ReZEL.
|
The RGZ-95 ReZEL.
|
||||||
@ -14,7 +14,6 @@ release: "2020"
|
|||||||
manufacturer: "Bandai Spirits"
|
manufacturer: "Bandai Spirits"
|
||||||
purchase_date: "2025-05-12"
|
purchase_date: "2025-05-12"
|
||||||
purchase_store: "The Gundam Base"
|
purchase_store: "The Gundam Base"
|
||||||
purchase_venue: ""
|
|
||||||
purchase_location: "Tokyo, Japan"
|
purchase_location: "Tokyo, Japan"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,6 @@ release: "2002"
|
|||||||
manufacturer: "Bandai"
|
manufacturer: "Bandai"
|
||||||
purchase_date: "2018-10-28"
|
purchase_date: "2018-10-28"
|
||||||
purchase_store: "Joshin Store"
|
purchase_store: "Joshin Store"
|
||||||
purchase_venue: ""
|
|
||||||
purchase_location: "Sakae, Nagoya, Japan"
|
purchase_location: "Sakae, Nagoya, Japan"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,6 @@ release: "2021"
|
|||||||
manufacturer: "Wave Corporation"
|
manufacturer: "Wave Corporation"
|
||||||
purchase_date: "2025-05-24"
|
purchase_date: "2025-05-24"
|
||||||
purchase_store: "Mandarake"
|
purchase_store: "Mandarake"
|
||||||
purchase_venue: ""
|
|
||||||
purchase_location: "Sakae, Nagoya, Japan"
|
purchase_location: "Sakae, Nagoya, Japan"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,6 @@ manufacturer: "Bandai Spirits"
|
|||||||
purchase_date: "2025-03-10"
|
purchase_date: "2025-03-10"
|
||||||
purchase_store: "Geeks Heaven"
|
purchase_store: "Geeks Heaven"
|
||||||
purchase_venue: "Internet"
|
purchase_venue: "Internet"
|
||||||
purchase_location: ""
|
|
||||||
---
|
---
|
||||||
|
|
||||||
The Acerby Type-D.
|
The Acerby Type-D.
|
||||||
@ -15,7 +15,6 @@ manufacturer: "Kotobukiya"
|
|||||||
purchase_date: "2025-11-13"
|
purchase_date: "2025-11-13"
|
||||||
purchase_store: "Archonia"
|
purchase_store: "Archonia"
|
||||||
purchase_venue: "Internet"
|
purchase_venue: "Internet"
|
||||||
purchase_location: ""
|
|
||||||
---
|
---
|
||||||
|
|
||||||
The player 2 ship from the game Ikaruga.
|
The player 2 ship from the game Ikaruga.
|
||||||
@ -14,7 +14,6 @@ release: "1979"
|
|||||||
manufacturer: "Bandai"
|
manufacturer: "Bandai"
|
||||||
purchase_date: "2025-05-24"
|
purchase_date: "2025-05-24"
|
||||||
purchase_store: "Mandarake"
|
purchase_store: "Mandarake"
|
||||||
purchase_venue: ""
|
|
||||||
purchase_location: "Sakae, Nagoya, Japan"
|
purchase_location: "Sakae, Nagoya, Japan"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,6 @@ release: "2012"
|
|||||||
manufacturer: "Bandai"
|
manufacturer: "Bandai"
|
||||||
purchase_date: ""
|
purchase_date: ""
|
||||||
purchase_store: "Hard off"
|
purchase_store: "Hard off"
|
||||||
purchase_venue: ""
|
|
||||||
purchase_location: "Gifu, Japan"
|
purchase_location: "Gifu, Japan"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -7,7 +7,6 @@ model_name: "Daihatsu Move CX '95/SR Turbo"
|
|||||||
date: "1990-01-01"
|
date: "1990-01-01"
|
||||||
status: "Still in box"
|
status: "Still in box"
|
||||||
price: "€18,99"
|
price: "€18,99"
|
||||||
series: ""
|
|
||||||
scale: "1/24"
|
scale: "1/24"
|
||||||
number: "039077"
|
number: "039077"
|
||||||
release: "2014"
|
release: "2014"
|
||||||
|
|||||||
@ -7,7 +7,6 @@ model_name: "Nissan March AK11 3 Door G# '99"
|
|||||||
date: "1990-01-01"
|
date: "1990-01-01"
|
||||||
status: "Still in box"
|
status: "Still in box"
|
||||||
price: "€15,39"
|
price: "€15,39"
|
||||||
series: ""
|
|
||||||
scale: "1/24"
|
scale: "1/24"
|
||||||
number: "03546"
|
number: "03546"
|
||||||
release: "2003"
|
release: "2003"
|
||||||
|
|||||||
@ -7,7 +7,6 @@ model_name: "Nissan March izf '93"
|
|||||||
date: "1990-01-01"
|
date: "1990-01-01"
|
||||||
status: "Still in box"
|
status: "Still in box"
|
||||||
price: "€57,00"
|
price: "€57,00"
|
||||||
series: ""
|
|
||||||
scale: "1/24"
|
scale: "1/24"
|
||||||
number: "03546"
|
number: "03546"
|
||||||
release: "2003"
|
release: "2003"
|
||||||
|
|||||||
@ -7,7 +7,6 @@ model_name: "Spähwagen Fennek"
|
|||||||
date: "1990-01-01"
|
date: "1990-01-01"
|
||||||
status: "Still in box"
|
status: "Still in box"
|
||||||
price: "€17,28"
|
price: "€17,28"
|
||||||
series: ""
|
|
||||||
scale: "1/72"
|
scale: "1/72"
|
||||||
number: "03356"
|
number: "03356"
|
||||||
release: "2024"
|
release: "2024"
|
||||||
|
|||||||
@ -7,7 +7,6 @@ model_name: "Sd.Kfz 222 Leichter Panzerspähwagen 4x4"
|
|||||||
date: "1990-01-01"
|
date: "1990-01-01"
|
||||||
status: "Building"
|
status: "Building"
|
||||||
price: "€26,00"
|
price: "€26,00"
|
||||||
series: "World War 2"
|
|
||||||
scale: "1/35"
|
scale: "1/35"
|
||||||
number: "35270"
|
number: "35270"
|
||||||
release: "2003"
|
release: "2003"
|
||||||
|
|||||||
@ -7,14 +7,12 @@ model_name: "Honda CX500 Turbo"
|
|||||||
date: "1990-01-01"
|
date: "1990-01-01"
|
||||||
status: "Still in box"
|
status: "Still in box"
|
||||||
price: "¥2080"
|
price: "¥2080"
|
||||||
series: ""
|
|
||||||
scale: "1/12"
|
scale: "1/12"
|
||||||
number: "14016"
|
number: "14016"
|
||||||
release: "2010"
|
release: "2010"
|
||||||
manufacturer: "Tamiya"
|
manufacturer: "Tamiya"
|
||||||
purchase_date: "2025-05-17"
|
purchase_date: "2025-05-17"
|
||||||
purchase_store: "Surugaya flagship store"
|
purchase_store: "Surugaya flagship store"
|
||||||
purchase_venue: ""
|
|
||||||
purchase_location: "Shizuoka, Japan"
|
purchase_location: "Shizuoka, Japan"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -7,7 +7,6 @@ model_name: "Honda Dax 125"
|
|||||||
date: "1990-01-01"
|
date: "1990-01-01"
|
||||||
status: "Still in box"
|
status: "Still in box"
|
||||||
price: "¥3146"
|
price: "¥3146"
|
||||||
series: ""
|
|
||||||
scale: "1/12"
|
scale: "1/12"
|
||||||
number: "14142"
|
number: "14142"
|
||||||
release: "2024"
|
release: "2024"
|
||||||
|
|||||||
@ -7,7 +7,6 @@ model_name: "Lanz Bulldog D8500 mod.1938"
|
|||||||
date: "1990-01-01"
|
date: "1990-01-01"
|
||||||
status: "Still in box"
|
status: "Still in box"
|
||||||
price: "€26,50"
|
price: "€26,50"
|
||||||
series: ""
|
|
||||||
scale: "1/35"
|
scale: "1/35"
|
||||||
number: "38024"
|
number: "38024"
|
||||||
release: "2020"
|
release: "2020"
|
||||||
|
|||||||
@ -7,7 +7,6 @@ model_name: "US army Tractor VAI with Field compaction roller"
|
|||||||
date: "1990-01-01"
|
date: "1990-01-01"
|
||||||
status: "Still in box"
|
status: "Still in box"
|
||||||
price: "€10,00*"
|
price: "€10,00*"
|
||||||
series: ""
|
|
||||||
scale: "1/72"
|
scale: "1/72"
|
||||||
number: "5391532331355"
|
number: "5391532331355"
|
||||||
release: "2024"
|
release: "2024"
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import Control.Monad (filterM)
|
|||||||
import Data.Maybe (fromMaybe)
|
import Data.Maybe (fromMaybe)
|
||||||
import Data.Monoid (mappend)
|
import Data.Monoid (mappend)
|
||||||
import Data.Time
|
import Data.Time
|
||||||
|
import Data.Time.Format (parseTimeM, defaultTimeLocale, formatTime)
|
||||||
import Hakyll
|
import Hakyll
|
||||||
|
|
||||||
|
|
||||||
@ -52,7 +53,7 @@ main = hakyll $ do
|
|||||||
>>= loadAndApplyTemplate "templates/default.html" (postCtx language)
|
>>= loadAndApplyTemplate "templates/default.html" (postCtx language)
|
||||||
>>= relativizeUrls
|
>>= relativizeUrls
|
||||||
|
|
||||||
match "pages/en/plamo/**" $ do
|
match "pages/*/plamo/**" $ do
|
||||||
route $ setExtension "html"
|
route $ setExtension "html"
|
||||||
compile $ do
|
compile $ do
|
||||||
identifier <- getUnderlying
|
identifier <- getUnderlying
|
||||||
@ -60,14 +61,18 @@ main = hakyll $ do
|
|||||||
let language = lookupString "language" metadata
|
let language = lookupString "language" metadata
|
||||||
|
|
||||||
let dateValue = lookupString "date" metadata
|
let dateValue = lookupString "date" metadata
|
||||||
|
purchaseDateValue = lookupString "purchase_date" metadata
|
||||||
|
formattedPurchaseDate = maybe "" formatDate purchaseDateValue
|
||||||
modelKitTemplate =
|
modelKitTemplate =
|
||||||
if dateValue == Just "1990-01-01"
|
if dateValue == Just "1990-01-01"
|
||||||
then "templates/model-kit-not-ready.html"
|
then "templates/model-kit-not-ready.html"
|
||||||
else "templates/model-kit.html"
|
else "templates/model-kit.html"
|
||||||
|
|
||||||
|
extendedCtx = constField "formatted_purchase_date" formattedPurchaseDate <> (postCtx language)
|
||||||
|
|
||||||
pandocCompiler
|
pandocCompiler
|
||||||
>>= loadAndApplyTemplate modelKitTemplate (postCtx language)
|
>>= loadAndApplyTemplate modelKitTemplate extendedCtx
|
||||||
>>= loadAndApplyTemplate "templates/default.html" (postCtx language)
|
>>= loadAndApplyTemplate "templates/default.html" extendedCtx
|
||||||
>>= relativizeUrls
|
>>= relativizeUrls
|
||||||
|
|
||||||
create ["archive.html"] $ do
|
create ["archive.html"] $ do
|
||||||
@ -98,17 +103,20 @@ main = hakyll $ do
|
|||||||
]) $ do
|
]) $ do
|
||||||
route idRoute
|
route idRoute
|
||||||
compile $ do
|
compile $ do
|
||||||
ident <- getUnderlying
|
-- ident <- getUnderlying
|
||||||
kits <- recentFirst =<< loadAll "pages/en/plamo/**"
|
|
||||||
|
|
||||||
-- language <- getMetadataField' ident "language"
|
-- language <- getMetadataField' ident "language"
|
||||||
|
|
||||||
identifier <- getUnderlying
|
identifier <- getUnderlying
|
||||||
metadata <- getMetadata identifier
|
metadata <- getMetadata identifier
|
||||||
let language = lookupString "language" metadata
|
let language = lookupString "language" metadata
|
||||||
let lang = fromMaybe "en" language
|
let lang = fromMaybe "en" language
|
||||||
|
|
||||||
|
let urla = "pages/" ++ lang ++ "/plamo/**"
|
||||||
|
-- TODO: other language do not seem to load any kits.
|
||||||
|
kits <- recentFirst =<< loadAll (fromGlob (urla))
|
||||||
|
|
||||||
let plamoCtx =
|
let plamoCtx =
|
||||||
listField "kits" (postCtx language) (return kits) <>
|
listField "kits" kitCtx (return kits) <>
|
||||||
langDict lang <>
|
langDict lang <>
|
||||||
defaultContext
|
defaultContext
|
||||||
|
|
||||||
@ -164,6 +172,12 @@ staticPageContext =
|
|||||||
langDict "en" <>
|
langDict "en" <>
|
||||||
defaultContext
|
defaultContext
|
||||||
|
|
||||||
|
formatDate :: String -> String
|
||||||
|
formatDate s =
|
||||||
|
case parseTimeM True defaultTimeLocale "%Y-%m-%d" s :: Maybe Day of
|
||||||
|
Just day -> formatTime defaultTimeLocale "%e %B %Y" day
|
||||||
|
Nothing -> s
|
||||||
|
|
||||||
postCtx :: Maybe String -> Context String
|
postCtx :: Maybe String -> Context String
|
||||||
postCtx language =
|
postCtx language =
|
||||||
let lang = fromMaybe "en" language
|
let lang = fromMaybe "en" language
|
||||||
@ -173,6 +187,15 @@ postCtx language =
|
|||||||
langDict lang <>
|
langDict lang <>
|
||||||
defaultContext
|
defaultContext
|
||||||
|
|
||||||
|
kitCtx :: Context String
|
||||||
|
kitCtx =
|
||||||
|
(field "formatted_purchase_date" $ \item -> do
|
||||||
|
metadata <- getMetadata (itemIdentifier item)
|
||||||
|
let purchaseDateValue = lookupString "purchase_date" metadata
|
||||||
|
return $ maybe "" formatDate purchaseDateValue
|
||||||
|
)
|
||||||
|
<> postCtx Nothing
|
||||||
|
|
||||||
isUpcoming :: UTCTime -> Item a -> Compiler Bool
|
isUpcoming :: UTCTime -> Item a -> Compiler Bool
|
||||||
isUpcoming cutoff item = do
|
isUpcoming cutoff item = do
|
||||||
metadata <- getMetadata (itemIdentifier item)
|
metadata <- getMetadata (itemIdentifier item)
|
||||||
|
|||||||
@ -10,6 +10,18 @@
|
|||||||
<link rel="stylesheet" href="/css/custom.css" />
|
<link rel="stylesheet" href="/css/custom.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<!-- Bootstrap icons. -->
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="d-none">
|
||||||
|
<symbol id="check-circle-fill" viewBox="0 0 16 16">
|
||||||
|
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/>
|
||||||
|
</symbol>
|
||||||
|
<symbol id="info-fill" viewBox="0 0 16 16">
|
||||||
|
<path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"/>
|
||||||
|
</symbol>
|
||||||
|
<symbol id="exclamation-triangle-fill" viewBox="0 0 16 16">
|
||||||
|
<path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"/>
|
||||||
|
</symbol>
|
||||||
|
</svg>
|
||||||
|
|
||||||
$partial("templates/navbar.html")$
|
$partial("templates/navbar.html")$
|
||||||
|
|
||||||
|
|||||||
15
portfolio/templates/model-kit-not-ready.html
Normal file
15
portfolio/templates/model-kit-not-ready.html
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<article>
|
||||||
|
<section class="header">
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<div class="alert alert-warning d-flex align-items-center" role="alert">
|
||||||
|
<svg class="bi flex-shrink-0 me-2" role="img" aria-label="Warning:"><use xlink:href="#exclamation-triangle-fill"/></svg>
|
||||||
|
<div>
|
||||||
|
$text-plamo-not-ready$<br/>
|
||||||
|
<a href="/$language$/plamo.html" class="alert-link">$text-plamo-back$</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
$body$
|
||||||
|
</section>
|
||||||
|
</article>
|
||||||
53
portfolio/templates/model-kit.html
Normal file
53
portfolio/templates/model-kit.html
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
<article>
|
||||||
|
<section class="header">
|
||||||
|
Posted on $date$
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<hr/>
|
||||||
|
Model information
|
||||||
|
<table class="table table-striped-columns">
|
||||||
|
$if(model_name)$
|
||||||
|
<tr><td>Model</td><td>$model_name$</td></tr>
|
||||||
|
$endif$
|
||||||
|
$if(scale)$
|
||||||
|
<tr><td>Scale</td><td>$scale$</td></tr>
|
||||||
|
$endif$
|
||||||
|
$if(series)$
|
||||||
|
<tr><td>Series</td><td>$series$</td></tr>
|
||||||
|
$endif$
|
||||||
|
$if(manufacturer)$
|
||||||
|
<tr><td>Manufacturer</td><td>$manufacturer$</td></tr>
|
||||||
|
$endif$
|
||||||
|
$if(release)$
|
||||||
|
<tr><td>Release year</td><td>$release$</td></tr>
|
||||||
|
$endif$
|
||||||
|
$if(number)$
|
||||||
|
<tr>
|
||||||
|
<td>Kit number</td><td><a class="external" aria-label="scalemates dot com (opens external site in new tab)" href="https://www.scalemates.com/search.php?fkSECTION%5B%5D=All&q=$number$*" target="_blank" rel="noopener noreferrer">$number$</a></td>
|
||||||
|
</tr>
|
||||||
|
$endif$
|
||||||
|
</table>
|
||||||
|
|
||||||
|
Purchase information
|
||||||
|
<table class="table table-striped-columns">
|
||||||
|
$if(purchase_date)$
|
||||||
|
<tr><td>Date</td><td>$formatted_purchase_date$</td></tr>
|
||||||
|
$endif$
|
||||||
|
$if(price)$
|
||||||
|
<tr><td>Price</td><td>$price$</td></tr>
|
||||||
|
$endif$
|
||||||
|
$if(purchase_store)$
|
||||||
|
<tr><td>Store</td><td>$purchase_store$</td></tr>
|
||||||
|
$endif$
|
||||||
|
$if(purchase_venue)$
|
||||||
|
<tr><td>Venue</td><td>$purchase_venue$</td></tr>
|
||||||
|
$endif$
|
||||||
|
$if(purchase_location)$
|
||||||
|
<tr><td>Location</td><td>$purchase_location$</td></tr>
|
||||||
|
$endif$
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
$body$
|
||||||
|
</section>
|
||||||
|
</article>
|
||||||
@ -6,13 +6,21 @@
|
|||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<a href="$url$"><h5 class="card-title">$title$</h5></a>
|
<a href="$url$"><h5 class="card-title">$title$</h5></a>
|
||||||
|
<p class="card-text"><em class="text-body-secondary">$date$</em></p>
|
||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
$model_name$ <span class="badge rounded-pill text-bg-secondary ms-4">$scale$</span><br/>
|
$model_name$ <span class="badge rounded-pill text-bg-secondary ms-4">$scale$</span><br/>
|
||||||
|
$if(series)$
|
||||||
Series: $series$<br/>
|
Series: $series$<br/>
|
||||||
$manufacturer$, $release$ - <a href="https://www.scalemates.com/search.php?fkSECTION%5B%5D=All&q=$number$*">$number$</a><br/>
|
$endif$
|
||||||
Bought at $purchase_store$ for $price$ <em>($purchase_date$)</em><br/>
|
$manufacturer$, $release$ - <a class="external" aria-label="scalemates dot com (opens external site in new tab)" href="https://www.scalemates.com/search.php?fkSECTION%5B%5D=All&q=$number$*" target="_blank" rel="noopener noreferrer">$number$</a><br/>
|
||||||
|
$if(purchase_store)$
|
||||||
|
$if(price)$
|
||||||
|
$if(purchase_date)$
|
||||||
|
Bought at $purchase_store$ for $price$<br/><em>($formatted_purchase_date$)</em><br/>
|
||||||
|
$endif$
|
||||||
|
$endif$
|
||||||
|
$endif$
|
||||||
</p>
|
</p>
|
||||||
<p class="card-text"><em class="text-body-secondary">$date$</em></p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user