removed headlines folder for now; random bullets for index headlines

small-nav
chimchooree 4 years ago
parent e58da4dd1f
commit faff99603a

@ -1 +0,0 @@
1 sample news <b>whoa</b>

@ -4,8 +4,6 @@ from bottle import error, route, run, static_file, template
# make article-to-html work with entries
# make index work with entries - later, they can be differentiated into features and weeklies with tags or title or whatever
# write diary
def list_headlines(articles):
head = count_lines('entries/raw/res/head.txt')
result = []

@ -1,4 +1,5 @@
% rebase('frame.tpl')
% import random
<div class="social">
<a href="https://twitter.com/lilchimchooree"><img class="img-social-ribbon" src="static/img/ele/twitter-ribbon.png" alt="link to developer's Twitter"></a>
</div>
@ -16,7 +17,8 @@
<br>
<ul>
% for n in news:
<li>★ <a href={{n[0]}}>{{!n[1]}}</a><br></li>
% bullet = random.choice(['.','•','☆','★'])
<li>{{bullet}}&#9;<a href={{n[0]}}>{{!n[1]}}</a><br></li>
% end
</ul>
<br>

Loading…
Cancel
Save