refactor: $content, and &body renamed to $main and &content.

This commit is contained in:
Spencer Brower
2026-07-24 12:53:47 -04:00
parent 75a7d7a14b
commit 033e7f4f79
8 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
</head>
<body>
{{> nav}}{{$content}}{{/content}}
{{> nav}}{{$main}}{{/main}}
{{> footer}}
</body>
+3 -3
View File
@@ -1,8 +1,8 @@
{{<base}}
{{$content}}
{{$main}}
<main>
<header>
{{&body}}
{{&content}}
</header>
<ul>
{{#pages}} <li><a href="{{permalink}}">{{&title}}</a><span>{{#date_iso}}<time
@@ -11,5 +11,5 @@
{{/pages}}
</ul>
</main>
{{/content}}
{{/main}}
{{/base}}
+3 -3
View File
@@ -1,11 +1,11 @@
{{<base}}
{{$content}}
{{$main}}
<main>
<article>
<h1>{{page_title}}</h1>
{{#date_iso}} <time class="subtitle" datetime="{{date_iso}}">{{date_display}}</time>
{{/date_iso}} {{&body}}
{{/date_iso}} {{&content}}
</article>
</main>
{{/content}}
{{/main}}
{{/base}}
+3 -3
View File
@@ -1,8 +1,8 @@
{{<base}}
{{$content}}
{{$main}}
<main>
<h1>{{page_title}}</h1>
{{&body}}
{{&content}}
{{#posts | group_by year}}
<section>
<h2>{{key}}</h2>
@@ -15,5 +15,5 @@
</section>
{{/posts}}
</main>
{{/content}}
{{/main}}
{{/base}}