diff options
author | Alan Pearce | 2017-06-18 13:36:29 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-18 13:36:29 +0200 |
commit | 69af7f12ec17f0aba65b0e23ef4045ee28f2dac8 (patch) | |
tree | 281781690d7bfe4952205e33ec26dff2f442aa57 /src/views | |
parent | 370e7add837f194bebc710c10ccd11bacfc74990 (diff) | |
download | homestead-69af7f12ec17f0aba65b0e23ef4045ee28f2dac8.tar.lz homestead-69af7f12ec17f0aba65b0e23ef4045ee28f2dac8.tar.zst homestead-69af7f12ec17f0aba65b0e23ef4045ee28f2dac8.zip |
feat: add single post endpoint
Diffstat (limited to 'src/views')
-rw-r--r-- | src/views/index.html | 2 | ||||
-rw-r--r-- | src/views/post.html | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/views/index.html b/src/views/index.html index 0e900e6..dcc142c 100644 --- a/src/views/index.html +++ b/src/views/index.html @@ -1,5 +1,5 @@ hello world -{% for post in posts %} +{% for filename, post in posts %} {{ post.data.get('title') }} {% endfor %} diff --git a/src/views/post.html b/src/views/post.html new file mode 100644 index 0000000..fcc4dbd --- /dev/null +++ b/src/views/post.html @@ -0,0 +1,3 @@ +{{ post.data.title }} + +{{ post.content }} |