< ‘theme/templates/index.html.new’

> ‘theme/templates/index.html’
< ‘theme/templates/index.html’
> ‘theme/templates/index.html.old’
This commit is contained in:
Dooho Yi 2020-05-02 19:56:53 +09:00
parent 5356678ed0
commit c91819cfcc
3 changed files with 112 additions and 112 deletions

View file

@ -1,34 +1,82 @@
{% extends "base.html" %}
{% block content_title %}{% endblock %}
{% block content %}
{% if articles %}
{% for article in articles %}
<!DOCTYPE html>
<html lang="en">
{# 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>
<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;
}
<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 -->
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 %}
{% else %}
No posts found.
{% endif %}
{% endblock content %}
</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>

View file

@ -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>

View 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 %}