mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 10:36:39 -07:00
many many changes
This commit is contained in:
parent
80bc863cdf
commit
efa0d03315
22 changed files with 360 additions and 45 deletions
22
site/templates/blog-post.hbs
Normal file
22
site/templates/blog-post.hbs
Normal file
|
@ -0,0 +1,22 @@
|
|||
<div class="blog-post">
|
||||
<h1 class="title">{{title}}</h1>
|
||||
<span class="timestamp">Published {{timestamp}}</span>
|
||||
{{#if draft}}
|
||||
<h2>DRAFT</h2>
|
||||
{{/if}}
|
||||
<div class="header-image-wrapper">
|
||||
<p class="short-desc">{{desc}}</p>
|
||||
<img class="header-image" src="{{header_image}}" alt="{{header_image_alt}}"
|
||||
style="object-fit: {{object_fit}}; object-position: {{object_position}};">
|
||||
</div>
|
||||
<div class="content">
|
||||
{{{content}}}
|
||||
</div>
|
||||
<hr />
|
||||
<h3 class="tags-title">Tags</h3>
|
||||
<div class="post-tags">
|
||||
{{#each tags}}
|
||||
<a class="tag" href="/blog/tag/{{this}}">{{this}}</a>{{#unless @last}},{{/unless}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue