From 1cf95af41ea24ab76cba8a0761d349b65c08c294 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 13 May 2020 10:58:22 -0400 Subject: Add to mailbox view This causes the mailbox to automatically reload the page every 60 seconds, without JavaScript. This also updates the base template data to include the full URL, and replaces the earlier "Path" field with a pre-split array of path components, which is more immediately useful to most templates given the limitations of string munging with text/template primitives. --- themes/sourcehut/address-book.html | 2 +- themes/sourcehut/address-object.html | 2 +- themes/sourcehut/calendar.html | 2 +- themes/sourcehut/compose.html | 2 +- themes/sourcehut/event.html | 2 +- themes/sourcehut/login.html | 2 +- themes/sourcehut/mailbox.html | 2 +- themes/sourcehut/message.html | 2 +- themes/sourcehut/settings.html | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) (limited to 'themes/sourcehut') diff --git a/themes/sourcehut/address-book.html b/themes/sourcehut/address-book.html index c5600d6..44abbe2 100644 --- a/themes/sourcehut/address-book.html +++ b/themes/sourcehut/address-book.html @@ -1,4 +1,4 @@ -{{template "head.html"}} +{{template "head.html" .Global}} {{template "nav.html" .Global}}
diff --git a/themes/sourcehut/address-object.html b/themes/sourcehut/address-object.html index 1ab445f..6fb5f6c 100644 --- a/themes/sourcehut/address-object.html +++ b/themes/sourcehut/address-object.html @@ -1,4 +1,4 @@ -{{template "head.html"}} +{{template "head.html" .Global}} {{template "nav.html" .Global}} {{$fn := .AddressObject.Card.Value "FN"}} diff --git a/themes/sourcehut/calendar.html b/themes/sourcehut/calendar.html index ec15ae8..d0cfac0 100644 --- a/themes/sourcehut/calendar.html +++ b/themes/sourcehut/calendar.html @@ -1,4 +1,4 @@ -{{template "head.html"}} +{{template "head.html" .Global}} {{template "nav.html" .Global}}
diff --git a/themes/sourcehut/compose.html b/themes/sourcehut/compose.html index 7538a36..8f73538 100644 --- a/themes/sourcehut/compose.html +++ b/themes/sourcehut/compose.html @@ -1,4 +1,4 @@ -{{template "head.html"}} +{{template "head.html" .Global}} {{template "nav.html" .Global}}
diff --git a/themes/sourcehut/event.html b/themes/sourcehut/event.html index a298ce1..3740166 100644 --- a/themes/sourcehut/event.html +++ b/themes/sourcehut/event.html @@ -1,4 +1,4 @@ -{{template "head.html"}} +{{template "head.html" .Global}} {{template "nav.html" .Global}} {{$event := index .Event.Data.Events 0}} diff --git a/themes/sourcehut/login.html b/themes/sourcehut/login.html index 63edfd8..65605b4 100644 --- a/themes/sourcehut/login.html +++ b/themes/sourcehut/login.html @@ -1,4 +1,4 @@ -{{template "head.html"}} +{{template "head.html" .Global}} {{template "nav.html" .Global}}
diff --git a/themes/sourcehut/mailbox.html b/themes/sourcehut/mailbox.html index e360f25..58eb52b 100644 --- a/themes/sourcehut/mailbox.html +++ b/themes/sourcehut/mailbox.html @@ -1,4 +1,4 @@ -{{template "head.html"}} +{{template "head.html" .Global}} {{template "nav.html" .Global}} diff --git a/themes/sourcehut/message.html b/themes/sourcehut/message.html index 1e4197f..077d33c 100644 --- a/themes/sourcehut/message.html +++ b/themes/sourcehut/message.html @@ -1,4 +1,4 @@ -{{template "head.html"}} +{{template "head.html" .Global}} {{template "nav.html" .Global}}
diff --git a/themes/sourcehut/settings.html b/themes/sourcehut/settings.html index 292d5cc..c197789 100644 --- a/themes/sourcehut/settings.html +++ b/themes/sourcehut/settings.html @@ -1,4 +1,4 @@ -{{template "head.html"}} +{{template "head.html" .Global}} {{template "nav.html" .Global}}
-- cgit v1.2.3