Commit graph

13 commits

Author SHA1 Message Date
Facundo Olano
a4279aae0d
Introduce config mod and struct (#2)
* outline config mod and struct

* replace site interfaces

* load config from config.yml

* adapt commands to load and pass config

* fix test

* fix tests

* use symlinks for static assets

* implement absolute url filter

* doc comment

* fix tests

* remove outdated TODO comments

* Add go build actions workflow (#3)

* Add go build actions workflow

* set go to 1.22
2024-02-16 12:39:19 -03:00
facundoolano
6cc4077816 naive implementation of post excerpts 2024-02-15 18:11:40 -03:00
facundoolano
06016cb2ac improve handling of spurious files when serving 2024-02-15 18:02:24 -03:00
facundoolano
ed258fddc4 add support for data files 2024-02-15 16:01:35 -03:00
facundoolano
180a5c7ac1 fix post url generation 2024-02-15 15:37:19 -03:00
facundoolano
1878db2fc8 move dotfile check 2024-02-15 15:25:44 -03:00
facundoolano
bacc9d9052 add missing error return 2024-02-15 13:43:12 -03:00
Facundo Olano
e5917dc21e
build command refactors (#1)
* extract buildTarget function

* first stab at build target rendering refactor

* more cleanup

* properly separate parse and render stages of liquid templates

* move some more rendering from commands to site

* move org rendering again, to fix bug

* revert more unsatisfactory changes

* move build to site

* markdown support

* remove comments

* fix tests

* markdown test

* cleanup scanner bytes usage

* reuse the template engine
2024-02-14 23:54:46 -03:00
facundoolano
cea4ac7b1c add support for page listing 2024-02-14 00:05:55 -03:00
facundoolano
88efad43db expose site posts and tags to template rendering
Squashed commit of the following:

commit c45734422ef038438a0b6eb4c3065df9cbebcc5e
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 21:27:47 2024 -0300

    tags test passing

commit 88294405603b2103f9f8cba3b130ad2d40e58a36
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 21:12:08 2024 -0300

    ensure posts are sorted by date

commit df7c945fcc1490613b6068da3fc487b9ffa44ba5
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 20:55:51 2024 -0300

    prepare to test tags

commit 3d7c3f380c3933d6cd9f949d3d2cf9ef144bd6ae
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 20:51:08 2024 -0300

    preload context in site fields

commit a3afaacc67a9d748cfd42ecbeb7b2d302c3560b2
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 20:39:42 2024 -0300

    test passing pending refactor

commit 13de5017f654c8d82b1ba7beb01066a9c22f19fc
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 20:18:07 2024 -0300

    add (failing) archive test
2024-02-13 21:32:04 -03:00
facundoolano
526e3c3e5a add tests for site struct
Squashed commit of the following:

commit 288291800c346cc103513169b33dc32e0d2182a0
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 13:36:33 2024 -0300

    test the rest of the pages

commit 184fad8d925b7e2f5e6942b148508d835fda2207
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 13:34:40 2024 -0300

    remove extra new lines

commit 813bc35ba98c13dbf0951638fab6f04db59768b0
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 13:15:23 2024 -0300

    first portion of site test

commit 766aecb68c74e812bfe65479cd16a97f85dcb86f
Author: facundoolano <facundo.olano@gmail.com>
Date:   Mon Feb 12 16:44:43 2024 -0300

    stub site tests
2024-02-13 13:43:20 -03:00
facundoolano
e821866d5d cleanup directory vars 2024-02-12 16:27:06 -03:00
facundoolano
97b6bc5111 extract site to its own mod 2024-02-12 15:59:18 -03:00