Lorenzo Dellacà
83302f7cc3
Added a new script with the purpose of getting all headers from a post's content and creating links for them in the left sidebar. Some div classes have been modified, and a wrapper div has been added to posts because of this new script. Some minor CSS changes have been made.
49 lines
1.7 KiB
Handlebars
Executable File
49 lines
1.7 KiB
Handlebars
Executable File
{{!< default}}
|
|
<div class="mind-post-header unselectable">
|
|
{{#post}}
|
|
|
|
<div>
|
|
<h1>{{title}}</h1>
|
|
<p><a class="mind-post-header_tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a> •
|
|
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time>
|
|
</p>
|
|
</div>
|
|
{{/post}}
|
|
<i class="mind-global-header_arrow-down mind-global-header_arrow-down-mid"></i>
|
|
</div>
|
|
|
|
<main>
|
|
<div class="mind-content_main">
|
|
<div class="mind-post_main">
|
|
<aside class="mind-post_sidebar unselectable">
|
|
<div class="mind-post_sidebar-content" id="mind-post_sidebar-left">
|
|
|
|
</div>
|
|
{{!-- This gets automatically filled by the sidebar script! --}}
|
|
</aside>
|
|
{{#post}}
|
|
<div class="mind-post_central-column">
|
|
<div class="mind-post_content">
|
|
<div class="mind-post_content-header">
|
|
|
|
{{#if feature_image}}
|
|
<img class="mind-post_feature-image" src="{{img_url feature_image size="l"}}"
|
|
alt="Feature Image"/>
|
|
{{/if}}
|
|
</div>
|
|
{{content}}
|
|
<hr>
|
|
</div>
|
|
<h3>Comments</h3>
|
|
<div id="remark42"></div>
|
|
</div>
|
|
{{/post}}
|
|
<aside class="mind-post_sidebar unselectable">
|
|
<div class="mind-post_sidebar-content">
|
|
{{> "posts-card-small"}}
|
|
</div>
|
|
</aside>
|
|
</div>
|
|
</div>
|
|
</main>
|