summaryrefslogtreecommitdiff
path: root/http/share
diff options
context:
space:
mode:
Diffstat (limited to 'http/share')
-rw-r--r--http/share/components/formatted_date.upphtml4
-rw-r--r--http/share/components/head.upphtml37
-rw-r--r--http/share/components/meta.upphtml11
-rw-r--r--http/share/components/navbar.upphtml16
-rw-r--r--http/share/components/otp-dialog.upphtml28
-rw-r--r--http/share/layouts/blog.layout.upphtml66
-rw-r--r--http/share/layouts/default.layout.upphtml20
-rw-r--r--http/share/layouts/microlog.layout.upphtml51
-rw-r--r--http/share/layouts/trivial.layout.upphtml3
-rw-r--r--http/share/man/man1/lmt.155
-rw-r--r--http/share/man/man1/mkws.191
l---------http/share/man/man1/pp.11
12 files changed, 0 insertions, 383 deletions
diff --git a/http/share/components/formatted_date.upphtml b/http/share/components/formatted_date.upphtml
deleted file mode 100644
index ba86181..0000000
--- a/http/share/components/formatted_date.upphtml
+++ /dev/null
@@ -1,4 +0,0 @@
-#!
-FORMATTED_DATE="$(date --date "${DATE}" +'%A %-d %B %Y')"
-echo "<time datetime='${DATE}' class='${CLASS}' ${ATTRIBUTES}>${FORMATTED_DATE}</time>"
-#!
diff --git a/http/share/components/head.upphtml b/http/share/components/head.upphtml
deleted file mode 100644
index 87728f1..0000000
--- a/http/share/components/head.upphtml
+++ /dev/null
@@ -1,37 +0,0 @@
-<!-- IndieWeb -->
-<link rel="authorization_endpoint" href="https://indieauth.com/auth">
-<link rel="token_endpoint" href="https://tokens.indieauth.com/token">
-<link rel="micropub" href="https://tasty-windows-lick.loca.lt">
-
-<!-- Stylesheets -->
-<link rel="stylesheet" href="/css/reset.css" />
-<link rel="stylesheet" href="/css/base.css" />
-<link rel="stylesheet" href="/css/hcard.css" />
-<link rel="stylesheet" href="/css/feed.css" />
-
-<!-- Global Metadata -->
-<meta charset="utf-8" />
-<meta name="viewport" content="width=device-width,initial-scale=1" />
-<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
-<meta name="generator" content="mkws" />
-
-<!-- Canonical URL -->
-<link rel="canonical" href={canonicalURL} />
-
-<!-- Open Graph / Facebook -->
-<meta property="og:type" content="website" />
-<meta property="og:url" content={Astro.url} />
-<meta property="og:title" content={title} />
-<meta property="og:description" content={description} />
-<meta property="og:image" content={new URL(image, Astro.url)} />
-
-<!-- Twitter -->
-<meta property="twitter:card" content="summary_large_image" />
-<meta property="twitter:url" content={Astro.url} />
-<meta property="twitter:title" content={title} />
-<meta property="twitter:description" content={description} />
-<meta property="twitter:image" content={new URL(image, Astro.url)} />
-
-<!-- Feeds -->
-<link rel="alternate" type="text/xml" title="Blog RSS" href="/blog/rss.xml">
-<link rel="alternate" type="text/xml" title="Links RSS" href="/links/rss.xml">
diff --git a/http/share/components/meta.upphtml b/http/share/components/meta.upphtml
deleted file mode 100644
index fbb0155..0000000
--- a/http/share/components/meta.upphtml
+++ /dev/null
@@ -1,11 +0,0 @@
-#!
-if [ -z "${NO_META}" ]; then
-#!
-
-<title>${TITLE}</title>
-<meta name='title' content='${TITLE}' />
-<meta name='description' content='${DESCRIPTION}' />
-
-#!
-fi
-#!
diff --git a/http/share/components/navbar.upphtml b/http/share/components/navbar.upphtml
deleted file mode 100644
index 777cb40..0000000
--- a/http/share/components/navbar.upphtml
+++ /dev/null
@@ -1,16 +0,0 @@
-<nav>
- <ul>
- <li>
- <a href="/">Home</a>
- </li>
- <li>
- <a href="/blog">Blog</a>
- </li>
- <li>
- <a href="/microlog">Microlog</a>
- </li>
- <li>
- <a href="/contact">Contact</a>
- </li>
- </ul>
-</nav>
diff --git a/http/share/components/otp-dialog.upphtml b/http/share/components/otp-dialog.upphtml
deleted file mode 100644
index a51333f..0000000
--- a/http/share/components/otp-dialog.upphtml
+++ /dev/null
@@ -1,28 +0,0 @@
-<script src="/scripts/otp-form-wc.js"></script>
-<link rel="stylesheet" href="/css/otp.css" />
-
-<dialog class="otp-dialog">
- <otp-form>
- <form class="otp-form" class="otp-form">
- <p>
- I've sent a six-digit code to <span class="otp-recipient">your email address</span>.
- Let me know what it is, so I can confirm this really is your email address. The
- code will be valid <span class="otp-valid-until">for five minutes</span>.
- </p>
-
- <p hidden class="error"/>
-
- <div class="otp-inputs">
- <input maxlength="1" name="1" required autocapitalize="characters" autocomplete="one-time-code" aria-label="First digit of one-time passcode" autofocus>
- <input maxlength="1" name="2" required autocapitalize="characters" autocomplete="one-time-code" aria-label="Second digit of one-time passcode">
- <input maxlength="1" name="3" required autocapitalize="characters" autocomplete="one-time-code" aria-label="Third digit of one-time passcode">
- <input maxlength="1" name="4" required autocapitalize="characters" autocomplete="one-time-code" aria-label="Fourth digit of one-time passcode">
- <input maxlength="1" name="5" required autocapitalize="characters" autocomplete="one-time-code" aria-label="Fifth digit of one-time passcode">
- <input maxlength="1" name="6" required autocapitalize="characters" autocomplete="one-time-code" aria-label="Sixth digit of one-time passcode">
- </div>
-
- <input type="submit" value="Verify">
- <button disabled class="resend-button">Resend (60s)</button>
- </form>
- </otp-form>
-</dialog>
diff --git a/http/share/layouts/blog.layout.upphtml b/http/share/layouts/blog.layout.upphtml
deleted file mode 100644
index ec6130c..0000000
--- a/http/share/layouts/blog.layout.upphtml
+++ /dev/null
@@ -1,66 +0,0 @@
-#!
-PAGE="$1"
-SITE_URL="$2"
-DATE_PUBLISHED="${DATE_PUBLISHED:-$(basename "${PAGE}" | cut -c1-10)}"
-CANONICAL_URL="${SITE_URL}/blog/$(basename "${PAGE}")"
-#!
-
-<!doctype html>
-<html lang="en-GB">
-
-<head>
-#!
-pp "${SHARE}"/components/head.upphtml
-#!
-
-<link rel="stylesheet" href="/css/post.css" />
-</head>
-
-<body>
-
-#!
-pp "${SHARE}"/components/navbar.upphtml
-#!
-
-<article class='h-entry'>
-
-<aside>
-<span>This is a <a href='/blog'>blog</a> post by <a class='p-author h-card' href='/'>Joe Carstairs</a>.</span>
-#!
-if [ -z "${DATE_UPDATED}" ]; then
-#!
-<span>Published:
-#!
-DATE="${DATE_PUBLISHED}" CLASS="dt-published" pp "${SHARE}/components/formatted_date.upphtml"
-#!
-.</span>
-#!
-else
-#!
-<span>Updated:
-#!
-DATE="${DATE_UPDATED}" CLASS="dt-updated" pp "${SHARE}/components/formatted_date.upphtml"
-#!
-.</span>
-<span>Originally published:
-#!
-DATE="${DATE_PUBLISHED}" CLASS="dt-published" pp "${SHARE}/components/formatted_date.upphtml"
-#!
-.</span>
-#!
-fi
-#!
-<span hidden><a class='u-url uid' href='${CANONICAL_URL}'>Permalink</a></span>
-</aside>
-
-<header>
-<h1 class='h-name'>${POST_TITLE}</h1>
-</header>
-
-<section class='e-content'>
-#!
-pp "${PAGE}"
-#!
-</section>
-
-</article>
diff --git a/http/share/layouts/default.layout.upphtml b/http/share/layouts/default.layout.upphtml
deleted file mode 100644
index ba94c58..0000000
--- a/http/share/layouts/default.layout.upphtml
+++ /dev/null
@@ -1,20 +0,0 @@
-<!doctype html>
-<html lang="en-GB">
-
-<head>
-#!
-pp "${SHARE}"/components/head.upphtml
-#!
-</head>
-
-<body>
-#!
-pp "${SHARE}"/components/navbar.upphtml
-#!
-<main>
-#!
-pp "$1" "$2"
-#!
-</main>
-</body>
-</html>
diff --git a/http/share/layouts/microlog.layout.upphtml b/http/share/layouts/microlog.layout.upphtml
deleted file mode 100644
index 772db15..0000000
--- a/http/share/layouts/microlog.layout.upphtml
+++ /dev/null
@@ -1,51 +0,0 @@
-#!
-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
-#!
-
-<link rel="stylesheet" href="/css/post.css" />
-</head>
-
-<body>
-
-#!
-pp "${SHARE}"/components/navbar.upphtml
-#!
-
-<article class="h-entry">
-
-<aside>
-<span>This is a <a href='/microlog'>microlog</a> 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>
diff --git a/http/share/layouts/trivial.layout.upphtml b/http/share/layouts/trivial.layout.upphtml
deleted file mode 100644
index 897bfe0..0000000
--- a/http/share/layouts/trivial.layout.upphtml
+++ /dev/null
@@ -1,3 +0,0 @@
-#!
-pp $@
-#!
diff --git a/http/share/man/man1/lmt.1 b/http/share/man/man1/lmt.1
deleted file mode 100644
index 755d69b..0000000
--- a/http/share/man/man1/lmt.1
+++ /dev/null
@@ -1,55 +0,0 @@
-.Dd Sep 4, 2020
-.Dt lmt
-.Os
-.Sh NAME
-.Nm lmt
-.Nd last modification time
-.Sh SYNOPSIS
-.Nm lmt
-.Op Fl f Ar format
-.Ar file ...
-.Sh DESCRIPTION
-The
-.Nm
-utility prints the last modification time for the given
-.Ar file
-to standard output.
-The information displayed is obtained by calling
-.Xr lstat 2
-with the given
-argument and evaluating the returned structure.
-.Pp
-The options are as follows:
-.Bl -tag -width Ds
-.It Fl f Ar format
-The format in which to display the time.
-The format string may contain any of the conversion specifications
-described in the
-.Xr strftime 3
-manual page, as well as any arbitrary text.
-A newline
-.Pq Ql \en
-character is always output after the characters specified by
-the format string.
-The format string for the default display is:
-.Bd -literal -offset indent
-%a %b %e %H:%M:%S %Z %Y
-.Ed
-.El
-.Sh EXIT STATUS
-.Ex -std
-.Sh EXAMPLES
-Print last modification time for
-.Pa file1
-to standard output:
-.Pp
-.Dl $ lmt file1
-.Pp
-Print last modification time for
-.Pa file1
-to standard output in ISO 8601 format:
-.Pp
-.Dl $ lmt -f "%Y-%m-%dT%H:%M:%S%z" file1
-.Sh SEE ALSO
-.Xr stat 1
-.Xr strftime 3
diff --git a/http/share/man/man1/mkws.1 b/http/share/man/man1/mkws.1
deleted file mode 100644
index 5ab337d..0000000
--- a/http/share/man/man1/mkws.1
+++ /dev/null
@@ -1,91 +0,0 @@
-.Dd Dec 13, 2019
-.Dt mkws 1
-.Os
-.Sh NAME
-.Nm mkws
-.Nd make web site
-.Sh SYNOPSIS
-.Nm
-.Ar url
-.Op path
-.Sh DESCRIPTION
-The
-.Nm
-utility uses
-.Xr pp 1
-and the theme files in the
-.Ev MKWSTHEMEPATH
-directory
-to preprocess all files in
-.Op path
-in order to produce a static web site in the current directory. If no
-.Op path
-is specified, the current directory is used instead.
-.Pp
-The options are as follows:
-.Bl -tag -width Ds
-.It Ar url
-The url of the web site. It is used for generating
-.Pa sitemap.xml
-.
-.It Op path
-The path where the unpreprocessed files are located. If no
-.Op path
-is specified, the current directory is used instead.
-.El
-.Sh ENVIRONMENT
-.Bl -tag -width MKWSTHEMEDIR
-.It Ev MKWSTHEMEDIR
-The directory containing the theme files. See the
-.Em FILES
-section for the minimum required files for a theme. If no
-.Ev MKWSTHEMEDIR
-variable is set
-.Pa [path]/share
-wil be used.
-.It Ev LANG
-The language for the website. It will be parsed to fill in the
-.Em lang
-attribute of the
-.Em html
-element and then
-.Em charset
-.Em meta
-element.
-.El
-.Sh FILES
-.Bl -tag -width "/tmp/vi.recover
-.It Pa $MKWSTHEMEDIR/l.upphtml
-The layout file of the website. It contains the
-.Em DOCTYPE ,
-.Em html ,
-.Em head ,
-.Em title ,
-.Em meta
-,
-.Em link
-,
-.Em body
-elements.
-.It Pa $MKWSTHEMEDIR/sitemap.xml
-The
-.Pa sitemap.txt
-template.
-.El
-.Sh EXIT STATUS
-.Ex -std
-.Sh EXAMPLES
-Make https://example.com web site using the unpreprocessed files in the
-current directory
-.Pp
-.Dl $ mkws https://example.com
-.Pp
-Make https://example.com web site using the unpreprocessed files in the
-.Ar ~/src/ws
-directory
-.Pp
-.Dl $ mkws https://example.com ~/src/ws
-.Sh SEE ALSO
-.Xr sh 1
-.Xr pp 1
-.Xr locale 1
diff --git a/http/share/man/man1/pp.1 b/http/share/man/man1/pp.1
deleted file mode 120000
index 5f87379..0000000
--- a/http/share/man/man1/pp.1
+++ /dev/null
@@ -1 +0,0 @@
-../../../pp/pp.1 \ No newline at end of file