mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 10:36:39 -07:00
introduce webdog cli tool
This commit is contained in:
parent
8b7620b0bd
commit
399a0c1b87
26 changed files with 528 additions and 108 deletions
21
src/embedded/resource-template/resource.tera
Normal file
21
src/embedded/resource-template/resource.tera
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% extends "base.tera" %}
|
||||
{% block content %}
|
||||
<div>
|
||||
<h1>{{ title }}</h1>
|
||||
<span>published {{ timestamp }}</span>
|
||||
{% if draft %}
|
||||
<h2>DRAFT</h2>
|
||||
{% endif %}
|
||||
<p>{{ desc }}</p>
|
||||
<div>
|
||||
{{ content | safe }}
|
||||
</div>
|
||||
<hr />
|
||||
<h3>tags</h3>
|
||||
<div>
|
||||
{% for tag in tags %}
|
||||
<a href="/!!RESOURCE_TYPE!!/tag/{{tag}}">{{ tag }}</a>{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
Loading…
Add table
Add a link
Reference in a new issue