Fix output blockquote HTML ; Added blockquotes doc page

This commit is contained in:
Cyrille L 2024-02-29 11:59:54 +01:00
parent 5a14ea4e35
commit 522562551f
4 changed files with 13 additions and 12 deletions

View File

@ -33,7 +33,7 @@
<meta property="og:image" content="https://tyto.echolib.re/template/VH_Tyto_logo.png">
<!-- Publication date and title -->
<meta itemprop="datePublished" content="2024-02-29 11:02:14" id="date">
<meta itemprop="datePublished" content="2024-02-29 11:58:36" id="date">
<title>Afficher des citations (echolib) | Tyto - Littérateur</title>
</head>
@ -46,7 +46,7 @@
<main id="article_sidebar"> <!-- Contains <article> and <aside> -->
<article id="article">
<time datetime="2024-02-29 11:02:14">
<time datetime="2024-02-29 11:58:36">
<header id="article_header">
<h1 role="heading" aria-level="1" id="article_title">
@ -107,7 +107,7 @@ entourer le texte cité.
<li role="listitem" class="bcode_item"><code class="bcode_code">)&quot;</code></li>
</ol></pre>
<h4 role="heading" aria-level="4" id="toc_3" class="tyto">Rendu de la citation</h4>
<blockquote class="tyto" cite="https://stallman.org/" lang="en" title="- Richard Matthew Stallman, Free Software, Free Society : Selected Essays of Richard M. Stallman, 2009">
<blockquote class="tyto" cite="https://stallman.org/" lang="en" title="- Richard Matthew Stallman - Free Software, Free Society : Selected Essays of Richard M. Stallman (2009)">
<time datetime="2009">
<p class="tyto">
In the free/libre software movement, we develop software that respects
@ -119,7 +119,7 @@ the world a worse place
</p>
</time>
<footer class="tyto">
<a class="tyto" href="https://stallman.org/" title="- Richard Matthew Stallman, Free Software, Free Society : Selected Essays of Richard M. Stallman, 2009">Richard Matthew Stallman, </a>
<a class="tyto" href="https://stallman.org/" title="- Richard Matthew Stallman - Free Software, Free Society : Selected Essays of Richard M. Stallman (2009)">Richard Matthew Stallman</a>
</footer></blockquote>
</time>
</article>

View File

@ -3,7 +3,7 @@
<!-- #==========================================# -->
<!-- # RSS/Feed generated by Tyto - Littérateur # -->
<!-- #==========================================# -->
<!-- Creation date: Thu, 29 Feb 2024 11:02:14 -->
<!-- Creation date: Thu, 29 Feb 2024 11:58:36 -->
<!-- Feed URL: https://tyto.echolib.re/rss.xmlrss.xml -->
@ -20,7 +20,7 @@
</image>
<language>fr</language>
<category>Tyto,littérateur,logiciel libre,documentation</category>
<lastBuildDate>Thu, 29 Feb 2024 11:02:14</lastBuildDate>
<lastBuildDate>Thu, 29 Feb 2024 11:58:36</lastBuildDate>
<copyright>gfdl-1.3</copyright>
<webMaster>echolib+tyto@a-lec.org</webMaster>
<generator>Tyto - Littérateur</generator>

View File

@ -33,7 +33,7 @@
<meta property="og:image" content="https://tyto.echolib.re/template/VH_Tyto_logo.png">
<!-- Publication date and title -->
<meta itemprop="datePublished" content="2024-02-29 11:02:14" id="date">
<meta itemprop="datePublished" content="2024-02-29 11:58:36" id="date">
<title>Plan du site (Tyto) | Tyto - Littérateur</title>
</head>
@ -46,7 +46,7 @@
<main id="article_sidebar"> <!-- Contains <article> and <aside> -->
<article id="article">
<time datetime="2024-02-29 11:02:14">
<time datetime="2024-02-29 11:58:36">
<header id="article_header">
<h1 role="heading" aria-level="1" id="article_title">

View File

@ -534,17 +534,18 @@ def bquotes():
# Create HTML block quote
# time/date set
date = html_time_o = html_time_c = ""
date = show_date = html_time_o = html_time_c = ""
if params["date:"]:
date = params["date:"]
show_date = "(%s)"%date
html_time_o = '\n<time datetime="%s">'%date
html_time_c = "\n</time>"
# Simple references: "author,book,date"
cite = book = refs = ""
if params["cite:"] : cite = "%s, "%params["cite:"]
if params["book:"] : book = "%s, "%params["book:"]
if cite or book or date: refs = '- %s%s%s'%(cite, book, date)
if params["cite:"] : cite = "%s"%params["cite:"]
if params["book:"] : book = "- %s"%params["book:"]
if cite or book or date: refs = '- %s %s %s'%(cite, book, show_date)
# <blockquote> line
bq_cite = bq_lang = bq_title = ""