Commit graph

155 commits

Author SHA1 Message Date
facundoolano
9b0593f211 don't mix yaml versions 2024-03-02 20:48:55 -03:00
facundoolano
c678ebd347 v0.3.0 2024-03-02 16:18:11 -03:00
Facundo Olano
c02e1fc91e
Add page.previous and page.next liquid variables (#22)
* sort pages

* rename tutorial files to enforce an order

* add prev next props to posts

* test previous next

* prevent nested recursive links between posts

* add a next/prev footer

* make prev/next work as expected for both pages and posts

* remove sort by index

* bold current section in nav
2024-03-02 16:16:40 -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
facundoolano
12897a011a cleanup post 2024-03-01 15:57:14 -03:00
facundoolano
8f102fe93c improve doc landing example 2024-03-01 14:45:57 -03:00
Facundo Olano
5993986044
Getting Started devlog (#21)
* getting started draft

* cleanup

* grammar fixes
2024-03-01 12:36:06 -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
3064beb3a1 rephrase tutorial subtitles 2024-02-29 15:59:09 -03:00
facundoolano
67bbfc50f9 rephrase doc 2024-02-29 15:59:09 -03:00
Facundo Olano
d3bb9611ef
Update README.md 2024-02-29 14:43:20 -03:00
facundoolano
8f628b57d5 v0.2.1 2024-02-29 13:39:35 -03:00
facundoolano
e7b552b476 fix: close sse client before attempting a reconnection 2024-02-29 13:38:25 -03:00
Facundo Olano
17c6c46eab
project outline devlog post (#19)
* initial dump for project outline post

* complete first draft of the post

* draft change of plans post

* cleanup project outline

* grammar fixes
2024-02-29 13:29:49 -03:00
facundoolano
240aa38d3d fix docs makefile target 2024-02-28 11:13:27 -03:00
facundoolano
d92272729e v0.2.0 2024-02-28 11:12:38 -03:00
facundoolano
baa1099633 add makefile target to manage versioning 2024-02-28 11:12:17 -03:00
facundoolano
54043ccd57 update version 2024-02-28 10:27:50 -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
fe42044405 add preview image 2024-02-27 12:59:22 -03:00
facundoolano
cb20f53ee3 update version 2024-02-27 12:43:01 -03:00
facundoolano
a7866b7d2c add a simpler templ render interface, support no highlighting 2024-02-27 12:40:40 -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
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