Experiment with neuromorphism
This commit is contained in:
parent
c11326b857
commit
de9a1799d1
3
justfile
3
justfile
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
11
src/html.rs
11
src/html.rs
|
@ -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" => {
|
||||
|
|
Loading…
Reference in a new issue