1
Fork 0

Experiment with neuromorphism

This commit is contained in:
prescientmoon 2024-11-28 15:31:05 +01:00
parent c11326b857
commit de9a1799d1
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
3 changed files with 26 additions and 2 deletions

View file

@ -1,6 +1,9 @@
minify-sitemap:
xmllint --noblanks dist/sitemap.xml --output dist/sitemap.xml
serve-dev:
http-server dist
# {{{ Linting
lint: lint-vnu lint-css lint-htmltest lint-htmlvalidate

View file

@ -29,6 +29,15 @@ h6 {
/* Note: I need to check whether this only aligns things better with the font I use */
transform: translateY(-2px);
}
/* Neuromoprhism */
/* &:has(.heading-anchor) { */
/* padding: 0.5rem 1rem; */
/* border-radius: 6px; */
/* box-shadow: */
/* 3px 3px 6px #cccbc9, */
/* -3px -3px 10px white; */
/* } */
}
math[display="block"] {
@ -211,6 +220,11 @@ math[display="block"] {
border-radius: 3px;
border: 1px solid black;
/* Neuromoprhism */
/* box-shadow: */
/* inset 3px 3px 6px #cccbc9, */
/* inset -3px -3px 6px white; */
box-sizing: border-box;
padding: 1rem;
margin: 1.5rem 0;

View file

@ -272,11 +272,16 @@ impl<'s> Writer<'s> {
Container::Div { class: "posts" } => {
write!(out, r#"<ol class="article-list">"#)?;
for post in self.pages {
// Skip drafts
if post.config.created_at.is_none() {
// Skip non-posts
if !matches!(post.route, PageRoute::Post(_)) {
continue;
}
// Skip drafts
// if post.config.created_at.is_none() {
// continue;
// }
template!("templates/post-summary.html", out)?.feed(
out,
|label, out| {
@ -284,6 +289,8 @@ impl<'s> Writer<'s> {
"id" => {
if let PageRoute::Post(id) = &post.route {
write!(out, "{id}")?;
} else {
unreachable!()
}
}
"title" => {