From d95285246fe7e0f10be72aebbf0292405f9de32d Mon Sep 17 00:00:00 2001
From: James Vasile <james@jamesvasile.com>
Date: Sun, 21 May 2023 23:15:41 -0400
Subject: [PATCH] enable hiding byline on article page

---
 website/themes/ots/templates/article.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/website/themes/ots/templates/article.html b/website/themes/ots/templates/article.html
index aa469d9..c0dd6bb 100644
--- a/website/themes/ots/templates/article.html
+++ b/website/themes/ots/templates/article.html
@@ -9,7 +9,9 @@
         <h1>{{ article.title }}</h1>
         <div class="post-info">
           <div class="w3-opacity w3-margin-right w3-margin-bottom" style="flex-grow: 1;">
+            {% if not HIDE_AUTHOR %}
             <p>By {{ article.author }}</p>
+            {% endif %}
             <span><time datetime="{{ article.date.isoformat() }}">{{ article.date.strftime("%d %B %Y")}}</time> 
                 {% if article.category != "Posts" %}
                 in <a href="{{ SITEURL }}/{{ article.category.url }}" title="All articles in category {{ article.category }}">{{ article.category }}</a></span>
-- 
GitLab