emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] elpa-admin 1608043197 2/2: Generate HTML5 tags instead of <div>s


From: Philip Kaludercic
Subject: [elpa] elpa-admin 1608043197 2/2: Generate HTML5 tags instead of <div>s with CSS classes
Date: Fri, 23 Feb 2024 14:46:49 -0500 (EST)

branch: elpa-admin
commit 1608043197a5c9e9b896cd3704194ed6b50a6835
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Generate HTML5 tags instead of <div>s with CSS classes
---
 elpa-admin.el | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/elpa-admin.el b/elpa-admin.el
index f793a612fb..1499a62c6b 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -1553,13 +1553,13 @@ readme file has an unconventional name"
 
         <div class=\"wrapper\">
 
-            <div class=\"header small\">
+            <header class=\"small\">
                 <div class=\"container\">
                     <h1>%s</h1>
                 </div>
-            </div>
+            </header>
 
-            <div class=\"container\">\n"
+            <main class=\"container\">\n"
           title (or head-extra "") (or header title)))
 
 (defvar elpaa--index-javascript-headers "
@@ -1569,7 +1569,7 @@ readme file has an unconventional name"
 
 (defun elpaa--html-footer ()
   (format "\n
-        <div class=\"footer\">
+        <footer>
             <div class=\"container\">
                 <p>Last refreshed on %s</p>
                 <p>Copyright 2016-%s <a href=\"https://fsf.org\";>Free Software 
Foundation</a>, Inc.</p>
@@ -1581,7 +1581,7 @@ readme file has an unconventional name"
                 </p>
                 <p><a href=\"/jslicense.html\" data-jslicense=\"1\">JavaScript 
Licenses</a></p>
             </div>
-        </div>
+        </footer>
 
 </body>\n"
           (format-time-string "%Y-%b-%d %R %Z" nil t)
@@ -1950,7 +1950,7 @@ arbitrary code."
                   "<div class=\"splice news\">\n"
                   (elpaa--section-to-html news)
                   "\n</div>\n")))
-      (insert "</div>\n")
+      (insert "</main>\n")
       (insert (elpaa--html-footer))
       (write-region (point-min) (point-max) (concat name ".html")))))
 
@@ -1969,7 +1969,7 @@ arbitrary code."
                       (aref (cdr pkg) 2))))
     (insert "</tbody></table>
             <div class=\"push\"></div>
-        </div>")
+        </main>")
     (insert (elpaa--html-footer))
     (write-region (point-min) (point-max) "index.html")))
 



reply via email to

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