commit f99eccdf83878125805206cea6c1d7db91c2a278
parent 79ca8bb8f241a8f9c3096587c80da415ce90b483
Author: FIGBERT <figbert@figbert.com>
Date: Wed, 26 Aug 2020 17:00:25 -0700
:sparkles: Add base Tera template
Diffstat:
2 files changed, 76 insertions(+), 1 deletion(-)
diff --git a/config.toml b/config.toml
@@ -1,6 +1,6 @@
# The URL the site will be built for
base_url = "https://namal.figbert.com"
-title = "Namal by FIGBERT"
+title = "Namal :: FIGBERT"
description = "A simple, clean, and flexible theme for personal sites."
# The default language; used in feeds.
@@ -27,4 +27,7 @@ nav = [
{ name = "POSTS", path = "/posts/" },
{ name = "PROJECTS", path = "/projects/"}
]
+icon = "/icon.png"
+twitter = "@therealFIGBERT"
+goatcounter = "figbert"
diff --git a/templates/base.html b/templates/base.html
@@ -0,0 +1,72 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta http-equiv="x-ua-compatible" content="ie=edge" />
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <meta
+ name="viewport"
+ content="width=device-width, initial-scale=1.0, viewport-fit=cover"
+ />
+
+ <meta name="theme-color" content="#4169e1"/>
+ <link rel="icon" href="{{ config.extra.icon }}"/>
+
+ <meta property="og:type" content="website">
+
+ <meta name="twitter:card" content="summary">
+ {% if config.extra.twitter %}
+ <meta name="twitter:creator" content="{{ config.extra.twitter }}">
+ <meta name="twitter:site" content="{{ config.extra.twitter }}">
+ {% endif %}
+
+ {% block description %}
+ {% if page.description %}
+ <meta name="description" content="{{ page.description }}" />
+ <meta name="twitter:description" content="{{ page.description }}">
+ {% else %}
+ <meta name="description" content="{{ config.description }}" />
+ <meta name="twitter:description" content="{{ config.description}}">
+ {% endif %}
+ {% endblock description %}
+
+ {% if page.title %}
+ <meta name="twitter:title" content="{{ page.title }}">
+ {% else %}
+ <meta name="twitter:title" content="{{ config.title }}">
+ {% endif %}
+
+ {% for link in config.extra.nav %}
+ <link rel="prerender" href="{{ link.path }}" />
+ {% endfor %}
+
+ <title>
+ {% block title %}
+ {% if page.title %}{{ page.title }} :: {% endif %}{{ config.title }}
+ {% endblock title %}
+ </title>
+
+ {% block head %}{% endblock head %}
+ {% block styles %}
+ <link rel="stylesheet" href="{{ get_url(path="global.css") | safe }}">
+ {% endblock styles %}
+ {% block posthead %}{% endblock posthead %}
+ </head>
+ <body>
+ {% block header %}
+ <header>
+ <nav>
+ {% for link in config.extra.nav %}
+ <a href="{{ link.path }}">{{ link.name }}</a>
+ {% endfor %}
+ </nav>
+ </header>
+ {% endblock header %}
+ <main>
+ {% block content %}{% endblock content %}
+ </main>
+ {% if config.extra.goatcounter %}
+ <script data-goatcounter="https://{{ config.extra.goatcounter }}.goatcounter.com/count" async src="https://gc.zgo.at/count.js"></script>
+ {% endif %}
+ </body>
+</html>
+