mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 10:36:39 -07:00
remove blog
This commit is contained in:
parent
ddeb079d52
commit
0233bf0dad
7 changed files with 0 additions and 89 deletions
|
@ -14,7 +14,6 @@
|
|||
</span>
|
||||
<span class="spacer"></span>
|
||||
<a href="/docs/">documentation</a> |
|
||||
<a href="/blog/">blog</a> |
|
||||
<a href="https://github.com/zyllian/webdog" rel="noopener noreferrer">github</a>
|
||||
</header>
|
||||
<div id="content">
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
{% extends "base.tera" %}
|
||||
{% block content %}
|
||||
<div class="blog-post">
|
||||
<h1 class="title">{{data.title}}</h1>
|
||||
<span class="timestamp">published {{data.timestamp}}</span>
|
||||
{% if data.draft %}
|
||||
<h2>DRAFT</h2>
|
||||
{% endif %}
|
||||
<div class="header-image-wrapper">
|
||||
<p class="short-desc">{{data.desc}}</p>
|
||||
<img class="header-image" src="{{data.cdn_file}}" alt="{{data.header_image_alt}}"
|
||||
style="object-fit: cover; object-position: 50% 50%">
|
||||
</div>
|
||||
<div class="content">
|
||||
{{ data.content | safe }}
|
||||
</div>
|
||||
<hr />
|
||||
<h3 class="tags-title">tags</h3>
|
||||
<div class="post-tags">
|
||||
{% for tag in data.tags %}
|
||||
<a class="tag" href="/blog/tag/{{tag}}">{{tag}}</a>{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
|
@ -1,29 +0,0 @@
|
|||
{% extends "base.tera" %}
|
||||
{% block content %}
|
||||
{% if data.tag %}
|
||||
<h1>blog posts tagged {{data.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>
|
||||
{% if data.rss_enabled %}
|
||||
<p><a href="rss.xml">rss feed</a></p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<h1>Page {{data.page}}/{{data.page_max}}</h1>
|
||||
{% if data.previous %}
|
||||
<a href="./{{data.previous}}">previous page</a>
|
||||
{% endif %}
|
||||
{% if data.next %}
|
||||
<a href="./{{data.next}}">next page</a>
|
||||
{% endif %}
|
||||
<div class="blog-post-list">
|
||||
{% for resource in data.resources %}
|
||||
<div class="post">
|
||||
<p class="title"><a href="/blog/{{resource.id}}">{{resource.title}}</a></p>
|
||||
<p class="timestamp">{{resource.timestamp}}</p>
|
||||
<p class="short-desc">{{resource.desc}}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock content %}
|
|
@ -1 +0,0 @@
|
|||
<div>{{ desc | safe }}</div>
|
Loading…
Add table
Add a link
Reference in a new issue