From 33454b93629a0f9c6d8058414eb62b2371d6c595 Mon Sep 17 00:00:00 2001 From: Romeo Disca Date: Fri, 26 Apr 2019 16:21:48 +0200 Subject: display all news --- .gitignore | 1 + config.yml | 6 +++++- content/news/_index.md | 0 content/news/news1.md | 19 +++++++++++++++++++ content/news/news2.md | 13 +++++++++++++ content/news/news3.md | 13 +++++++++++++ content/news/news4.md | 12 ++++++++++++ themes/rusticus/archetypes/news.md | 13 +++++++++++++ themes/rusticus/layouts/_default/list.html | 8 ++++++++ themes/rusticus/layouts/partials/home/tax-news.html | 10 ++++++++++ themes/rusticus/layouts/partials/main.html | 4 +--- 11 files changed, 95 insertions(+), 4 deletions(-) create mode 100644 .gitignore create mode 100644 content/news/_index.md create mode 100644 content/news/news1.md create mode 100644 content/news/news2.md create mode 100644 content/news/news3.md create mode 100644 content/news/news4.md create mode 100644 themes/rusticus/archetypes/news.md create mode 100644 themes/rusticus/layouts/_default/list.html create mode 100644 themes/rusticus/layouts/partials/home/tax-news.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3a55fa4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/ diff --git a/config.yml b/config.yml index 77f2bf7..8ac6fbe 100644 --- a/config.yml +++ b/config.yml @@ -5,7 +5,11 @@ title: risticus.io theme: rusticus +taxonomies: + category: categories + tag: tags + information: information + params: title: Rust Community Stuttgart - \ No newline at end of file diff --git a/content/news/_index.md b/content/news/_index.md new file mode 100644 index 0000000..e69de29 diff --git a/content/news/news1.md b/content/news/news1.md new file mode 100644 index 0000000..3efd138 --- /dev/null +++ b/content/news/news1.md @@ -0,0 +1,19 @@ +--- +title: "News1" +date: 2019-04-15T19:49:21+02:00 +expiryDate: 2019-04-30 +draft: true + +params: + summary: This is a summary + +tags: ["bla"] +information: ["news"] + +--- + + +asdfsdf + + + diff --git a/content/news/news2.md b/content/news/news2.md new file mode 100644 index 0000000..54aad4b --- /dev/null +++ b/content/news/news2.md @@ -0,0 +1,13 @@ +--- +title: "News2" +date: 2019-04-15T19:49:34+02:00 +expiryDate: 2019-05-29 +draft: true + +tags: +information: ["news"] + +params: + summary: This is a summary +--- + diff --git a/content/news/news3.md b/content/news/news3.md new file mode 100644 index 0000000..ce75272 --- /dev/null +++ b/content/news/news3.md @@ -0,0 +1,13 @@ +--- +title: "News3" +date: 2019-04-15T19:49:37+02:00 +expiryDate: 2019-02-11 +draft: true + +tags: +information: ["news"] + +params: + summary: This is a summary +--- + diff --git a/content/news/news4.md b/content/news/news4.md new file mode 100644 index 0000000..c6427d5 --- /dev/null +++ b/content/news/news4.md @@ -0,0 +1,12 @@ +--- +title: "News4" +date: 2019-04-15T19:49:40+02:00 +draft: true + +tags: +information: + +params: + summary: This is a summary +--- + diff --git a/themes/rusticus/archetypes/news.md b/themes/rusticus/archetypes/news.md new file mode 100644 index 0000000..20ebf0b --- /dev/null +++ b/themes/rusticus/archetypes/news.md @@ -0,0 +1,13 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +expiryDate: +draft: true + +tags: +information: ["news"] + +params: + summary: This is a summary +--- + diff --git a/themes/rusticus/layouts/_default/list.html b/themes/rusticus/layouts/_default/list.html new file mode 100644 index 0000000..4abe3a4 --- /dev/null +++ b/themes/rusticus/layouts/_default/list.html @@ -0,0 +1,8 @@ +list +{{ range .Data.Pages }} + +{{ .Title }} + +{{ end }} + +{{ .Title }} diff --git a/themes/rusticus/layouts/partials/home/tax-news.html b/themes/rusticus/layouts/partials/home/tax-news.html new file mode 100644 index 0000000..d997be6 --- /dev/null +++ b/themes/rusticus/layouts/partials/home/tax-news.html @@ -0,0 +1,10 @@ + + + + diff --git a/themes/rusticus/layouts/partials/main.html b/themes/rusticus/layouts/partials/main.html index a6b65bf..dab3663 100644 --- a/themes/rusticus/layouts/partials/main.html +++ b/themes/rusticus/layouts/partials/main.html @@ -8,9 +8,7 @@

news

-
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Corrupti veniam possimus nemo repellat, ex neque et nesciunt vero labore id quam quas repellendus odio error reiciendis officiis? Dolore, deserunt temporibus.
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum esse aliquam magnam inventore maiores quasi dolore perspiciatis et, laudantium sint labore nostrum quod dolorem blanditiis fugit at amet! Commodi, fuga!
-
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nobis quo explicabo repellendus voluptatibus quidem excepturi odio eum quod ullam atque tenetur velit a cumque in aspernatur corporis, aperiam quibusdam architecto.
+ {{ partial "home/tax-news.html" . }}

blog

-- cgit v1.2.3