aboutsummaryrefslogtreecommitdiff
path: root/res/template-website
diff options
context:
space:
mode:
authorMaël Gassmann <mael.gassmann@students.bfh.ch>2022-03-02 14:37:17 +0100
committerMaël Gassmann <mael.gassmann@students.bfh.ch>2022-03-02 14:37:17 +0100
commit36b3422daed37549e405ed4a5bb37b601012ca21 (patch)
tree7b7252d7bdbdb3dfbea45bfc743dd0460fb4e1bf /res/template-website
parent7d3c9ec7368a5d25235e818c2c147ba7e89f6567 (diff)
[+] Now ordering posts by date, possiblity to show a limited number of posts, date now prints the date
Diffstat (limited to 'res/template-website')
-rw-r--r--res/template-website/pages/Home3
-rw-r--r--res/template-website/posts/day later post2
-rw-r--r--res/template-website/posts/month later post2
-rw-r--r--res/template-website/posts/new year post2
4 files changed, 9 insertions, 0 deletions
diff --git a/res/template-website/pages/Home b/res/template-website/pages/Home
index d35cb13..12a2b27 100644
--- a/res/template-website/pages/Home
+++ b/res/template-website/pages/Home
@@ -1,3 +1,6 @@
## Welcome
Hi, enjoy my website.
+
+### Latest posts:
+<ul>$list_post(2)$</ul>
diff --git a/res/template-website/posts/day later post b/res/template-website/posts/day later post
new file mode 100644
index 0000000..1652e65
--- /dev/null
+++ b/res/template-website/posts/day later post
@@ -0,0 +1,2 @@
+$date(06.10.2021)$
+first post
diff --git a/res/template-website/posts/month later post b/res/template-website/posts/month later post
new file mode 100644
index 0000000..69ec43e
--- /dev/null
+++ b/res/template-website/posts/month later post
@@ -0,0 +1,2 @@
+$date(05.11.2021)$
+first post
diff --git a/res/template-website/posts/new year post b/res/template-website/posts/new year post
new file mode 100644
index 0000000..49d7ea8
--- /dev/null
+++ b/res/template-website/posts/new year post
@@ -0,0 +1,2 @@
+$date(01.01.2022)$
+first post of the year 2022