Reformat default.html liquid

This commit is contained in:
Xevion
2022-03-31 17:03:49 -05:00
parent 302fcfcd8a
commit 4c38de0065

View File

@@ -3,105 +3,110 @@ layout: compress
--- ---
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width"> <meta content="width=device-width" name="viewport">
<link rel="preload" as="style" href="/assets/main.css"> <link as="style" href="/assets/main.css" rel="preload">
<link rel="stylesheet" href="/assets/main.css"> <link href="/assets/main.css" rel="stylesheet">
<!-- <link rel="stylesheet" href="/assets/print.css" media="print">--> <!-- <link rel="stylesheet" href="/assets/print.css" media="print">-->
<link rel="stylesheet" href="/assets/rouge.css"> <link href="/assets/rouge.css" rel="stylesheet">
<title> <title>
{%- if page.title %} {%- if page.title %}
{{- page.title -}}{{- " " -}}|{{- " " -}} {{- page.title -}}{{- " " -}}|{{- " " -}}
{%- endif -%} {%- endif -%}
{{- site.title -}} {{- site.title -}}
</title> </title>
<link rel="preload" as="font" crossorigin href="/assets/fonts/-cmunrm.woff2"> <link as="font" crossorigin href="/assets/fonts/-cmunrm.woff2" rel="preload">
<link rel="preload" as="font" crossorigin href="/assets/fonts/-cmuntt.woff2"> <link as="font" crossorigin href="/assets/fonts/-cmuntt.woff2" rel="preload">
<link rel="preload" as="font" crossorigin href="/assets/fonts/-cmunti.woff2"> <link as="font" crossorigin href="/assets/fonts/-cmunti.woff2" rel="preload">
<link rel="alternate" type="application/atom+xml" href="/feed.xml"> <link href="/feed.xml" rel="alternate" type="application/atom+xml">
{% if page.date -%} {% if page.date -%}
<meta property="og:type" content="website"> <meta content="website" property="og:type">
<meta property="og:url" content="{{ page.url | absolute_url }}"> <meta property="og:url" content="{{ page.url | absolute_url }}">
<meta property="og:title" content="{{ page.title }}"> <meta property="og:title" content="{{ page.title }}">
<meta name="twitter:title" content="{{ page.title }}"> <meta name="twitter:title" content="{{ page.title }}">
{% if page._preview_description -%} {% if page._preview_description -%}
<meta property="og:description" content="{{ page._preview_description }}"> <meta property="og:description" content="{{ page._preview_description }}">
<meta property="twitter:description" content="{{ page._preview_description }}"> <meta property="twitter:description" content="{{ page._preview_description }}">
{% endif -%}{%- if page._preview_image -%} {% endif -%}
<meta property="og:image" content="{{ page._preview_image | absolute_url }}"> {%- if page._preview_image -%}
<meta name="twitter:image" content="{{ page._preview_image | absolute_url }}"> <meta property="og:image" content="{{ page._preview_image | absolute_url }}">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:image" content="{{ page._preview_image | absolute_url }}">
{%- else -%} <meta content="summary_large_image" name="twitter:card">
<meta name="twitter:card" content="summary"> {%- else -%}
{%- endif -%} <meta content="summary" name="twitter:card">
{%- endif %} {%- endif -%}
<!-- Hide site using inline styling until CSS loads --> {%- endif %}
<style> <!-- Hide site using inline styling until CSS loads -->
<style>
html, body { html, body {
visibility: hidden; visibility: hidden;
} }
{% if page.wide or layout.wide %} {% if page.wide or layout.wide %}
body { body {
max-width: 60em !important; max-width: 60em !important;
} }
{% endif %} {% endif %}
</style> </style>
</head> </head>
<body> <body>
<header>Ryan Walters</header> <header>Ryan Walters</header>
<nav> <nav>
<a href="/">~/</a> : <a href="/">~/</a>
<a href="/about/">~/about/</a> : :
<a href="/projects/">~/projects/</a> <a href="/about/">~/about/</a>
</nav> :
{% if page.hide_header or layout.hide_header %} <a href="/projects/">~/projects/</a>
{% else %} </nav>
{% if page.title %} {% if page.hide_header or layout.hide_header %}
{% if page.date %} {% else %}
{% if page._link %} {% if page.title %}
<h1> {% if page.date %}
<a href="{{ page._link }}"> {% if page._link %}
{{ page.title }} <h1>
</a> <a href="{{ page._link }}">
</h1> {{ page.title }}
{% else %} </a>
<h1>{{ page.title }}</h1> </h1>
{% endif %} {% else %}
{% else %} <h1>{{ page.title }}</h1>
<h1>{{ page.title }}</h1> {% endif %}
{% endif %} {% else %}
{% endif %} <h1>{{ page.title }}</h1>
{% endif %} {% endif %}
{% endif %}
{% endif %}
{% if page.date %} {% if page.date %}
<p><i> <p>
<a href="{{ page.url }}"> <i>
<time datetime="{{ page.date | date: '%Y-%m-%dT%H:%M:%SZ' }}"> <a href="{{ page.url }}">
{{- page.date | date: '%Y-%m-%d %H:%M %Z' -}} <time datetime="{{ page.date | date: '%Y-%m-%dT%H:%M:%SZ' }}">
</time> {{- page.date | date: '%Y-%m-%d %H:%M %Z' -}}
</a> </time>
{%- for tag in page.tags -%} </a>
{{- "" -}}{{- tag -}} {%- for tag in page.tags -%}
{%- endfor -%} {{- "" -}}{{- tag -}}
</i> {%- endfor -%}
{% endif %} </i>
<article> {% endif %}
{{ content }} <article>
</article> {{ content }}
<p> </article>
{% if page.custom_js %} <p>
{% for file in page.custom_js %} {% if page.custom_js %}
<script type="text/javascript" src="{{ site.baseurl }}/assets/js/{{ file }}"></script> {% for file in page.custom_js %}
{% endfor %} <script type="text/javascript" src="{{ site.baseurl }}/assets/js/{{ file }}"></script>
{% endif %} {% endfor %}
{% if layout.medium_zoom %} {% endif %}
<script src="https://cdn.jsdelivr.net/npm/medium-zoom@1.0.6/dist/medium-zoom.min.js" {% if layout.medium_zoom %}
integrity="sha256-EdPgYcPk/IIrw7FYeuJQexva49pVRZNmt3LculEr7zM=" crossorigin="anonymous"></script> <script crossorigin="anonymous" integrity="sha256-EdPgYcPk/IIrw7FYeuJQexva49pVRZNmt3LculEr7zM=" src="https://cdn.jsdelivr.net/npm/medium-zoom@1.0.6/dist/medium-zoom.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
mediumZoom('[data-zoomable]', {background: "#0e0e0e"}) mediumZoom("[data-zoomable]", {background: "#0e0e0e"})
</script> </script>
{% endif %} {% endif %}
</body> </p>
</body>
</body>
</html> </html>