🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit ea59d71188bc5b580c8262045a1297f21247b0cf
Parent: 25334538117daefd9563ea41e54aa042f63c85b1
Author: mcol <mcol@posteo.net>
Date: 2021-11-30 23:19:48 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-11-30 23:19:48 +0000

Remove unnecessary meta tag from template

templates/docs/template.html.include Modified

@@ -2,11 +2,10 @@
 <html lang="en">
   <head>
     <meta charset="utf-8">
-    <meta http-equiv="x-ua-compatible" content="ie=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title>🐙 {{ name }} - {% block title %}{% endblock %}</title>
     <link rel="stylesheet" type="text/css" href="{{ host }}/style.css"/>
-    <link rel="icon" type="image/png" href="/favicon.png"/>
+    <link rel="icon" type="image/png" href="{{ host }}/favicon.png"/>
   </head>
 
   <body>

templates/base/template.html.include Added

@@ -0,0 +1,20 @@
+{#-
+This file is being used as a base template by all other files.
+
+They just need to define a 'title' block and a 'body' block.
+-#}
+
+<!doctype html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <title>{% block title %}{% endblock %}</title>
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <link rel="stylesheet" type="text/css" href="{{ host }}/style.css"/>
+  </head>
+
+  <body>
+  {% block body %}
+  {% endblock %}
+  </body>
+</html>

templates/base/style.css Modified

@@ -1 +1,18 @@
-TODO
+/*
+Static assets are copied unchanged into the output folder. This includes
+everything in this top-level folder that is not one of:
+
+- A folder named "repo".
+- A regular file ending in ".html".
+- A regular file ending in ".include".
+
+*/
+
+@viewport {
+    width: device-width;
+    zoom: 1.0;
+}
+
+html {
+    font-size: 1em;
+}