mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
feat: Replaced Tailwind with tuft css.
This commit is contained in:
@@ -8,7 +8,7 @@ Thor is a static site generator written in [Odin](https://odin-lang.org), replac
|
|||||||
thor.json ← site config (title, base_url, author, params)
|
thor.json ← site config (title, base_url, author, params)
|
||||||
content/ ← markdown and HTML content files
|
content/ ← markdown and HTML content files
|
||||||
layouts/ ← Mustache templates + partials
|
layouts/ ← Mustache templates + partials
|
||||||
assets/ ← CSS (TailwindCSS source) and JS
|
assets/ ← CSS (Tufte-based) and JS
|
||||||
public/ ← build output (generated)
|
public/ ← build output (generated)
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -90,15 +90,17 @@ raw markdown
|
|||||||
nix develop
|
nix develop
|
||||||
# From blog root:
|
# From blog root:
|
||||||
odin run ./thor -- -drafts
|
odin run ./thor -- -drafts
|
||||||
tailwindcss --input assets/css/main.css --output public/css/main.css --minify
|
cp assets/css/tufte.css public/css/tufte.css
|
||||||
cp assets/js/main.js public/js/main.js
|
cp assets/js/main.js public/js/main.js
|
||||||
caddy run # serves public/ on blog.localhost
|
caddy run # serves public/ on blog.localhost
|
||||||
```
|
```
|
||||||
|
|
||||||
|
No CSS build step — `tufte.css` is static CSS, no preprocessor or compiler needed.
|
||||||
|
|
||||||
### Production build
|
### Production build
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nix build # runs thor + tailwindcss + cp js, outputs to ./result/
|
nix build # runs thor + copies CSS/JS, outputs to ./result/
|
||||||
```
|
```
|
||||||
|
|
||||||
### Tests
|
### Tests
|
||||||
|
|||||||
Reference in New Issue
Block a user