summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.toml10
-rwxr-xr-xrsync_to_testing4
-rw-r--r--templates/404.html4
-rw-r--r--templates/index.html74
-rw-r--r--templates/page.html10
-rw-r--r--templates/tags/single.html2
6 files changed, 58 insertions, 46 deletions
diff --git a/config.toml b/config.toml
index 5a85e27..fb0820f 100644
--- a/config.toml
+++ b/config.toml
@@ -96,9 +96,17 @@ email = "iustin@alphara.art"
[extra.meta]
-preview_image = "https://alphara.art/Alphara.png"
+website_type = "blog" # either "blog" or "article" - I haven't seen any difference yet
+
+keywords = "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"
+
+preview_image_src = "https://alphara.art/Alphara.png"
preview_image_alt = "Alphara"
+twitter_card = "summary_large_image" # either "summary" or "summary_large_image" (for big preview image)
+
+twitter_creator = "@IustinRaznic" # your twitter handle
+
[extra.disqus]
# enable = false
diff --git a/rsync_to_testing b/rsync_to_testing
index 08f5b04..31c7d05 100755
--- a/rsync_to_testing
+++ b/rsync_to_testing
@@ -9,3 +9,7 @@ rm -rf ~/dev/websites/alphara
rsync -vhPrtz --delete-after ~/dev/blog/public/* ~/dev/websites/alphara
rm -rf ~/dev/blog/public
+
+if [ "$1" = "fast-forward" ]; then
+ ~/dev/websites/rsync_everything
+fi
diff --git a/templates/404.html b/templates/404.html
index d885ede..94a6247 100644
--- a/templates/404.html
+++ b/templates/404.html
@@ -37,7 +37,7 @@
<h1>404</h1>
<p>Oops, police door not found...</p>
<p class="btn-404">
- <a href="{{config.base_url}}">
+ <a href="{{ config.base_url }}">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-home">
@@ -46,7 +46,7 @@
</svg>
Home
</a>
- <a href='{{config.base_url}}/posts'>
+ <a href='{{ config.base_url }}/posts'>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-archive">
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>&copy; {{ now() | date(format="%Y")}}
- <a href="{{config.base_url}}">{{config.extra.author.name}}</a>
+ <p>&copy; {{ now() | date(format="%Y") }}
+ <a href="{{ config.base_url }}">{{ config.extra.author.name }}</a>
{% if config.generate_feed %}
&#183;
@@ -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">
diff --git a/templates/page.html b/templates/page.html
index eb7d141..67bdddb 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -52,7 +52,7 @@
<div class="post-meta">
{% if page.date %}
- <span>{{ page.date | date(format="%b %d, %Y")}}</span>
+ <span>{{ page.date | date(format="%b %d, %Y") }}</span>
<small> - {{ macros::read_time(words=page.word_count) }}</small>
{% endif %}
@@ -96,7 +96,7 @@
{% for k, tags in page.taxonomies %}
{% for t in tags %}
<span class="tag">
- <a href="{{get_taxonomy_url(kind="tags", name=t)}}">{{t}}</a>
+ <a href="{{ get_taxonomy_url(kind="tags", name=t) }}">{{ t }}</a>
</span>
{% endfor %}
{% endfor %}
@@ -142,12 +142,12 @@
<ul>
{% for h1 in page.toc %}
<li>
- <a href="{{h1.permalink | safe}}">{{ h1.title }}</a>
+ <a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{% if h1.children %}
<ul>
{% for h2 in h1.children %}
<li>
- <a href="{{h2.permalink | safe}}">{{ h2.title }}</a>
+ <a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
</li>
{% endfor %}
</ul>
@@ -204,7 +204,7 @@
this.page.identifier = "{{ page.extra.permalink }}";
};
var d = document, s = d.createElement('script');
- s.src = 'https://{{config.extra.disqus.shortname}}.disqus.com/embed.js';
+ s.src = 'https://{{ config.extra.disqus.shortname }}.disqus.com/embed.js';
s.setAttribute('data-timestamp', + new Date());
(d.head || d.body).appendChild(s);
})();
diff --git a/templates/tags/single.html b/templates/tags/single.html
index 1752e8a..f1d506a 100644
--- a/templates/tags/single.html
+++ b/templates/tags/single.html
@@ -7,7 +7,7 @@
<div class="hdr-wrapper section-inner">
<div class="hdr-left">
<div class="site-branding">
- <a href="{{ config.base_url}}">{{ config.title }}</a>
+ <a href="{{ config.base_url }}">{{ config.title }}</a>
</div>
<nav class="site-nav hide-in-mobile">
{% for menu_item in config.extra.hermit_menu %}