Commit graph

18 commits

Author SHA1 Message Date
Facundo Olano
de5ea63d0d
Use go-org fork to remove html outline divs and get slug headline ids (#39)
* point go-org dependency to fork

* fix dep commit

* remove outlines from expected test output
2024-06-11 14:35:47 -03:00
facundoolano
ffd160ac34 switch back to upstream go-org 2024-03-28 21:16:47 -03:00
facundoolano
990e98231e use go-org fork without replace 2024-03-19 14:52:33 -03:00
facundoolano
c3a1cd7179 use go-org fork 2024-03-13 15:37:41 -03:00
Facundo Olano
adb17ad9d2
run linter in github actions (#20)
* run linter in github actions

* try fixing go mod

* no install go

* again

* maybe this?

* separate install

* no v

* fix lint errors
2024-02-29 19:34:33 -03:00
Facundo Olano
e344dcb6ad
Syntax highlighting (#15)
* update markdown and org renderers to use chrome highlighting

* add example code blocks

* fix missing nav in default layout

* remove problematic code nowrap

* add language to tutorial samples

* set theme explicitly

* allow setting highlight theme with config

* fix config key for hl

* try to handle both light dark settings gracefully

* fix some problematic css color settings

* fix missing raw template

* fix weird chroma code height artifacts

* improve tabler rendering in mobile

* remove redundant default
2024-02-27 08:45:29 -03:00
Facundo Olano
924e4629b2
Add smart quotes replacement in output html (#14)
* first basic implementation with gojekyll port

* extract smartify file

* template struct comments

* rename templates package to markup

* move minify file to markup

* move html to markup

* move smartify to markup

* first stab at unit test

* better dash replacement

* do plain replacement of dashes
2024-02-26 12:16:06 -03:00
Facundo Olano
b3594be86c
Refactor CLI using kong (#13)
* use kong for cli parsing

* fix kong usage

* remove conditional

* don't blow up serve if src dir is missing

* load config in main side (boilerplaty)

* fix weird names

* add versions and aliases

* fix version printing

* replace command switch with Run methods

* move subcommand structs to commands package

* distribute commands into files

* add usage to docs

* add flags to configure server
2024-02-24 12:39:45 -03:00
Facundo Olano
20150cf7a3
Add post command (#9)
* rename command to post

* initial jorge post implementation

* fixes

* update comment

* move funs around

* move default front matter to constants

* more docs

* tweak defaults line breaks
2024-02-21 12:56:22 -03:00
facundoolano
663463202c add minifier 2024-02-16 15:14:30 -03:00
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
2a5e4450b1 preserve order in group by filter 2024-02-15 21:54:24 -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
97b6bc5111 extract site to its own mod 2024-02-12 15:59:18 -03:00
facundoolano
c4486f5a07 add liquid template support 2024-02-11 13:34:45 -03:00
facundoolano
465bc6536d convert .org to html output 2024-02-09 18:02:59 -03:00
facundoolano
f002c2e66b first stab at parsing front matter from input files 2024-02-09 16:41:08 -03:00