Update blorg and add it to gh-pages. Update README

This commit is contained in:
Niklas Fasching 2020-06-26 20:16:59 +02:00
parent e076412b29
commit d2bbcc8881
21 changed files with 746 additions and 103 deletions

View file

@ -1,7 +1,7 @@
#+AUTHOR: author
#+TITLE: blog
#+BASE_URL: https://www.example.com
#+OPTIONS: toc:nil
#+AUTHOR: testdata
#+TITLE: blorg
#+BASE_URL: /go-org/blorg
#+OPTIONS: toc:nil title:nil
#+CONTENT: ./content
#+PUBLIC: ./public
@ -12,7 +12,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/style.css" type="text/css" />
<link rel="stylesheet" href="/go-org/blorg/style.css" type="text/css" />
<title>{{ .Title }}</title>
</head>
#+end_src
@ -20,35 +20,12 @@
#+name: header
#+begin_src html
<header class='header'>
<a class="logo" href="/">home</a>
<a class="logo" href="/go-org/blorg">home</a>
<nav>
<a href="https://www.github.com/niklasfasching">github</a>
<a href="/about">about</a>
<a href="https://www.github.com/niklasfasching/go-org">github</a>
</nav>
</header>
#+end_src
** index
#+name: index
#+begin_src html
<!doctype html>
<html>
{{ template "head" . }}
<body>
{{ template "header" . }}
<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>
</body>
</html>
#+end_src
** item
#+name: item
#+begin_src html
@ -64,7 +41,7 @@
</h1>
<ul class="tags">
{{ range .Tags }}
<li><a href="/tags/{{ . | Slugify }}">{{ . }}</a></li>
<li><a href="/go-org/blorg/tags/{{ . | Slugify }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ .Content }}
@ -98,3 +75,30 @@
</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