mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
docs: Added README.md.
This commit is contained in:
@@ -0,0 +1,40 @@
|
|||||||
|
# Thor
|
||||||
|
|
||||||
|
[TOC]
|
||||||
|
|
||||||
|
Thor is a simple Static Sire Generator designed for personal blogs and other small websites.
|
||||||
|
|
||||||
|
Its core principals are simplicity and minimal configuration, so you can get started as quickly as possible.
|
||||||
|
|
||||||
|
It is based on Hugo, and gingerbill's SSG. Templating is done with (extended?) Mustache templates.
|
||||||
|
|
||||||
|
## What it does
|
||||||
|
|
||||||
|
- Syntax Highlighting server-side (with Tree Sitter) or client-side with highlight.js
|
||||||
|
- Mustache Templating
|
||||||
|
- OpenGraph Tags
|
||||||
|
- Menus (WIP)
|
||||||
|
- Extended Markdown ([See below](#extended-markdown))
|
||||||
|
- Basic (whitespace) minification.
|
||||||
|
|
||||||
|
## What it doesn't do
|
||||||
|
- Internationalization
|
||||||
|
- Pagination (Yet)
|
||||||
|
- Themes
|
||||||
|
- Union File System (Yet)
|
||||||
|
- Image Manipulation
|
||||||
|
- TailwindCSS integration
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
Run `thor`
|
||||||
|
Check out `public/index.html`
|
||||||
|
|
||||||
|
Then follow [The Guide]()
|
||||||
|
For a more complete setup, run `thor new site`.
|
||||||
|
|
||||||
|
## Extended Markdown
|
||||||
|
- Emoji expansion
|
||||||
|
- margin style footnotes
|
||||||
|
- Guthub style alerts
|
||||||
|
- [and more]
|
||||||
+1
-2
@@ -1,4 +1,3 @@
|
|||||||
#+feature dynamic-literals
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "mustache"
|
import "mustache"
|
||||||
@@ -134,7 +133,7 @@ get_template :: proc(
|
|||||||
chain[n] = "base"; n += 1
|
chain[n] = "base"; n += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
for i in 0..<n {
|
for i in 0 ..< n {
|
||||||
candidate := chain[i]
|
candidate := chain[i]
|
||||||
if cached, ok := cache[candidate]; ok {
|
if cached, ok := cache[candidate]; ok {
|
||||||
return cached
|
return cached
|
||||||
|
|||||||
Reference in New Issue
Block a user