adding document mode
I've been thinking a lot about the treehouse and I feel like it's time to say goodbye to the tree format.
This commit is contained in:
parent
550c062327
commit
36705e7c1e
31 changed files with 940 additions and 409 deletions
17
template/components/_doc.hbs
Normal file
17
template/components/_doc.hbs
Normal file
|
@ -0,0 +1,17 @@
|
|||
<main class="doc">
|
||||
<div class="vertical-center">
|
||||
<article class="doc-text">
|
||||
{{#if (ne page.tree_path 'index')}}
|
||||
<header>
|
||||
<h1 class="page-title"><a href="{{ config.site }}/{{ page.tree_path }}">{{ page.title }}</a></h1>
|
||||
</header>
|
||||
{{/if}}
|
||||
|
||||
{{{~ page.doc }}}
|
||||
</article>
|
||||
|
||||
{{> components/_footer.hbs }}
|
||||
</div>
|
||||
|
||||
{{> components/_feed.hbs }}
|
||||
</main>
|
Loading…
Add table
Add a link
Reference in a new issue