setup the basic thing atleast
This commit is contained in:
8
themes/anatole-zola/templates/about.html
Normal file
8
themes/anatole-zola/templates/about.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% extends "basic.html" %}
|
||||
|
||||
{% block content %}
|
||||
<article class="post animated fadeInDown">
|
||||
<h1><a href="{{ section.permalink }}"> {{ trans(key="about", lang=lang) }} </a></h1>
|
||||
<div class="post-content">{{ section.content | safe }}</div>
|
||||
</article>
|
||||
{% endblock content %}
|
32
themes/anatole-zola/templates/archive.html
Normal file
32
themes/anatole-zola/templates/archive.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{% extends "basic.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="archive animated fadeInDown">
|
||||
<ul class="list-with-title">
|
||||
{% if lang == config.default_language %}
|
||||
{% set section_item = get_section(path="_index.md") %}
|
||||
{% else %}
|
||||
{% set path = "_index." ~ lang ~ ".md"%}
|
||||
{% set section_item = get_section(path=path) %}
|
||||
{% endif %}
|
||||
{% for year, posts in section_item.pages | group_by(attribute="year") %}
|
||||
{% set language_posts = posts | filter(attribute="lang", value=lang) %}
|
||||
{% if language_posts | length > 0 %}
|
||||
<div class="listing-title">{{ year }}</div>
|
||||
<ul class="listing">
|
||||
{% for post in language_posts %}
|
||||
<div class="listing-item">
|
||||
<div class="listing-post">
|
||||
<a href="{{ post.permalink }}" title="{{ post.title }}">{{ post.title }}</a>
|
||||
<div class="post-time">
|
||||
<span class="date">{{ post.date | date(format=trans(key="date_format", lang=lang)) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock content %}
|
173
themes/anatole-zola/templates/basic.html
Normal file
173
themes/anatole-zola/templates/basic.html
Normal file
@@ -0,0 +1,173 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" {% if config.extra.mode %} class="theme--{{config.extra.mode}}" {% else %} class="theme--light" {% endif
|
||||
%}>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, viewport-fit=cover">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ get_url(path="images/apple-touch-icon-144x144.png",
|
||||
trailing_slash=false) }}" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="{{ get_url(path="images/apple-touch-icon-120x120.png",
|
||||
trailing_slash=false) }}" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ get_url(path="images/apple-touch-icon-72x72.png",
|
||||
trailing_slash=false) }}" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="{{ get_url(path="images/apple-touch-icon-57x57.png",
|
||||
trailing_slash=false) }}" />
|
||||
<link rel="short icon" href="{{ get_url(path="images/favicon.png") }}" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="{{ get_url(path="style.css") }}">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" rel="stylesheet">
|
||||
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
|
||||
{% if config.generate_feed %}
|
||||
{% block rss %}
|
||||
<link rel="alternate" type="application/rss+xml" title="{{ config.title }}" href="{{ get_url(path="rss.xml",
|
||||
trailing_slash=false, lang=lang) }}">
|
||||
{% endblock rss %}
|
||||
{% endif %}
|
||||
{% block extra_head %}
|
||||
{% endblock extra_head %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="sidebar" class="animated fadeInDown">
|
||||
<div class="logo-title">
|
||||
<div class="title">
|
||||
<img src={{ get_url(path="images/logo@2x.png" ) }} style="width:127px;" alt="logo" />
|
||||
<h3><a href="{{ get_url(path="@/_index.md", lang=lang) }}">{{ config.title }}</a></h3>
|
||||
<div class="description">
|
||||
<p>{{ config.description }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="social-links">
|
||||
{%- if config.extra.social.github -%}
|
||||
<li><a href="https://github.com/{{ config.extra.social.github }}" aria-label="Go to Github profile page"><i class="fab fa-github"></i></a></li>
|
||||
{%- endif -%}
|
||||
{%- if config.extra.social.gitlab -%}
|
||||
<li><a href="https://gitlab.com/{{ config.extra.social.gitlab }}" aria-label="Go to Gitlab profile page"><i class="fab fa-gitlab"></i></a></li>
|
||||
{%- endif -%}
|
||||
{%- if config.extra.social.stackoverflow -%}
|
||||
<li>
|
||||
<a href="https://stackoverflow.com/users/{{ config.extra.social.stackoverflow }}" aria-label="Go to StackOverflow profile page">
|
||||
<i class="fab fa-stack-overflow"></i>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
{%- if config.extra.social.twitter -%}
|
||||
<li><a href="https://twitter.com/{{ config.extra.social.twitter }}" aria-label="Go to Twitter profile page"><i class="fab fa-twitter"></i></a></li>
|
||||
{%- endif -%}
|
||||
{%- if config.extra.social.mastodon -%}
|
||||
<li><a rel="me" href="https://{{ config.extra.social.mastodon }}"
|
||||
aria-label="Go to Mastodon profile page"><i class="fab fa-mastodon"></i></a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
{% if config.extra.social.facebook -%}
|
||||
<li><a href="https://www.facebook.com/{{ config.extra.social.facebook }}" aria-label="Go to FaceBook profile page"><i class="fab fa-facebook"></i></a></li>
|
||||
{%- endif -%}
|
||||
{%- if config.extra.social.instagram -%}
|
||||
<li><a href="https://www.instagram.com/{{ config.extra.social.instagram }}" aria-label="Go to Instagram profile page"><i class="fab fa-instagram"></i></a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
{%- if config.extra.social.dribbble -%}
|
||||
<li><a href="https://dribbble.com/{{ config.extra.social.dribbble }}" aria-label="Go to Dribbble profile page"><i class="fab fa-dribbble"></i></a></li>
|
||||
{%- endif -%}
|
||||
{%- if config.extra.social.weibo -%}
|
||||
<li><a href="https://weibo.com/{{ config.extra.social.weibo }}" aria-label="Go to weibo profile page"><i class="fab fa-weibo"></i></a></li>
|
||||
{%- endif -%}
|
||||
{%- if config.extra.social.linkedin -%}
|
||||
<li><a href="https://linkedin.com/in/{{ config.extra.social.linkedin }}" aria-label="Go to Linkedin profile page"><i class="fab fa-linkedin"></i></a></li>
|
||||
{%- endif -%}
|
||||
{%- if config.extra.social.flickr -%}
|
||||
<li><a href="https://www.flickr.com/photos/{{ config.extra.social.flickr }}" aria-label="Go to Flickr profile page"><i class="fab fa-flickr"></i></a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
{% block more_social_link %}
|
||||
{% endblock more_social_link %}
|
||||
</ul>
|
||||
<div class="footer">
|
||||
{% block footer %}
|
||||
<span>Designed by </span><a href="https://www.caicai.me">CaiCai</a>
|
||||
<div class="by_zola"><a href="https://www.getzola.org/" target="_blank">Proudly published with Zola!</a></div>
|
||||
{% endblock footer %}
|
||||
</div>
|
||||
</div>
|
||||
<div id="main">
|
||||
<div class="page-top animated fadeInDown">
|
||||
<div class="nav">
|
||||
{% set current_url_str = current_url | as_str %}
|
||||
{% set language_site_base = get_url(path="@/_index.md", lang=lang) | as_str %}
|
||||
{% set language_site_path_without_prefix = current_url | trim_start_matches(pat=language_site_base) |
|
||||
trim_end_matches(pat="/") %}
|
||||
{% set language_site_path = '/' ~ language_site_path_without_prefix %}
|
||||
<li><a {% if language_site_path=="/" or language_site_path is starting_with("/page/") %}class="current" {% endif
|
||||
%} href="{{ get_url(path="@/_index.md", lang=lang) }}">{{ trans(key="home", lang=lang) }}</a></li>
|
||||
<li><a {% if language_site_path is starting_with("/about") %}class="current" {% endif %} href="{{ get_url(path="@/about/_index.md", lang=lang) }}">{{ trans(key="about", lang=lang) }}</a></li>
|
||||
{%- if config.extra.show.tags -%}
|
||||
<li><a {% if language_site_path is starting_with("/tags") %}class="current" {% endif %} href="{{ get_url(path="@/_index.md", lang=lang) }}tags">{{ trans(key="tags", lang=lang) }}</a></li>
|
||||
{%- endif -%}
|
||||
<li><a {% if language_site_path is starting_with("/archive") %}class="current" {% endif %}
|
||||
href="{{ get_url(path="@/archive/_index.md", lang=lang) }}">{{ trans(key="archive", lang=lang) }}</a></li>
|
||||
{%- if config.extra.show.links -%}
|
||||
<li><a {% if language_site_path is starting_with("/links") %}class="current" {% endif %} href="{{ get_url(path="@/links/_index.md", lang=lang) }}">{{ trans(key="links", lang=lang) }}</a></li>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
<div class="information">
|
||||
<div class="back_btn">
|
||||
<a onclick="window.history.go(-1)" {% if language_site_path=="/" %}style="display:none;" {% endif %}><i
|
||||
class="fas fa-chevron-left"></i></a>
|
||||
</div>
|
||||
{% set language_count = 1 %}
|
||||
{% for language_name, language in config.languages %}
|
||||
{% set_global language_count = language_count + 1 %}
|
||||
{% endfor %}
|
||||
{% if language_count > 1 %}
|
||||
<div id="language-switch">
|
||||
<button onclick="showLanguages()" aria-label="show languages"><i class="fas fa-globe"></i></button>
|
||||
<div id="languages" style="display: none">
|
||||
{% for language_name, language in config.languages %}
|
||||
<a onclick="window.location.href='{{ get_url(path="@/about/_index.md", lang=language_name) |
|
||||
trim_end_matches(pat='about/' )}}'"> {{ trans(key="language_name", lang=language_name) }} </a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="avatar"><img src="{{ get_url(path="images/avatar.jpg") }}"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autopagerize_page_element">
|
||||
<div class="content">
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if config.extra.mode %}
|
||||
{% elif config.extra.default_mode %}
|
||||
<script>
|
||||
window.onload = function () {
|
||||
const currentTheme = localStorage.getItem('theme');
|
||||
const element = document.getElementsByTagName("html")[0];
|
||||
if (currentTheme) {
|
||||
element.classList.remove('theme--light');
|
||||
element.classList.add('theme--' + currentTheme);
|
||||
} else {
|
||||
localStorage.setItem('theme', '{{config.extra.default_mode}}');
|
||||
element.classList.remove('theme--light');
|
||||
element.classList.add('theme--{{config.extra.default_mode}}');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{% endif %}
|
||||
<script>
|
||||
function showLanguages() {
|
||||
let currentDisplay = document.getElementById("languages").style.display;
|
||||
if (currentDisplay == 'none') {
|
||||
document.getElementById("languages").style.display = 'block';
|
||||
} else {
|
||||
document.getElementById("languages").style.display = 'none';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
42
themes/anatole-zola/templates/comments.html
Normal file
42
themes/anatole-zola/templates/comments.html
Normal file
@@ -0,0 +1,42 @@
|
||||
{% if config.extra.comment.disqus %}
|
||||
<a id="comments"></a>
|
||||
<div id="disqus_thread"></div>
|
||||
<script>
|
||||
var disqus_shortname = "{{ config.extra.comment.disqus.name }}";
|
||||
(function() {
|
||||
var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;
|
||||
dsq.src = "//" + disqus_shortname + ".disqus.com/embed.js";
|
||||
(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
<script id="dsq-count-scr" src="//{{ config.extra.comment.disqus.name }}.disqus.com/count.js" async></script>
|
||||
{% endif %}
|
||||
|
||||
{% if config.extra.comment.valine %}
|
||||
<a id="comments"></a>
|
||||
<div id="vcomments" style="margin: 30px;"></div>
|
||||
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
|
||||
<script src="//unpkg.com/valine/dist/Valine.min.js"></script>
|
||||
<script>
|
||||
var valine = new Valine({
|
||||
el: "#vcomments",
|
||||
notify: "{{ config.extra.comment.valine.notify }}" || false,
|
||||
verify: "{{ config.extra.comment.valine.verify }}" || false,
|
||||
app_id: "{{ config.extra.comment.valine.appid }}",
|
||||
app_key: "{{ config.extra.comment.valine.appkey }}",
|
||||
placeholder: "{{ config.extra.comment.valine.placeholder }}",
|
||||
path: window.location.pathname,
|
||||
avatar: "{{ config.extra.comment.valine.avatar }}"
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% if config.extra.comment.utterances %}
|
||||
<script src="https://utteranc.es/client.js"
|
||||
repo="{{ config.extra.comment.utterances.repo }}"
|
||||
issue-term="{{ config.extra.comment.utterances.issue_term }}"
|
||||
theme="{{ config.extra.comment.utterances.theme }}"
|
||||
crossorigin="anonymous"
|
||||
async>
|
||||
</script>
|
||||
{% endif %}
|
60
themes/anatole-zola/templates/index.html
Normal file
60
themes/anatole-zola/templates/index.html
Normal file
@@ -0,0 +1,60 @@
|
||||
{% extends "basic.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% for page in paginator.pages %}
|
||||
<section class="post animated fadeInDown">
|
||||
<div class="post-title">
|
||||
<h3><a href="{{ page.permalink }}">{{ page.title }}</a></h3>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
<p>
|
||||
{% if page.extra.summary %}
|
||||
{{ page.extra.summary | safe | striptags }}
|
||||
{% else %}
|
||||
{{ page.content | safe | striptags | truncate(length=100) }}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
<div class="post-footer">
|
||||
<div class="meta">
|
||||
<div class="info">
|
||||
{% if page.date %}
|
||||
<i class="far fa-sun"></i>
|
||||
<span class="date">
|
||||
{{ page.date | date(format=trans(key="date_format", lang=lang)) }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if config.extra.comment %}
|
||||
<i class="far fa-comments"></i>
|
||||
<a href="{{ page.permalink }}#comments">Comments</a>
|
||||
{% endif %}
|
||||
{% if page.taxonomies.tags %}
|
||||
<i class="fas fa-tags"></i>
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
<a class="tag" href="{{ get_taxonomy_url(kind="tags", name=tag, lang=page.lang) | safe }}"> {{tag}}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
<div class="pagination">
|
||||
<ul class="clearfix">
|
||||
{% if paginator.next %}
|
||||
<li class="next pagbuttons">
|
||||
<a class="btn" role="navigation" href="{{ paginator.next }}" aria-label="{{ trans(key="next_page", lang=lang) }}">
|
||||
{{ trans(key="next_page", lang=lang) }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if paginator.previous %}
|
||||
<li class="pre pagbuttons">
|
||||
<a class="btn" role="navigation" href="{{ paginator.previous }}" aria-label="{{ trans(key="last_page", lang=lang) }}">
|
||||
{{ trans(key="last_page", lang=lang) }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock content %}
|
8
themes/anatole-zola/templates/links.html
Normal file
8
themes/anatole-zola/templates/links.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% extends "basic.html" %}
|
||||
|
||||
{% block content %}
|
||||
<article class="post animated fadeInDown">
|
||||
<h1><a href="{{ section.permalink }}"> {{ trans(key="links", lang=lang) }} </a></h1>
|
||||
<div class="post-content">{{ section.content | safe }}</div>
|
||||
</article>
|
||||
{% endblock content %}
|
68
themes/anatole-zola/templates/page.html
Normal file
68
themes/anatole-zola/templates/page.html
Normal file
@@ -0,0 +1,68 @@
|
||||
{% extends "basic.html" %}
|
||||
|
||||
{% block title %}{{ config.title }} • {{ page.title }}{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<article class="post animated fadeInDown">
|
||||
<h1><a href="{{ page.permalink }}">{{ page.title }}</a></h1>
|
||||
{% if page.extra.author %}
|
||||
<div class="info">By {{ page.extra.author }}.</div>
|
||||
{% endif %}
|
||||
<div class="post-content">{{ page.content | safe }}</div>
|
||||
<div class="post-footer">
|
||||
<div class="meta">
|
||||
<div class="info">
|
||||
{% if page.date %}
|
||||
<i class="far fa-sun"></i><span class="date">{{ page.date | date(format=trans(key="date_format", lang=lang))
|
||||
}}</span>
|
||||
{% endif %}
|
||||
{% if page.taxonomies.tags %}
|
||||
<i class="fas fa-tags"></i>
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
<a class="tag" href="{{ get_url(path="@/_index.md", lang=lang) }}tags/{{tag}}"> {{tag}}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<div class="share">
|
||||
<div class="weibo">
|
||||
<a class="fab fa-weibo"
|
||||
href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://service.weibo.com/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"></a>
|
||||
</div>
|
||||
<div class="twitter">
|
||||
<a class="fab fa-twitter"
|
||||
href="http://twitter.com/share?text={{ page.title }}&url={{ page.permalink | trim_end_matches(pat=" /") }}{% if
|
||||
page.taxonomies.tags %}&hashtags={{ page.taxonomies.tags | join(sep="," ) }}{% endif %}"></a>
|
||||
</div>
|
||||
</div>
|
||||
{% include "comments.html" %}
|
||||
{% if page.extra.mathjax %}
|
||||
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
||||
<script>
|
||||
MathJax = {
|
||||
tex: {
|
||||
displayMath: [['$$', '$$'], ["\\[", "\\]"]],
|
||||
inlineMath: [['$', '$'], ['\\(', '\\)']]
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" id="MathJax-script" async
|
||||
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/{{ page.extra.mathjax }}-chtml.js">
|
||||
</script>
|
||||
{% endif %}
|
||||
{% if page.extra.tikzjax %}
|
||||
<link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css">
|
||||
<style>
|
||||
.tikz>svg {
|
||||
overflow: visible;
|
||||
}
|
||||
</style>
|
||||
<script src="{{ get_url(path="js/tikzjax.js", trailing_slash=false) }}"></script>
|
||||
{% endif %}
|
||||
{% if page.extra.mermaid %}
|
||||
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
||||
<script>mermaid.initialize({ startOnLoad: true });</script>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
1
themes/anatole-zola/templates/shortcodes/asciinema.html
Normal file
1
themes/anatole-zola/templates/shortcodes/asciinema.html
Normal file
@@ -0,0 +1 @@
|
||||
<script id="asciicast-{{id}}" src="https://asciinema.org/a/{{id}}.js" async></script>
|
1
themes/anatole-zola/templates/shortcodes/bilibili.html
Normal file
1
themes/anatole-zola/templates/shortcodes/bilibili.html
Normal file
@@ -0,0 +1 @@
|
||||
<iframe src="//player.bilibili.com/player.html?aid=798317579&bvid={{id}}&cid=273252363&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
|
3
themes/anatole-zola/templates/shortcodes/mermaid.html
Normal file
3
themes/anatole-zola/templates/shortcodes/mermaid.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="mermaid">
|
||||
{{ body }}
|
||||
</div>
|
5
themes/anatole-zola/templates/shortcodes/tikzjax.html
Normal file
5
themes/anatole-zola/templates/shortcodes/tikzjax.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="tikz">
|
||||
<script type="text/tikz">
|
||||
{{ body | safe }}
|
||||
</script>
|
||||
</div>
|
5
themes/anatole-zola/templates/shortcodes/youtube.html
Normal file
5
themes/anatole-zola/templates/shortcodes/youtube.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div {% if class %}class="{{class}}" {% endif %}>
|
||||
<iframe src="https://www.youtube.com/embed/{{id}}{% if autoplay %}?autoplay=1{% endif %}" webkitallowfullscreen
|
||||
mozallowfullscreen allowfullscreen>
|
||||
</iframe>
|
||||
</div>
|
15
themes/anatole-zola/templates/tags/list.html
Normal file
15
themes/anatole-zola/templates/tags/list.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% extends "basic.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="archive animated fadeInDown">
|
||||
<ul class="list-with-title">
|
||||
<div class="listing-title">{{ trans(key="tags", lang=lang) }}</div>
|
||||
{% for term in terms %}
|
||||
<li class="tag-list-item">
|
||||
<a class="tagname" href="{{ term.permalink }}">{{ term.name }}</a>
|
||||
<span class="tagcount">{{ term.pages | length }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock content %}
|
23
themes/anatole-zola/templates/tags/single.html
Normal file
23
themes/anatole-zola/templates/tags/single.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends "basic.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="archive animated fadeInDown">
|
||||
<ul class="list-with-title">
|
||||
<div class="archive">
|
||||
<div class="listing-title">{{ term.name }}</div>
|
||||
<ul class="listing">
|
||||
{% for post in term.pages %}
|
||||
<div class="listing-item">
|
||||
<div class="listing-post">
|
||||
<a href="{{ post.permalink }}" title="{{ post.title }}">{{ post.title }}</a>
|
||||
<div class="post-time">
|
||||
<span class="date">{{ post.date | date(format=trans(key="date_format", lang=lang)) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user