Browse Source

a bit of cleanup

Getty Ritter 2 years ago
parent
commit
258d9ca6c8
2 changed files with 5 additions and 7 deletions
  1. 2 2
      main.py
  2. 3 5
      templates/main.mustache

+ 2 - 2
main.py

@@ -104,7 +104,7 @@ def main():
         quips.append(q)
         with Path.write('quips', uuid, 'index.html') as f:
             f.write(Template.main({
-                'title': f"Quip {uuid}",
+                'title': f"Quip",
                 'contents': Template.quote({'quotelist': [q]}),
                 'copy': no_copy,
             }))
@@ -125,7 +125,7 @@ def main():
         quotes.append(q)
         with Path.write('quotes', uuid, 'index.html') as f:
             f.write(Template.main({
-                'title': f"Quote {uuid}",
+                'title': f"Quote",
                 'contents': Template.quote({'quotelist': [q]}),
                 'copy': no_copy,
             }))

+ 3 - 5
templates/main.mustache

@@ -1,9 +1,7 @@
-{{! title, contents, usejs=False, onLoad='', copy='©2022 Getty Ritter' }}
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<!DOCTYPE html>
+<html>
   <head>
-    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8;" />
+    <meta http-equiv="Content-Type" content="application/html; charset=utf-8;" />
     {{#opengraph}}
       <meta property="og:title" content="{{title}}"/>
       <meta property="og:type" content="website"/>