changed home page title

This commit is contained in:
2020-05-04 17:52:39 +02:00
parent 52cc2cb06c
commit d2bba8c8f3
4 changed files with 21 additions and 17 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -1,23 +1,25 @@
<metal:block use-macro="main_template"> <metal:block use-macro="main_template">
<div metal:fill-slot="content"> <div metal:fill-slot="content">
<div align="center">
<img src="${request.static_url('caotek_mesavoirs:static/img/cover_image_540max.jpg')}" alt="cover_image">
</div>
<h3>Derniers posts</h3>
<p tal:condition="not layout.isAnonymous()">
<a href="${request.application_url}/archives/blog">Voir les archives</a> | <a href="${request.application_url}/doc_edit/0">Créer un nouveau post</a>
</p>
<div class="row"> <div class="row">
<table class="table"> <div class="col-sm-4">
<tr tal:repeat="ligne items"> <br />
<td>${ligne.cree_le.strftime("%Y")}</td> <br />
<td>${ligne.cree_le.strftime("%d %b")}</td> <img src="${request.static_url('caotek_mesavoirs:static/img/cover_image_540max.jpg')}" alt="cover_image">
<td><a href="/doc_view/${ligne.doc_id}"><b>${ligne.intitule}</b></a></td> </div>
</tr> <div class="col-sm-8">
</table> <h3>Derniers posts</h3>
<p tal:condition="not layout.isAnonymous()">
<a href="${request.application_url}/archives/blog">Voir les archives</a> | <a href="${request.application_url}/doc_edit/0">Créer un nouveau post</a>
</p>
<table class="table">
<tr tal:repeat="ligne items">
<td>${ligne.cree_le.strftime("%d %b")}</td>
<td><a href="/doc_view/${ligne.doc_id}"><b>${ligne.intitule}</b></a></td>
</tr>
</table>
</div>
</div> </div>
<div class="row well text-center" tal:condition="not layout.isAnonymous()"> <div class="row well text-center" tal:condition="not layout.isAnonymous()">
<div class="col-sm-3"> <div class="col-sm-3">

View File

@@ -91,6 +91,8 @@
<p class="text-center"> <p class="text-center">
Restructured Text cheat sheet <a href="https://github.com/ralsina/rst-cheatsheet/blob/master/rst-cheatsheet.rst" target="_blank">(reST)</a><br /> Restructured Text cheat sheet <a href="https://github.com/ralsina/rst-cheatsheet/blob/master/rst-cheatsheet.rst" target="_blank">(reST)</a><br />
Markdown basic syntax <a href="https://www.markdownguide.org/basic-syntax/" target="_blank">(md)</a><br /> Markdown basic syntax <a href="https://www.markdownguide.org/basic-syntax/" target="_blank">(md)</a><br />
<a href="https://www.instagram.com/ctphuoc/" alt="instagram" target="_blank">
<img src="${request.static_url('caotek_mesavoirs:static/img/instagram.png')}" /></a><br />
</p> </p>
<br /> <br />
<p class="text-center">&copy; 2017&nbsp;-&nbsp;Phuoc Cao&nbsp;|&nbsp; <p class="text-center">&copy; 2017&nbsp;-&nbsp;Phuoc Cao&nbsp;|&nbsp;

View File

@@ -79,7 +79,7 @@ def home(request):
items = get_docs_bytheme(request, 'BLOG') items = get_docs_bytheme(request, 'BLOG')
return { return {
'page_title': "Blog d'un ancien geek", 'page_title': "Un geek à la retraite",
'items': items, 'items': items,
'id_photo': id_photo, 'id_photo': id_photo,
} }