< ‘theme/templates/index.html.new’
> ‘theme/templates/index.html’ < ‘theme/templates/index.html’ > ‘theme/templates/index.html.old’
This commit is contained in:
parent
5356678ed0
commit
c91819cfcc
3 changed files with 112 additions and 112 deletions
|
|
@ -1,34 +1,82 @@
|
||||||
{% extends "base.html" %}
|
<!DOCTYPE html>
|
||||||
{% block content_title %}{% endblock %}
|
<html lang="en">
|
||||||
{% block content %}
|
|
||||||
{% if articles %}
|
|
||||||
{% for article in articles %}
|
|
||||||
|
|
||||||
{# First item #}
|
<head>
|
||||||
{% if loop.first %}
|
<title>{% block title %}{{ SITENAME }}{%endblock%}</title>
|
||||||
<header>
|
<meta charset="utf-8">
|
||||||
<h1><a href="{{ SITEURL }}" id="site-title"> {# {{ SITENAME }} #} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> {#:#} <a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||||
{% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
|
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/tachyons.min.css" type="text/css" />
|
||||||
</header>
|
<script type="text/javascript" src="{{ SITEURL }}/theme/js/jquery-3.5.0.min.js"></script>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
font: 0.75em/1.5 AppleGothic, Sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
<article>
|
a {
|
||||||
{{ article.content }}{% include 'comments.html' %}
|
color: black;
|
||||||
</article>
|
text-decoration: none;
|
||||||
{% if loop.length > 1 %}
|
}
|
||||||
<section id="article-list">
|
|
||||||
<h2>All posts</h2>
|
p {
|
||||||
<ol>
|
margin: 0;
|
||||||
{% endif %}
|
}
|
||||||
{# other items #}
|
|
||||||
{% else %}
|
article.title {
|
||||||
<li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></li>
|
font-size: 1.2em;
|
||||||
{% endif %}
|
}
|
||||||
{% if loop.length > 1 %}
|
|
||||||
</ol>
|
time {
|
||||||
</section><!-- #article-list -->
|
font-size: 0.65em;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div style="margin: 1em;">
|
||||||
|
|
||||||
|
<a class="w-100 black o-10 db pb5" href="{{ SITEURL }} " title="title">
|
||||||
|
<div class="b black" style="font-size: 3.6em;">
|
||||||
|
{{ SITENAME }}
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
{% for category, articles in categories %}
|
||||||
|
|
||||||
|
{% if category.name == 'notes' %}
|
||||||
|
|
||||||
|
{% for article in articles %}
|
||||||
|
|
||||||
|
<article class="title">
|
||||||
|
<a href="{{ SITEURL }}/{{ article.url }}" class="db b pb2 o-50">
|
||||||
|
{{ article.title }}
|
||||||
|
</a>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
{{ article.content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% if not HIDE_DATE %}
|
||||||
|
<time class="db w-100 tr pb4 o-30" datetime="{{ article.date.isoformat() }}">
|
||||||
|
{{ article.date.isoformat() }}
|
||||||
|
</time>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
|
||||||
No posts found.
|
</div>
|
||||||
{% endif %}
|
|
||||||
{% endblock content %}
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function () {
|
||||||
|
$('a[class*=external]').attr('target', '_blank').css('background-color', 'rgba(0, 0, 0, 0.1)');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -1,82 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<title>{% block title %}{{ SITENAME }}{%endblock%}</title>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
||||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/tachyons.min.css" type="text/css" />
|
|
||||||
<script type="text/javascript" src="{{ SITEURL }}/theme/js/jquery-3.5.0.min.js"></script>
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
font: 0.75em/1.5 AppleGothic, Sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: black;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
article.title {
|
|
||||||
font-size: 1.2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
time {
|
|
||||||
font-size: 0.65em;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div style="margin: 1em;">
|
|
||||||
|
|
||||||
<a class="w-100 black o-10 db pb5" href="{{ SITEURL }} " title="title">
|
|
||||||
<div class="b black" style="font-size: 3.6em;">
|
|
||||||
{{ SITENAME }}
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
{% for category, articles in categories %}
|
|
||||||
|
|
||||||
{% if category.name == 'notes' %}
|
|
||||||
|
|
||||||
{% for article in articles %}
|
|
||||||
|
|
||||||
<article class="title">
|
|
||||||
<a href="{{ SITEURL }}/{{ article.url }}" class="db b pb2 o-50">
|
|
||||||
{{ article.title }}
|
|
||||||
</a>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
{{ article.content }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if not HIDE_DATE %}
|
|
||||||
<time class="db w-100 tr pb4 o-30" datetime="{{ article.date.isoformat() }}">
|
|
||||||
{{ article.date.isoformat() }}
|
|
||||||
</time>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(document).ready(function () {
|
|
||||||
$('a[class*=external]').attr('target', '_blank').css('background-color', 'rgba(0, 0, 0, 0.1)');
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
34
theme/templates/index.html.old
Normal file
34
theme/templates/index.html.old
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
{% block content_title %}{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
{% if articles %}
|
||||||
|
{% for article in articles %}
|
||||||
|
|
||||||
|
{# First item #}
|
||||||
|
{% if loop.first %}
|
||||||
|
<header>
|
||||||
|
<h1><a href="{{ SITEURL }}" id="site-title"> {# {{ SITENAME }} #} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> {#:#} <a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
|
||||||
|
{% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<article>
|
||||||
|
{{ article.content }}{% include 'comments.html' %}
|
||||||
|
</article>
|
||||||
|
{% if loop.length > 1 %}
|
||||||
|
<section id="article-list">
|
||||||
|
<h2>All posts</h2>
|
||||||
|
<ol>
|
||||||
|
{% endif %}
|
||||||
|
{# other items #}
|
||||||
|
{% else %}
|
||||||
|
<li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></li>
|
||||||
|
{% endif %}
|
||||||
|
{% if loop.length > 1 %}
|
||||||
|
</ol>
|
||||||
|
</section><!-- #article-list -->
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
No posts found.
|
||||||
|
{% endif %}
|
||||||
|
{% endblock content %}
|
||||||
Loading…
Reference in a new issue