summaryrefslogtreecommitdiff
path: root/http/share/layouts/microlog.layout.upphtml
blob: 56c8006c6c2cd45a4f7b88079f40e5a3d6cf0d57 (plain)
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
#!
SRC="$1"
SITE_URL="$2"
DATE_PUBLISHED="$(basename "${SRC}" | cut -c1-10)"
CANONICAL_URL="${SITE_URL}/microlog/$(basename "${SRC}")"
#!

<!doctype html>
<html lang="en-GB">

<head>
#!
pp "${SHARE}"/components/head.upphtml
#!
</head>

<body>

#!
pp "${SHARE}"/components/navbar.upphtml
#!

<article class="h-entry">

<aside>
<span>This is a microlog post by <a class='p-author h-card' href='/'>Joe Carstairs</a>.</span>
<span>Published:
#!
DATE="${DATE_PUBLISHED}" CLASS="dt-published" pp "${SHARE}/components/formatted_date.upphtml"
#!
.</span>
<span hidden><a class='u-url uid' href='${CANONICAL_URL}'>Permalink</a></span>
</aside>

<header>
<h1 class='h-name'>
#!
echo "${POST_TITLE}"
#!
</h1>
</header>

<section class="e-content">
#!
pp "${SRC}"
#!
</section>

</article>