diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2024-03-27 23:36:39 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-03-27 23:36:39 -0600 |
commit | cc60ec40e4b90e6041ed824c892a0319fad392ad (patch) | |
tree | 3f8d1fb6c1479f98e724bb8de2233c0d972a5ac8 /templates | |
parent | 690dd373919ea9802d08729a6621a0aaa0d5ca99 (diff) |
random lead text
Diffstat (limited to 'templates')
-rw-r--r-- | templates/sidebar.html | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/sidebar.html b/templates/sidebar.html index 57066ae..7b1f82e 100644 --- a/templates/sidebar.html +++ b/templates/sidebar.html @@ -2,7 +2,7 @@ <div class="container sidebar-sticky"> <div class="sidebar-about"> <h1><a href="/">Navan</a></h1> - <p class="lead">Something Funny</p> + <p class="lead" id="random-lead">Alea iacta est.</p> </div> <ul class="sidebar-nav"> @@ -12,6 +12,18 @@ <li><a class="sidebar-nav-item" href="/feed.rss">RSS Feed</a></li> <li><a class="sidebar-nav-item" href="/colophon/">colophon</a></li> </ul> - <p>© 2024. All rights reserved. + <div class="copyright"><p>© 2019-2024. Navan Chauhan <br> <a href="/feed.rss">RSS</a></p></div> </div> </div> + +<script> +let phrases = [ + "Something Funny", "Veni, vidi, vici", "Alea iacta est", "In vino veritas", "Acta, non verba", "Castigat ridendo mores", + "Cui bono?", "Memento vivere", "अहम् ब्रह्मास्मि", "अनुगच्छतु प्रवाहं", "चरन्मार्गान्विजानाति", "coq de cheval", "我愛啤酒" + ]; + +let new_phrase = phrases[Math.floor(Math.random()*phrases.length)]; + +let lead = document.getElementById("random-lead"); +lead.innerText = new_phrase; +</script> |