From f144c415aa5d205483191b5baa7ba791dc969f33 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 15 Feb 2023 22:23:30 +0100 Subject: Update --- assets/css/_declare-vars.scss | 4 +- assets/css/objects/_icon.scss | 10 +++++ assets/css/scopes/_links.scss | 46 ---------------------- assets/css/style.scss | 5 +-- .../archive/in-depth-image-descriptions.md | 1 + content/notebook/archive/index.md | 1 + scripts/metadata.lua | 4 ++ scripts/page.lua | 2 +- templates/layouts/categorized_list.html | 2 +- templates/partials/related.html | 2 +- yarn.lock | 40 +++++++++---------- 11 files changed, 43 insertions(+), 74 deletions(-) create mode 100644 assets/css/objects/_icon.scss delete mode 100644 assets/css/scopes/_links.scss diff --git a/assets/css/_declare-vars.scss b/assets/css/_declare-vars.scss index 6ffbb11..a4723c2 100644 --- a/assets/css/_declare-vars.scss +++ b/assets/css/_declare-vars.scss @@ -74,6 +74,6 @@ @include iro.props-store(( --colors: ( - --gray: fn.gray-palette(15%), + --gray: fn.gray-palette(11%), ), -), 'palette-dark-lo'); +), 'palette-dark'); diff --git a/assets/css/objects/_icon.scss b/assets/css/objects/_icon.scss new file mode 100644 index 0000000..fe3d03b --- /dev/null +++ b/assets/css/objects/_icon.scss @@ -0,0 +1,10 @@ +@use 'iro-sass/src/index' as iro; +@use 'iro-design/src/functions' as fn; + +@include iro.props-namespace('icon') { + @include iro.props-store(( + --dims: ( + --size: calc(1 / 16 * 16em), + ) + ), 'dims'); +} diff --git a/assets/css/scopes/_links.scss b/assets/css/scopes/_links.scss deleted file mode 100644 index a08ccd8..0000000 --- a/assets/css/scopes/_links.scss +++ /dev/null @@ -1,46 +0,0 @@ -@use 'iro-sass/src/index' as iro; -@use 'iro-design/src/functions' as fn; - -@include iro.props-namespace('links') { - @include iro.props-store(( - --colors: ( - --idle: fn.global-color(--accent --link-idle --obj-lo), - --visited: fn.global-color(--accent --link-visited --obj-lo), - --key-focus: ( - --border: fn.global-color(--focus --fill), - --shadow: 0 0 0 calc(fn.global-dim(--focus --outline-width) + 2px) fn.global-color(--accent --primary --semi), - ), - ) - ), 'colors'); - - @include iro.bem-scope(iro.props-namespace()) { - :link { - text-decoration: underline; - } - - :visited { - text-decoration: underline; - } - - :link, - :visited { - border-radius: .5px; - - @include iro.bem-at-theme('keyboard') { - &:focus { - box-shadow: 0 0 0 2px fn.color(--key-focus --border), fn.color(--key-focus --shadow); - } - } - } - - @include iro.bem-modifier('colored') { - :link { - color: fn.color(--idle); - } - - :visited { - color: fn.color(--visited); - } - } - } -} diff --git a/assets/css/style.scss b/assets/css/style.scss index 5759a50..d027a70 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -18,6 +18,7 @@ @use 'iro-design/src/objects/alert' as iro-alert; @use 'iro-design/src/objects/lightbox' as iro-lightbox; @use 'objects/emoji'; +@use 'objects/icon'; @use 'components/main'; @use 'components/footer'; @@ -29,14 +30,12 @@ @use 'iro-design/src/scopes/blockquotes' as iro-blockquotes; @use 'iro-design/src/scopes/code' as iro-code; -@use 'iro-design/src/scopes/colored-links' as iro-colored-links; +@use 'iro-design/src/scopes/links' as iro-links; @use 'iro-design/src/scopes/headings' as iro-headings; -@use 'iro-design/src/scopes/invisible-links' as iro-invisible-links; @use 'iro-design/src/scopes/lists' as iro-lists; @use 'iro-design/src/scopes/tables' as iro-tables; @use 'scopes/small'; @use 'scopes/alerts'; -@use 'scopes/links'; @use 'iro-design/src/utils'; diff --git a/content/notebook/archive/in-depth-image-descriptions.md b/content/notebook/archive/in-depth-image-descriptions.md index 3143a36..d79d976 100644 --- a/content/notebook/archive/in-depth-image-descriptions.md +++ b/content/notebook/archive/in-depth-image-descriptions.md @@ -2,6 +2,7 @@ schema_type: DigitalDocument title: Detailed Image Descriptions Aren't Always Helpful date: 2022-05-05 +unlisted: true references: - label: Original Post diff --git a/content/notebook/archive/index.md b/content/notebook/archive/index.md index 8892637..84120c2 100644 --- a/content/notebook/archive/index.md +++ b/content/notebook/archive/index.md @@ -4,6 +4,7 @@ position: 2 list_order: date_desc list_read_indicators: true feed: true +unlisted: true --- An archive of my posts from other platforms that I wanted to preserve. diff --git a/scripts/metadata.lua b/scripts/metadata.lua index 843ed3c..f83b314 100644 --- a/scripts/metadata.lua +++ b/scripts/metadata.lua @@ -145,6 +145,10 @@ function process_base(build, meta) meta.post_icon = meta.post_icon or (meta.parent and meta.parent.list_post_icon) or (meta.parent and meta.parent.parent and meta.parent.parent.list_post_icon) meta.indicator = meta.parent and meta.parent.list_read_indicators + + meta.content = meta.content:filter(function (el) + return el.tag ~= "LineBreak" + end) end function process(global, build, meta) diff --git a/scripts/page.lua b/scripts/page.lua index 72158a1..4c1e096 100644 --- a/scripts/page.lua +++ b/scripts/page.lua @@ -214,7 +214,7 @@ function process_base(meta) meta.prev = meta.prev and utils.stringify(meta.prev) meta.next = meta.next and utils.stringify(meta.next) meta.content = meta.content:filter(function (el) - return el.tag ~= "Str" or el.text ~= "ΒΆ" + return el.tag ~= "LineBreak" end) end diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index 33971a8..58a6dcc 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html @@ -17,7 +17,7 @@
-