Commit graph

79 commits

Author SHA1 Message Date
Facundo Olano
e1280f07d5
Tutorial cleanup (#16)
* rewrite intro and swap with installation

* more content tweaks

* cleanup jorge-post in tutorial

* cleanup jorge build tutorial
2024-02-27 10:38:02 -03:00
facundoolano
a07d4af5c2 fix meta tags in docs and initfiles 2024-02-27 08:54:14 -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
facundoolano
dd94738555 remove unnecessary xml escaping from templates 2024-02-25 11:35:51 -03:00
facundoolano
add8a7d6c3 fix xml_escape filter 2024-02-25 11:35:08 -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
4bc6867c91
Update README.md 2024-02-23 13:39:11 -03:00
Facundo Olano
9a782bedac
Tutorial (#12)
* rearrange tutorial outline

* tweak code style in docs and initfiles

* inform of written config and readme files in init

* add the first couple of tutorial pages

* code background

* tweak file descriptions

* introduce delay to prevent burst of rebuilds

* remove redundant rebuild

* refactor serve code some more

* jorge serve tutorial chapter

* add intro

* style tables

* code style tweaks

* fix footnotes heading

* separate intro and install

* comment out blog

* nav links

* fix footer link

* docs layout tweaks

* zero pad date format in slug

* jorge post tutorial page

* right align tutorial links

* build tutorial

* grammar corrections
2024-02-23 13:37:55 -03:00
facundoolano
263610807b add deploy files 2024-02-21 19:19:16 -03:00
facundoolano
190fa0073a lenient layout loading to prevent errors 2024-02-21 18:46:37 -03:00
Facundo Olano
7094998638
Outline docs site (#11)
* add src_path to template metadata

* tweak init files

* add docs site with initial layout

* add some tweaks to make default layouts more consistent

* index tweaks

* more layout

* stub tutorial entries

* add output in docs index

* fix footer padding

* change listening for serving

* simplify submenu

* remove inline styles
2024-02-21 18:41:03 -03:00
Facundo Olano
990a9a1bb9
Improve README examples (#10)
* tweak init output

* add draft flag to default front matter

* add acknowledgements

* remove draft mentions until we add support for it

* add comments between commands
2024-02-21 14:32:03 -03:00
facundoolano
4b7c08e2cb update actions versions 2024-02-21 13:01:50 -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
2d52e13932 add excerpt test 2024-02-21 11:05:09 -03:00
Facundo Olano
c2d5da04db
Update README.md 2024-02-20 18:20:13 -03:00
Facundo Olano
5e0f7cb163
Release action (#8)
* rename test workflow

* add a release action

* rename

* replace set output

* improve matrix expression

* fix

* try ld flags for smaller binaries

* remove tag from binary name

* adjust the readme commands to the release paths
2024-02-19 21:58:52 -03:00
Facundo Olano
2d84e1f2cb
Add live reload to build command (#7) 2024-02-19 18:03:06 -03:00
facundoolano
6c8fd6aed2 style tables in init css 2024-02-19 14:15:52 -03:00
facundoolano
5735be769a add a keys filter to make liquid iteration of maps predictable
(fixes random test failure)
2024-02-18 12:14:44 -03:00
Facundo Olano
ccc8bc5e99
Improve local server (#6)
* don't interrupt watcher on error

* don't halt build on missing file

* extract buildFile function

* build the site with concurrent workers

* improve fsnotify event treatment and output
2024-02-17 21:13:50 -03:00
Facundo Olano
f3eb6d58c6
Update README.md 2024-02-17 18:40:03 -03:00
Facundo Olano
56a92695f5
Init command and default assets (#5)
* cleanup command arguments

* add base init files

* implement init command

* add some layouts

* add index

* add blog index

* post preview

* honor config in file server

* sample post

* sample markdown

* add css style to initfiles

* more style tweaks

* more style tweaks
2024-02-17 17:09:19 -03:00
facundoolano
79dbf8129e cheap override of include tag to honor includes dir 2024-02-16 18:39:21 -03:00
Facundo Olano
b3e6c0de8d
rename project to jorge (#4) 2024-02-16 15:29:43 -03:00
facundoolano
663463202c add minifier 2024-02-16 15:14:30 -03:00
facundoolano
008954a98b port normalize_whitespace 2024-02-16 15:13:52 -03:00
facundoolano
80a646e92a another example tweak 2024-02-16 14:19:45 -03:00
facundoolano
7d3f24f91d more example cleanups 2024-02-16 12:56:46 -03:00
facundoolano
4d939075ff fix filename in example 2024-02-16 12:55:46 -03:00
facundoolano
ed34828b0b update expected api in readme 2024-02-16 12:54:31 -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
Facundo Olano
859327d4bd
Add go build actions workflow (#3)
* Add go build actions workflow

* set go to 1.22
2024-02-16 12:37:47 -03:00
facundoolano
c0397eddbb fix test 2024-02-16 11:55:53 -03:00
facundoolano
2a5e4450b1 preserve order in group by filter 2024-02-15 21:54:24 -03:00
facundoolano
b17dc2ad68 fix comment 2024-02-15 20:33:19 -03:00
Facundo Olano
b15405f05c
Update README.md 2024-02-15 20:30:13 -03:00
facundoolano
974036e5a0 tweak org heading levels 2024-02-15 18:38:09 -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
11d5e0f2d3 fix chmod condition 2024-02-15 17:10:21 -03:00
facundoolano
01d690b31d watch includes and datafile dirs 2024-02-15 17:01:14 -03:00
facundoolano
0906b1ef45 add markdownify filter 2024-02-15 16:12: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
17a55ea54a port more gojekyll and link to license 2024-02-15 15:32:00 -03:00
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