Repos / s4g / ec5501d985
commit ec5501d98585d912f7c20ad626a07eafbdb37688
Author: Nhân <hi@imnhan.com>
Date:   Wed Jul 5 00:00:04 2023 +0700

    pull base template's out to css file
    
    Also added 1.3rem line height. Seems more natural this way.

diff --git a/www/_theme/base.css b/www/_theme/base.css
new file mode 100644
index 0000000..f1b6d99
--- /dev/null
+++ b/www/_theme/base.css
@@ -0,0 +1,17 @@
+html {
+  font-family: serif;
+  max-width: 50rem;
+  margin: auto;
+}
+
+p,
+ul,
+ol {
+  line-height: 1.3rem;
+}
+
+footer {
+  margin-top: 2rem;
+  text-align: right;
+  font-size: 0.8rem;
+}
diff --git a/www/_theme/base.tmpl b/www/_theme/base.tmpl
index 0cc1439..8ed98a4 100644
--- a/www/_theme/base.tmpl
+++ b/www/_theme/base.tmpl
@@ -6,13 +6,7 @@
   <title>{{.Title}}</title>
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <link rel="alternate" type="application/atom+xml" title="Atom feed" href="{{.Feed}}">
-  <style>
-    html {
-      font-family: serif;
-      max-width: 50rem;
-      margin: auto;
-    }
-  </style>
+  <link rel="stylesheet" href="{{.Site.HomePath}}_theme/base.css">
 </head>
 
 <body>
@@ -23,13 +17,6 @@
 © {{if eq .StartYear .Now.Year}}{{.StartYear}}{{else}}{{.StartYear}}–{{.Now.Year}}{{end}} {{.Site.Author.Name}}<br>
 Made with <a href="https://github.com/nhanb/webmaker2000">WebMaker2000</a>
 </footer>
-<style>
-footer {
-  margin-top: 2rem;
-  text-align: right;
-  font-size: 0.8rem;
-}
-</style>
 {{end}}
 
 </body>
diff --git a/www/about/index.html b/www/about/index.html
index 8ae1104..435ff2a 100644
--- a/www/about/index.html
+++ b/www/about/index.html
@@ -6,13 +6,7 @@
   <title>About | CoolZone</title>
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <link rel="alternate" type="application/atom+xml" title="Atom feed" href="/feed.xml">
-  <style>
-    html {
-      font-family: serif;
-      max-width: 50rem;
-      margin: auto;
-    }
-  </style>
+  <link rel="stylesheet" href="/_theme/base.css">
 </head>
 
 <body>
@@ -56,13 +50,6 @@ <h2>No really</h2>
 © 2022–2023 Coolio McCool<br>
 Made with <a href="https://github.com/nhanb/webmaker2000">WebMaker2000</a>
 </footer>
-<style>
-footer {
-  margin-top: 2rem;
-  text-align: right;
-  font-size: 0.8rem;
-}
-</style>
 
 
 </body>
diff --git a/www/hello/index.html b/www/hello/index.html
index e64369e..c47619d 100644
--- a/www/hello/index.html
+++ b/www/hello/index.html
@@ -6,13 +6,7 @@
   <title>Hello | CoolZone</title>
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <link rel="alternate" type="application/atom+xml" title="Atom feed" href="/feed.xml">
-  <style>
-    html {
-      font-family: serif;
-      max-width: 50rem;
-      margin: auto;
-    }
-  </style>
+  <link rel="stylesheet" href="/_theme/base.css">
 </head>
 
 <body>
@@ -55,13 +49,6 @@ <h1 class="post-title">Hello</h1>
 © 2022–2023 Coolio McCool<br>
 Made with <a href="https://github.com/nhanb/webmaker2000">WebMaker2000</a>
 </footer>
-<style>
-footer {
-  margin-top: 2rem;
-  text-align: right;
-  font-size: 0.8rem;
-}
-</style>
 
 
 </body>
diff --git a/www/index.html b/www/index.html
index 61c0688..938a3bb 100644
--- a/www/index.html
+++ b/www/index.html
@@ -6,13 +6,7 @@
   <title>CoolZone - Cool people only.</title>
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <link rel="alternate" type="application/atom+xml" title="Atom feed" href="/feed.xml">
-  <style>
-    html {
-      font-family: serif;
-      max-width: 50rem;
-      margin: auto;
-    }
-  </style>
+  <link rel="stylesheet" href="/_theme/base.css">
 </head>
 
 <body>
@@ -91,13 +85,6 @@ <h1 class="site-title">CoolZone</h1>
 © 2022–2023 Coolio McCool<br>
 Made with <a href="https://github.com/nhanb/webmaker2000">WebMaker2000</a>
 </footer>
-<style>
-footer {
-  margin-top: 2rem;
-  text-align: right;
-  font-size: 0.8rem;
-}
-</style>
 
 
 </body>
diff --git a/www/mfws.html b/www/mfws.html
index 1bfcdf6..08e28ca 100644
--- a/www/mfws.html
+++ b/www/mfws.html
@@ -6,13 +6,7 @@
   <title>This is a motherfucking website. | CoolZone</title>
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <link rel="alternate" type="application/atom+xml" title="Atom feed" href="/feed.xml">
-  <style>
-    html {
-      font-family: serif;
-      max-width: 50rem;
-      margin: auto;
-    }
-  </style>
+  <link rel="stylesheet" href="/_theme/base.css">
 </head>
 
 <body>
@@ -144,13 +138,6 @@ <h2>Epilogue</h2>
 © 2022–2023 Coolio McCool<br>
 Made with <a href="https://github.com/nhanb/webmaker2000">WebMaker2000</a>
 </footer>
-<style>
-footer {
-  margin-top: 2rem;
-  text-align: right;
-  font-size: 0.8rem;
-}
-</style>
 
 
 </body>