blog.grace.moe

Source for the blog blog.grace.moe
git clone https://git.grace.moe/blog.grace.moe
Log | Files | Refs

commit 6032864bbbf419235fbcddd2a558f93c0d9da9fe
parent 5b4b7692047333fbc2127e0b1ac569629a7bd93e
Author: gracefu <81774659+gracefuu@users.noreply.github.com>
Date:   Mon,  5 May 2025 20:09:08 +0800

Various changes

Diffstat:
Mcontent/posts/b.smd | 75+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
Mlayouts/templates/template.shtml | 15+++++++++++----
Mzine.ziggy | 2++
3 files changed, 84 insertions(+), 8 deletions(-)

diff --git a/content/posts/b.smd b/content/posts/b.smd @@ -28,7 +28,7 @@ Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Par Paragraph with `code`. Paragraph with `code`. Paragraph with `code`. Paragraph with `code`. Paragraph with `code`. Paragraph with `code`. Paragraph with `code`. Paragraph with `code`. Paragraph with `code`. Paragraph with `code`. -Paragraph with [`zine`]($text.attrs('zig')). Paragraph with [`zine`]($text.attrs('zig')). Paragraph with [`zine`]($text.attrs('zig')). Paragraph with [`zine`]($text.attrs('zig')). Paragraph with [`zine`]($text.attrs('zig')). Paragraph with [`zine`]($text.attrs('zig')). Paragraph with [`zine`]($text.attrs('zig')). Paragraph with [`zine`]($text.attrs('zig')). Paragraph with [`zine`]($text.attrs('zig')). Paragraph with [`zine`]($text.attrs('zig')). +Paragraph with [`enum`]($text.attrs('zig')). Paragraph with [`enum`]($text.attrs('zig')). Paragraph with [`enum`]($text.attrs('zig')). Paragraph with [`enum`]($text.attrs('zig')). Paragraph with [`enum`]($text.attrs('zig')). Paragraph with [`enum`]($text.attrs('zig')). Paragraph with [`enum`]($text.attrs('zig')). Paragraph with [`enum`]($text.attrs('zig')). Paragraph with [`enum`]($text.attrs('zig')). Paragraph with [`enum`]($text.attrs('zig')). ``` code @@ -72,7 +72,7 @@ code > > another quote -[This is the caption]($image.siteAsset('icons/favicon-16x16.png')) +[This is the caption]($image.siteAsset('icons/favicon-16x16.png').size(160,0)) ```=html <style> @@ -86,12 +86,70 @@ code width: 100%; height: 100%; background: rgba(128, 0, 0, 2%); - border-radius: 20px; + border-radius: calc(10px / 0.4142135623730951); + padding: 10px; + } + .hide { + display: none; } </style> ``` ->[]($block.attrs('grid')) +> []($block.attrs('grid')) +> +> > []($block.attrs('cell')) +> > +> > - tight tight tight +> > - tight tight tight +> > - tight tight tight +> > - tight tight tight +> > - tight tight tight +> > - tight tight tight +> +> > []($block.attrs('cell')) +> > +> > - loose loose loose +> > +> > - tight tight tight +> > - tight tight tight +> > - tight tight tight +> > +> > loose loose loose +> > +> > - loose loose loose +> > +> > - loose loose loose +> +> > []($block.attrs('cell')) +> > +> > - tight tight tight +> > - loose loose loose +> > +> > - loose loose loose +> > +> > - loose loose loose +> > - tight tight tight +> > - tight tight tight +> +> > []($block.attrs('cell')) +> > +> > - loose loose loose +> > +> > - loose loose loose +> > +> > - loose loose loose +> > +> > - loose loose loose +> > +> > loose loose loose +> > +> > - loose loose loose +> > +> > - loose loose loose + +---- + +> []($block.attrs('grid','non-hierarchical','hide')) > > > []($block.attrs('cell')) > > @@ -143,8 +201,17 @@ code > > > > - loose loose loose +| simple | table | +| ------ | ----- | +| row | blah | +| row | wew | + Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. +> []($block) +> +> test + # Heading 1 Heading 1 ## Heading 2 Heading 2 diff --git a/layouts/templates/template.shtml b/layouts/templates/template.shtml @@ -144,7 +144,7 @@ /* Blocky texts */ /* Headings: h1, h2, h3, h4, h5, h6 */ - /* Biglets: blockquote, figure, img, video, figcaption, details, pre, dl, ul, ol, menu */ + /* Biglets: blockquote, figure, figcaption, details, pre, dl, ul, ol, menu */ /* Everything else: p, li, dt, dd, ... */ /* Lists have special rules: They remove spacing from their children. */ @@ -187,7 +187,7 @@ :is(.hierarchical *:not(.non-hierarchical *), .hierarchical-self ):not(:is(ol, ul, dl, menu).tight > li, :is(ol, ul, dl, menu).tight > li > * - ):is(blockquote, figure, img, video, figcaption, details, pre, dl, ul, ol, menu) { + ):is(blockquote, figure, figcaption, details, pre, dl, ul, ol, menu) { padding-block-end: var(--biglets-padding); padding-block-start: var(--biglets-padding); } @@ -234,6 +234,13 @@ border-inline-start: 3px solid gray; } + figure > img { + margin-inline: auto; + } + figure > figcaption { + text-align: center; + } + ul, ol, dl, menu { padding-inline-start: 1.5em; } @@ -246,8 +253,8 @@ } tags > * { background: #ffe8c8; - border-radius: calc(0.5ch / 0.4142135623730951); - padding: 0.5ch; + border-radius: calc(0.7ch); + padding: 0.5ch 0.7ch; pointer-events: auto; line-height: 1; } diff --git a/zine.ziggy b/zine.ziggy @@ -22,5 +22,7 @@ Site { "icons/site.webmanifest", "js/fontfaceobserver.standalone.js", ], + .image_size_attributes = true, .list_loose_tight_classes = true, + .noreferrer_external_links = true, }