Commit graph

21 commits

Author SHA1 Message Date
facundo
661b5877b8 fix smartify repalcement of quoted commas and ellipsis 2024-11-10 13:20:23 -03:00
facundo
18fc0aca2f fix smartify repalcement of quoted periods
Some checks failed
Test project / build (push) Has been cancelled
2024-09-26 12:48:27 -03:00
facundo
4ef95bf910 fix smartify repalcement of quoted questions/exclamations
Some checks failed
Test project / build (push) Has been cancelled
2024-09-24 11:30:52 -03:00
Facundo Olano
2e5403d07f
Add a jorge meta command to get site metadata in scripts (#49)
Some checks failed
Test project / build (push) Has been cancelled
* add a jorge meta command

* add a basic metadata eval test

* fix staticcheck
2024-09-16 20:16:30 -03:00
Facundo Olano
2f5b468f73
Enable markdown extensions (#46)
* add footnote to markdow example

* add footnote markdown extension

* add gfm extensions
2024-09-12 12:58:56 -03:00
facundo
81026648f7 allow to escape smartify quote replacements
Some checks failed
Test project / build (push) Has been cancelled
2024-07-06 14:28:34 -03:00
facundo
f5cfe0aecf configure go-org to play nicely with pretty url links 2024-07-04 20:22:45 -03:00
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
Facundo Olano
7bc5baa253
Minify exclusions (#31)
* add minify exclusions support

* load exclusions

* fix bug

* load minify

* fix yaml type coersion

* skip dot files when building
2024-03-15 19:55:50 -03:00
facundoolano
d28b97e7cb handle non relate urls in absolute_url filter 2024-03-15 17:50:31 -03:00
facundoolano
ac83d47f71 add --no-minify to jorge build 2024-03-14 12:21:00 -03:00
facundoolano
7df0be12c8 Revert "back to default heading levels for org files"
This reverts commit d328d00d66.
2024-03-07 19:48:42 -03:00
facundoolano
d328d00d66 back to default heading levels for org files 2024-03-07 18:32:31 -03:00
Facundo Olano
ff28ece092
Add more content for the serve command post (#23)
* document site api

* merge site.Load and site.Build into a single function

* fix tests

* make Site a private struct

* doc

* remove superfluous operation

* smaller tab width in source examples

* remove unnecessary temp var

* add some code snippet

* improve http fs naming

* add a few more code snippets

* cleanup serve code

* add watcher sample to blog post

* improve worker pool sample

* restore watcher close

* remove unused prefix

* some live reload samples in post

* remove outdated  command
2024-03-03 23:19:09 -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
facundoolano
a7866b7d2c add a simpler templ render interface, support no highlighting 2024-02-27 12:40:40 -03:00
Facundo Olano
6f27afacf7
Add drafts support (#17)
* add src and target ext as template methods

* add include drafts config

* default to draft on jorge post

* skip drafts from site indexes and rendering

* fix stat usage for file detection

* add site.Build test

* test build site with and without drafts

* add templ IsPost helper

* document drafts in readme

* document drafts in tutorial
2024-02-27 12:24:45 -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