mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-09 18:16:40 -07:00
many many changes
This commit is contained in:
parent
80bc863cdf
commit
efa0d03315
22 changed files with 360 additions and 45 deletions
|
@ -13,6 +13,7 @@
|
|||
<span class="pronouns">she/they</span>
|
||||
</span>
|
||||
<span class="spacer"></span>
|
||||
{{!-- <a href="/blog/">Blog</a> | --}}
|
||||
<a href="/images/">Images</a> |
|
||||
<a href="https://github.com/Zyllian/zyllian.github.io" rel="noopener noreferrer">Source</a>
|
||||
</header>
|
||||
|
|
23
site/templates/blog-list.hbs
Normal file
23
site/templates/blog-list.hbs
Normal file
|
@ -0,0 +1,23 @@
|
|||
{{#if tag}}
|
||||
<h1>Blog posts tagged {{tag}}</h1>
|
||||
<p><a href="/blog/">View all blog posts</a></p>
|
||||
{{else}}
|
||||
<h1>Blog Posts</h1>
|
||||
<p><a href="tags">View blog tags</a></p>
|
||||
<p><a href="rss.xml">RSS Feed</a></p>
|
||||
{{/if}}
|
||||
<h1>Page {{page}}/{{page_max}}</h1>
|
||||
{{#if previous}}
|
||||
<a href="./{{previous}}">Previous page</a>
|
||||
{{/if}}
|
||||
{{#if next}}
|
||||
<a href="./{{next}}">Next page</a>
|
||||
{{/if}}
|
||||
<div class="blog-post-list">
|
||||
{{#each resources}}
|
||||
<div class="post">
|
||||
<p class="title"><a href="/blog/{{id}}">{{title}}</a></p>
|
||||
<p class="short-desc">{{desc}}</p>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
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>
|
|
@ -2,9 +2,7 @@
|
|||
<h1 class="title">{{title}}</h1>
|
||||
<span class="timestamp">Published {{timestamp}}</span>
|
||||
<img class="image-actual" src="{{src}}" alt="{{alt}}">
|
||||
{{#if desc}}
|
||||
<p>{{{desc}}}</p>
|
||||
{{/if}}
|
||||
{{{content}}}
|
||||
<p><a href="{{src}}">View full size image</a></p>
|
||||
<h3 class="tags-title">Tags</h3>
|
||||
<div class="image-tags">
|
||||
|
|
1
site/templates/rss/blog-post.hbs
Normal file
1
site/templates/rss/blog-post.hbs
Normal file
|
@ -0,0 +1 @@
|
|||
<div>{{{source}}}</div>
|
Loading…
Add table
Add a link
Reference in a new issue