aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-08-30 16:58:07 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-08-30 16:58:07 +0200
commitd3f0841cfdd229ff16b8a230117737a435fc7a56 (patch)
tree37b2fc040f0a8b72cb0590a5fb1a035c8f6344cc
parent12830ecc2770cf63042f35e208899efabff6fd44 (diff)
downloadsebastiano.tronto.net-d3f0841cfdd229ff16b8a230117737a435fc7a56.tar.gz
sebastiano.tronto.net-d3f0841cfdd229ff16b8a230117737a435fc7a56.zip
Remove 'hosted at'
-rw-r--r--Makefile4
-rw-r--r--bottom.html9
-rwxr-xr-xbuild.sh8
-rw-r--r--src/style.css5
4 files changed, 11 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 8914304..a28df8e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
1DEST="sebastiano@tronto.net:/var/www/htdocs/sebastiano.tronto.net" 1DEST="sebastiano@new.tronto.net:/var/www/new.tronto.net"
2RSYNC=$$( (command -V rsync 2>&1 > /dev/null && echo rsync) || echo openrsync) 2RSYNC=$$( (command -V rsync 2>&1 > /dev/null && echo rsync) || echo openrsync)
3 3
4all: clean 4all: clean
@@ -11,6 +11,6 @@ clean:
11deploy: synchttp 11deploy: synchttp
12 12
13synchttp: 13synchttp:
14 ${RSYNC} -rv --delete --rsync-path=openrsync http/ ${DEST} 14 ${RSYNC} -rv --delete http/ ${DEST}
15 15
16.PHONY: all clean deploy synchttp 16.PHONY: all clean deploy synchttp
diff --git a/bottom.html b/bottom.html
index 682420d..1c196b1 100644
--- a/bottom.html
+++ b/bottom.html
@@ -5,14 +5,9 @@
5<footer> 5<footer>
6 <table> 6 <table>
7 <tr> 7 <tr>
8 <td class="lastupdate">Last update: LASTUPDATE</td>
8 <td class="contact"> 9 <td class="contact">
9 <a href="mailto:sebastiano@tronto.net"> 10 <a href="mailto:sebastiano@tronto.net">sebastiano@tronto.net</a>
10 sebastiano@tronto.net
11 </a>
12 </td>
13 <td class="hosted">
14 Hosted at
15 <a href="https://openbsd.amsterdam">openbsd.amsterdam</a>
16 </td> 11 </td>
17 </tr> 12 </tr>
18 </table> 13 </table>
diff --git a/build.sh b/build.sh
index 59c0232..1cfcd1c 100755
--- a/build.sh
+++ b/build.sh
@@ -1,6 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3basedir="$(pwd)" 3basedir="$(pwd)"
4bottomtmp="$(mktemp)"
4 5
5recursivebuild() { 6recursivebuild() {
6 local destdir=$(echo "$1" | sed 's|^src|http|') 7 local destdir=$(echo "$1" | sed 's|^src|http|')
@@ -44,7 +45,7 @@ copyfile() {
44 mdpreprocess "$file" | \ 45 mdpreprocess "$file" | \
45 lowdown --html-no-skiphtml --html-no-escapehtml \ 46 lowdown --html-no-skiphtml --html-no-escapehtml \
46 >> "$ind" 47 >> "$ind"
47 cat bottom.html >> "$ind" 48 cat "$bottomtmp" >> "$ind"
48 ;; 49 ;;
49 noheadermd) 50 noheadermd)
50 t="$(markdowntitle "$file")" 51 t="$(markdowntitle "$file")"
@@ -55,7 +56,7 @@ copyfile() {
55 ;; 56 ;;
56 html) 57 html)
57 t="$(htmltitle "$file")" 58 t="$(htmltitle "$file")"
58 cat top.html "$file" bottom.html | sed "s/TITLE/$t/" > "$ind" 59 cat top.html "$file" "$bottomtmp" | sed "s/TITLE/$t/" > "$ind"
59 ;; 60 ;;
60 raw) 61 raw)
61 namenoraw="$(basename "$file" | sed 's/\.raw$//')" 62 namenoraw="$(basename "$file" | sed 's/\.raw$//')"
@@ -118,7 +119,7 @@ makeblogindexandfeed() {
118 done 119 done
119 120
120 echo '</table>' >> "$bf" 121 echo '</table>' >> "$bf"
121 cat bottom.html >> "$bf" 122 cat "$bottomtmp" >> "$bf"
122 123
123 { echo ""; echo "</channel>"; echo "</rss>"; } >> "$ff" 124 { echo ""; echo "</channel>"; echo "</rss>"; } >> "$ff"
124} 125}
@@ -164,5 +165,6 @@ month() {
164 esac 165 esac
165} 166}
166 167
168sed "s/LASTUPDATE/$(date +'%Y-%m-%d')/" <bottom.html >"$bottomtmp"
167makeblogindexandfeed 169makeblogindexandfeed
168recursivebuild src 170recursivebuild src
diff --git a/src/style.css b/src/style.css
index 7f7f0d2..5a1ecf5 100644
--- a/src/style.css
+++ b/src/style.css
@@ -3,9 +3,8 @@ header nav table { width: 100%; }
3.logo img { max-width: 3em; margin: 0 0 0 0; } 3.logo img { max-width: 3em; margin: 0 0 0 0; }
4.links { text-align: right; font-weight: bold; } 4.links { text-align: right; font-weight: bold; }
5.links a { font-weight: bold; color: black; } 5.links a { font-weight: bold; color: black; }
6footer table { font-style: italic; width: 100%; } 6.contact { text-align: right; }
7.hosted { text-align: right; } 7.contact a { font-weight: bold; }
8.hosted a, .contact a { font-weight: bold; }
9 8
10/* Content */ 9/* Content */
11html { margin: 1em auto; max-width: 42em; font-family: sans-serif } 10html { margin: 1em auto; max-width: 42em; font-family: sans-serif }

Generated with cgit - Back to sebastiano.tronto.net