about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-09-22T12·19+0300
committerVincent Ambo <mail@tazj.in>2021-09-22T18·28+0300
commitd0c0227a7b76ee772a048e590ec56caf04886118 (patch)
tree1935d120e5f1f215da66e539f8843162384c681c
parent87c141d3d76185526bb8684cb518f74cf8f878ff (diff)
refactor(web/tvl/template): Don't forcefully embed title in page r/2905
This hands more layout control back to the page content instead of the
template. There are cases (currently experimenting with logo layout)
where it's visually nicer if there isn't a page title, but the rest of
the template still applies.

Change-Id: Ia3cd0c750beec5408e631760f1faeea8efec91db
-rw-r--r--web/atward/indexHtml/default.nix5
-rw-r--r--web/tvl/default.nix5
-rw-r--r--web/tvl/template/default.nix4
3 files changed, 10 insertions, 4 deletions
diff --git a/web/atward/indexHtml/default.nix b/web/atward/indexHtml/default.nix
index ed5f65cd41..adf7c1761a 100644
--- a/web/atward/indexHtml/default.nix
+++ b/web/atward/indexHtml/default.nix
@@ -4,6 +4,11 @@ depot.web.tvl.template {
   useUrls = true;
   title = "atward";
   content = ''
+    atward
+    ======
+
+    ----------
+
     **atward** is [TVL's](https://tvl.fyi/) search
     service. It can be configured as a browser search engine for easy
     access to TVL bugs, code reviews, code paths and more.
diff --git a/web/tvl/default.nix b/web/tvl/default.nix
index 2a471fadc3..50b3eac2f6 100644
--- a/web/tvl/default.nix
+++ b/web/tvl/default.nix
@@ -12,6 +12,11 @@ let
   homepage = depot.web.tvl.template {
     title = "The Virus Lounge";
     content = ''
+      The Virus Lounge
+      ================
+
+      -------
+
       ![The Virus Lounge](/static/virus_lounge.webp)
 
       Welcome to **The Virus Lounge**. We're a random group of
diff --git a/web/tvl/template/default.nix b/web/tvl/template/default.nix
index fe316b6709..37a6545af7 100644
--- a/web/tvl/template/default.nix
+++ b/web/tvl/template/default.nix
@@ -30,10 +30,6 @@ runCommandNoCC "index.html" {
   '' + lib.optionalString (args ? extraHead) extraHead + ''
     </head>
     <body class="light">
-      <header>
-        <h1><a class="blog-title" href="/">${title}</a> </h1>
-        <hr>
-      </header>
   '';
 
   inherit content;