From a81b62cf82e1f0f2d31521ce0561201762ced44e Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 5 May 2021 21:57:07 +0200 Subject: Update --- assets/css/_vars.scss | 8 ++++---- assets/css/scopes/_body.scss | 11 ++--------- content/personal/index.md | 2 +- content/personal/infinite-skyscrapers/index.md | 12 ++++++++++++ filters/common_actions.lua | 2 +- scripts/metadata_filter.lua | 3 ++- templates/base.html | 2 +- templates/layouts/categorized_list.html | 8 +++----- templates/layouts/page.html | 4 +--- 9 files changed, 27 insertions(+), 25 deletions(-) diff --git a/assets/css/_vars.scss b/assets/css/_vars.scss index 721086b..263cb5d 100644 --- a/assets/css/_vars.scss +++ b/assets/css/_vars.scss @@ -13,8 +13,8 @@ $unit-intervals: ( ); $responsive-mod-scale: ( - xs: (.8rem, 1.37), - md: (.8rem, 1.6) + xs: (.8rem, 1.35), + md: (.8rem, 1.58) ); $font-fam--text: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif; @@ -81,11 +81,11 @@ $gray7: hsl(220, 7%, 100%); } } -/* @include store(( +@include store(( --dims: ( --outer: 3.5rem, ), -), 'sm'); */ +), 'sm'); :root { --heading--fg: var(--colors--fg-lo); diff --git a/assets/css/scopes/_body.scss b/assets/css/scopes/_body.scss index 9191249..b4d0a3c 100644 --- a/assets/css/scopes/_body.scss +++ b/assets/css/scopes/_body.scss @@ -7,7 +7,6 @@ ), --meta: ( --fg: prop(--colors --fg-hi, $global: true), - --bg: prop(--colors --bg-hi, $global: true), ) ) )); @@ -75,20 +74,14 @@ } @include element('meta') { - display: flex; - font-size: 1 / 16 * 15rem; + color: prop(--colors --meta --fg); + font-size: 1 / 18 * 16em; + h1 { margin-top: $line-height * 1rem; } } - @include element('meta-item') { - padding: .3em .7em; - background-color: prop(--colors --meta --bg); - color: prop(--colors --meta --fg); - } - img { max-width: 100%; } diff --git a/content/personal/index.md b/content/personal/index.md index 428f988..dd7423d 100644 --- a/content/personal/index.md +++ b/content/personal/index.md @@ -1,5 +1,5 @@ --- -title: Personal Notebook +title: Personal layout: categorized_list create_feed: true --- diff --git a/content/personal/infinite-skyscrapers/index.md b/content/personal/infinite-skyscrapers/index.md index a4a78e1..a56c596 100644 --- a/content/personal/infinite-skyscrapers/index.md +++ b/content/personal/infinite-skyscrapers/index.md @@ -43,3 +43,15 @@ I quickly enter the room next to me, hoping that the creature hasn't seen me. This floor was very large and open and brightly lit. The dream starts to make no sense anymore and that's it. + +# Headline 1 + +## Headline 2 + +### Headline 3 + +#### Headline 4 + +##### Headline 5 + +###### Headline 6 diff --git a/filters/common_actions.lua b/filters/common_actions.lua index 535a225..262f086 100644 --- a/filters/common_actions.lua +++ b/filters/common_actions.lua @@ -13,7 +13,7 @@ function CodeBlock(el) end function Header(el) - if el.level == 1 or el.level == 2 then + if el.level == 1 then local newchildren = pandoc.List() newchildren:insert(pandoc.Span(el.content, {class = 's-body__title-inner'})) diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index 8eedc63..90ca465 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua @@ -15,7 +15,8 @@ function format_date(date) yyyy = pandoc.MetaString(os.date("%Y", time)), mm = pandoc.MetaString(os.date("%m", time)), dd = pandoc.MetaString(os.date("%d", time)), - rfc3339 = pandoc.MetaString(os.date("%FT%T+00:00", time)) + rfc3339 = pandoc.MetaString(os.date("%FT%T+00:00", time)), + long = pandoc.MetaString(os.date("%B %d, %Y", time)), }) end diff --git a/templates/base.html b/templates/base.html index 23fd251..cd1e869 100644 --- a/templates/base.html +++ b/templates/base.html @@ -29,7 +29,7 @@ $if(section.is_index)$$else$$title$ – $endif$$site.title$ - + diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index 75c636a..8cc5c24 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html @@ -6,11 +6,9 @@ $body$ $for(pages.by_category)$

- - $for(it.value/first/first)$ - $it.category.name$ - $endfor$ - + $for(it.value/first/first)$ + $it.category.name$ + $endfor$