-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.njk
49 lines (49 loc) · 1.62 KB
/
index.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>👋 HelloTrello</title>
{% set css %}
{% include "style.css" %}
{% endset %}
<style>
{{ css | cssmin | safe }}
</style>
</head>
<body>
<div class="tint">
<header>
<h1>HelloTrello!</h1>
<p>
This site is populated with content from a public <a href="{{ site.trello_board }}">Trello board</a>. Every deployment pulls the content from the Trello API and generates the site's HTML at build time on <a href="https://netlify.com{{ site.utm }}">Netlify</a>.
</p>
</header>
</div>
<main>
{% for card in trello %}
<section>
<h2>{{ card.name }}</h2>
<div>
{% markdown %}
{{- card.desc | safe }}
{% endmarkdown %}
</div>
</section>
{% endfor %}
</main>
<div class="tint">
<footer>
<p>
This example includes <a href="https://stage--{{ site.host }}">staging</a> and <a href="https://{{ site.host }}">production</a> environments. Go ahead, take a look.
</p>
<p>
Environments are created by <a href="https://docs.netlify.com/site-deploys/overview/{{ site.utm }}#branches-and-deploys">Netlify's Branch Deploy</a> feature, but the code on each branch is identical — they simply filter the content included based on the labels on the Trello cards and the branch name.
</p>
<p>
Feel free to explore this site's <a href="{{ pkg.repository.url }}">code in GitHub</a> to learn more and try this out for yourself.
</p>
</footer>
</div>
</body>
</html>