diff options
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/templates/index.html b/templates/index.html index 58eeb83..4c08173 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,7 +2,7 @@ <!DOCTYPE html> -<html lang="en-us"> +<html lang="{{ config.default_language }}"> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> @@ -14,57 +14,57 @@ <!--- Below are the meta tags that are important for SEO \\ they are also important for social media sharing embeds ---> - <meta name="description" content="{{config.description}}"> - <meta name="keywords" content="blog, technology, science, philosophy, mathematics, artificial intelligence, AI research, machine learning, data science, deep learning, neural networks, Linux, Void Linux, OpenBSD, system administration, open source, FOSS, developer tools, programming, coding, tutorials, programming languages, software development, software engineering, computer science, algorithms, cybersecurity"> - <meta name="title" content="{{config.title}}"> - <meta name="author" content="Iustin Râznic"> + <meta name="description" content="{{ config.description }}"> + <meta name="keywords" content="{{ config.extra.meta.keywords }}"> + <meta name="title" content="{{ config.title }}"> + <meta name="author" content="{{ config.extra.author.name }}"> <!--- Many websites use Open Graph so it has become standard to include ---> - <meta property="og:title" content="Alphara's Blog"> - <meta property="og:site_name" content="Alphara's Blog"> - <meta property="og:description" content="{{config.description}}"> - <meta property="og:image" content="https://alphara.art/Alphara.png"> - <meta property="og:image:alt" content="Alphara"> + <meta property="og:title" content="{{ config.title }}"> + <meta property="og:site_name" content="{{ config.title }}"> + <meta property="og:description" content="{{ config.description }}"> + <meta property="og:image" content="{{ config.extra.meta.preview_image_src }}"> + <meta property="og:image:alt" content="{{ config.extra.meta.preview_image_alt }}"> - <meta property="og:url" content="https://alphara.art"> - <meta property="og:type" content="blog"> + <meta property="og:url" content="{{ config.base_url }}"> + <meta property="og:type" content="{{ config.extra.meta.website_type }}"> <!--- Below is for twitter general info ---> - <meta name="twitter:domain" content="https://alphara.art"> - <meta name="twitter:description" content="{{config.description}}"> - <meta name="twitter:title" content="Alphara's Blog"> + <meta name="twitter:domain" content="{{ config.base_url }}"> + <meta name="twitter:description" content="{{ config.description }}"> + <meta name="twitter:title" content="{{ config.title }}"> <!--- Below is for twitter sharing previews \\ you can test this at https://threadcreator.com/tools/twitter-card-validator ---> - <meta name="twitter:card" content="summary_large_image"> - <meta name="twitter:image" content="https://alphara.art/Alphara.png"> - <meta name="twitter:image:src" content="https://alphara.art/Alphara.png"> - <meta name="twitter:image:alt" content="Alphara"> + <meta name="twitter:card" content="{{ config.extra.meta.twitter_card }}"> + <meta name="twitter:image" content="{{ config.extra.meta.preview_image_src }}"> + <meta name="twitter:image:src" content="{{ config.extra.meta.preview_image_src }}"> + <meta name="twitter:image:alt" content="{{ config.extra.meta.preview_image_alt }}"> <!--- If you have accounts on twitter that are relevant to your site ---> - <meta name="twitter:site" content="@IustinRaznic"> - <meta name="twitter:creator" content="@IustinRaznic"> + <meta name="twitter:site" content="{{ config.extra.meta.twitter_creator }}"> + <meta name="twitter:creator" content="{{ config.extra.meta.twitter_creator }}"> <!-- Icons and Stylesheets --> - <link rel="apple-touch-icon" sizes="180x180" href="{{get_url(path="apple-touch-icon.png")}}"/> - <link rel="icon" type="image/png" sizes="32x32" href="{{get_url(path="favicon-32x32.png")}}"/> - <link rel="icon" type="image/png" sizes="16x16" href="{{get_url(path="favicon-16x16.png")}}"/> + <link rel="apple-touch-icon" sizes="180x180" href="{{ get_url(path="apple-touch-icon.png") }}"/> + <link rel="icon" type="image/png" sizes="32x32" href="{{ get_url(path="favicon-32x32.png") }}"/> + <link rel="icon" type="image/png" sizes="16x16" href="{{ get_url(path="favicon-16x16.png") }}"/> - <link rel="manifest" href="{{get_url(path="site.webmanifest")}}"> - <link rel="mask-icon" href="{{get_url(path="safari-pinned-tab.svg")}}" color="#030303"> + <link rel="manifest" href="{{ get_url(path="site.webmanifest") }}"> + <link rel="mask-icon" href="{{ get_url(path="safari-pinned-tab.svg") }}" color="#030303"> <meta name="msapplication-TileColor" content="#603cba"> <!-- <meta name="theme-color" content="#ffffff"> discord fancy ruler line on the left of link preview embeds --> - <link rel="shortcut icon" href="{{get_url(path="favicon.ico")}}"/> <!-- this is for old browsers that don't support the other tags --> + <link rel="shortcut icon" href="{{ get_url(path="favicon.ico") }}"/> <!-- this is for old browsers that don't support the other tags --> <!-- Stylesheets --> - <link rel="stylesheet" href="{{get_url(path="style.css")}}"/> + <link rel="stylesheet" href="{{ get_url(path="style.css") }}"/> {% if page.title %} - <title>{{page.title}}</title> + <title>{{ page.title }}</title> {% else %} - <title>{{config.title}}</title> + <title>{{ config.title }}</title> {% endif %} {% if config.generate_feed %} @@ -79,17 +79,17 @@ {% block title %} <div id="spotlight" class="animated fadeIn"> <div id="home-center"> - <h1 id="home-title">{{config.title}}</h1> - <p id="home-subtitle">{{config.extra.home_subtitle}}</p> + <h1 id="home-title">{{ config.title }}</h1> + <p id="home-subtitle">{{ config.extra.home_subtitle }}</p> <div id="home-social"> - {{macros::render_social_icons()}} + {{ macros::render_social_icons() }} </div> {% endblock title %} {% block main %} <nav id="home-nav" class="site-nav"> {% for s in config.extra.hermit_menu %} - <a href="{{config.base_url ~ s.link}}">{{s.name}}</a> + <a href="{{ config.base_url ~ s.link }}">{{ s.name }}</a> {% endfor %} </nav> {% endblock main %} @@ -97,8 +97,8 @@ {% block footer %} <div id="home-footer"> - <p>© {{ now() | date(format="%Y")}} - <a href="{{config.base_url}}">{{config.extra.author.name}}</a> + <p>© {{ now() | date(format="%Y") }} + <a href="{{ config.base_url }}">{{ config.extra.author.name }}</a> {% if config.generate_feed %} · @@ -118,7 +118,7 @@ {% endblock footer %} </div> - <script src="{{get_url(path="js/main.js")}}"></script> + <script src="{{ get_url(path="js/main.js") }}"></script> <!-- Math rendering with KaTeX --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous"> |