This commit is contained in:
commit
7d7651c303
5 changed files with 569 additions and 0 deletions
9
templates/404.html
Normal file
9
templates/404.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="404-content">
|
||||
<div class="title">
|
||||
<h1>404 Page Not Found</h1>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
49
templates/base.html
Normal file
49
templates/base.html
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>
|
||||
{% if page.title %}
|
||||
{{ page.title }}
|
||||
{% elif section.title %}
|
||||
{{ config.title }} - {{ section.title }}
|
||||
{% else %}
|
||||
{{ config.title }}
|
||||
{% endif %}
|
||||
</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta name="description" content="{{ config.description }}">
|
||||
<link rel="stylesheet" href="/global.css">
|
||||
<link rel="icon" type="image/svg+xml" href="/images/favicon.svg">
|
||||
<link
|
||||
rel="alternate"
|
||||
type="application/atom+xml"
|
||||
title="RSS"
|
||||
href="{{ config.base_url }}/atom.xml"
|
||||
>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container">
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/blog">Blog</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
{% block content %} {% endblock content %}
|
||||
</main>
|
||||
|
||||
<footer class="container">
|
||||
<a href="/atom.xml" target="_blank" rel="noopener">RSS</a>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
12
templates/blog-page.html
Normal file
12
templates/blog-page.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="blog-page-content">
|
||||
<div class="title">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<span>{{ page.date }}</span>
|
||||
</div>
|
||||
{{ page.content | safe }}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
21
templates/blog.html
Normal file
21
templates/blog.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="blog-content">
|
||||
<div class="title">
|
||||
<h1>{{ section.title }}</h1>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="blog-list">
|
||||
{% for page in section.pages %}
|
||||
<li class="blog-item">
|
||||
<div>
|
||||
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
||||
</div>
|
||||
<span class="blog-item-meta">{{ page.date }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
29
templates/index.html
Normal file
29
templates/index.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="index-content">
|
||||
<div class="title">
|
||||
<img src="/images/logo.png" alt="logo" />
|
||||
<h1>{{ config.title }}</h1>
|
||||
</div>
|
||||
<div>
|
||||
<p>
|
||||
I'm a software developer interested in game development and design.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Latest blog posts</h2>
|
||||
<ul class="blog-list">
|
||||
{% set blog = get_section(path="blog/_index.md") %}
|
||||
{% for page in blog.pages | slice(end=5) %}
|
||||
<li class="blog-item">
|
||||
<div>
|
||||
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
||||
</div>
|
||||
<span class="blog-item-meta">{{ page.date }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
Loading…
Reference in a new issue