mirror of
https://github.com/andwati/andwati.com.git
synced 2026-12-05 06:38:51 +00:00
completed all templates
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.com" />
|
||||||
|
<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.com/self.jpg" />
|
||||||
|
<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.com/self.jpg" />
|
||||||
|
{% 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,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.com" />
|
||||||
|
<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.com/self.jpg" />
|
||||||
|
<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.com/self.jpg" />
|
||||||
|
{% 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,32 @@
|
|||||||
|
{% extends "page.html" %}
|
||||||
|
{% import "post_macros.html" as post_macros %}
|
||||||
|
{% block meta %}
|
||||||
|
<meta name="description" content="{{ page.description }}" />
|
||||||
|
<meta property="og:site_name" content="andwati.com" />
|
||||||
|
<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.com/self.jpg" />
|
||||||
|
<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.com/self.jpg" />
|
||||||
|
{% endblock meta %}
|
||||||
|
{% block content %}
|
||||||
|
<main>
|
||||||
|
<article id="content">
|
||||||
|
<header>
|
||||||
|
<h1>{{ page.title }}</h1>
|
||||||
|
</header>
|
||||||
|
{{ page.content | safe }}
|
||||||
|
</article>
|
||||||
|
</main>
|
||||||
|
{% include "footer.html" %}
|
||||||
|
{% endblock content %}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{% macro meta(page) %}
|
||||||
|
<div class="post-meta">
|
||||||
|
<time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</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>
|
||||||
|
{% 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,11 @@
|
|||||||
|
{% extends "section.html" %}
|
||||||
|
{% import "post_macros.html" as post_macros %}
|
||||||
|
{% block content %}
|
||||||
|
<main class="content">
|
||||||
|
<header>
|
||||||
|
<h1>Posts</h1>
|
||||||
|
</header>
|
||||||
|
{% for page in section.pages %}{{ post_macros::snippet(page=page) }}{% endfor %}
|
||||||
|
</main>
|
||||||
|
{% include "footer.html" %}
|
||||||
|
{% endblock content %}
|
||||||
@@ -24,6 +24,6 @@
|
|||||||
<header>
|
<header>
|
||||||
<h1>{{ section.title }}</h1>
|
<h1>{{ section.title }}</h1>
|
||||||
</header>
|
</header>
|
||||||
{{ section.content | safe }}}
|
{{ section.content | safe }}
|
||||||
</main>
|
</main>
|
||||||
{% endblock content %}
|
{% 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.com" />
|
||||||
|
<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.com/self.jpg" />
|
||||||
|
<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.com/self.jpg" />
|
||||||
|
{% 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,23 @@
|
|||||||
|
{% 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.com" />
|
||||||
|
<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.com/self.jpg" />
|
||||||
|
<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.com/self.jpg" />
|
||||||
|
{% endblock meta %}
|
||||||
|
{% block links %}
|
||||||
|
<link rel="canonical" href="{{ current_url }}" />
|
||||||
|
{% endblock links %}
|
||||||
Reference in New Issue
Block a user