complete overhaul of site in delan abazani's style, minor edits concerning projects & home tag filtering

This commit is contained in:
Xevion
2020-12-04 11:14:23 -06:00
parent ee826879da
commit 26955a69d9
37 changed files with 509 additions and 28 deletions

80
_layouts/default.html Normal file
View File

@@ -0,0 +1,80 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link rel="preload" as="style" href="/assets/main.css">
<link rel="stylesheet" href="/assets/main.css">
<!-- <link rel="stylesheet" href="/assets/print.css" media="print">-->
<link rel="stylesheet" href="/assets/rouge.css">
<title>
{%- if page.title %}
{{- page.title -}}{{- " " -}}|{{- " " -}}
{%- endif -%}
{{- site.title -}}
</title>
<link rel="preload" as="font" crossorigin href="/assets/fonts/-cmunrm.woff2">
<link rel="preload" as="font" crossorigin href="/assets/fonts/-cmuntt.woff2">
<link rel="preload" as="font" crossorigin href="/assets/fonts/-cmunti.woff2">
<link rel="alternate" type="application/atom+xml" href="/feed/tag/home.xml">
{% if page.date -%}
<meta property="og:type" content="website">
<meta property="og:url" content="{{ page.url | absolute_url }}">
<meta property="og:title" content="{{ page.title }}">
<meta name="twitter:title" content="{{ page.title }}">
{% if page._preview_description -%}
<meta property="og:description" content="{{ page._preview_description }}">
<meta property="twitter:description" content="{{ page._preview_description }}">
{% endif -%}{%- if page._preview_image -%}
<meta property="og:image" content="{{ page._preview_image | absolute_url }}">
<meta name="twitter:image" content="{{ page._preview_image | absolute_url }}">
<meta name="twitter:card" content="summary_large_image">
{%- else -%}
<meta name="twitter:card" content="summary">
{%- endif -%}
{%- endif %}
</head>
<body>
<header>Ryan Walters</header>
<nav>
<a href="/">~/</a> :
<a href="/about/">~/about/</a> :
<a href="/projects/">~/projects/</a>
</nav>
{% if page.title %}
{% if page.date %}
{% if page._link %}
<h1>
<a href="{{ page._link }}">
{{ page.title }}
</a>
</h1>
{% else %}
<h1>{{ page.title }}</h1>
{% endif %}
{% else %}
<h1>{{ page.title }}</h1>
{% endif %}
{% endif %}
{% if page.date %}
<p><i>
<a href="{{ page.url }}">
<time datetime="{{ page.date | date: '%Y-%m-%dT%H:%M:%SZ' }}">
{{- page.date | date: '%Y-%m-%d %H:%M %Z' -}}
</time>
</a>
{%- for tag in page.tags -%}
{{- "" -}}{{- tag -}}
{%- endfor -%}
</i>
{% endif %}
<article>
{{ content }}
</article>
<p>
</body>
</html>

36
_layouts/posts.html Normal file
View File

@@ -0,0 +1,36 @@
---
layout: default
---
{{ content }}
{% for post in site.posts %}
<div class="post_summary">
<div class="post_date">
<a href="{{ post.url }}">
<time datetime="{{ post.date | date: '%Y-%m-%dT%H:%M:%SZ' }}">
<span class="month">
{{ post.date | date: '%b' }}</span><br>
<span class="date">
{{ post.date | date: '%d' }}</span><br>
<span class="year">
{{ post.date | date: '%Y' }}</span>
</time>
</a>
</div>
<div class="post_combo">
<h2><a href="{{ post._link | default: post.url }}">{{ post.title }}</a></h2><i>
{%- for tag in post.tags -%}
{%- unless page.tag == tag -%}
{{- "" -}}{{- tag -}}
{%- endunless -%}
{%- endfor -%}
</i>
</div>
{{ post.excerpt }}
</div>
{% endfor %}
<hr>
<p style="text-align: center;"><a href="/feed/tag/{{ page.tag }}.xml">Atom</a>