mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-11-19 23:00:35 +01:00
génération de stats pour un seul fichier org
This commit is contained in:
parent
d404c6a7c8
commit
2e561080a9
4 changed files with 534 additions and 53 deletions
|
|
@ -14,26 +14,66 @@
|
|||
{% endif %}
|
||||
|
||||
<h2>Vue d'ensemble</h2>
|
||||
{% if date_debut_ecriture %}
|
||||
<p style="color: #666; margin-bottom: 15px;">
|
||||
<strong>Date de début d'écriture:</strong> {{date_debut_ecriture}}
|
||||
</p>
|
||||
{% endif %}
|
||||
<div class="stats-grid">
|
||||
<div class="stat-card">
|
||||
<h3>Articles publiés</h3>
|
||||
<div class="value">{{nb_articles_total|int|format_number}}</div>
|
||||
{% if articles_par_jour_moyen is defined %}
|
||||
<div style="font-size: 0.9em; color: #666; margin-top: 5px;">
|
||||
Par jour: {{articles_par_jour_moyen|round(3)}} |
|
||||
Par mois: {{articles_par_mois_moyen|round(2)}} |
|
||||
Par année: {{articles_par_annee_moyen|round(2)}}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="stat-card blue">
|
||||
<h3>Mots totaux</h3>
|
||||
<div class="value">{{mots_total|int|format_number}}</div>
|
||||
{% if mots_par_jour_moyen is defined %}
|
||||
<div style="font-size: 0.9em; color: #666; margin-top: 5px;">
|
||||
Par jour: {{mots_par_jour_moyen|int|format_number}} |
|
||||
Par mois: {{mots_par_mois_moyen|int|format_number}} |
|
||||
Par année: {{mots_par_annee_moyen|int|format_number}}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="stat-card green">
|
||||
<h3>Signes (espaces inclus)</h3>
|
||||
<div class="value">{{signes_total|int|format_number}}</div>
|
||||
{% if signes_par_jour_moyen is defined %}
|
||||
<div style="font-size: 0.9em; color: #666; margin-top: 5px;">
|
||||
Par jour: {{signes_par_jour_moyen|int|format_number}} |
|
||||
Par mois: {{signes_par_mois_moyen|int|format_number}} |
|
||||
Par année: {{signes_par_annee_moyen|int|format_number}}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="stat-card orange">
|
||||
<h3>Temps de lecture total</h3>
|
||||
<div class="value">{{temps_lecture_total|format_duree}}</div>
|
||||
{% if temps_lecture_par_jour_moyen is defined %}
|
||||
<div style="font-size: 0.9em; color: #666; margin-top: 5px;">
|
||||
Par jour: {{temps_lecture_par_jour_moyen|format_duree}} |
|
||||
Par mois: {{temps_lecture_par_mois_moyen|format_duree}} |
|
||||
Par année: {{temps_lecture_par_annee_moyen|format_duree}}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="stat-card purple">
|
||||
<h3>Liens totaux</h3>
|
||||
<div class="value">{{liens_total|int|format_number}}</div>
|
||||
{% if liens_par_jour_moyen is defined %}
|
||||
<div style="font-size: 0.9em; color: #666; margin-top: 5px;">
|
||||
Par jour: {{liens_par_jour_moyen|round(2)}} |
|
||||
Par mois: {{liens_par_mois_moyen|round(1)}} |
|
||||
Par année: {{liens_par_annee_moyen|round(1)}}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -115,7 +155,12 @@
|
|||
<p><strong>Objectif quotidien:</strong> 1667 signes (espaces compris) par jour</p>
|
||||
{% for mois_stats in stats_nanowrimo %}
|
||||
<div class="nanowrimo-month">
|
||||
<h3>{{mois_stats.mois_formate}}</h3>
|
||||
<h3>
|
||||
{{mois_stats.mois_formate}}
|
||||
{% if mois_stats.depassement > 0 %}
|
||||
⭐ <span style="color: #FFC107; font-size: 0.9em;">+{{mois_stats.depassement|int|format_number}} signes</span>
|
||||
{% endif %}
|
||||
</h3>
|
||||
|
||||
{% if mois_stats.objectif_articles is not none %}
|
||||
<div class="progress-info">
|
||||
|
|
@ -198,6 +243,26 @@
|
|||
(objectif jusqu'à aujourd'hui: {{mois_stats.objectif_jusqu_aujourdhui|int|format_number}} signes)
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if mois_stats.articles_du_mois %}
|
||||
<div style="margin-top: 15px;">
|
||||
<strong>Articles du mois ({{mois_stats.articles_du_mois|length}}):</strong>
|
||||
<ul style="margin-top: 5px; padding-left: 20px;">
|
||||
{% for article in mois_stats.articles_du_mois %}
|
||||
<li>
|
||||
<strong>{{article.date.strftime('%d/%m/%Y')}}</strong> - {{article.fichier}}
|
||||
<span style="color: #666; font-size: 0.9em;">
|
||||
({{article.mots|int|format_number}} mots, {{article.signes|int|format_number}} signes)
|
||||
</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% else %}
|
||||
<div style="margin-top: 15px; color: #999; font-style: italic;">
|
||||
Aucun article ce mois
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue