mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
refactor: $content, and &body renamed to $main and &content.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{> nav}}{{$content}}{{/content}}
|
||||
{{> nav}}{{$main}}{{/main}}
|
||||
{{> footer}}
|
||||
</body>
|
||||
|
||||
|
||||
@@ -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}}
|
||||
|
||||
@@ -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}}
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user