From aef8733583b5d9e6bed312f03ff9923a00d5da25 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 4 Feb 2021 22:33:50 +0000 Subject: Use owner-filter to add Liberapay donation buttons --- www/git.causal.agency/.gitignore | 1 + www/git.causal.agency/Makefile | 2 +- www/git.causal.agency/cgitrc | 1 + www/git.causal.agency/custom.css | 3 +++ www/git.causal.agency/owner-filter.sh | 6 ++++++ 5 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 www/git.causal.agency/owner-filter.sh (limited to 'www') diff --git a/www/git.causal.agency/.gitignore b/www/git.causal.agency/.gitignore index db5a9275..a0ae074c 100644 --- a/www/git.causal.agency/.gitignore +++ b/www/git.causal.agency/.gitignore @@ -2,4 +2,5 @@ about-filter hilex htagml mtags +owner-filter source-filter diff --git a/www/git.causal.agency/Makefile b/www/git.causal.agency/Makefile index 6bf52f5a..638c21e7 100644 --- a/www/git.causal.agency/Makefile +++ b/www/git.causal.agency/Makefile @@ -3,7 +3,7 @@ WWW = /usr/local/www/cgit LIBEXEC = /usr/local/libexec BIN = ../../bin -BINS = about-filter source-filter hilex htagml mtags +BINS = about-filter source-filter owner-filter hilex htagml mtags all: ${BINS} diff --git a/www/git.causal.agency/cgitrc b/www/git.causal.agency/cgitrc index 13285116..8ccd7c72 100644 --- a/www/git.causal.agency/cgitrc +++ b/www/git.causal.agency/cgitrc @@ -17,6 +17,7 @@ css=/custom.css email-filter=/usr/local/libexec/cgit-email about-filter=/usr/local/libexec/about-filter source-filter=/usr/local/libexec/source-filter +owner-filter=/usr/local/libexec/owner-filter readme=:README.7 readme=:README diff --git a/www/git.causal.agency/custom.css b/www/git.causal.agency/custom.css index a84111ac..3bc61c90 100644 --- a/www/git.causal.agency/custom.css +++ b/www/git.causal.agency/custom.css @@ -17,6 +17,9 @@ div#cgit { div#cgit table#header td.sub { border-top: none; } +div#cgit table#header td.sub.right { + padding-right: 1em; +} div#cgit table.tabs { border-bottom: none; } diff --git a/www/git.causal.agency/owner-filter.sh b/www/git.causal.agency/owner-filter.sh new file mode 100644 index 00000000..18e74cf1 --- /dev/null +++ b/www/git.causal.agency/owner-filter.sh @@ -0,0 +1,6 @@ +#!/bin/sh +set -eu + +cat <Donate using Liberapay +EOF -- cgit 1.4.1