From 11bfc0b7c7ba43708c90f43ac3bd2e6f61d800ad Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sat, 21 Oct 2023 06:29:39 +0900 Subject: Update listing pages --- .builds/auto.yml | 2 +- .builds/franklin.jl | 7 +++- _assets/feed.xslt | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++ _layout/hair.html | 1 + _libs/fead/in.html | 2 +- _rss/head.xml | 1 + blog/index.md | 3 -- utils.jl | 5 ++- works.md | 37 ++++--------------- 9 files changed, 123 insertions(+), 38 deletions(-) create mode 100644 _assets/feed.xslt diff --git a/.builds/auto.yml b/.builds/auto.yml index bcca7f6..f20186f 100644 --- a/.builds/auto.yml +++ b/.builds/auto.yml @@ -20,7 +20,7 @@ tasks: nix-shell -p htmlq --run _libs/onlymathml nix-shell -p python3Packages.css-html-js-minify --run _libs/postprocess - deploy: | + chmod -R +r site/__site tar -cvzf site.tar.gz -C site/__site . - # acurl -f https://pages.sr.ht/publish/cnx.gdn -F content=@site.tar.gz artifacts: - site.tar.gz diff --git a/.builds/franklin.jl b/.builds/franklin.jl index c090540..50f4755 100644 --- a/.builds/franklin.jl +++ b/.builds/franklin.jl @@ -1,6 +1,11 @@ import Pkg Pkg.instantiate() -using Franklin +using Franklin: optimize optimize(clear=true, minify=false, no_fail_prerender=false, suppress_errors=false, fail_on_warning=true) +write(joinpath("__site", "assets", "fead.xhtml"), + """
+ $(readchomp(joinpath("_libs", "fead", "out.html"))) +
+ """) diff --git a/_assets/feed.xslt b/_assets/feed.xslt new file mode 100644 index 0000000..15817d2 --- /dev/null +++ b/_assets/feed.xslt @@ -0,0 +1,103 @@ + + + + + + - + + 01 + 02 + 03 + 04 + 05 + 06 + 07 + 08 + 09 + 10 + 11 + 12 + + - + + + + + + +
  • + + + + . + + . + + + + + + + + + + +
  • +
    +
    + + + + + + + + + + + <xsl:value-of select='/rss/channel/title'/> + + +
    + + +
    +
    +

    Web Logs

    +

    I occasionally blog about functional programming + and other computational stuff, or anything related + to computers in general. These write-ups are tagged + as fun.

    +
      + + + +
    +

    I sometimes note what happens in meatspace as well. + Such writings might still have a thing or two to do with computing + (given it is integrated into my life) and they are tagged + as lyf.

    +
      + + + +
    +

    The page you are viewing is an RSS feed. How cool is that?

    +

    See Also

    + + Generated by + fead +
    +
    + +
    + + +
    +
    diff --git a/_layout/hair.html b/_layout/hair.html index 50fc888..da54a85 100644 --- a/_layout/hair.html +++ b/_layout/hair.html @@ -3,6 +3,7 @@ +{{ispage /blog/index.html}}{{end}} diff --git a/_libs/fead/in.html b/_libs/fead/in.html index f0be760..a95514d 100644 --- a/_libs/fead/in.html +++ b/_libs/fead/in.html @@ -1,6 +1,6 @@

    {title}

    {summary} - {source_title}, + {source_title}, {time:%F}
    diff --git a/_rss/head.xml b/_rss/head.xml index 814236d..26ea527 100644 --- a/_rss/head.xml +++ b/_rss/head.xml @@ -1,4 +1,5 @@ + See Also
    - $(ads)
    + $(ads) + Generated by - fead
    + fead
    """ end diff --git a/works.md b/works.md index 99736e7..1c0589a 100644 --- a/works.md +++ b/works.md @@ -44,7 +44,7 @@ without any third-party library. ### rsskey [rsskey] is a simple script for mirroring [RSS] or [Atom] feeds -on [Misskey]. It is known for replicating Richard Stallman's +on [Misskey]. It was known for replicating Richard Stallman's political notes to [rms@birb.space]. ### mepo @@ -153,7 +153,7 @@ who wrote the original version and suggested the change ### vim-octave -I am maintaining [Octave syntax and indentation support for Vim][vim-octave]. +I wrote [Octave indentation support for Vim][vim-octave]. ## Localizations @@ -210,27 +210,14 @@ I send trivial patches for random issues I run into every now and then. ### Loang -[Loang] is a collection of services, including a [Matrix] homeserver, -a web server, a [Gemini] server, an authoritative name server, -an [UnifiedPush] server, an IRC bouncer and shell access. +[Loang] is a collection of services, including (but not limited to) +[Matrix] homeserver, mail server, web server, authoritative name server, +CI/CD, [UnifiedPush] server, IRC bouncer and shell access. ### Phylactery [Phylactery] is a web server rendering comic books directly from ZIP archives. -### Acanban - -[Acanban] is a work-in-progress collaboration platform for students -and supervisors during group projects and internships. It is built -on the [ASGI] framework [Quart] and uses [Trio] for concurrency -when interacting with persistency layers [RethinkDB] and [IPFS]. - -### ComLake - -I worked as an intern at [USTH] [ICTLab] on a data lake's -[core API and workers]. It also uses [IPFS] but [PostgreSQL] -was picked for database. - [ipwhl]: https://man.sr.ht/~cnx/ipwhl [IPFS]: https://ipfs.io [nixpkgs]: https://github.com/NixOS/nixpkgs @@ -270,7 +257,7 @@ was picked for database. [Lua]: https://www.lua.org [Alful]: https://addons.mozilla.org/en-US/firefox/addon/alful [alful patch]: https://github.com/tazeat/AutoFullscreen/issues/4#issuecomment-509723353 -[vim-octave]: https://github.com/McSinyx/vim-octave +[vim-octave]: https://github.com/gnu-octave/vim-octave [tevnex]: https://github.com/McSinyx/ibus-table-vietnamese#phương-thức-gõ [vim-tevnex]: https://github.com/vim/vim/commit/a02a551 [ibus-table]: https://github.com/moebiuscurve/ibus-table-others/commit/b6fafd0 @@ -282,18 +269,8 @@ was picked for database. [Adwaita]: https://blogs.gnome.org/mclasen/2014/06/13/a-new-default-theme-for-gtk [MathieWD]: https://www.opendesktop.org/p/1016294 [dotfiles]: https://trong.loang.net/~cnx/dotfiles +[SourceHut]: https://sourcehut.org [Loang]: https://loang.net [Matrix]: https://matrix.org -[Gemini]: https://gemini.circumlunar.space [UnifiedPush]: https://unifiedpush.org [Phylactery]: https://trong.loang.net/phylactery -[SourceHut]: https://sourcehut.org -[Acanban]: https://pypi.org/project/acanban -[ASGI]: https://asgi.readthedocs.io -[Quart]: https://pgjones.gitlab.io/quart -[Trio]: https://trio.readthedocs.io -[RethinkDB]: https://rethinkdb.com -[USTH]: https://usth.edu.vn -[ICTLab]: https://ictlab.usth.edu.vn -[core API and workers]: https://comlake.github.io/comlake.core -[PostgreSQL]: https://www.postgresql.org -- cgit 1.4.1