diff options
| author | Joe Carstairs <me@joeac.net> | 2026-08-13 16:33:51 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-08-13 16:33:51 +0100 |
| commit | 62e6bab910297aa15d76eb735ce3dd9b5417e26e (patch) | |
| tree | a98b5fb2c2663e08c21475b1092ccec395e2d87e /http/src/blog.upphtml | |
| parent | f9272fdf3ea23070583c944b110a7b8f16c5a4ff (diff) | |
remove website/capsule content
Diffstat (limited to 'http/src/blog.upphtml')
| -rw-r--r-- | http/src/blog.upphtml | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/http/src/blog.upphtml b/http/src/blog.upphtml deleted file mode 100644 index 8c0e429..0000000 --- a/http/src/blog.upphtml +++ /dev/null @@ -1,76 +0,0 @@ -#! -PAGE="$1" -SITE_URL="$2" -export TITLE="Joe Carstairs" -export DESCRIPTION="Joe Carstairs' personal website" - -POSTS="$(ls --reverse "${SRC}/blog/" | grep "^[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\.blog.upphtml$")" -set -- -for post in $POSTS -do - this_year="$( echo "$post" | cut -c1-4 )" - has_this_year=0 - for year in $@ - do - if [ "$this_year" = "$year" ] - then - has_this_year=1 - break - fi - done - if [ $has_this_year -eq 0 ] - then - set -- $@ "$this_year" - fi -done -YEARS="$@" - -pp "${SHARE}"/components/meta.upphtml -#! - -<section class='h-feed'> - -<h1>My blog</h1> - -<aside> -<p>This blog is written by <a class='p-author h-card' href='/'>Joe Carstairs</a>.</p> -<p hidden><a class='u-url' href='${SITE_URL}/blog'>Permalink</a></p> -</aside> - -<section> -<p><a href='/subscribe'>How to subscribe to my logs</a></p> -</section> - -#! -for year in $YEARS; do -#! -<h2>${year}</h2> - -<ul> - -#! -for post in $POSTS; do if [ "$(echo "${post}" | cut -c1-4)" = "$year" ]; then -title="$(grep "^export TITLE=" "${SRC}/blog/${post}" | cut -c15-)" -title="$(echo ${title} | cut -c1-$(( ${#title} - 16 )) )" -date_published="$(echo "${post}" | cut -c1-10)" -href="${SITE_URL}/blog/$(echo "$post" | cut -c1-10).html" -#! - -<li class='h-entry'> -<h3><a class='u-url p-name' href='${href}'>${title}</a></h3> -#! -DATE="${date_published}" CLASS="dt-published" pp "${SHARE}/components/formatted_date.upphtml" -#! -</li> - -#! -fi; done -#! - -</ul> - -#! -done -#! - -</section> |
