Major development update.
* Updated LICENSE, READMES/METADATA.md and TODO.md * Added example blog to examples/ * Added preliminary Pygments support for embedding code in pages. * Add preliminary Wordpress dump importer * Expansions to template_tools and metadata to support Blog use case.
This commit is contained in:
@ -1,9 +1,30 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ metadata.title }}</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/main.css">
|
||||
<title>Pixywerk2 {{ metadata.title }}</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{metadata.relpath}}/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
{{ content }}
|
||||
<div class="container">
|
||||
{% block header %}
|
||||
<header><img src="{{metadata.relpath}}/images/pipe-leak.svg" style="filter: invert(1); height: 2em; float: left; margin: 2px; padding: 0"><h1>{% block headertitle %}Pixywerk2 {{ metadata.title }}{% endblock %}</h1></header>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<article>
|
||||
{{ content }}
|
||||
</article>
|
||||
{% endblock %}
|
||||
{% block nav %}
|
||||
<nav><ul>
|
||||
<li>Documentation</li>
|
||||
<li>Blog</li>
|
||||
<li><a href="https://git.antpantheon.com/cas/pixywerk2">Gitea<img src="{{metadata.relpath}}/images/link-box-variant.svg"></a></li>
|
||||
<li><a href="https://www.github.com/chaomodus/pixywerk2">Github<img src="{{metadata.relpath}}/images/link-box-variant.svg"></a></li>
|
||||
</ul></nav>
|
||||
{% endblock %}
|
||||
{% block footer %}
|
||||
<footer>Copyright © 2019 by Cas Rusnov <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
|
||||
</footer>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
23
examples/pixywerk.com/publish/templates/post.jinja2
Normal file
23
examples/pixywerk.com/publish/templates/post.jinja2
Normal file
@ -0,0 +1,23 @@
|
||||
{% extends "default.jinja2" %}
|
||||
{% block headertitle %}
|
||||
Pixywerk
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<article class="post">
|
||||
<div class="featured">
|
||||
<h1>{{ metadata.title }}</h1>
|
||||
<img src="{{metadata.relpath}}/{{metadata.featured}}" class="featured">
|
||||
</div>
|
||||
<div class="byline">
|
||||
<p>Author: {{ metadata.author }}<br>
|
||||
Published: {{ get_time_iso8601(metadata.stat.ctime) }}
|
||||
{% if metadata.stat.mtime-metadata.stat.ctime > 512 %}
|
||||
Updated: {{ get_time_iso8601(metadata.stat.mtime) }}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
<div class="article">
|
||||
{{content}}
|
||||
</div>
|
||||
</article>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user