guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: website: Remove manual use of obsolete TT elements.


From: Luis Felipe López Acevedo
Subject: 01/01: website: Remove manual use of obsolete TT elements.
Date: Tue, 5 Feb 2019 14:37:44 -0500 (EST)

lfla pushed a commit to branch master
in repository guix-artwork.

commit 13a1a5a41df9eae7d3ca54c6ab4774c7804dba45
Author: sirgazil <address@hidden>
Date:   Tue Feb 5 14:35:36 2019 -0500

    website: Remove manual use of obsolete TT elements.
    
    Pages on this website are defined as HTML5 documents. In this context,
    the TT element is "entirely obsolete, and must not be used by
    authors".¹ Using the TT element will render a page non-valid HTML5
    document.
    
    * website/apps/base/templates/contribute.scm: Use .mono class instead
      of TT Element.
    * website/apps/base/templates/security.scm: Ditto.
    * website/static/base/css/common.css: Add .mono class.
    
    1. https://www.w3.org/TR/html5/obsolete.html#non-conforming-features
---
 website/apps/base/templates/contribute.scm |  5 +++--
 website/apps/base/templates/security.scm   | 18 +++++++++---------
 website/static/base/css/common.css         |  4 ++++
 3 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/website/apps/base/templates/contribute.scm 
b/website/apps/base/templates/contribute.scm
index 6ab8899..7591c62 100644
--- a/website/apps/base/templates/contribute.scm
+++ b/website/apps/base/templates/contribute.scm
@@ -51,8 +51,9 @@
        (a (@ (href "https://contributor-covenant.org/";))
           "https://contributor-covenant.org/";)
        ".  You can find the full pledge in the "
-       (a (@ (href 
"//git.savannah.gnu.org/cgit/guix.git/tree/CODE-OF-CONDUCT"))
-          (tt "CODE-OF-CONDUCT")) " file.")
+       (a (@ (href "//git.savannah.gnu.org/cgit/guix.git/tree/CODE-OF-CONDUCT")
+            (class "mono"))
+          "CODE-OF-CONDUCT") " file.")
 
       (div
        (@ (class "centered-text"))
diff --git a/website/apps/base/templates/security.scm 
b/website/apps/base/templates/security.scm
index 2ea4c00..b7f5f07 100644
--- a/website/apps/base/templates/security.scm
+++ b/website/apps/base/templates/security.scm
@@ -46,23 +46,23 @@
         respective OpenPGP key:")
       (ul
         (li "Leo Famulari"
-          (ul
-            (li (tt "4F71 6F9A 8FA2 C80E F1B5 E1BA 5E35 F231 DE1A C5E0"))))
+          (ul (@ (class "mono"))
+            (li "4F71 6F9A 8FA2 C80E F1B5 E1BA 5E35 F231 DE1A C5E0")))
         (li "Ludovic Courtès"
-          (ul
-            (li (tt ,ludovics-key))))
+          (ul (@ (class "mono"))
+            (li ,ludovics-key)))
         (li "Mark H Weaver"
-          (ul
-            (li (tt "D919 0965 CE03 199E AF28 B3BE 7CEF 2984 7562 C516"))))
+          (ul (@ (class "mono"))
+            (li "D919 0965 CE03 199E AF28 B3BE 7CEF 2984 7562 C516")))
         (li "Ricardo Wurmus"
-          (ul
-            (li (tt "BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC")))))
+          (ul (@ (class "mono"))
+            (li "BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC"))))
 
       (h3 "Release signatures")
       (p
        "Releases of Guix and GuixSD are signed using the OpenPGP "
        "key with the fingerprint "
-       (tt ,ludovics-key)
+       (span (@ (class "mono")) ,ludovics-key)
        ".  "
        "Users should "
        (a (@ (href ,(manual-url "Binary-Installation.html"))) "verify")
diff --git a/website/static/base/css/common.css 
b/website/static/base/css/common.css
index 2ac0563..a91bed6 100644
--- a/website/static/base/css/common.css
+++ b/website/static/base/css/common.css
@@ -49,6 +49,10 @@
     text-align: right;
 }
 
+.mono {
+    font-family: monospace;
+}
+
 .light-text {
     color: #E6E6E6;
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]