~cricket/jazz

1783c2ca502b71708f1867ecdc9277fd3f76fa09 — c piapiac 5 months ago bc9c19d
small formatting update

* oh also im in PDT right now :|
6 files changed, 11 insertions(+), 9 deletions(-)

M index/segment.html
M jazz.zig
M post.html
M posts/ckt.ckt
M posts/hello.ckt
M static/stylesheet.css
M index/segment.html => index/segment.html +2 -0
@@ 1,4 1,6 @@
            <li>
                <p><b><a href="https://jazz.cro.wtf/{s}">{s}</a></b></p>
                <p>{s}<p>
                <p><i>(posted {s})</i></p>
                <br />
            </li>

M jazz.zig => jazz.zig +1 -1
@@ 100,7 100,7 @@ pub fn main() !void {

        log.info("post {s}", .{title});
        log.info("write index segment",.{});
        try index.writer().print(index_file[1],.{filename,title,description});
        try index.writer().print(index_file[1],.{filename,title,description,pub_date});

        log.info("write rss segment",.{});
        try rss.writer().print(rss_file[1],.{title,filename,description,pub_date,last_build_date});

M post.html => post.html +1 -1
@@ 13,7 13,7 @@
{s}

        <br />
        <p><i>questions? comments? hatred toward me and my opinions? <a href="mailto:cricket@piapiac.org">send me an email</a></i></p>
        <p><i>questions? comments? hatred toward me and my opinions? <a href="mailto:cricket@piapiac.org">send me an email</a>!</i></p>
        <p><i>or make your comments publicly known on the <a href="https://lists.sr.ht/~cricket/jazz-comments">public mailing list</a>.</i></p>
    </body>
</html>

M posts/ckt.ckt => posts/ckt.ckt +4 -4
@@ 2,8 2,8 @@ filename=ckt.html
title=A RANT OF CONFIGS
description=all config formats suck and how mine sucks a little less

pubdate="Mon, 20 Apr 2021 00:15:00 PST"
lastbuilddate="Mon, 19 Apr 2021 00:15:00 PST"
pubdate="Tue, 20 Apr 2021 00:15:00 PDT"
lastbuilddate="Tue, 20 Apr 2021 8:50:00 PDT"
content=
    |<p>all configuration formats suck; they're either too complicated, not human readable, not machine readable, not complicated enough, or a combination of all of those.</p>
    |<p>keep in mind i am just critizing these as use for configuration files, and they may excel in other things (data serialization and the like), while ckt may not.</p>


@@ 59,7 59,7 @@ content=
    |
    |<p>here is what i really don't like about it:</p>
    |<p><b>1</b>. it is super complicated! (seriously. <a href="https://yaml.org/spec/1.2/spec.html">the spec</a> is fucking massive; i can't imagine trying to write a completely spec-compliant YAML parser.</p>
    |<p><b>2</b>. seriously the spec is too large</p>
    |<p><b>2</b>. seriously the spec is too large!</p>
    |<p>while the JSON example works in YAML, ill put a more yaml-like example here for visuals</p>
    |<pre>
        |<code class="language-yaml">


@@ 237,6 237,6 @@ content=
        |</code>
    |</pre>
    |<p>you can read the "complete" specification <a href="https://git.sr.ht/~cricket/ckt">here</a>.</p>
    |<p>if you want more examples, <a href="https://git.sr.ht/~cricket/jazz.zig">this blog</a> uses ckt for its posts.</p>
    |<p>if you want more examples, <a href="https://git.sr.ht/~cricket/jazz">this blog</a> uses ckt for its posts.</p>
    |<p>if you want to use it right away, i have a <a href="https://git.sr.ht/~cricket/zckt">small implementation</a> written in zig! (though ckt is designed to be as easy to implement as possible)</p>
    |<p><i>(do note that no actual hate is directed at any of the formats hated on above.)</i></p>

M posts/hello.ckt => posts/hello.ckt +2 -2
@@ 2,8 2,8 @@ filename=hello.html
title=HELLO WORLD
description=a test of my extremely small blog

pubdate="Mon, 19 Apr 2021 23:52:00 PST"
lastbuilddate="Mon, 19 Apr 2021 23:52:00 PST"
pubdate="Mon, 19 Apr 2021 23:52:00 PDT"
lastbuilddate="Mon, 19 Apr 2021 23:52:00 PDT"
content=
    |<p>HELLOOOO, WORLD!</p>
    |<p>all of this blog was generated using <a href="https://git.sr.ht/~cricket/jazz">jazz.zig</a></p>

M static/stylesheet.css => static/stylesheet.css +1 -1
@@ 36,7 36,7 @@ a:hover {
}

h1, p {
    margin: 0;
    margin: 5px;
    color: var(--fg);
}