diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 31 | ||||
| -rw-r--r-- | templates/blog-page.html | 24 | ||||
| -rw-r--r-- | templates/blog.html | 14 | ||||
| -rw-r--r-- | templates/index.html | 13 | ||||
| -rw-r--r-- | templates/project-page.html | 65 | ||||
| -rw-r--r-- | templates/projects.html | 29 | ||||
| -rw-r--r-- | templates/shortcodes/coverimage.html | 3 | ||||
| -rw-r--r-- | templates/snippet-page.html | 9 | ||||
| -rw-r--r-- | templates/snippets.html | 14 |
9 files changed, 0 insertions, 202 deletions
diff --git a/templates/base.html b/templates/base.html deleted file mode 100644 index 793d539..0000000 --- a/templates/base.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <meta charset="utf-8"/> - <link rel="stylesheet" href="/style.css"/> - <title>soaos</title> - <meta property="og:url" content="{{config.base_url | safe}}/{{current_path | safe}}" /> - {% block meta_content %} - <meta property="og:title" content="soaos" /> - {% endblock meta_content %} - {% block rss %} - <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml", trailing_slash=false) }}"> - {% endblock %} - </head> - <body> - <section class="section"> - <div class="container"> - {% block content %} - <a href="{{ get_url(path='@/_index.md') }}"> <- back to landing</a> - {{ section.content | safe }} - {% endblock %} - </div> - </section> - </body> - <footer> - <hr/> - <a href="https://evilr.ing/soaos/previous"><</a> - <a href="https://evilr.ing">EVILRING</a> - <a href="https://evilr.ing/soaos/next">></a> - </footer> -</html> diff --git a/templates/blog-page.html b/templates/blog-page.html deleted file mode 100644 index 00eecf8..0000000 --- a/templates/blog-page.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "base.html" %} - -{% block meta_content %} - {% if page.title %} - <meta property="og:title" content="soaos" /> - <meta name="description" content="{{ page.title | safe }}" /> - <meta property="og:description" content="{{ page.title | safe }}" /> - {% else %} - <meta property="og:title" content="soaos" /> - {% endif %} - {% if page.extra.coverimage %} - <meta property="og:image" content="{{ current_url | safe }}/{{ page.extra.coverimage | safe }}"/> - <meta name="twitter:card" content="summary_large_image"/> - {% endif %} -{% endblock meta_content %} - -{% block content %} -<a href="{{ get_url(path='@/blog/_index.md') }}"> <- back to posts</a> -<h1 class="title"> - {{ page.title }} -</h1> - <p class="subtitle"><strong>{{ page.date }} - reading time: {{ page.reading_time }} minutes</strong></p> -{{ page.content | safe }} -{% endblock content %} diff --git a/templates/blog.html b/templates/blog.html deleted file mode 100644 index 56365fc..0000000 --- a/templates/blog.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -<a href="{{ get_url(path='@/_index.md') }}"> <- back to landing</a> -<h1 class="title"> - {{ section.title }} -</h1> - -<ul> - {% for page in section.pages %} - <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{page.date}})</li> - {% endfor %} -</ul> -{% endblock content %} diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 98cc148..0000000 --- a/templates/index.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -{{ section.content | safe }} -<br/> -recent posts -{% set section = get_section(path="blog/_index.md") %} -<ul> - {% for page in section.pages | slice(end=5) %} - <li><a href="{{page.permalink}}">{{page.title}}</a> ({{page.date}})</li> - {% endfor %} -</ul> -{% endblock content %} diff --git a/templates/project-page.html b/templates/project-page.html deleted file mode 100644 index c097818..0000000 --- a/templates/project-page.html +++ /dev/null @@ -1,65 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -<a href="{{ get_url(path='@/projects/_index.md') }}"> <- back to projects</a> -<h1 class="title"> - {{ page.title }} - {% if page.extra.wip %} - (<span class="wip-indicator">wip</span>) - {% endif %} -</h1> -{% if page.description %} -<p><strong>{{ page.description }}</strong></p> -{% endif %} - -{% if page.taxonomies.categories %} -<p>category: {{ page.taxonomies.categories[0] }}</p> -{% endif %} -{% if page.extra.finished %} -<p>finished: {{ page.extra.finished }}</p> -{% endif %} -{% if page.taxonomies.languages %} -<p> - languages: - {% for language in page.taxonomies.languages %} - <span class="langcolor-{{ language }}">{{ language }}</span> - {% endfor %} -</p> -{% endif %} -{% if page.extra.git %} -<p> - git: - {% for repo in page.extra.git %} - <a href="https://git.soaos.dev/{{ repo }}" target="_blank">{{ repo }}</a> - {% endfor %} -</p> -{% endif %} -{% if page.extra.github %} -<p> - github: - {% for repo in page.extra.github %} - <a href="https://github.com/{{ repo }}" target="_blank">{{ repo }}</a> - {% endfor %} -</p> -{% endif %} -{% if page.extra.crates %} -<p> - crates.io: - {% for crate in page.extra.crates %} - <a href="https://crates.io/crates/{{ crate }}" target="_blank">{{ crate }}</a> - {% endfor %} -</p> -{% endif %} -<br/> -{{ page.content | safe }} -{% set project = get_taxonomy_term(kind="projects", term=page.title, required=false) %} -{% if project and project.page_count > 0 %} -<br/> -<p><strong>related blog posts:</strong></p> -<ul> - {% for page in project.pages %} - <li><a href="{{ page.permalink }}">{{ page.title }}</a> ({{ page.date }})</li> - {% endfor %} -</ul> -{% endif %} -{% endblock content %} diff --git a/templates/projects.html b/templates/projects.html deleted file mode 100644 index 7b2df74..0000000 --- a/templates/projects.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -<a href="{{ get_url(path='@/_index.md') }}"> <- back to landing</a> -<h1 class="title"> - {{ section.title }} -</h1> -{% set categories = get_taxonomy(kind="categories") %} - -{% for category in categories.items %} -<b>{{category.name}}</b> -<ul> - {% for page in category.pages %} - <li> - <a href="{{ page.permalink | safe }}"> - {{ page.title }}{% if page.description %}: {{ page.description }}{% endif %} - </a> - {% if page.extra.wip %} - (<span class="wip-indicator">wip</span>) - {% endif %} - {% if page.extra.very_cool %} - (<span class="rainbow_text_animated">VERY COOL</span>) - {% endif %} - </li> - {% endfor %} -</ul> -{% endfor %} - -{% endblock content %} diff --git a/templates/shortcodes/coverimage.html b/templates/shortcodes/coverimage.html deleted file mode 100644 index 4349b69..0000000 --- a/templates/shortcodes/coverimage.html +++ /dev/null @@ -1,3 +0,0 @@ -<div class="coverimage"> - <img src="{{url | safe}}"/> -</div> diff --git a/templates/snippet-page.html b/templates/snippet-page.html deleted file mode 100644 index f8b5687..0000000 --- a/templates/snippet-page.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -<a href="{{ get_url(path='@/snippets/_index.md') }}"> <- back to snippets</a> -<h1 class="title"> - {{ page.title }} -</h1> -{{ page.content | safe }} -{% endblock content %} diff --git a/templates/snippets.html b/templates/snippets.html deleted file mode 100644 index 2f7137f..0000000 --- a/templates/snippets.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -<a href="{{ get_url(path='@/_index.md') }}"> <- back to landing</a> -<h1 class="title"> - {{ section.title }} -</h1> - -{% for page in section.pages %} -<hr/> -<h2><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{page.date}})</h2> -{{ page.content | safe }} -{% endfor %} -{% endblock content %} |
