chore: add custom placeholder and fine tune calepin-toml
This commit is contained in:
13 files changed
+216
-73
No files matched your search
File renamed without changes.
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="83.380997mm"
|
||||
height="83.36158mm"
|
||||
viewBox="0 0 83.380997 83.36158"
|
||||
version="1.1"
|
||||
id="svg5"
|
||||
xml:space="preserve"
|
||||
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||
sodipodi:docname="yggdrasil.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||
id="namedview7"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.0544998"
|
||||
inkscape:cx="-142.7217"
|
||||
inkscape:cy="163.58467"
|
||||
inkscape:window-width="1918"
|
||||
inkscape:window-height="1008"
|
||||
inkscape:window-x="953"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="layer1" /><defs
|
||||
id="defs2" /><g
|
||||
inkscape:label="Calque 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-48.417524,-42.311191)"><path
|
||||
style="fill:#000000;fill-opacity:1;stroke-width:0.264583"
|
||||
d="m 84.403651,125.38487 c -11.277707,-1.62161 -21.59067,-7.82705 -28.163642,-16.94643 -2.120561,-2.94208 -4.8935,-8.42917 -5.950044,-11.773956 C 48.523252,91.071465 47.926554,83.146337 48.845694,77.482192 49.93327,70.780068 52.639578,64.396111 56.667168,59.031973 67.423912,44.70563 85.766835,38.878817 102.96132,44.326174 c 3.29203,1.042943 7.26188,2.961672 10.21602,4.937663 19.27665,12.893945 24.40963,38.757842 11.51548,58.023873 -6.09124,9.10134 -15.84844,15.57084 -26.688341,17.69569 -3.690904,0.72349 -10.054808,0.91134 -13.600828,0.40147 z m 10.989334,-6.5207 c 2.686786,-0.37701 2.725391,-0.43473 1.345679,-2.01195 -1.435587,-1.64109 -3.538548,-2.98982 -4.661781,-2.98982 -1.068729,0 -3.863835,1.97691 -5.118653,3.6203 -0.511633,0.67006 -0.930243,1.31456 -0.930243,1.43221 0,0.48213 5.791144,0.45075 9.364998,-0.0507 z m -12.308406,-2.23288 c 0.491178,-0.94989 1.416942,-2.30977 2.057257,-3.02195 0.716828,-0.79729 1.054034,-1.36297 0.877507,-1.47207 -0.458722,-0.28351 -3.691126,0.13469 -5.353923,0.69268 -1.772833,0.5949 -6.014517,2.51905 -6.014517,2.72835 0,0.38049 6.053839,2.73968 7.14375,2.78394 0.228987,0.009 0.774661,-0.71448 1.289926,-1.71095 z m 21.922391,-0.66565 c 1.32429,-0.61183 2.17999,-1.15009 2.03713,-1.28142 -0.89744,-0.82506 -6.75815,-2.40932 -8.912889,-2.40932 h -0.802899 l 1.313889,1.38925 c 0.722638,0.76408 1.653769,1.90284 2.069189,2.53057 0.8887,1.34293 0.89352,1.34267 4.29558,-0.22908 z m -31.746628,-4.6207 c 5.042327,-1.65497 9.255499,-3.75495 11.033473,-5.49945 2.135584,-2.09538 2.630556,-3.61771 2.64709,-8.141381 0.01273,-3.481216 -0.01109,-3.637899 -0.781344,-5.14404 -0.652878,-1.276601 -1.026305,-1.672767 -2.095314,-2.222897 -2.0984,-1.079873 -4.794002,-0.902705 -11.52452,0.757452 -4.376931,1.079619 -5.851818,1.33617 -7.672917,1.334672 -2.419566,-0.0021 -5.635238,-0.651939 -7.782001,-1.572895 -0.71182,-0.305369 -1.356009,-0.493427 -1.43153,-0.417904 -0.198855,0.198855 0.419965,2.868422 1.19789,5.167654 1.894982,5.600809 5.871765,11.438149 10.391401,15.253069 1.091406,0.92123 2.072997,1.67616 2.181314,1.67762 0.108316,0.002 1.834723,-0.5349 3.836458,-1.1919 z m 41.755458,-2.57577 c 3.98707,-4.04651 6.77652,-8.5431 8.41183,-13.559894 0.65571,-2.011585 1.53407,-5.73677 1.38728,-5.883558 -0.0378,-0.03778 -0.77417,0.217977 -1.63644,0.568348 -1.97533,0.802648 -4.85026,1.391135 -7.91402,1.619967 -2.63428,0.196755 -5.34063,-0.171648 -9.83252,-1.338458 -5.10034,-1.324859 -7.486541,-1.144257 -8.407312,0.636318 -0.522383,1.010179 -1.01409,5.134496 -0.808157,6.778633 0.867765,6.928104 5.122759,11.319124 12.960829,13.375194 2.98126,0.78204 2.85796,0.82843 5.83851,-2.19655 z M 69.067334,88.753522 c 0.785339,-0.318225 1.947269,-0.951582 2.582067,-1.407459 l 1.154177,-0.828866 -0.552597,-0.588214 c -0.762039,-0.811154 -3.235689,-1.870228 -5.140703,-2.200955 -1.678927,-0.291475 -10.077076,-1.086461 -11.477263,-1.086461 -0.82324,0 -0.825862,0.0046 -0.825862,1.434907 0,1.131462 0.135254,1.595649 0.639572,2.194997 0.761174,0.904605 2.866943,2.092999 4.902132,2.766528 2.08043,0.688499 6.688349,0.538147 8.718477,-0.284477 z m 50.863986,-1.442054 c 1.25709,-0.374959 2.95373,-0.977217 3.77031,-1.338347 l 1.48469,-0.6566 V 83.08766 c 0,-1.225873 -0.18263,-3.286255 -0.40585,-4.578623 -0.43601,-2.52445 -1.17016,-5.39247 -1.38034,-5.39247 -0.0709,0 -0.81844,0.418835 -1.66114,0.930746 -0.90567,0.550169 -2.3141,1.821365 -3.44446,3.108854 -4.16097,4.73936 -7.11814,6.862702 -11.69519,8.397521 -0.98226,0.329382 -1.78594,0.678349 -1.78594,0.775486 0,0.247123 2.192,1.008276 4.23551,1.470744 2.7024,0.611582 7.99014,0.374246 10.88241,-0.48845 z M 83.761875,83.983222 c 1.482519,-0.243309 2.266112,-0.981247 2.266112,-2.134079 0,-0.40359 -0.478081,-1.688976 -1.062403,-2.856413 -1.828768,-3.653772 -5.014299,-6.267254 -9.742194,-7.992721 -1.196372,-0.436624 -2.320827,-0.793859 -2.498788,-0.793859 -0.177961,0 -0.619081,0.557051 -0.980265,1.23789 -0.85316,1.608223 -4.006178,4.820484 -5.692392,5.79935 -1.256203,0.729242 -1.476359,0.767323 -4.365626,0.75515 -1.944292,-0.0082 -3.589412,-0.165622 -4.557125,-0.436092 l -1.514417,-0.423272 -0.168301,0.89712 c -0.288931,1.540134 -0.178452,1.602422 3.212515,1.811239 7.690604,0.473594 9.811887,0.810062 14.217736,2.25515 6.282295,2.060549 7.990334,2.35563 10.885148,1.880537 z m 21.718565,-1.70688 c 3.55447,-1.135328 7.08989,-3.616397 9.42867,-6.616799 1.95582,-2.509107 3.72573,-4.128383 5.42887,-4.966837 0.92034,-0.453081 1.67334,-0.938086 1.67334,-1.077789 0,-0.30966 -1.98551,-4.112838 -2.50079,-4.790185 -0.34453,-0.452895 -0.55038,-0.305629 -2.9696,2.124496 -2.56587,2.577443 -5.413,4.708495 -7.40044,5.539176 -0.56089,0.234431 -2.24501,0.770331 -3.7425,1.190889 -4.54688,1.276956 -8.651044,3.452133 -9.458039,5.01269 -0.675886,1.307018 -0.367083,3.395645 0.617138,4.17408 0.767993,0.60742 6.325171,0.24016 8.923351,-0.589721 z M 90.412503,75.838005 c 0.403259,-0.403259 0.435912,-0.894781 0.294405,-4.431771 -0.183579,-4.588598 -0.714886,-7.121012 -2.229903,-10.62857 -1.904016,-4.4081Line truncated
|
||||
id="path304" /></g></svg>
|
||||
|
After Width: | Height: | Size: 8.7 KiB |
+62
-53
@@ -3,80 +3,89 @@ description = "Personal knowledge base."
|
||||
base-url = "https://yggdrasil.kb28.ch"
|
||||
theme = "calepin"
|
||||
pdf = false
|
||||
minify = true
|
||||
search = "pagefind"
|
||||
logo = "assets/yggdrasil.svg"
|
||||
favicon = "assets/yggdrasil.ico"
|
||||
|
||||
[robots]
|
||||
enabled = false
|
||||
|
||||
[pages]
|
||||
include = ["tags.typ"]
|
||||
exclude = ["drafts/**"]
|
||||
|
||||
[static]
|
||||
include = ["assets/**"]
|
||||
include = [
|
||||
"assets/**",
|
||||
"CNAME"
|
||||
]
|
||||
exclude = ["drafts/**"]
|
||||
|
||||
[[menus.main]]
|
||||
target = "home/index.typ"
|
||||
label = "Home"
|
||||
[menus]
|
||||
main = [
|
||||
{ label = "Home", target = "home/index.typ" },
|
||||
{ label = "IT", target = "it/index.typ" },
|
||||
{ label = "OT", target = "ot/index.typ" },
|
||||
{ label = "Security", target = "security/index.typ" },
|
||||
{ label = "Medias", target = "medias/index.typ" },
|
||||
]
|
||||
social = [
|
||||
{ label = "{icon:simple-icons:gitea}", target = "https://git.kb28.ch/Klagarge/Yggdrasil", aria-label = "Gitea" },
|
||||
]
|
||||
|
||||
[[menus.main]]
|
||||
target = "it/index.typ"
|
||||
label = "IT"
|
||||
|
||||
[[menus.main]]
|
||||
target = "ot/index.typ"
|
||||
label = "OT"
|
||||
|
||||
[[menus.main]]
|
||||
target = "security/index.typ"
|
||||
label = "Security"
|
||||
|
||||
[[menus.main]]
|
||||
target = "medias/index.typ"
|
||||
label = "Medias"
|
||||
[footer]
|
||||
item = [
|
||||
{ label = "© 2026" },
|
||||
{ label = "@Klagarge", target = "https://git.kb28.ch/Klagarge" },
|
||||
{ label = "@Fastium", target = "https://github.com/Fastium" },
|
||||
]
|
||||
|
||||
[sidebar]
|
||||
fold = true
|
||||
|
||||
[[sidebar.section]]
|
||||
title = "Home"
|
||||
item = [
|
||||
{ target = "home/index.typ" },
|
||||
{ glob = "home/*" }
|
||||
]
|
||||
|
||||
[[sidebar.section.item]]
|
||||
target = "home/index.typ"
|
||||
|
||||
[[sidebar.section.item]]
|
||||
target = "home/cooking.typ"
|
||||
|
||||
[[sidebar.section.item]]
|
||||
target = "home/washing-clothes.typ"
|
||||
|
||||
[[sidebar.section.item]]
|
||||
target = "home/gardening.typ"
|
||||
|
||||
[[sidebar.section]]
|
||||
title = "IT"
|
||||
|
||||
[[sidebar.section.item]]
|
||||
target = "it/index.typ"
|
||||
item = [
|
||||
{ target = "it/index.typ" },
|
||||
{ glob = "it/*" }
|
||||
]
|
||||
|
||||
[[sidebar.section]]
|
||||
title = "OT"
|
||||
|
||||
[[sidebar.section.item]]
|
||||
target = "ot/index.typ"
|
||||
item = [
|
||||
{ target = "ot/index.typ" },
|
||||
{ glob = "ot/*" }
|
||||
]
|
||||
|
||||
[[sidebar.section]]
|
||||
title = "Security"
|
||||
|
||||
[[sidebar.section.item]]
|
||||
target = "security/index.typ"
|
||||
|
||||
[[sidebar.section.item]]
|
||||
target = "security/ssh.typ"
|
||||
item = [
|
||||
{ target = "security/index.typ" },
|
||||
{ glob = "security/*" }
|
||||
]
|
||||
|
||||
[[sidebar.section]]
|
||||
title = "Medias"
|
||||
|
||||
[[sidebar.section.item]]
|
||||
target = "medias/index.typ"
|
||||
|
||||
[[sidebar.section.item]]
|
||||
target = "medias/films.typ"
|
||||
|
||||
[[sidebar.section.item]]
|
||||
target = "medias/series.typ"
|
||||
|
||||
[[sidebar.section.item]]
|
||||
target = "medias/books.typ"
|
||||
target = "medias/index.typ"
|
||||
item = [
|
||||
# { glob = "medias/films/*.typ" },
|
||||
# { glob = "medias/series/*.typ" },
|
||||
# { glob = "medias/books/*.typ" },
|
||||
{ target = "medias/index.typ" },
|
||||
{ glob = "medias/*.typ" },
|
||||
]
|
||||
section = [
|
||||
{ title = "Films", item = [{ glob = "medias/films/*.typ" }] },
|
||||
{ title = "Series", item = [{ glob = "medias/series/*.typ" }] },
|
||||
{ title = "Books", item = [{ glob = "medias/books/*.typ" }] },
|
||||
]
|
||||
@@ -1,6 +0,0 @@
|
||||
#set document(title: [Books])
|
||||
#metadata((title: "Books", translation_key: "medias-books")) <website-metadata>
|
||||
|
||||
#title()
|
||||
|
||||
Placeholder page — the real content comes later.
|
||||
@@ -0,0 +1,11 @@
|
||||
#set document(title: [Le Grand Cahier])
|
||||
#metadata((
|
||||
translation_key: "le_grand_cahier",
|
||||
date: "2026-10-10",
|
||||
author: "Rémi Heredero",
|
||||
pdf: true
|
||||
))<website-metadata>
|
||||
|
||||
#title()
|
||||
|
||||
This book is awesome!
|
||||
@@ -1,6 +0,0 @@
|
||||
#set document(title: [Films])
|
||||
#metadata((title: "Films", translation_key: "medias-films")) <website-metadata>
|
||||
|
||||
#title()
|
||||
|
||||
Placeholder page — the real content comes later.
|
||||
@@ -0,0 +1,10 @@
|
||||
#set document(title: [H2G2])
|
||||
#metadata((
|
||||
translation_key: "h2g2",
|
||||
date: "2026-10-10",
|
||||
author: "Rémi Heredero",
|
||||
pdf: true
|
||||
))<website-metadata>
|
||||
|
||||
#title()
|
||||
One of my favourites films!
|
||||
+38
-2
@@ -1,7 +1,43 @@
|
||||
#set document(title: [Medias])
|
||||
#metadata((title: "Overview", translation_key: "medias-index")) <website-metadata>
|
||||
#metadata((
|
||||
title: "Overview",
|
||||
translation_key: "medias-overview",
|
||||
date: "2026-10-10",
|
||||
tags: ("medias", "films", "series", "books"),
|
||||
author: "Rémi Heredero",
|
||||
summary: "My very opinionned ideas about somes films, series and books",
|
||||
draft: false,
|
||||
pdf: false
|
||||
))<website-metadata>
|
||||
|
||||
#title()
|
||||
|
||||
Placeholder page for the medias category: films, series, books.
|
||||
Placeholder page for the medias category.
|
||||
The real content comes later.
|
||||
|
||||
#import "@preview/calepin:0.1.0" as calepin
|
||||
#show: calepin.document
|
||||
|
||||
== Films
|
||||
#let posts = calepin.pages().filter(p => p.path.starts-with("medias/films/")).filter(p => not p.meta.at("draft", default: false)).sorted(key: p => p.meta.at("date", default: "")).rev()
|
||||
|
||||
#for post in posts [
|
||||
- #link(post.href)[#post.title] \
|
||||
#post.meta.at("summary", default: [])
|
||||
]
|
||||
|
||||
== Series
|
||||
#let posts = calepin.pages().filter(p => p.path.starts-with("medias/series/")).filter(p => not p.meta.at("draft", default: false)).sorted(key: p => p.meta.at("date", default: "")).rev()
|
||||
|
||||
#for post in posts [
|
||||
- #link(post.href)[#post.title] \
|
||||
#post.meta.at("summary", default: [])
|
||||
]
|
||||
|
||||
== Books
|
||||
#let posts = calepin.pages().filter(p => p.path.starts-with("medias/books/")).filter(p => not p.meta.at("draft", default: false)).sorted(key: p => p.meta.at("date", default: "")).rev()
|
||||
|
||||
#for post in posts [
|
||||
- #link(post.href)[#post.title] \
|
||||
#post.meta.at("summary", default: [])
|
||||
]
|
||||
@@ -0,0 +1,12 @@
|
||||
#set document(title: [Plex])
|
||||
#metadata((
|
||||
translation_key: "plex",
|
||||
date: "2026-10-10",
|
||||
author: "Rémi Heredero",
|
||||
summary: "Plex is a media server",
|
||||
pdf: true
|
||||
))<website-metadata>
|
||||
|
||||
#title()
|
||||
|
||||
I think I'll switch to Jellyfin not in so long time
|
||||
@@ -1,6 +0,0 @@
|
||||
#set document(title: [Series])
|
||||
#metadata((title: "Series", translation_key: "medias-series")) <website-metadata>
|
||||
|
||||
#title()
|
||||
|
||||
Placeholder page — the real content comes later.
|
||||
@@ -0,0 +1,17 @@
|
||||
#set document(title: [The Expanse])
|
||||
#metadata((
|
||||
translation_key: "the_expanse",
|
||||
date: "2026-10-10",
|
||||
author: "Rémi Heredero",
|
||||
summary: " - S01: 9/10
|
||||
- S02: 9/10
|
||||
- S03: 8/10
|
||||
- S04: 8/10
|
||||
- S05: 8/10
|
||||
- S06: 8/10",
|
||||
pdf: true
|
||||
))<website-metadata>
|
||||
|
||||
#title()
|
||||
|
||||
I love hard science!
|
||||
@@ -0,0 +1,23 @@
|
||||
#import "/.calepin/calepin.typ" as calepin
|
||||
#show: calepin.document
|
||||
|
||||
#let taxonomy(field) = {
|
||||
let pages = calepin.pages()
|
||||
.filter(page => page.meta.at(field, default: ()) != ())
|
||||
let terms = pages
|
||||
.map(page => page.meta.at(field))
|
||||
.flatten()
|
||||
.dedup()
|
||||
.sorted(key: term => lower(term))
|
||||
|
||||
for term in terms {
|
||||
heading(term, level: 2)
|
||||
for page in pages.filter(
|
||||
page => term in page.meta.at(field)
|
||||
) [
|
||||
- #link(page.href)[#page.title]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
#taxonomy("tags")
|
||||
Reference in new issue
Block a user