diff --git a/gitgen.py b/gitgen.py
index bb2e0e1..ecb9285 100644
--- a/gitgen.py
+++ b/gitgen.py
@@ -15,6 +15,12 @@ import markdown
import re
from concurrent.futures import ThreadPoolExecutor
+ ### Global config ###
+ BASE_NAME = "Cybrkyd's git repositories"
+ BASE_URL = "https://git.cybrkyd.com"
+ BASE_DESC = "Cybrkyd's Git Repositories. Welcome to my playpen."
+ ###
+
class GitRepoScanner:
"""Scans and processes Git repositories"""
@@ -278,12 +284,39 @@ class HTMLGenerator:
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Cybrkyd's Git Repositories</title>
+ <title>""" + BASE_NAME + """</title>
+ <meta name="description" content=\"""" + BASE_DESC + """\">
<link rel="stylesheet" href="main.css">
+
+ <!-- Open Graph -->
+ <meta property="og:site_name" content=\"""" + BASE_NAME + """\">
+ <meta property="og:url" content=\"""" + BASE_URL + """\">
+ <meta property="og:title" content=\"""" + BASE_NAME + """\">
+ <meta property="og:description" content=\"""" + BASE_DESC + """\">
+ <meta property="og:type" content="website">
+ <meta property="og:locale" content="en_GB">
+
+ <!-- Twitter Card -->
+ <meta property="twitter:card" content="summary">
+ <meta property="twitter:url" content=\"""" + BASE_URL + """\">
+ <meta property="twitter:title" content=\"""" + BASE_NAME + """\">
+ <meta property="twitter:description" content=\"""" + BASE_DESC + """\">
+
+ <!-- Microdata -->
+ <script type="application/ld+json">
+ {
+ "@context": "http://schema.org",
+ "@type": "website",
+ "name": \"""" + BASE_NAME + """\",
+ "headline": \"""" + BASE_NAME + """\",
+ "url": \"""" + BASE_URL + """\",
+ "description": \"""" + BASE_DESC + """\"
+ }
+ </script>
</head>
<body>
<div class="header">
- <h1><a href="/" title="gitgen"> <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 21 21" width="38" height="38" fill="none" stroke="#222222" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M4.13 1.101v12.56m11.972-6.28a2.993 3.14 0 1 0 0-6.28 2.993 3.14 0 0 0 0 6.28M4.13 19.94a2.993 3.14 0 1 0 0-6.28 2.993 3.14 0 0 0 0 6.28" style="stroke-width:2.04357"/><path d="M13.109 4.241a8.978 9.42 0 0 0-8.978 9.42" style="stroke-width:2.04357"/><path stroke="#0f0" d="M16.172 13.915v6m3-3h-6"/><path stroke="red" d="M19.135 11.43h-6"/></svg></a> Cybrkyd's git repositories</h1>
+ <h1><a href="/" title="gitgen"> <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 21 21" width="38" height="38" fill="none" stroke="#222222" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M4.13 1.101v12.56m11.972-6.28a2.993 3.14 0 1 0 0-6.28 2.993 3.14 0 0 0 0 6.28M4.13 19.94a2.993 3.14 0 1 0 0-6.28 2.993 3.14 0 0 0 0 6.28" style="stroke-width:2.04357"/><path d="M13.109 4.241a8.978 9.42 0 0 0-8.978 9.42" style="stroke-width:2.04357"/><path stroke="#0f0" d="M16.172 13.915v6m3-3h-6"/><path stroke="red" d="M19.135 11.43h-6"/></svg></a> """ + BASE_NAME + """</h1>
<p>Listing {} repositories</p>
</div>
@@ -356,7 +389,7 @@ class HTMLGenerator:
</head>
<body>
<div class="header">
- <h1><a href="../index.html" title="gitgen"> <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 21 21" width="38" height="38" fill="none" stroke="#222222" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M4.13 1.101v12.56m11.972-6.28a2.993 3.14 0 1 0 0-6.28 2.993 3.14 0 0 0 0 6.28M4.13 19.94a2.993 3.14 0 1 0 0-6.28 2.993 3.14 0 0 0 0 6.28" style="stroke-width:2.04357"/><path d="M13.109 4.241a8.978 9.42 0 0 0-8.978 9.42" style="stroke-width:2.04357"/><path stroke="#0f0" d="M16.172 13.915v6m3-3h-6"/><path stroke="red" d="M19.135 11.43h-6"/></svg></a> Cybrkyd's git repositories</h1>
+ <h1><a href="../index.html" title="gitgen"> <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 21 21" width="38" height="38" fill="none" stroke="#222222" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M4.13 1.101v12.56m11.972-6.28a2.993 3.14 0 1 0 0-6.28 2.993 3.14 0 0 0 0 6.28M4.13 19.94a2.993 3.14 0 1 0 0-6.28 2.993 3.14 0 0 0 0 6.28" style="stroke-width:2.04357"/><path d="M13.109 4.241a8.978 9.42 0 0 0-8.978 9.42" style="stroke-width:2.04357"/><path stroke="#0f0" d="M16.172 13.915v6m3-3h-6"/><path stroke="red" d="M19.135 11.43h-6"/></svg></a> """ + BASE_NAME + """</h1>
<p>{repo['name_escaped']}</p>
</div>
@@ -412,7 +445,7 @@ class HTMLGenerator:
</head>
<body>
<div class="header">
- <h1><a href="../index.html" title="gitgen"> <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 21 21" width="38" height="38" fill="none" stroke="#222222" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M4.13 1.101v12.56m11.972-6.28a2.993 3.14 0 1 0 0-6.28 2.993 3.14 0 0 0 0 6.28M4.13 19.94a2.993 3.14 0 1 0 0-6.28 2.993 3.14 0 0 0 0 6.28" style="stroke-width:2.04357"/><path d="M13.109 4.241a8.978 9.42 0 0 0-8.978 9.42" style="stroke-width:2.04357"/><path stroke="#0f0" d="M16.172 13.915v6m3-3h-6"/><path stroke="red" d="M19.135 11.43h-6"/></svg></a> Cybrkyd's git repositories</h1>
+ <h1><a href="../index.html" title="gitgen"> <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 21 21" width="38" height="38" fill="none" stroke="#222222" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M4.13 1.101v12.56m11.972-6.28a2.993 3.14 0 1 0 0-6.28 2.993 3.14 0 0 0 0 6.28M4.13 19.94a2.993 3.14 0 1 0 0-6.28 2.993 3.14 0 0 0 0 6.28" style="stroke-width:2.04357"/><path d="M13.109 4.241a8.978 9.42 0 0 0-8.978 9.42" style="stroke-width:2.04357"/><path stroke="#0f0" d="M16.172 13.915v6m3-3h-6"/><path stroke="red" d="M19.135 11.43h-6"/></svg></a> """ + BASE_NAME + """</h1>
<p>{repo['name_escaped']} - {len(files):,} files</p>
</div>