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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
#+AUTHOR: testdata
#+TITLE: blorg
#+BASE_URL: /go-org/blorg
#+OPTIONS: toc:nil title:nil
#+CONTENT: ./content
#+PUBLIC: ./public
* templates
** head
#+name: head
#+begin_src html
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/go-org/blorg/style.css" type="text/css" />
<title>{{ .Title }}</title>
</head>
#+end_src
** header
#+name: header
#+begin_src html
<header class='header'>
<a class="logo" href="/go-org/blorg">home</a>
<nav>
<a href="https://www.github.com/niklasfasching/go-org">github</a>
</nav>
</header>
#+end_src
** item
#+name: item
#+begin_src html
<!doctype html>
<html>
{{ template "head" . }}
<body>
{{ template "header" . }}
<div class="container">
<h1 class="title">{{ .Title }}
<br>
<span class="subtitle">{{ .Subtitle }}</span>
</h1>
<ul class="tags">
{{ range .Tags }}
<li><a href="/go-org/blorg/tags/{{ . | Slugify }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ .Content }}
</div>
</body>
</html>
#+end_src
** list
#+name: list
#+begin_src html
<!doctype html>
<html>
{{ template "head" . }}
<body>
{{ template "header" . }}
<div class="container">
<h1 class="title">{{ .Title }}</h1>
<ul class="posts">
{{ range .Pages }}
<li class="post">
<a href="{{ .PermaLink }}">
<date>{{ .Date.Format "02.01.2006" }}</date>
<span>{{ .Title }}</span>
</a>
</li>
{{ end }}
</ul>
<ul>
</div>
</body>
</html>
#+end_src
** index
#+name: index
#+begin_src html
<!doctype html>
<html>
{{ template "head" . }}
<body>
{{ template "header" . }}
<div class="container">
<h1 class="title">{{ .Title }}</h1>
<p>Only pages that have a date will be listed here - e.g. not <a href="about.html">about.html</a>
<ul class="posts">
{{ range .Pages }}
<li class="post">
<a href="{{ .PermaLink }}">
<date>{{ .Date.Format "02.01.2006" }}</date>
<span>{{ .Title }}</span>
</a>
</li>
{{ end }}
</ul>
<ul>
</div>
</body>
</html>
#+end_src
|