chore: dry up templates

This commit is contained in:
Cory Dransfeldt 2024-10-26 09:04:26 -07:00
parent 05ab78c861
commit 5f60579311
No known key found for this signature in database
8 changed files with 44 additions and 60 deletions

View file

@ -1,11 +1,9 @@
{%- capture updateTime -%}
{%- if updated == "now" -%}
{{ 'now' | date: "%B %-d, %l:%M %P", "America/Los_Angeles" }}
{%- elsif page.updated -%}
{{ page.updated | date: "%B %-d, %l:%M %P", "America/Los_Angeles" }}
{%- endif -%}
{%- endcapture -%}
{%- assign updateTime = "" -%}
{%- if updated == "now" -%}
{%- assign updateTime = 'now' | date: "%B %-d, %l:%M %P", "America/Los_Angeles" -%}
{%- elsif page.updated -%}
{%- assign updateTime = page.updated | date: "%B %-d, %l:%M %P", "America/Los_Angeles" -%}
{%- endif -%}
<!doctype html>
<html lang="{{ globals.lang }}">
<head>