dckc / madmode-blog

my tinkering notebook (blog)
https://www.madmode.com
0 stars 2 forks source link

blogging analysis paralysis: hakyll, hugo #14

Open dckc opened 8 years ago

dckc commented 8 years ago

I'm kinda scared of my python site builder now.

inspired by nix, I tried hakyll. The demo site was fine, but I got "cannot find $date$" for my 1st entry. And it stopped there; didn't even try to render any other pages. I thought about writing some haskell to update the page metadata, but... well... I miss tracebacks.

Plus ./site is ~47MB.

Next: giving hugo another try.

dckc commented 7 years ago

stackedit... interesting

TheoryOfGraphs

StackEdit. eval

dckc commented 6 years ago

https://www.gatsbyjs.org/

dckc commented 6 years ago

3 tier https://www.aaron-gustafson.com/notebook/enabling-webmentions-in-jekyll/ 18 November 2014 #indieweb

dckc commented 5 months ago

trying out zola: Jinja2 templates don't "just work" as Tera templates

Zola is written in Rust. The source uses ambient authority all over, as is typical :-/ I'm interested to port it to cap-std.

Zola uses the Tera template engine, which is "similar to Jinja2" but trying to use my Jinja2 templates as-is gives quite a few errors:

lots of errors from `zola serve` ```console $ zola serve Building site... Error: Failed to serve the site Error: Error parsing templates from the /templates directory Error: Reason: * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/archives.html" --> 10:12 | 10 |

{{ year }} posts

| ^--- | = expected `or`, `and`, `not`, `<=`, `>=`, `<`, `>`, `==`, `!=`, `+`, `-`, `*`, `/`, `%`, a filter, or a variable end (`}}`) * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/_list.html" --> 5:48 | 5 | | ^--- | = expected an identifier (must start with a-z) * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/index.html" --> 15:5 | 15 | {% with pages = posts %} | ^--- | = unexpected tag; expected an endblock tag (`{% endblock block_name %}` or some content * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/bookmarkd.html" --> 4:23 | 4 | {{ (item.created_at | parse_date).strftime('%Y-%m-%d') }} | ^--- | = expected `+`, `-`, `*`, `/`, or `%` * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/base.html" --> 19:1 | 19 | {%- assets filters="cssmin", output="packed.css", | ^--- | = unexpected tag; expected end of input, a macro definition tag (`{% macro my_macro() %}`, or some content * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/talks/archives.html" --> 4:20 | 4 |

Talks | {{ year }}

| ^--- | = expected `or`, `and`, `not`, `<=`, `>=`, `<`, `>`, `==`, `!=`, `+`, `-`, `*`, `/`, `%`, a filter, or a variable end (`}}`) * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/talks/index.html" --> 14:35 | 14 | | {{ year }} | ^--- | = expected an identifier (must start with a-z) * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/talks/page.html" --> 6:1 | 6 | {% with page = page %} | ^--- | = unexpected tag; expected an endblock tag (`{% endblock block_name %}` or some content * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/code/index.html" --> 21:35 | 21 | | {{ year }} | ^--- | = expected an identifier (must start with a-z) * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/code/page.html" --> 10:1 | 10 | {% with page = page %} | ^--- | = unexpected tag; expected an endblock tag (`{% endblock block_name %}` or some content * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/cloud.html" --> 8:27 | 8 |
  • 4:21 | 4 |

    Carnet | {{ year }}

    | ^--- | = expected `or`, `and`, `not`, `<=`, `>=`, `<`, `>`, `==`, `!=`, `+`, `-`, `*`, `/`, `%`, a filter, or a variable end (`}}`) * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/carnet/index.html" --> 16:35 | 16 | |
    {{ year }} | ^--- | = expected an identifier (must start with a-z) * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/carnet/page.html" --> 10:1 | 10 | {% with page = page %} | ^--- | = unexpected tag; expected an endblock tag (`{% endblock block_name %}` or some content * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/404.html" --> 13:52 | 13 | Please try a little harder, or tell me. | ^--- | = expected an identifier (must start with a-z) * Failed to parse "/home/connolly/projects/mm-z/mm-up/templates/page.html" --> 2:43 | 2 | | ^--- | = expected an identifier (must start with a-z) ```
  • dckc commented 5 months ago

    rust cap-std is a small neighborhood

    ... I'm interested to port it [Zola] to cap-std.

    The Zola sources seemed like a manageable size, but of course they're the tip of an iceberg; underneath this one line...

    https://github.com/getzola/zola/blob/2e17c776605621cea7673e442577d520113efca7/components/libs/Cargo.toml#L45

    ... is the whole walkdir crate