Commit graph

63 commits

Author SHA1 Message Date
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
2b683af346 add robots.txt to initfiles and docs
Some checks failed
Test project / build (push) Has been cancelled
2024-09-04 11:53:44 -03:00
Facundo Olano
ea8041ed3d
Build site using the pretty uris dir structure (#42)
* update build file to produce pretty uri dir structure

* remove unnecessary file server customization

* update target html logs in docs

* fix tests
2024-07-04 15:18:23 -03:00
facundo
a94ea7069d tweak readability CSS in initfiles and docs 2024-07-04 15:16:07 -03:00
Facundo Olano
6a1dc5eced
don't skip reload on chmod if it's also write event (#38) 2024-06-10 16:36:27 -03:00
facundoolano
53c4b61cfb fix link colors in dark mode 2024-04-02 10:38:39 -03:00
Facundo Olano
281d06934e
Jekyll to jorge migration post (#33)
* fix list css

* post draft

* undraft

* excerpt

* corrections

* grammar
2024-03-20 13:08:59 -03:00
facundoolano
9176c035e7 generic date format in docs and initfiles 2024-03-15 17:42:38 -03:00
facundoolano
ac83d47f71 add --no-minify to jorge build 2024-03-14 12:21:00 -03:00
facundoolano
eade40482d hidden-mobile important in main.css 2024-03-13 16:18:09 -03:00
facundoolano
9688ffcc36 tweak footnotes style 2024-03-13 16:13:58 -03:00
facundoolano
2afd897ab3 print site building times 2024-03-06 11:35:22 -03:00
facundoolano
2d2db99441 extract event broker instantiation 2024-03-06 11:25:52 -03:00
facundoolano
1eeecd4f8f preserve font-size in inline code blogs 2024-03-04 14:39:53 -03:00
facundoolano
17c75c0228 more sample code snippets in serve post 2024-03-04 11:26:18 -03:00
facundoolano
567db560f5 tweak docs and initfiles font sizes 2024-03-04 11:01:03 -03:00
facundoolano
60014e8813 more serve cmd and post updates 2024-03-04 10:33:55 -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
facundoolano
11e4e32db8 smaller code font size in mobile 2024-03-03 12:00:58 -03:00
facundoolano
fd87093621 fix weird safari text resizing 2024-03-02 10:53:27 -03:00
facundoolano
8921006641 fix host flag shorthand 2024-03-02 10:38:59 -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
f733c83b1f
start devlog (#18)
* remove sample posts

* init first post

* try not ignoring file creation events

* draft why go section

* more why go

* why cli

* finish first draft

* reconnect with server after lost connection

* corrections

* more corrections

* grammarly

* remove docs section

* update comment

* remove doc index
2024-02-28 10:26:59 -03:00
facundoolano
1461945787 assign the proper file modes 2024-02-27 12:30:00 -03:00
facundoolano
37f1675edc fix post filename already exist handling 2024-02-27 12:25:03 -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
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
facundoolano
dd94738555 remove unnecessary xml escaping from templates 2024-02-25 11:35:51 -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
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
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
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
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
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
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
Facundo Olano
b3e6c0de8d
rename project to jorge (#4) 2024-02-16 15:29:43 -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
b17dc2ad68 fix comment 2024-02-15 20:33:19 -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
ed258fddc4 add support for data files 2024-02-15 16:01:35 -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
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