Browse Source

Include deals

refactoring
Nico Schottelius 3 years ago
parent
commit
a6ef9f85fe
  1. 6
      content/u/deals/contents.lr
  2. 28
      content/u/deals/penguin-day-2020-01-06/contents.lr
  3. 16
      models/deals.ini
  4. 1
      templates/deals.html
  5. 4
      templates/layout-2020.html

6
content/u/deals/contents.lr

@ -0,0 +1,6 @@
_model: deals
---
title: Deals
---
subtitle: Special offers for you
---

28
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.

16
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

1
templates/deals.html

@ -0,0 +1 @@
summary-page.html

4
templates/layout-2020.html

@ -53,6 +53,9 @@
<li class="nav-item">
<a class="nav-link" href="/u/projects/">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/u/deals/">Deals</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0"
action="https://search.ungleich.ch/yacysearch.html" method="get">
@ -63,7 +66,6 @@
<a class="nav-link" href="/u/">
<button type="button" class="btn btn-info"
style="margin-left: 8px;">
BETA Website
</button>
</a>

Loading…
Cancel
Save