diff options
author | Yann Herklotz <git@yannherklotz.com> | 2023-07-01 20:47:58 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2023-07-01 20:47:58 +0100 |
commit | 741fd7390c82e11971d13aaa4e39c42e96aec904 (patch) | |
tree | 627830fa3d9be63fff675d0a94776c4383e2e7f1 | |
parent | 432c127a243aa3aba0a7970a995317f8f7477809 (diff) | |
download | yannherklotz.com-741fd7390c82e11971d13aaa4e39c42e96aec904.tar.gz yannherklotz.com-741fd7390c82e11971d13aaa4e39c42e96aec904.zip |
Add news.html layout
-rw-r--r-- | themes/ymherklotz/.gitignore | 1 | ||||
-rw-r--r-- | themes/ymherklotz/layouts/_default/news.html | 22 |
2 files changed, 22 insertions, 1 deletions
diff --git a/themes/ymherklotz/.gitignore b/themes/ymherklotz/.gitignore deleted file mode 100644 index e43b0f9..0000000 --- a/themes/ymherklotz/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.DS_Store diff --git a/themes/ymherklotz/layouts/_default/news.html b/themes/ymherklotz/layouts/_default/news.html new file mode 100644 index 0000000..b39f319 --- /dev/null +++ b/themes/ymherklotz/layouts/_default/news.html @@ -0,0 +1,22 @@ +{{ define "main" }} +<main> + <div class="container"> + <div class="left flex"> + </div> + <div class="center flex"> + <article class="content"> + <h1>News</h1> + <table class="news"> + <tbody> + {{ range $.Site.Data.news.news }} + <tr><td class="news-date">{{ .date }}</td><td>{{ safeHTML .event }}</td></tr> + {{ end }} + </tbody> + </table> + </article> + </div> + <div class="right flex"> + </div> + </div> +</main> +{{ end }} |