blog.grace.moe

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

commit 5b4b7692047333fbc2127e0b1ac569629a7bd93e
parent d78fb5d0861b557940fb7ee5e3439e4237be6c7f
Author: gracefu <81774659+gracefuu@users.noreply.github.com>
Date:   Sun,  4 May 2025 14:37:04 +0800

Update zine to have loose lists be an option

Diffstat:
Mcontent/posts/b.smd | 173++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
Mzine.ziggy | 1+
2 files changed, 103 insertions(+), 71 deletions(-)

diff --git a/content/posts/b.smd b/content/posts/b.smd @@ -18,11 +18,13 @@ Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Par Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. Paragraph. ->[]($block.attrs('wide-content')) ->Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. +> []($block.attrs('wide-content')) +> +> Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. Wide paragraph. ->[]($block.attrs('full-bleed-content')) ->Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. +> []($block.attrs('full-bleed-content')) +> +> Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. Full bleed paragraph. 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`. @@ -32,34 +34,35 @@ Paragraph with [`zine`]($text.attrs('zig')). Paragraph with [`zine`]($text.attrs code ``` ->[]($block.attrs('wide-content')) ->```zig ->pub const BuildAsset = struct { -> /// Name of this asset -> name: []const u8, -> /// LazyPath of the generated asset. -> /// -> /// The LazyPath cannot be generated by calling `b.path`. -> /// Use the 'assets' directory for non-buildtime assets. -> lp: std.Build.LazyPath, -> /// Installation path relative to the website's asset output path prefix. -> /// -> /// It is recommended to give the file an appropriate file extension. -> /// No need to specify this value if the asset is not meant to be -> /// `link()`ed -> install_path: ?[]const u8 = null, -> /// Installs the asset unconditionally when set to true. -> /// -> /// When set to false, the asset will be installed only if `link()`ed -> /// in a content file or layout (requires `install_path` to be set). -> /// -> /// Note that even when this property is set to false the asset will be -> /// generated by the Zig build system regardless. -> install_always: bool = false, ->}; +> []($block.attrs('wide-content')) +> +> ```zig +> pub const BuildAsset = struct { +> /// Name of this asset +> name: []const u8, +> /// LazyPath of the generated asset. +> /// +> /// The LazyPath cannot be generated by calling `b.path`. +> /// Use the 'assets' directory for non-buildtime assets. +> lp: std.Build.LazyPath, +> /// Installation path relative to the website's asset output path prefix. +> /// +> /// It is recommended to give the file an appropriate file extension. +> /// No need to specify this value if the asset is not meant to be +> /// `link()`ed +> install_path: ?[]const u8 = null, +> /// Installs the asset unconditionally when set to true. +> /// +> /// When set to false, the asset will be installed only if `link()`ed +> /// in a content file or layout (requires `install_path` to be set). +> /// +> /// Note that even when this property is set to false the asset will be +> /// generated by the Zig build system regardless. +> install_always: bool = false, +> }; > ->/// aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ->``` +> /// aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +> ``` ```=html <textarea></textarea> @@ -69,48 +72,76 @@ code > > another quote -- tight - - tight - - tight - - tight -- tight -- tight - ----- - -- loose loose loose loose loose loose - - tight tight tight tight tight tight - - tight tight tight tight tight tight - - tight tight tight tight tight tight - -- loose loose loose loose loose loose - -- loose loose loose loose loose loose - ----- - -- tight tight tight tight tight tight - - loose loose loose loose loose loose - - - loose loose loose loose loose loose - - - loose loose loose loose loose loose -- tight tight tight tight tight tight -- tight tight tight tight tight tight +[This is the caption]($image.siteAsset('icons/favicon-16x16.png')) ----- - -- loose loose loose loose loose loose - - - loose loose loose loose loose loose - - - loose loose loose loose loose loose - - - loose loose loose loose loose loose - -- loose loose loose loose loose loose +```=html +<style> + .grid { + display: grid; + gap: 10px; + grid-template-columns: 1fr 1fr; + } + .cell { + margin: 0 !important; + width: 100%; + height: 100%; + background: rgba(128, 0, 0, 2%); + border-radius: 20px; + } +</style> +``` -- loose loose loose loose loose loose +>[]($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 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. diff --git a/zine.ziggy b/zine.ziggy @@ -22,4 +22,5 @@ Site { "icons/site.webmanifest", "js/fontfaceobserver.standalone.js", ], + .list_loose_tight_classes = true, }