Skip to content

Commit f82962a

Browse files
committed
Fix portal view template paths
1 parent e594856 commit f82962a

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

src/compiler2/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const compile = async () => {
2424
console.log('settings.rootContentModel', rootContentModel)
2525
const RootOntology = Ontologies.get(rootContentModel)
2626
const root = new RootOntology(contentTree.tree)
27+
await Renderer.init()
2728
await root.render(Renderer)
2829
Debug.timeEnd('compiler')
2930
return {

src/compiler2/ontologies/portal/homepage/view.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const renderHomepage = async (Renderer, contentModel) => {
4646
const settings = Settings.getSettings()
4747
const { homepage } = contentModel
4848
return Renderer.render({
49-
template: `root/pages/homepage/${homepage.type}`,
49+
template: `pages/homepage/${homepage.type}`,
5050
outputPath: join(settings.out, 'index.html'),
5151
content: parseContent(homepage.content, homepage.format),
5252
data: {

src/compiler2/ontologies/portal/subpage/view.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const renderSubpages = (Renderer, contentModel) => {
4848
const compilation = contentModel.subpages.map(subpage => {
4949
// console.log('rendering subpage', subpage, 'to', join(out, subpage.outputPath))
5050
return Renderer.render({
51-
template: `root/pages/subpage/${subpage.type}`,
51+
template: `pages/subpage/${subpage.type}`,
5252
outputPath: join(out, subpage.outputPath),
5353
content: parseContent(subpage.content.data, subpage.format.data),
5454
data: {

src/theme/common/partials/pages/blog/post/audio/index.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</header>
66

77
<main {{region "main"}}>
8-
{{>pages/post/audio/content}}
8+
{{>pages/blog/post/audio/content}}
99
</main>
1010
{{/layouts/single-column}}
1111
{{/base}}

src/theme/common/partials/pages/blog/post/footer.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{{#if tags}}
1515
<tr class="post-metadata-tags">
1616
<td>Tags</td>
17-
<td>{{>pages/post/tags}}</td>
17+
<td>{{>pages/blog/post/tags}}</td>
1818
</tr>
1919
{{/if}}
2020
</table>

src/theme/common/partials/pages/blog/post/text/content.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
{{/if}}
1818
{{> @partial-block .. }}
1919
</section>
20-
{{>pages/post/footer}}
20+
{{>pages/blog/post/footer}}
2121
</article>
2222
{{/with}}

src/theme/common/partials/pages/blog/post/text/index.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</header>
66

77
<main {{region "main"}}>
8-
{{>pages/post/text/content}}
8+
{{>pages/blog/post/text/content}}
99
</main>
1010
{{/layouts/single-column}}
1111
{{/base}}

0 commit comments

Comments
 (0)