]> git.p6c8.net - pcdenotes.git/commitdiff
Added "from-to" in copyright note
authorPatrick Canterino <patrick@patrick-canterino.de>
Sat, 19 Feb 2022 09:51:45 +0000 (10:51 +0100)
committerPatrick Canterino <patrick@patrick-canterino.de>
Sat, 19 Feb 2022 09:51:45 +0000 (10:51 +0100)
notes/templates/note_base.html

index fe61801a31bd02d867daf4e83a66f03424bc407f..5e88f7b398886231790f5eca8c3821ea4f9c4472 100644 (file)
       </div>
     </div>
     <div id="copyright">
       </div>
     </div>
     <div id="copyright">
-      © 2022 <a href="https://www.patrick-canterino.de/">Patrick Canterino</a>
+      {% with year_start="2022" %}
+      {% now "Y" as year_current %}
+      © {% if year_current > year_start %}{{ year_start }}-{% endif %}{{ year_current }} <a href="https://www.patrick-canterino.de/">Patrick Canterino</a>
+      {% endwith %}
     </div>
   </footer>
 </body>
     </div>
   </footer>
 </body>

patrick-canterino.de