Theme installed
This commit is contained in:
parent
8c90bb2dfc
commit
9f4d78baa2
135 changed files with 2650 additions and 269 deletions
14
templates/404.html
Normal file
14
templates/404.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<div class="row">
|
||||
<div class="col-12 center">
|
||||
<h1>Ooops! 404!</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-2"></div>
|
||||
<div class="col-8 center">
|
||||
<div id="indextext" >
|
||||
<p>Something is definetly went wrong, as you tried to reach page that doesn't exist here. Try to start from the <a href="{{ config.base_url }}">beginning</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
66
templates/base.html
Normal file
66
templates/base.html
Normal file
|
@ -0,0 +1,66 @@
|
|||
{% set cdn_version = now() | date(format="%d%m%Y%H%M%S") %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head
|
||||
data-base-url="{{config.base_url | safe }}"
|
||||
data-giscus-repo="{{config.extra.giscus.data_repo | safe}}"
|
||||
data-giscus-repo-id="{{config.extra.giscus.data_repo_id | safe}}"
|
||||
data-giscus-category="{{config.extra.giscus.data_category | safe}}"
|
||||
data-giscus-category-id="{{config.extra.giscus.data_category_id | safe}}"
|
||||
data-giscus-mapping="{{config.extra.giscus.data_mapping | safe}}"
|
||||
data-giscus-strict="{{config.extra.giscus.data_strict | safe}}"
|
||||
data-giscus-reactions-enabled="{{config.extra.giscus.data_reactions_enabled | safe}}"
|
||||
data-giscus-emit-metadata="{{config.extra.giscus.data_emit_metadata | safe}}"
|
||||
data-giscus-input-position="{{config.extra.giscus.data_input_position | safe}}"
|
||||
data-giscus-lang="{{config.extra.giscus.data_lang | safe}}"
|
||||
data-giscus-crossorigin="{{config.extra.giscus.crossorigin | safe}}"
|
||||
data-giscus-nonce="{{config.extra.nonce | safe}}"
|
||||
data-giscus-src="{{config.extra.giscus.src | safe}}"
|
||||
data-build-search-index="{{config.build_search_index | safe}}"
|
||||
data-comments-enabled="{%- if page.extra.show_comments -%}true{%- else -%}false{%- endif -%}">
|
||||
<meta charset="utf-8">
|
||||
<title>
|
||||
{%- if page.title -%} {{ page.title }}
|
||||
{%- elif section.title -%} {{ section.title }}
|
||||
{%- endif -%}
|
||||
</title>
|
||||
{% if dsc is not defined %}
|
||||
<meta name="description" content="{{ config.extra.description }}">
|
||||
{% else %}
|
||||
<meta name="description" content="{{ dsc }}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{% endif %}
|
||||
<meta name="author" content="{{config.extra.author}}">
|
||||
{% if page.extra.keywords is defined %}<meta name="keywords" content="{{ page.extra.keywords }}">{% endif %}
|
||||
<link type="text/css" rel="stylesheet" href="{{config.base_url | safe }}css/grid.css?v={{ cdn_version }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{config.base_url | safe }}css/style.css?v={{ cdn_version }}">
|
||||
<link rel="icon" type="image/png" href="{{config.base_url | safe }}images/favicon.webp">
|
||||
<link rel="mask-icon" type="image/png" href="{{config.base_url | safe }}images/favicon.webp">
|
||||
{% if config.extra.stats and config.mode != 'serve' %}
|
||||
<script async src="{{config.extra.stats.script_src}}" data-website-id="{{config.extra.stats.site_id}}" nonce="{{config.extra.nonce}}"></script>
|
||||
{% endif %}
|
||||
<script src = "{{config.base_url | safe }}js/codecopy.js?v={{ cdn_version }}" nonce="{{config.extra.nonce}}"></script>
|
||||
<script src="{{config.base_url | safe }}js/mermaid.min.js?v={{ cdn_version }}" nonce="{{config.extra.nonce}}"></script>
|
||||
{%- if config.build_search_index -%}
|
||||
<script src="{{config.base_url | safe }}elasticlunr.min.js?v={{ cdn_version }}" nonce="{{config.extra.nonce}}"></script>
|
||||
<script src="{{config.base_url | safe }}js/search.js?v={{ cdn_version }}" nonce="{{config.extra.nonce}}"></script>
|
||||
{%- endif -%}
|
||||
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<meta name="apple-mobile-web-app-title" content="aron.petau.net" />
|
||||
<link rel="manifest" href="/site.webmanifest" />
|
||||
</head>
|
||||
<body>
|
||||
{% include 'header.html' %}
|
||||
<main>
|
||||
<div class="container" id="main-container">
|
||||
{% block content %} {% endblock %}
|
||||
</div>
|
||||
</main>
|
||||
{% include 'footer.html' %}
|
||||
<script src = "{{config.base_url | safe }}js/colortheme.js?v={{ cdn_version }}" nonce="{{config.extra.nonce}}"></script>
|
||||
<script src = "{{config.base_url | safe }}js/init.js?v={{ cdn_version }}" nonce="{{config.extra.nonce}}"></script>
|
||||
</body>
|
||||
</html>
|
7
templates/comments.html
Normal file
7
templates/comments.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% if page.extra.show_comments %}
|
||||
<div class="row">
|
||||
<div class="col-2"></div>
|
||||
<div class="col-8" id="giscusWidget">
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
18
templates/footer.html
Normal file
18
templates/footer.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
{% block footer %}
|
||||
{% if page.extra.show_copyright or section.extra.show_copyright or term is defined %}
|
||||
{%- set YEAR = now() | date(format="%Y") -%}
|
||||
<footer class="row">
|
||||
<div class="col-2"></div>
|
||||
<div class="col-8" id="footer-wrapper">
|
||||
<div class="footer-text">{{ config.extra.copyright_string | replace (from="%YEAR%", to=YEAR) | markdown | safe }}</div>
|
||||
{% if config.extra.footer.icons.github %}
|
||||
<div class="footer-icons"><a href="{{config.extra.footer.icons.github}}" class="icon footer icon-gh"></a></div>
|
||||
{% endif %}
|
||||
{% if config.extra.footer.icons.linkedin %}
|
||||
<div class="footer-icons"><a href="{{config.extra.footer.icons.linkedin}}" class="icon footer icon-linkedin"></a></div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="col-2"></div>
|
||||
</footer>
|
||||
{% endif %}
|
||||
{% endblock footer %}
|
36
templates/header.html
Normal file
36
templates/header.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
{% block header %}
|
||||
<header>
|
||||
<div class="container" id="header-container">
|
||||
<div class="row">
|
||||
<div class="col-2"></div>
|
||||
<div class="col-8" id="top">
|
||||
<div id="menu">
|
||||
<ul>
|
||||
{% for menuitem in config.extra.top_menu %}
|
||||
<li><a href="{% if menuitem == config.extra.index_page %}{{config.base_url | safe }}{% else %}{{config.base_url | safe }}{{ menuitem }}{% endif %}" class="{% if menuitem in current_url and menuitem != '/' %} active{% elif menuitem == config.extra.index_page and current_url == config.base_url %} active{% endif %}">{{ menuitem }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{%- if config.build_search_index -%}
|
||||
<div id="searchBox">
|
||||
<span class="icon icon-search head"></span>
|
||||
<input id="searchInput" name="search">
|
||||
</div>
|
||||
{%- endif -%}
|
||||
<span id="cIcon" class="icon head"></span>
|
||||
</div>
|
||||
<div class="col-2"></div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{%- if config.build_search_index -%}
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div id="sResults">
|
||||
<ul id="sResultsUL" class="search-results">
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{%- endif -%}
|
||||
{% endblock header %}
|
21
templates/index.html
Normal file
21
templates/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="row content" id="flexbox">
|
||||
<div class="col-2"></div>
|
||||
<div class="col-5 content" id="index-text">
|
||||
<h1 class="center">
|
||||
About
|
||||
</h1>
|
||||
{% if section.content %} {{ section.content | safe }}
|
||||
{% elif page.content %}
|
||||
{{ page.content }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<div id = "index-image">
|
||||
<img src="{{config.base_url}}{{ config.extra.avatar_src }}" alt="avatar" class="avatar">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
72
templates/page.html
Normal file
72
templates/page.html
Normal file
|
@ -0,0 +1,72 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-2"></div>
|
||||
<div class="col-8 content">
|
||||
<h1 class="center">
|
||||
{%- if page.title -%}{{ page.title | safe }}
|
||||
{%- elif section.title -%}{{ section.title | safe }}
|
||||
{%- endif -%}
|
||||
</h1>
|
||||
{% if page.extras.show_date %}
|
||||
<h6>{{ page.date | date(format="%e %b %Y") }}</h6>
|
||||
{% endif %}
|
||||
<span class="post-tags">
|
||||
<ul>
|
||||
{% if page.taxonomies.tags %}
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
<li><a href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}" class="singlepost-tags">#{{ tag }}</a> </li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</span>
|
||||
{%- if post.description -%}<div class="fullpost-desc">
|
||||
<blockquote>{{ page.description }}</blockquote>
|
||||
</div>{%- endif -%}
|
||||
<div>
|
||||
{% if page.toc and page.extra.show_toc %}
|
||||
<details>
|
||||
<summary><span class="toc-header">Contents</span></summary>
|
||||
<ul class="toc">
|
||||
{% for h1 in page.toc %}
|
||||
<li class="toc"><a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
|
||||
{% if h1.children %}
|
||||
<ul class="toc">
|
||||
{% for h2 in h1.children %}
|
||||
<li class="toc"><a href="{{ h2.permalink | safe }}">{{ h2.title }}</a></li>
|
||||
{% if h2.children %}
|
||||
<ul class="toc">
|
||||
{% for h3 in h2.children %}
|
||||
<li class="toc"><a href="{{ h3.permalink | safe }}">{{ h3.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</details>
|
||||
{% endif %}
|
||||
{%- if page.content -%}
|
||||
{{ page.content | safe }}
|
||||
{%- elif secion.content -%}
|
||||
{{ section.content | safe }}
|
||||
{%- endif -%}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2"></div>
|
||||
</div>
|
||||
<div class="row postnav">
|
||||
<div class="col-2"></div>
|
||||
<div class="col-8">
|
||||
<div class="col-6 left">{% if page.higher %}<a class="postnav" href="{{page.higher.permalink | safe}}">← {{page.higher.title}}</a>{% endif %}</div>
|
||||
<div class="col-6 right">{% if page.lower %}<a class="postnav" href="{{page.lower.permalink | safe}}">{{page.lower.title}} →</a>{% endif %}</div>
|
||||
</div>
|
||||
<div class="col-2"></div>
|
||||
</div>
|
||||
</div>
|
||||
{% include "shares.html" %}
|
||||
{% include "comments.html" %}
|
||||
{% endblock %}
|
41
templates/section.html
Normal file
41
templates/section.html
Normal file
|
@ -0,0 +1,41 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="row content">
|
||||
<div class="col-2"></div>
|
||||
<div class="col-6 content" id="catlist">
|
||||
<h1 class="center">{{ section.title }}</h1>
|
||||
<ul>
|
||||
{% for post in paginator.pages %}
|
||||
<li><b><a href="{{ post.permalink | safe }}">
|
||||
{{ post.date | date(format="%e %b %Y") }} <span class="invis">»</span>
|
||||
{{ post.title }}</a></b><span class="icon icon-time post-list"></span><span class="invis reading-time">{{ post.reading_time }} min read</span>
|
||||
{%- if post.description -%}<div class="invis post-desc">{{ post.description }}</div>{%- endif -%}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="pagination">
|
||||
{%- if paginator.previous or paginator.next -%}
|
||||
{%- set pag_start = 1 -%}
|
||||
{%- set pag_end = paginator.number_pagers -%}
|
||||
{%- if paginator.previous -%}<a href = "{{ paginator.previous }}">←</a>{%- endif -%}
|
||||
{%- for i in range(start=pag_start, end=pag_end+1) -%}
|
||||
<a class="{% if paginator.current_index == i %} current {% endif %}" href="{{ paginator.base_url | safe }}{{ i ~ '/' }}">{{i}}</a>
|
||||
{%- endfor -%}
|
||||
{%- if paginator.next -%}<a href = {{paginator.next}}>→</a>{%- endif -%}
|
||||
{%- endif -%}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2" id="taglist">
|
||||
{% if section.ancestors %}
|
||||
<h4>Tags:</h4>
|
||||
{% set tags = get_taxonomy(kind="tags") %}
|
||||
<ul>
|
||||
{% for tag in tags.items %}
|
||||
<li><a href="{{ tag.permalink | safe }}">{{ tag.name }}</a> ({{ tag.pages | length }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
16
templates/shares.html
Normal file
16
templates/shares.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% if page.extra.show_shares %}
|
||||
<div class="row">
|
||||
<div class="col-2"></div>
|
||||
<div class="col-8 center shares">
|
||||
<ul>
|
||||
<li><a href = "https://www.linkedin.com/sharing/share-offsite/?url={{ current_url | safe }}" class="icon icon-linkedin shares"></a></li>
|
||||
<li><a href="http://www.facebook.com/sharer.php?u={{ current_url | safe }}" class="icon icon-fb shares"></a></li>
|
||||
<li><a href = "https://t.me/share/url?url={{ current_url | safe }}" class="icon icon-tg shares"></a></li>
|
||||
<li><a href= "https://api.whatsapp.com/send?text={{ current_url | safe }}" class="icon icon-wa shares"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-2"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
3
templates/shortcodes/badges.html
Normal file
3
templates/shortcodes/badges.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div class="badges center">
|
||||
{{ body | markdown | replace(from="%20", to=" ") | safe }}
|
||||
</div>
|
22
templates/shortcodes/callout.html
Normal file
22
templates/shortcodes/callout.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
{% if type == 'warning' %}
|
||||
{% set img = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
||||
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4m.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/>
|
||||
</svg>' %}
|
||||
{% elif type == 'alert'%}
|
||||
{% set img = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
||||
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M4.5 7.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1z"/>
|
||||
</svg>' %}
|
||||
{% elif type == 'info' %}
|
||||
{% set img = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
||||
<path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2"/>
|
||||
</svg>' %}
|
||||
{% endif %}
|
||||
<div class="co-container">
|
||||
<div class="callout {{ type }}">
|
||||
<span class="co-img">{{ img |safe }}</span>
|
||||
<span class="co-body">
|
||||
{{ body | markdown | safe}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
3
templates/shortcodes/mermaid.html
Normal file
3
templates/shortcodes/mermaid.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<pre class="mermaid">
|
||||
{{ body | safe }}
|
||||
</pre>
|
11
templates/shortcodes/skillcards.html
Normal file
11
templates/shortcodes/skillcards.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% set raw = load_data(literal = body, format='toml') %}
|
||||
{% set cards = raw.cards %}
|
||||
<div class="cards-wrapper center">
|
||||
{% for card in cards %}
|
||||
<div class="panel">
|
||||
<div class="skillcard-icon skillcard-icon-{{card.icon}}"></div>
|
||||
<div class="skillcard-title"><strong>{{ card.title | safe }}</strong></div>
|
||||
<div class="skillcard-details">{{ card.details | markdown | safe }}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
12
templates/shortcodes/timeline.html
Normal file
12
templates/shortcodes/timeline.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
{% set dt = load_data(literal = body, format="json") %}
|
||||
<div id="timeline-content">
|
||||
<ul class="timeline">
|
||||
{% for d in dt %}
|
||||
<li class="event" data-date="{{ d.date |safe }}">
|
||||
<h3>{{ d.title | markdown | safe}}</h3>
|
||||
<p>{{ d.body | safe }}</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
15
templates/tags/list.html
Normal file
15
templates/tags/list.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-12" id="content">
|
||||
{% if terms %}
|
||||
<ul>
|
||||
{% for term in terms %}
|
||||
<li><a class = "taglink" href="{{ term.permalink | safe }}">{{ term.name }}</a> ({{ term.pages | length }});</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
31
templates/tags/single.html
Normal file
31
templates/tags/single.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="row content">
|
||||
<div class="col-2"></div>
|
||||
<div class="col-6 content" id="catlist">
|
||||
<h1 class="center">Tag: {{ term.name }}</h1>
|
||||
<ul>
|
||||
{% for post in term.pages %}
|
||||
<li><b><a href="{{ post.permalink | safe }}">
|
||||
{{ post.date | date(format="%e %b %Y") }} <span class="invis">»</span>
|
||||
{{ post.title }}</a></b><span class="icon icon-time post-list"></span><span class="invis reading-time">{{ post.reading_time }} min read</span>
|
||||
{%- if post.description -%}<div class="invis post-desc">{{ post.description }}</div>{%- endif -%}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="pagination">
|
||||
{%- if paginator.previous or paginator.next -%}
|
||||
{%- set pag_start = 1 -%}
|
||||
{%- set pag_end = paginator.number_pagers -%}
|
||||
{%- if paginator.previous -%}<a href = "{{ paginator.previous }}">←</a>{%- endif -%}
|
||||
{%- for i in range(start=pag_start, end=pag_end+1) -%}
|
||||
<a class="{% if paginator.current_index == i %} current {% endif %}" href="{{ paginator.base_url | safe }}{{ i ~ '/' }}">{{i}}</a>
|
||||
{%- endfor -%}
|
||||
{%- if paginator.next -%}<a href = {{paginator.next}}>→</a>{%- endif -%}
|
||||
{%- endif -%}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2"></div>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue