Documentation additions. Fixes to compilation. Made true passthrough which works.
This commit is contained in:
2
examples/pixywerk.com/Makefile
Normal file
2
examples/pixywerk.com/Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
build: src/templates/* src/* src/images/* src/posts/*
|
||||
python -mpixywerk2 src publish
|
4
examples/pixywerk.com/README.md
Normal file
4
examples/pixywerk.com/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
# Pixywerk.com Example #
|
||||
|
||||
This is an example blog system with the features most blogs would have (posts, tag cloud, atom/rss feeds,
|
||||
index with images).
|
0
examples/pixywerk.com/foo
Normal file
0
examples/pixywerk.com/foo
Normal file
3
examples/pixywerk.com/publish/css/main.css
Normal file
3
examples/pixywerk.com/publish/css/main.css
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
body { margin: 10% 10% 0 10% }
|
BIN
examples/pixywerk.com/publish/images/20190415-0.jpg
Normal file
BIN
examples/pixywerk.com/publish/images/20190415-0.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
0
examples/pixywerk.com/publish/images/placeholder
Normal file
0
examples/pixywerk.com/publish/images/placeholder
Normal file
13
examples/pixywerk.com/publish/index.html
Normal file
13
examples/pixywerk.com/publish/index.html
Normal file
@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<p>This is my index!!</p>
|
||||
|
||||
for i in posts[:5]:
|
||||
|
||||
get metadata, fill in post image/text summary with link
|
||||
</body>
|
||||
</html>
|
18
examples/pixywerk.com/publish/posts/2019-04-15.html
Normal file
18
examples/pixywerk.com/publish/posts/2019-04-15.html
Normal file
@ -0,0 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>My first post</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<img src="../images/20190415-0.jpg" class="featured">
|
||||
<div class="byline">
|
||||
<p>Author: Cas Rusnov</p>
|
||||
<p>Published: 2019-04-16T01:42:27.156392+00:00
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<p>This is an example post!</p>
|
||||
<p>yo fresh</p>
|
||||
<p>There are many posts like it but this one is mine.</p>
|
||||
</body>
|
||||
</html>
|
9
examples/pixywerk.com/publish/templates/default.jinja2
Normal file
9
examples/pixywerk.com/publish/templates/default.jinja2
Normal file
@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ metadata.title }}</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
{{ content }}
|
||||
</body>
|
||||
</html>
|
6
examples/pixywerk.com/src/.meta
Normal file
6
examples/pixywerk.com/src/.meta
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"author": "Cas Rusnov",
|
||||
"author_email": "rusnovn@gmail.com",
|
||||
"uuid-oid-root": "pixywerk.com/",
|
||||
"site_root": "https://pixywerk.com/"
|
||||
}
|
3
examples/pixywerk.com/src/css/main.css
Normal file
3
examples/pixywerk.com/src/css/main.css
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
body { margin: 10% 10% 0 10% }
|
BIN
examples/pixywerk.com/src/images/20190415-0.jpg
Normal file
BIN
examples/pixywerk.com/src/images/20190415-0.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
0
examples/pixywerk.com/src/images/placeholder
Normal file
0
examples/pixywerk.com/src/images/placeholder
Normal file
5
examples/pixywerk.com/src/index.thtml
Normal file
5
examples/pixywerk.com/src/index.thtml
Normal file
@ -0,0 +1,5 @@
|
||||
<p>This is my index!!</p>
|
||||
|
||||
for i in posts[:5]:
|
||||
|
||||
get metadata, fill in post image/text summary with link
|
12
examples/pixywerk.com/src/posts/2019-04-15.thtml
Normal file
12
examples/pixywerk.com/src/posts/2019-04-15.thtml
Normal file
@ -0,0 +1,12 @@
|
||||
<img src="{{ metadata.featured }}" class="featured">
|
||||
<div class="byline">
|
||||
<p>Author: {{ metadata.author }}</p>
|
||||
<p>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>
|
||||
<p>This is an example post!</p>
|
||||
<p>yo fresh</p>
|
||||
<p>There are many posts like it but this one is mine.</p>
|
4
examples/pixywerk.com/src/posts/2019-04-15.thtml.meta
Normal file
4
examples/pixywerk.com/src/posts/2019-04-15.thtml.meta
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"title":"My first post",
|
||||
"featured":"../images/20190415-0.jpg"
|
||||
}
|
9
examples/pixywerk.com/src/templates/default.jinja2
Normal file
9
examples/pixywerk.com/src/templates/default.jinja2
Normal file
@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ metadata.title }}</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
{{ content }}
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user