~hristoast/hristoast

f134f84d2b314cc53c8069d6b47b1cb7e6628ce0 — Hristos N. Triantafillou 1 year, 12 days ago 1172313
Use the last-modified widget to show when a page was last changed
3 files changed, 11 insertions(+), 0 deletions(-)

M site/css/site.css
M soupault.conf
M templates/main.html
M site/css/site.css => site/css/site.css +5 -0
@@ 84,6 84,11 @@ div#dates {
    margin-bottom: 20px;
}

div#timestamp {
    color: #777;
    font-size: 0.7em;
}

div#toc {
    font-size: 1.3em;
    font-weight: bold;

M soupault.conf => soupault.conf +5 -0
@@ 52,6 52,11 @@
  selector = "body"
  check_selector = "asciinema-player"

[widgets.last-modified]
  widget = "exec"
  selector = "#git-timestamp"
  command = "git log -n 1 --pretty=format:%ad --date=format:%Y-%m-%d -- $PAGE_FILE"

[widgets.page-title]
  widget = "title"
  selector = "h1#title"

M templates/main.html => templates/main.html +1 -0
@@ 50,5 50,6 @@
    </footer>
    <script src="/js/tracking.js" type="text/javascript"></script>
    <noscript><p><img src="//stats.hristos.co/piwik.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
    <div id="timestamp" class="center" title="A last modified timestamp derived from git.">This page was last modified on: <span id="git-timestamp"></span></div>
  </body>
</html>