Experiment with neuromorphism
This commit is contained in:
parent
c11326b857
commit
de9a1799d1
3
justfile
3
justfile
|
@ -1,6 +1,9 @@
|
||||||
minify-sitemap:
|
minify-sitemap:
|
||||||
xmllint --noblanks dist/sitemap.xml --output dist/sitemap.xml
|
xmllint --noblanks dist/sitemap.xml --output dist/sitemap.xml
|
||||||
|
|
||||||
|
serve-dev:
|
||||||
|
http-server dist
|
||||||
|
|
||||||
# {{{ Linting
|
# {{{ Linting
|
||||||
lint: lint-vnu lint-css lint-htmltest lint-htmlvalidate
|
lint: lint-vnu lint-css lint-htmltest lint-htmlvalidate
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,15 @@ h6 {
|
||||||
/* Note: I need to check whether this only aligns things better with the font I use */
|
/* Note: I need to check whether this only aligns things better with the font I use */
|
||||||
transform: translateY(-2px);
|
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"] {
|
math[display="block"] {
|
||||||
|
@ -211,6 +220,11 @@ math[display="block"] {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
|
|
||||||
|
/* Neuromoprhism */
|
||||||
|
/* box-shadow: */
|
||||||
|
/* inset 3px 3px 6px #cccbc9, */
|
||||||
|
/* inset -3px -3px 6px white; */
|
||||||
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
margin: 1.5rem 0;
|
margin: 1.5rem 0;
|
||||||
|
|
11
src/html.rs
11
src/html.rs
|
@ -272,11 +272,16 @@ impl<'s> Writer<'s> {
|
||||||
Container::Div { class: "posts" } => {
|
Container::Div { class: "posts" } => {
|
||||||
write!(out, r#"<ol class="article-list">"#)?;
|
write!(out, r#"<ol class="article-list">"#)?;
|
||||||
for post in self.pages {
|
for post in self.pages {
|
||||||
// Skip drafts
|
// Skip non-posts
|
||||||
if post.config.created_at.is_none() {
|
if !matches!(post.route, PageRoute::Post(_)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip drafts
|
||||||
|
// if post.config.created_at.is_none() {
|
||||||
|
// continue;
|
||||||
|
// }
|
||||||
|
|
||||||
template!("templates/post-summary.html", out)?.feed(
|
template!("templates/post-summary.html", out)?.feed(
|
||||||
out,
|
out,
|
||||||
|label, out| {
|
|label, out| {
|
||||||
|
@ -284,6 +289,8 @@ impl<'s> Writer<'s> {
|
||||||
"id" => {
|
"id" => {
|
||||||
if let PageRoute::Post(id) = &post.route {
|
if let PageRoute::Post(id) = &post.route {
|
||||||
write!(out, "{id}")?;
|
write!(out, "{id}")?;
|
||||||
|
} else {
|
||||||
|
unreachable!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"title" => {
|
"title" => {
|
||||||
|
|
Loading…
Reference in a new issue