Browse Source

Add last generated date to index.html

master
Nils 4 years ago
parent
commit
5557c83624
  1. 5
      directcontent/index
  2. 4
      index2dataindex.py

5
directcontent/index

@ -4,6 +4,10 @@
</div> <!-- header -->
<div class="content">
<p style="text-align:center">
<small>Last website update: PYREPLACE_DATE</small>
</p>
<p>
Laborejo Software Suite is a group of programs to make music (and also the name of its main program).
Everything is free in every sense of the word: free of cost, free to share and use, free of
@ -25,5 +29,6 @@
<p>You can write an e-mail to <a href="mailto:info@laborejo.org">info@laborejo.org</a> for any comment or question.</p>
<p>For bugs and issues a <a href="https://www.laborejo.org/bugs/">service</a> has been set up that works without registration. Thank you for your help to make our software better by reporting bugs.</p>
</div> <!-- content -->
</div> <!-- main -->

4
index2dataindex.py

@ -21,10 +21,13 @@ The image file is a static file. At this point in time manually copied into the
"""
import sys
import datetime
today_str = str(datetime.date.today())
projects = sys.argv[1:] #exclude our own filename
assert projects
oneliners = ""
for project in projects:
config = __import__(f"temp.{project}.engine.config", fromlist=["METADATA"])
@ -36,6 +39,7 @@ for project in projects:
with open("directcontent/index", "r") as f:
template = f.read()
template = template.replace("PYREPLACE_ONELINERS", oneliners)
template = template.replace("PYREPLACE_DATE", today_str)
print (template) #stdout. our job is done

Loading…
Cancel
Save