From a6ef9f85fe932d9637578a4ab9918f969c12bbba Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 4 Jan 2020 17:56:10 +0100 Subject: [PATCH] Include deals --- content/u/deals/contents.lr | 6 ++++ .../deals/penguin-day-2020-01-06/contents.lr | 28 +++++++++++++++++++ models/deals.ini | 16 +++++++++++ templates/deals.html | 1 + templates/layout-2020.html | 4 ++- 5 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 content/u/deals/contents.lr create mode 100644 content/u/deals/penguin-day-2020-01-06/contents.lr create mode 100644 models/deals.ini create mode 120000 templates/deals.html diff --git a/content/u/deals/contents.lr b/content/u/deals/contents.lr new file mode 100644 index 0000000..2ce997a --- /dev/null +++ b/content/u/deals/contents.lr @@ -0,0 +1,6 @@ +_model: deals +--- +title: Deals +--- +subtitle: Special offers for you +--- diff --git a/content/u/deals/penguin-day-2020-01-06/contents.lr b/content/u/deals/penguin-day-2020-01-06/contents.lr new file mode 100644 index 0000000..76a820f --- /dev/null +++ b/content/u/deals/penguin-day-2020-01-06/contents.lr @@ -0,0 +1,28 @@ +title: Penguin Day 2020 +--- +subtitle: Draw your own cute penguin and get 10% discount +--- +content: + +## 2020-01-06: The first penguin day in 2020! + +You might already know, we are really into [penguin +comics](https://ungleich.ch/en-us/cms/penguin-comics/). + +So much that we would love to see your penguin drawings. +And because we like penguins so much, we give you a 10% discount +on any virtual machine from +[Data Center Light](https://datacenterlight.ch) or +[IPv6 Only Hosting](https://ipv6onlyhosting.com) +for anyone who sends us a penguin drawing! + +## How it works + +Draw your own penguin or a penguin comic and +tweet it to [@ungleich](https://twitter.com/ungleich/) by +latest 2020-01-06 midnight (CET) and follows us so that we can send +you a DM on how to use your discount. + +The discount can be redeemed until 2020-01-31 and applies to a VM of +any size (i.e. smallest to biggest and everything in between). The +discount stays for as long as the VM stays active. diff --git a/models/deals.ini b/models/deals.ini new file mode 100644 index 0000000..9a4526e --- /dev/null +++ b/models/deals.ini @@ -0,0 +1,16 @@ +[model] +name = Deals +label = Deals +hidden = yes + +[fields.title] +label = Title +type = string + +[fields.subtitle] +label = Subtitle +type = string + +[children] +order_by = -pub_date, title +model = page-2020 diff --git a/templates/deals.html b/templates/deals.html new file mode 120000 index 0000000..c166ef2 --- /dev/null +++ b/templates/deals.html @@ -0,0 +1 @@ +summary-page.html \ No newline at end of file diff --git a/templates/layout-2020.html b/templates/layout-2020.html index ce835ad..13a4f2f 100644 --- a/templates/layout-2020.html +++ b/templates/layout-2020.html @@ -53,6 +53,9 @@ +
@@ -63,7 +66,6 @@