mirror of
https://github.com/andwati/andwati.com.git
synced 2026-12-01 12:48:48 +00:00
yolo
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}
|
||||
404 Not Found
|
||||
{% endblock title %}
|
||||
{% block meta %}
|
||||
<meta name="description" content="404 Not Found" />
|
||||
<meta property="og:site_name" content="andwati.github.io" />
|
||||
<meta property="og:locale" content="en-us" />
|
||||
<meta property="og:title" content="404 Not Found" />
|
||||
<meta property="og:description" content="404 Not Found" />
|
||||
<meta property="og:image" content="https://andwati.github.io/self.png" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="twitter:site" content="@andwati_" />
|
||||
<meta property="twitter:title" content="404 Not Found" />
|
||||
<meta property="twitter:description" content="404 Not Found" />
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.png" />
|
||||
{% endblock meta %}
|
||||
{% block links %}
|
||||
{% endblock links %}
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
404 Not Found
|
||||
</header>
|
||||
<p>Hmm...could not find that page</p>
|
||||
</main>
|
||||
{% include "footer.html" %}
|
||||
{% endblock content %}
|
||||
@@ -0,0 +1 @@
|
||||
<a href="#{{ id }}" aria-label='Anchor link for: {{ id }}'></a>
|
||||
@@ -0,0 +1,29 @@
|
||||
{% extends "section.html" %}
|
||||
{% import "post_macros.html" as page_macros %}
|
||||
{% import "paginate.html" as paginate_macro %}
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>Archive</h1>
|
||||
</header>
|
||||
{% set section = get_section(path="posts/_index.md") %}
|
||||
{% for year, posts in section.pages
|
||||
| sort(attribute="date")
|
||||
| reverse
|
||||
| group_by(attribute="year") %}
|
||||
<div class="archive">
|
||||
<h2>{{ year }}</h2>
|
||||
<ul>
|
||||
{% for post in posts %}
|
||||
<li>
|
||||
<time>{{ post.date | date(format="%d-%h") }}</time>
|
||||
<a href="{{ post.permalink }}">{{ post.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% if paginator %}{{ paginate_macro::paginate() }}{% endif %}
|
||||
</main>
|
||||
{% include "footer.html" %}
|
||||
{% endblock content %}
|
||||
@@ -0,0 +1,4 @@
|
||||
<div>
|
||||
<script src="https://utteranc.es/client.js" repo="andwati/andwati.github.io" issue-term="title" theme="gruvbox-dark" crossorigin="anonymous" async>
|
||||
</script>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
<footer>
|
||||
<nav>
|
||||
<a href="/">Home</a>
|
||||
⬡
|
||||
<a href="/posts">Posts</a>
|
||||
⬡
|
||||
<a href="/tags">Tags</a>
|
||||
⬡
|
||||
<a href="/archive">Archive</a>
|
||||
⬡
|
||||
<a href="/contact">Contact</a>
|
||||
</nav>
|
||||
|
||||
<p>
|
||||
© 2022 -
|
||||
{{ now() | date(format="%Y") }}
|
||||
Ian Andwati
|
||||
⬡
|
||||
<a href="https://github.com/andwati/andwati.github.io">Source</a>
|
||||
⬡
|
||||
<a href="/rss.xml">Feed</a>
|
||||
</p>
|
||||
</footer>
|
||||
@@ -0,0 +1,58 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
<meta name="google-site-verification" content="lBZ8ofF4rZJjQDf6ngTrI20wzaDq9GVMCsxfZfTcllI" />
|
||||
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3QJCKHZT3J"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-3QJCKHZT3J');
|
||||
</script>
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="keywords" content="" />
|
||||
<title>
|
||||
{% block title %}
|
||||
{{ section.title }}
|
||||
{% endblock title %}
|
||||
</title>
|
||||
{% block meta %}
|
||||
<meta name="description" content="{{ section.description }}" />
|
||||
<meta property="og:site_name" content="andwati.github.io" />
|
||||
<meta property="og:locale" content="en-us" />
|
||||
<meta property="og:url" content="{{ section.permalink }}" />
|
||||
<meta property="og:title" content="{{ section.title }}" />
|
||||
<meta property="og:description" content="{{ section.description }}" />
|
||||
<meta property="og:type" content="profile" />
|
||||
<meta property="og:image" content="https://andwati.github.io/self.png" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="twitter:site" content="@andwati_" />
|
||||
<meta property="twitter:title" content="{{ section.title }}" />
|
||||
<meta property="twitter:description" content="{{ section.description }}" />
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.png" />
|
||||
{% endblock meta %}
|
||||
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
|
||||
<link rel="stylesheet" href="/site.css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
{% block links %}
|
||||
<link rel="canonical" href="{{ section.permalink }}" />
|
||||
{% endblock links %}
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>{{ section.title }}</h1>
|
||||
</header>
|
||||
{{ section.content | safe }}
|
||||
</main>
|
||||
{% include "footer.html" %}
|
||||
{% endblock content %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,30 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}
|
||||
{{ page.title }}
|
||||
{% endblock title %}
|
||||
{% block meta %}
|
||||
<meta name="description" content="{{ page.description }}" />
|
||||
<meta property="og:site_name" content="andwati.github.io" />
|
||||
<meta property="og:locale" content="en-us" />
|
||||
<meta property="og:url" content="{{ page.permalink }}" />
|
||||
<meta property="og:title" content="{{ page.title }}" />
|
||||
<meta property="og:description" content="{{ page.description }}" />
|
||||
<meta property="og:image" content="https://andwati.github.io/self.png" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="twitter:site" content="@andwati_" />
|
||||
<meta property="twitter:title" content="{{ page.title }}" />
|
||||
<meta property="twitter:description" content="{{ page.description }}" />
|
||||
<meta property="twitter:image" content="andwati.github.io/self.png" />
|
||||
{% endblock meta %}
|
||||
{% block links %}
|
||||
<link rel="canonical" href="{{ page.permalink }}" />
|
||||
{% endblock links %}
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>{{ page.title }}</h1>
|
||||
</header>
|
||||
{{ page.content | safe }}
|
||||
</main>
|
||||
{% include "footer.html" %}
|
||||
{% endblock content %}
|
||||
@@ -0,0 +1,27 @@
|
||||
{% macro paginate() %}
|
||||
{% if paginator %}
|
||||
<div>
|
||||
<ul class="pagination">
|
||||
{% if paginator.previous %}
|
||||
<li class="page-item page-prev">
|
||||
<a href="{{ paginator.previous }}" class="page-link">← Prev</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="page-item page-prev">
|
||||
<span class="page-link disabled" aria-disabled="true">← Prev</span>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li class="page-item page-numbers">{{ paginator.current_index }} of {{ paginator.number_pagers }}</li>
|
||||
{% if paginator.next %}
|
||||
<li class="page-item page-next">
|
||||
<a href="{{ paginator.next }}" class="page-link">Next →</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="page-item page-next">
|
||||
<span class="page-link disabled" aria-disabled="trues">Next →</span>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endmacro paginate %}
|
||||
@@ -0,0 +1,35 @@
|
||||
{% extends "page.html" %}
|
||||
{% import "post_macros.html" as page_macros %}
|
||||
{% block meta %}
|
||||
<meta name="description" content="{{ page.description }}" />
|
||||
<meta property="og:site_name" content="andwati.github.io" />
|
||||
<meta property="og:locale" content="en-us" />
|
||||
<meta property="og:url" content="{{ page.permalink }}" />
|
||||
<meta property="og:title" content="{{ page.title }}" />
|
||||
<meta property="og:description" content="{{ page.description }}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:image" content="https://andwati.github.io/self.png" />
|
||||
<meta property="og:article:author" content="{{ config.extra.author }}" />
|
||||
<meta property="og:article:published_time" content="{{ page.date }}" />
|
||||
<meta property="og:article:section" content="Posts" />
|
||||
{% for tag in page.taxonomies.tags %}<meta property="og:article:tag" content="{{ tag }}" />{% endfor %}
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="twitter:site" content="@andwati_" />
|
||||
<meta property="twitter:title" content="{{ page.title }}" />
|
||||
<meta property="twitter:description" content="{{ page.description }}" />
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.png" />
|
||||
{% endblock meta %}
|
||||
{% block content %}
|
||||
<main>
|
||||
<article id="content">
|
||||
<header>
|
||||
<h1>{{ page.title }}</h1>
|
||||
{{ page_macros::meta(page=page) }}
|
||||
</header>
|
||||
{{ page.content | safe }}
|
||||
</article>
|
||||
</main>
|
||||
|
||||
{% include "comments.html" %}
|
||||
{% include "footer.html" %}
|
||||
{% endblock content %}
|
||||
@@ -0,0 +1,25 @@
|
||||
{% macro meta(page) %}
|
||||
<div class="post-meta">
|
||||
<time datetime="{{ page.date }}">{{ page.date | date(format="%B %d,%Y") }}</time>
|
||||
{% if page.taxonomies.tags %}
|
||||
<span class="accent">⬡</span>
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
<a href="{{ get_taxonomy_url(kind="tags", name=tag) }}">#{{ tag }}</a>
|
||||
{%- if page.taxonomies.tags | length > 1 and loop.index != page.taxonomies.tags | length -%},{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<div class="accent">☕ {{ page.reading_time }} minutes 📝 {{ page.word_count }}</div>
|
||||
</div>
|
||||
{% endmacro meta %}
|
||||
{% macro snippet(page) %}
|
||||
<article>
|
||||
<h2>
|
||||
<a href="{{ page.permalink }}">{{ page.title }}</a>
|
||||
</h2>
|
||||
{{ self::meta(page=page) }}
|
||||
{% if page.summary %}{{ page.summary | safe }}{% endif %}
|
||||
<nav>
|
||||
<a href="{{ page.permalink }}">Read More →</a>
|
||||
</nav>
|
||||
</article>
|
||||
{% endmacro snippet %}
|
||||
@@ -0,0 +1,13 @@
|
||||
{% extends "section.html" %}
|
||||
{% import "post_macros.html" as post_macros %}
|
||||
{% import "paginate.html" as paginate_macro %}
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>Posts</h1>
|
||||
</header>
|
||||
{% for page in paginator.pages %}{{ post_macros::snippet(page=page) }}{% endfor %}
|
||||
{% if paginator %}{{ paginate_macro::paginate() }}{% endif %}
|
||||
</main>
|
||||
{% include "footer.html" %}
|
||||
{% endblock content %}
|
||||
@@ -0,0 +1,29 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}
|
||||
{{ section.title }}
|
||||
{% endblock title %}
|
||||
{% block meta %}
|
||||
<meta name="description" content="{{ section.description }}" />
|
||||
<meta property="og:site_name" content="andwati.github.io" />
|
||||
<meta property="og:locale" content="en-us" />
|
||||
<meta property="og:url" content="{{ section.permalink }}" />
|
||||
<meta property="og:title" content="{{ section.title }}" />
|
||||
<meta property="og:description" content="{{ section.description }}" />
|
||||
<meta property="og:image" content="https://andati.com/self.png" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="twitter:site" content="@andwati_" />
|
||||
<meta property="twitter:title" content="{{ section.title }}" />
|
||||
<meta property="twitter:description" content="{{ section.description }}" />
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.png" />
|
||||
{% endblock meta %}
|
||||
{% block links %}
|
||||
<link rel="canonical" href="{{ section.permalink }}" />
|
||||
{% endblock links %}
|
||||
{% block content %}
|
||||
<main>
|
||||
<header>
|
||||
<h1>{{ section.title }}</h1>
|
||||
</header>
|
||||
{{ section.content | safe }}
|
||||
</main>
|
||||
{% endblock content %}
|
||||
@@ -0,0 +1,38 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}
|
||||
Tags
|
||||
{% endblock title %}
|
||||
{% block meta %}
|
||||
<meta name="description" content="All tags." />
|
||||
<meta property="og:site_name" content="andwati.github.io" />
|
||||
<meta property="og:locale" content="en-us" />
|
||||
<meta property="og:url" content="{{ current_url }}" />
|
||||
<meta property="og:title" content="Tags" />
|
||||
<meta property="og:description" content="All tags." />
|
||||
<meta property="og:image" content="https://andwati.github.io/self.png" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="twitter:site" content="@andwati" />
|
||||
<meta property="twitter:title" content="Tags" />
|
||||
<meta property="twitter:description" content="All tags." />
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.png" />
|
||||
{% endblock meta %}
|
||||
{% block links %}
|
||||
<link rel="canonical" href="{{ current_url }}" />
|
||||
{% endblock links %}
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>All Tags</h1>
|
||||
</header>
|
||||
{% if terms %}
|
||||
<ul>
|
||||
{% for term in terms %}
|
||||
<li>
|
||||
<a href="{{ term.permalink }}">#{{ term.name }}</a> ({{ term.pages | length }})
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</main>
|
||||
{% include "footer.html" %}
|
||||
{% endblock content %}
|
||||
@@ -0,0 +1,32 @@
|
||||
{% extends "index.html" %}
|
||||
{% import "post_macros.html" as post_macros %}
|
||||
{% block title %}
|
||||
Tag - {{ term.name }}
|
||||
{% endblock title %}
|
||||
{% block meta %}
|
||||
<meta name="description" content="Posts tagged as {{ term.name }}" />
|
||||
<meta property="og:site_name" content="andwati.github.io" />
|
||||
<meta property="og:locale" content="en-us" />
|
||||
<meta property="og:url" content="{{ current_url }}" />
|
||||
<meta property="og:title" content="Tag - {{ term.name }}" />
|
||||
<meta property="og:description" content="Posts tagged as {{ term.name }}" />
|
||||
<meta property="og:image" content="https://andwati.github.io/self.png" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="twitter:site" content="@andwati_" />
|
||||
<meta property="twitter:title" content="Tag - {{ term.name }}" />
|
||||
<meta property="twitter:description"
|
||||
content="Posts tagged as {{ term.name }}" />
|
||||
<meta property="twitter:image" content="https://andwati.github.io/self.png" />
|
||||
{% endblock meta %}
|
||||
{% block links %}
|
||||
<link rel="canonical" href="{{ current_url }}" />
|
||||
{% endblock links %}
|
||||
{% block content %}
|
||||
<main id="content">
|
||||
<header>
|
||||
<h1>Posts Tagged as "{{ term.name }}"</h1>
|
||||
</header>
|
||||
{% for page in term.pages %}{{ post_macros::snippet(page=page) }}{% endfor %}
|
||||
</main>
|
||||
{% include "footer.html" %}
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user