sqzass.git

sqzass

~ A static site generator written in Rust
git clone https://github.com/debuman/sqzass.git
commit be2d3a70e22008fab2ba635124f2c5087cb4f28f
parent 65ca7b048230b63b3986fe4223ff27e274069b1b
Author: sqzer <110329244+sqzer-x@users.noreply.github.com>
Date: Tue, 28 Jul 2026 21:26:34 +0900

템플릿 문서에서 사라진 site.base_url 잔재를 지운다

4d4a1d8이 site.base_url을 origin + base_path로 갈랐을 때 data.md의 표는
빠졌다. 표의 복붙 가능한 예시 {{ site.base_url }}{{ page.url }}는
SemiStrict 아래서 undefined value로 빌드를 깨뜨린다 — 문서가 약속하고
코드가 안 하는, page.extra 때와 정확히 같은 부류다. page.permalink 행의
base_url 표기도 origin으로 고친다.

Diffstat:
Mdocs/content/templates/data.ko.md | 5+++--
Mdocs/content/templates/data.md | 5+++--
2 files changed, 6 insertion(+), 4 deletion(-)

diff --git a/docs/content/templates/data.ko.md b/docs/content/templates/data.ko.md
@@ -13,7 +13,8 @@ toc = true
 |---|---|
 | `site.title` | `sqzass.toml`에서. |
 | `site.description` | `sqzass.toml`에서. |
-| `site.base_url` | 끝의 슬래시를 뗀 값이라 `{{ site.base_url }}{{ page.url }}`이 항상 맞습니다. |
+| `site.origin` | 스킴과 호스트만. 페이지 URL이 서브경로를 이미 품고 있어서 `{{ site.origin }}{{ page.url }}`이 절대 URL입니다. |
+| `site.base_path` | 서브경로 아래 사이트일 때의 경로 접두사, 루트면 빈 값. 템플릿이 직접 쓰는 URL에만 필요합니다. |
 | `site.language` | 지금 렌더 중인 페이지의 언어. |
 | `site.sections` | **이 언어의** 최상위 섹션들. |
 | `site.highlight_css` | 생성된 하이라이트 스타일시트 URL. 강조가 꺼져 있으면 없습니다. |
@@ -31,7 +32,7 @@ toc = true
 | `page.title` | |
 | `page.description` | |
 | `page.url` | `/ko/start/installation/` |
-| `page.permalink` | `base_url` + `url`. |
+| `page.permalink` | 절대 URL — `origin` + `url`. |
 | `page.content` | 렌더된 HTML. **`\| safe`가 필요합니다.** |
 | `page.weight`, `page.draft`, `page.language` | front matter 그대로. |
 | `page.toc` | 저자가 목차를 원했는지. |
diff --git a/docs/content/templates/data.md b/docs/content/templates/data.md
@@ -13,7 +13,8 @@ Two objects are in scope on every page: `site` and `page`.
 |---|---|
 | `site.title` | From `sqzass.toml`. |
 | `site.description` | From `sqzass.toml`. |
-| `site.base_url` | Trailing slash removed, so `{{ site.base_url }}{{ page.url }}` is always right. |
+| `site.origin` | Scheme and host only. `{{ site.origin }}{{ page.url }}` is an absolute URL — page URLs already carry the subpath. |
+| `site.base_path` | The path prefix when the site lives under one, else empty. Only for URLs a template writes by hand. |
 | `site.language` | The language of the page being rendered. |
 | `site.sections` | Top-level sections **in this language**. |
 | `site.highlight_css` | URL of the generated highlight stylesheet, or nothing if highlighting is off. |
@@ -32,7 +33,7 @@ and `weight`.
 | `page.title` | |
 | `page.description` | |
 | `page.url` | `/ko/start/installation/` |
-| `page.permalink` | `base_url` + `url`. |
+| `page.permalink` | The absolute URL — `origin` + `url`. |
 | `page.content` | Rendered HTML. **Needs `\| safe`.** |
 | `page.weight`, `page.draft`, `page.language` | Front matter, as given. |
 | `page.toc` | Whether the author asked for a contents list. |