Port remaining pages, custom anchor links, various style improvements
This commit is contained in:
parent
60843f46a5
commit
1bcef7aa90
|
@ -1,3 +1,4 @@
|
|||
+++
|
||||
title = "Homepage"
|
||||
paginate_by = 5
|
||||
+++
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
+++
|
||||
title = "About"
|
||||
title = "About me"
|
||||
description = "About me"
|
||||
+++
|
||||
|
||||
# About me
|
||||
Open-source & free software enthusiast · Linux fanatic · Rust evangelist · Git master · Vim wizard
|
||||
|
||||
Self-educated software engineer started at 8 years old, always looking to expand my technical knowledge with challenging projects.
|
||||
|
|
|
@ -3,7 +3,6 @@ title = "Projects"
|
|||
description = "Projects index"
|
||||
+++
|
||||
|
||||
# Projects
|
||||
This page lists some of the projects I've developed over time.
|
||||
|
||||
- [Bukkit projects](/projects/bukkit)
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
+++
|
||||
name = "Bukkit projects"
|
||||
title = "Bukkit projects"
|
||||
description = "Bukkit projects index"
|
||||
+++
|
||||
|
||||
# Bukkit projects
|
||||
|
||||
- [Dungeon Maze](bukkit/dungeon-maze/)
|
||||
|
|
|
@ -4,7 +4,6 @@ description = "Dungeon Maze Bukkit plugin"
|
|||
date = 2015-10-06
|
||||
+++
|
||||
|
||||
# Dungeon Maze - An epic Minecraft world generator
|
||||
_Current version: v0.1.5.2_
|
||||
|
||||
Dungeon Maze is a world generator for Minecraft, it's a CraftBukkit plugin.
|
||||
|
|
|
@ -294,3 +294,24 @@ content .tag {
|
|||
sidebar .tag {
|
||||
background-color: $background;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
footer {
|
||||
font-family: $font-title;
|
||||
}
|
||||
|
||||
.anchor {
|
||||
transition: opacity 0.5s ease;
|
||||
opacity: 0;
|
||||
font-size: 1rem;
|
||||
position: relative;
|
||||
left: 0.5rem;
|
||||
}
|
||||
*:hover > .anchor,
|
||||
.anchor:active,
|
||||
.anchor:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
{% if id %}
|
||||
<a class="anchor" href="#{{ id }}" aria-label="Anchor link for: {{ id }}">🔗</a>
|
||||
{% else %}
|
||||
<a class="anchor" href="#" aria-label="Anchor link">🔗</a>
|
||||
{% endif %}
|
|
@ -0,0 +1,15 @@
|
|||
{% extends "site.html" %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Categories</h1>
|
||||
|
||||
{% if terms %}
|
||||
<ul>
|
||||
{% for term in terms %}
|
||||
<li>
|
||||
<a href="{{ term.permalink | safe }}">{{ term.name }}</a>({{ term.pages | length }})
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endblock body %}
|
|
@ -0,0 +1,10 @@
|
|||
{% extends "site.html" %}
|
||||
{% import "post_macros.html" as post_macros %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Category: {{ term.name }}</h1>
|
||||
|
||||
{% for page in term.pages %}
|
||||
{{ post_macros::page_in_list(page=page) }}
|
||||
{% endfor %}
|
||||
{% endblock body %}
|
|
@ -1,133 +1,20 @@
|
|||
{% extends "site.html" %}
|
||||
{% import "post_macros.html" as post_macros %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
{% block body %}
|
||||
{% for page in paginator.pages %}
|
||||
{{ post_macros::page_in_list(page=page) }}
|
||||
{% endfor %}
|
||||
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>
|
||||
{% block title %}
|
||||
{% if page.title %}
|
||||
{{ page.title }} ·
|
||||
{% endif %}
|
||||
{% if section.title %}
|
||||
{{ section.title }} ·
|
||||
{% endif %}
|
||||
{{ config.title }}
|
||||
{% endblock title %}
|
||||
</title>
|
||||
|
||||
{% block css %}
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Zilla+Slab:400,700|Merriweather:400,400i,700,700i|Fira+Mono&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{ get_url(path="zenn.css", trailing_slash=false) | safe }}">
|
||||
{% endblock css %}
|
||||
|
||||
{% if config.generate_rss %}
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml") | safe }}">
|
||||
{% endif %}
|
||||
|
||||
{% block extra_head %}
|
||||
{% endblock extra_head %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% if config.extra.zenn_title %}
|
||||
{% block header %}
|
||||
<header>
|
||||
<a href="/" class="logo">{{ config.extra.zenn_title }}</a>
|
||||
</header>
|
||||
{% endblock header %}
|
||||
{% endif %}
|
||||
|
||||
{% block content %}
|
||||
<main>
|
||||
<content>
|
||||
{% if section.title %}
|
||||
<h1>{{ section.title }}</h1>
|
||||
{% endif %}
|
||||
|
||||
{% for page in paginator.pages %}
|
||||
{{ post_macros::page_in_list(page=page) }}
|
||||
{% endfor %}
|
||||
|
||||
<nav>
|
||||
<p class="muted">
|
||||
{% if paginator.previous %}
|
||||
<a href="{{ paginator.previous }}">« Previous</a> ·
|
||||
{% endif %}
|
||||
Page {{ paginator.current_index }} of {{ paginator.number_pagers }}
|
||||
{% if paginator.next %}
|
||||
· <a href="{{ paginator.next }}">Next »</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</nav>
|
||||
</content>
|
||||
<sidebar>
|
||||
{% if config.extra.zenn_menu %}
|
||||
<section>
|
||||
<nav itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<ul>
|
||||
{% for item in config.extra.after_dark_menu %}
|
||||
<li>
|
||||
<a itemprop="url"
|
||||
class="{% if item.url | replace(from="$BASE_URL", to=config.base_url) == current_url %}active{% endif %}"
|
||||
href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">
|
||||
<span itemprop="name">{{ item.name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
<section>
|
||||
<h1><a href="/categories">Categories</a></h1>
|
||||
<section>
|
||||
<nav itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<ul>
|
||||
<li>
|
||||
<a itemprop="url" href="/categories/dev">
|
||||
<span itemprop="name">Dev</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a itemprop="url" href="#">
|
||||
<span itemprop="name">Releases</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h1><a href="/tags">Tags</a></h1>
|
||||
<div class="tags">
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<p class="muted">
|
||||
Copyright © {{ config.title }} {{ now() | date(format="%Y") }}
|
||||
{% if config.extra.zenn_source %}
|
||||
<br /><a href="{{ config.extra.zenn_source }}">Source</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</sidebar>
|
||||
</main>
|
||||
{% endblock content %}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<nav>
|
||||
<p class="muted">
|
||||
{% if paginator.previous %}
|
||||
<a href="{{ paginator.previous }}">« Previous</a> ·
|
||||
{% endif %}
|
||||
Page {{ paginator.current_index }} of {{ paginator.number_pagers }}
|
||||
{% if paginator.next %}
|
||||
· <a href="{{ paginator.next }}">Next »</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</nav>
|
||||
{% endblock body %}
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
{% extends "site.html" %}
|
||||
|
||||
{% block header_meta %}
|
||||
<span class="muted">{{ post_macros::meta(page=page) }}</span>
|
||||
{% endblock header_meta %}
|
||||
|
||||
{% block body %}
|
||||
<article itemscope itemtype="http://schema.org/BlogPosting">
|
||||
{#
|
||||
<header>
|
||||
<h1 itemprop="headline">{{ page.title }}</h1>
|
||||
<span class="muted">{{ post_macros::meta(page=page) }}</span>
|
||||
</header>
|
||||
#}
|
||||
|
||||
<div itemprop="articleBody">
|
||||
{{ page.content | safe }}
|
||||
</div>
|
||||
</article>
|
||||
{% endblock body %}
|
||||
|
||||
{% block page_footer %}
|
||||
<footer class="muted">
|
||||
<p>
|
||||
{% if config.extra.author %}
|
||||
Published by {{ config.extra.author }}
|
||||
{% endif %}
|
||||
{% if page.taxonomies.categories %}
|
||||
{% set category = page.taxonomies.categories[0] %}
|
||||
in <a href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">{{ category }}</a>
|
||||
{% endif %}
|
||||
{% if page.taxonomies.tags %}
|
||||
and tagged
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}" class="tag">{{ tag }}</a>
|
||||
{% if page.taxonomies.tags | length > 1 %}
|
||||
{% if loop.index != page.taxonomies.tags | length %}
|
||||
{% if loop.index == page.taxonomies.tags | length - 1 %}
|
||||
and
|
||||
{% else %}
|
||||
,
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</p>
|
||||
</footer>
|
||||
{% endblock page_footer %}
|
|
@ -0,0 +1,139 @@
|
|||
{% import "post_macros.html" as post_macros %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>
|
||||
{% block title %}
|
||||
{% if page.title %}
|
||||
{{ page.title }} ·
|
||||
{% endif %}
|
||||
{% if section.title %}
|
||||
{{ section.title }} ·
|
||||
{% endif %}
|
||||
{{ config.title }}
|
||||
{% endblock title %}
|
||||
</title>
|
||||
|
||||
{% block css %}
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Zilla+Slab:400,700|Merriweather:400,400i,700,700i|Fira+Mono&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{ get_url(path="zenn.css", trailing_slash=false) | safe }}">
|
||||
{% endblock css %}
|
||||
|
||||
{% if config.generate_rss %}
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml") | safe }}">
|
||||
{% endif %}
|
||||
|
||||
{% block extra_head %}
|
||||
{% endblock extra_head %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% if config.extra.zenn_title %}
|
||||
{% block header %}
|
||||
<header>
|
||||
<a href="/" class="logo">{{ config.extra.zenn_title }}</a>
|
||||
</header>
|
||||
{% endblock header %}
|
||||
{% endif %}
|
||||
|
||||
{% block main %}
|
||||
<main>
|
||||
<content>
|
||||
{% if section.title %}
|
||||
<h1>
|
||||
{{ section.title }}
|
||||
|
||||
{% if paginator %}
|
||||
{% if paginator.current_index > 1 %}
|
||||
· Page {{ paginator.current_index }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% include "anchor-link.html" %}
|
||||
</h1>
|
||||
{% endif %}
|
||||
{% if page.title %}
|
||||
<h1>
|
||||
{{ page.title }}
|
||||
|
||||
{% include "anchor-link.html" %}
|
||||
</h1>
|
||||
{% endif %}
|
||||
{% block header_meta %}{% endblock header_meta %}
|
||||
|
||||
{% block body %}{% endblock body %}
|
||||
|
||||
{% block page_footer %}{% endblock page_footer %}
|
||||
</content>
|
||||
<sidebar>
|
||||
{% if config.extra.zenn_menu %}
|
||||
<section>
|
||||
<nav itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<ul>
|
||||
{% for item in config.extra.after_dark_menu %}
|
||||
<li>
|
||||
<a itemprop="url"
|
||||
class="{% if item.url | replace(from="$BASE_URL", to=config.base_url) == current_url %}active{% endif %}"
|
||||
href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">
|
||||
<span itemprop="name">{{ item.name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
<section>
|
||||
<h1><a href="/categories">Categories</a></h1>
|
||||
<section>
|
||||
<nav itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<ul>
|
||||
<li>
|
||||
<a itemprop="url" href="/categories/dev">
|
||||
<span itemprop="name">Dev</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a itemprop="url" href="#">
|
||||
<span itemprop="name">Releases</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h1><a href="/tags">Tags</a></h1>
|
||||
<div class="tags">
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
<a href="/tags/test" class="tag">test</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<p class="muted">
|
||||
Copyright © {{ config.title }} {{ now() | date(format="%Y") }}
|
||||
{% if config.extra.zenn_source %}
|
||||
<br /><a href="{{ config.extra.zenn_source }}" target="_blank">Source</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</sidebar>
|
||||
</main>
|
||||
{% endblock main %}
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,13 @@
|
|||
{% extends "site.html" %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Tags</h1>
|
||||
|
||||
{% if terms %}
|
||||
<ul>
|
||||
{% for term in terms %}
|
||||
<li><a href="{{ term.permalink | safe }}">{{ term.name }}</a> ({{ term.pages | length }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endblock body %}
|
|
@ -0,0 +1,9 @@
|
|||
{% extends "site.html" %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Tag: {{ term.name }}</h1>
|
||||
|
||||
{% for page in term.pages %}
|
||||
{{ post_macros::page_in_list(page=page) }}
|
||||
{% endfor %}
|
||||
{% endblock body %}
|
Loading…
Reference in New Issue