Commit graph

182 commits

Author SHA1 Message Date
facundoolano
1878db2fc8 move dotfile check 2024-02-15 15:25:44 -03:00
facundoolano
f43b0cdb60 reload templates (not just rerender) on src change 2024-02-15 14:41:17 -03:00
facundoolano
b788826423 port liquid filters from gojekyll 2024-02-15 13:53:45 -03:00
facundoolano
bacc9d9052 add missing error return 2024-02-15 13:43:12 -03:00
facundoolano
513befe8b8 support passing a different root dir 2024-02-15 12:38:51 -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
b181e3d855 implement blorg serve command
Squashed commit of the following:

commit 5e3c3f35c73f884bbf89f5daabcdc2aec5e0af75
Author: facundoolano <facundo.olano@gmail.com>
Date:   Wed Feb 14 11:24:45 2024 -0300

    cleanup

commit e8881df9f27fc37c46120c946dfad107d551ef67
Author: facundoolano <facundo.olano@gmail.com>
Date:   Wed Feb 14 11:21:54 2024 -0300

    add basic src watching

commit 4e61add89c632b0cc7a740d15be671de3df12157
Author: facundoolano <facundo.olano@gmail.com>
Date:   Wed Feb 14 00:19:25 2024 -0300

    move serve command to a separate file

commit abc2100582b71179e0eade154d2af3e86b48574f
Author: facundoolano <facundo.olano@gmail.com>
Date:   Wed Feb 14 00:17:05 2024 -0300

    first stab at serve command
2024-02-14 13:16:41 -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
f9e6d211b1 stub expected interface in README 2024-02-13 19:32:57 -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
99654851f4 skip layout tests 2024-02-12 16:40:12 -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
facundoolano
03da3b3770 replace method with field 2024-02-12 15:38:26 -03:00
facundoolano
0f2c2f37aa remove unnecessary template type knowledge 2024-02-12 15:33:30 -03:00
facundoolano
e97af58830 Add site struct and layout support
Squashed commit of the following:

commit 0ee8a385f111be807b4485b42316df6698d962f9
Author: facundoolano <facundo.olano@gmail.com>
Date:   Mon Feb 12 14:12:22 2024 -0300

    load layouts

commit 1c2594bb8aa6d6d9fbafcb530fdcdbdec2c146e7
Author: facundoolano <facundo.olano@gmail.com>
Date:   Mon Feb 12 13:17:28 2024 -0300

    add Site struct, explore some refactors

commit 3d8acb3957f5ba38a6e48d2614b9af65f1219298
Author: facundoolano <facundo.olano@gmail.com>
Date:   Mon Feb 12 11:33:19 2024 -0300

    prepare new phases structure for build command

commit fe7dcf9fb08c7b3e5679cf08c80beecc2eeb36e5
Author: facundoolano <facundo.olano@gmail.com>
Date:   Mon Feb 12 10:57:52 2024 -0300

    set template type

commit d9faa70c8d2d23c9b62904e7429a82437517b9c5
Author: facundoolano <facundo.olano@gmail.com>
Date:   Mon Feb 12 10:49:30 2024 -0300

    add Type to template

commit 27e0feede10f6c1340ce722085011a5eebcaee13
Author: facundoolano <facundo.olano@gmail.com>
Date:   Sun Feb 11 19:01:16 2024 -0300

    stub build and render extensions

commit e25518de3440cb3df2aa5674523128eff1d23404
Author: facundoolano <facundo.olano@gmail.com>
Date:   Sun Feb 11 17:37:30 2024 -0300

    pass pre-parsed layouts by arg instead

commit b3c2c9ebeb0d07d425f6db6a1bbbb5ee61c04548
Author: facundoolano <facundo.olano@gmail.com>
Date:   Sun Feb 11 15:13:17 2024 -0300

    first stab at recursively populating layouts

commit 4fe112694a3c44056f7aa5bd2be0794abcf4aa2a
Author: facundoolano <facundo.olano@gmail.com>
Date:   Sun Feb 11 14:33:07 2024 -0300

    initial support for page bindings
2024-02-12 15:16:56 -03:00
facundoolano
b7d8d12df7 test (and fix) org mode output 2024-02-11 14:03:28 -03:00
facundoolano
c4486f5a07 add liquid template support 2024-02-11 13:34:45 -03:00
facundoolano
73bbaa2c50 Add a templates package and struct
Squashed commit of the following:

commit 7c5b6bf95b14e402b68b141a7d60ccb1468f12b3
Author: facundoolano <facundo.olano@gmail.com>
Date:   Sun Feb 11 13:15:08 2024 -0300

    restore other tests

commit 5cf5c43856fc1a9e8f23dc74b81607ab7387f4c3
Author: facundoolano <facundo.olano@gmail.com>
Date:   Sat Feb 10 23:13:31 2024 -0300

    restore a test

commit acca0936a42b8b915c25f96c6b435887d7235c23
Author: facundoolano <facundo.olano@gmail.com>
Date:   Sat Feb 10 22:52:41 2024 -0300

    fix a bunch of bugs

commit 6f8074402338194ebebaaf929a1d85fdbf0d5e22
Author: facundoolano <facundo.olano@gmail.com>
Date:   Sat Feb 10 22:00:43 2024 -0300

    implement methods

commit 5cfeb1ea8600317d8849c6dca63a009237e033af
Author: facundoolano <facundo.olano@gmail.com>
Date:   Sat Feb 10 20:16:10 2024 -0300

    add template package and struct

commit 7a7b79e006ff6629cbf9445927e84e9c1600667b
Author: facundoolano <facundo.olano@gmail.com>
Date:   Sat Feb 10 20:08:43 2024 -0300

    stub template interface
2024-02-11 13:16:10 -03:00
facundoolano
9650d0b6e9 missing return 2024-02-10 13:33:04 -03:00
facundoolano
39af355deb more front matter tests 2024-02-10 13:31:45 -03:00
facundoolano
c762cbb909 basic front matter test 2024-02-10 12:20:51 -03:00
facundoolano
fe2684a2aa put templates in a separate file 2024-02-10 11:45:03 -03:00
facundoolano
afc5cf4912 extract commands to another package 2024-02-10 11:37:38 -03:00
facundoolano
3ea5864906 convert .org extension to .html 2024-02-09 18:09:42 -03:00
facundoolano
465bc6536d convert .org to html output 2024-02-09 18:02:59 -03:00
facundoolano
bbf7ee41bc fix line breaks 2024-02-09 16:55:36 -03:00
facundoolano
f002c2e66b first stab at parsing front matter from input files 2024-02-09 16:41:08 -03:00
facundoolano
971aed3e00 initial blorg build implementation 2024-02-09 13:50:52 -03:00
facundoolano
16cbf1d10e main with subcommand outline 2024-02-09 12:11:54 -03:00
Facundo Olano
9dba108572
Initial commit 2024-02-09 11:28:59 -03:00