💄 Fix URLs & remove useless templates
TODO footer : * Add pages * Add last commit hash/link * Bottom line TODO plugin: * post_stats * tipue_search * neighbors * https://github.com/pelican-plugins/seo Source : https://gitlab.com/axil/pelican-uberspot/-/blob/master/README.md
This commit is contained in:
parent
054182ba65
commit
8a0ffa824c
|
@ -60,6 +60,7 @@ ARTICLE_URL = 'articles/{date:%Y}/{date:%m}/{slug}/'
|
|||
AUTHOR_URL = 'a-propos/'
|
||||
CATEGORY_SAVE_AS = '{slug}/index.html'
|
||||
CATEGORY_URL = '{slug}/'
|
||||
CATEGORIES_URL = 'categories/'
|
||||
PAGE_LANG_SAVE_AS = '{slug}/{lang}/index.html'
|
||||
PAGE_LANG_URL = '{slug}/{lang}/'
|
||||
PAGE_SAVE_AS = '{slug}/index.html'
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} - Publications par «{{ author }}»{% endblock %}
|
|
@ -12,16 +12,13 @@
|
|||
<link rel="stylesheet" href="/theme/css/print.css" type="text/css" media="print" />
|
||||
<link rel="stylesheet" href="/theme/tipuesearch/tipuesearch.css" type="text/css" media="screen">
|
||||
<link rel="stylesheet" href="/theme/css/fork-awesome.min.css" type="text/css"/>
|
||||
{% if SITE_ICON %}
|
||||
<link rel="shortcut icon" href="{{ SITE_ICON }}">
|
||||
{% if FAVICO %}
|
||||
<link rel="shortcut icon" href="{{ SITEURL }}/{{ FAVICO }}">
|
||||
{% endif %}
|
||||
{% if FEED_ATOM %}
|
||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
|
||||
<link href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
|
||||
{% endif %}
|
||||
{% if FEED_RSS %}
|
||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
|
||||
{% endif %}
|
||||
</head>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1><a href="/" title="{{ SITESUBTITLE }}">{{ SITENAME }}</a></h1>
|
||||
|
@ -43,14 +40,8 @@
|
|||
</header>
|
||||
|
||||
<div id="main">
|
||||
{% block content %}{% endblock %}
|
||||
{% if PDF_PROCESSOR %}
|
||||
<a href="/pdf/{{ article.slug }}.pdf">PDF</a>
|
||||
{% endif %}
|
||||
{% if PRINT %}
|
||||
<a href="javascript:window.print();" title="Print">Print</a>
|
||||
{% endif %}
|
||||
{% block footnote %}{% endblock %}
|
||||
{% block content %}{% endblock content %}
|
||||
{% block footnote %}{% endblock footnote %}
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{% block resume %}{% endblock resume %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Catégories dans {{ SITENAME }}</h1>
|
||||
<h1>Catégories</h1>
|
||||
<ul>
|
||||
{% for category, publications in categories|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li>
|
||||
|
|
|
@ -13,5 +13,5 @@
|
|||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<p>→ <a href="/categories.html">Parcourir les {{ categories|length }} categories</a></p>
|
||||
<p>→ <a href="{{ SITEURL }}/{{ CATEGORIES_URL }}">Parcourir les {{ categories|length }} categories</a></p>
|
||||
{% endblock content %}
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
||||
var disqus_shortname = '{{ DISQUS_SITENAME }}';
|
||||
|
||||
{% if article %}
|
||||
{% if not DISQUS_NO_ID %}
|
||||
var disqus_identifier = '{{ article.date|strftime('%Y-%m-') ~ article.slug if DISQUS_ID_PREFIX_SLUG else article.slug }}';
|
||||
{% endif %}
|
||||
var disqus_url = '{{ SITEURL }}/{{ article.url }}';
|
||||
{% elif page %}
|
||||
{% if not DISQUS_NO_ID %}
|
||||
var disqus_identifier = 'page-{{ page.slug }}';
|
||||
{% endif %}
|
||||
var disqus_url = '{{ SITEURL }}/{{ page.url }}';
|
||||
{% endif %}
|
||||
|
||||
var disqus_config = function () {
|
||||
this.language = "{{ DEFAULT_LANG }}";
|
||||
this.page.url = disqus_url;
|
||||
this.page.identifier = disqus_identifier;
|
||||
};
|
||||
|
||||
/* * * DON'T EDIT BELOW THIS LINE * * */
|
||||
(function() { // DON'T EDIT BELOW THIS LINE
|
||||
var d = document, s = d.createElement('script');
|
||||
s.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
@ -14,5 +14,5 @@
|
|||
{% endif %}
|
||||
|
||||
</ul>
|
||||
<p>→ <a href="/archives.html">Parcourir les {{ articles|length }} notes</a></p>
|
||||
<p>→ <a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">Parcourir les {{ articles|length }} notes</a></p>
|
||||
{% endblock content %}
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
{% block script %}
|
||||
<script src="http://code.jquery.com/jquery.min.js"></script>
|
||||
{% endblock script %}
|
|
@ -1,15 +0,0 @@
|
|||
{% if DEFAULT_PAGINATION %}
|
||||
<span class="paginator">
|
||||
{% if articles_page.has_previous() %}
|
||||
{% if articles_page.previous_page_number() == 1 %}
|
||||
<a href="/{{ page_name }}.html">«</a>
|
||||
{% else %}
|
||||
<a href="/{{ page_name }}{{ articles_page.previous_page_number() }}.html">«</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
|
||||
{% if articles_page.has_next() %}
|
||||
<a href="/{{ page_name }}{{ articles_page.next_page_number() }}.html">»</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endif %}
|
|
@ -1,17 +0,0 @@
|
|||
{% if MATOMO_URL and MATOMO_SITE_ID %}
|
||||
<!-- Matomo -->
|
||||
<script type="text/javascript">
|
||||
var _paq = _paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//{{ MATOMO_URL }}/";
|
||||
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
||||
_paq.push(["setSiteId", "{{ MATOMO_SITE_ID }}"]);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Matomo Code -->
|
||||
{% endif %}
|
|
@ -1,30 +0,0 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}
|
||||
Search - {{ SITENAME|striptags }}
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js">
|
||||
</script>
|
||||
<script type="text/javascript" src="/theme/tipuesearch/tipuesearch_set.js"></script>
|
||||
<script type="text/javascript" src="/theme/tipuesearch/tipuesearch.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tipue_search_input').tipuesearch({
|
||||
'show': 10,
|
||||
'mode': 'json',
|
||||
'contentLocation': '/tipuesearch_content.json'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<section id="content" class="body">
|
||||
|
||||
<div align="center"><input type="text" size="60" id="tipue_search_input">
|
||||
<input type="button" id="tipue_search_button" value="Search"></div>
|
||||
<div id="tipue_search_content"></div>
|
||||
|
||||
</section>
|
||||
{% endblock content %}
|
Loading…
Reference in New Issue