feature recommend python ends

small-nav
chimchooree 4 years ago
parent 68137cf8a4
commit 0effb0c13a

@ -140,7 +140,7 @@ def diary(page):
@route('/diary/entries/<page:int>') @route('/diary/entries/<page:int>')
def entry(page): def entry(page):
"""diary entry""" """diary entry"""
info = {'css': 'feature', 'title': 'blessfrey - developer diary', 'year': datetime.datetime.now(), 'entry': retrieve_article(page), 'header': "More Articles", 'dates': "Dates", 'articles': "Articles", 'latest': list_headlines(sort_files(gather_files())[0:5]), 'page': page} info = {'css': 'feature', 'title': 'blessfrey - developer diary', 'year': datetime.datetime.now(), 'entry': retrieve_article(page), 'recommends': [['title','content','anchor'],['title','content','anchor'],['title','content','anchor']], 'articles': "Articles", 'latest': list_headlines(sort_files(gather_files())[0:5]), 'page': page}
abs_app_dir_path = os.path.dirname(os.path.realpath(__file__)) abs_app_dir_path = os.path.dirname(os.path.realpath(__file__))
abs_views_path = os.path.join(abs_app_dir_path, 'views') abs_views_path = os.path.join(abs_app_dir_path, 'views')
TEMPLATE_PATH.insert(0, abs_views_path ) TEMPLATE_PATH.insert(0, abs_views_path )

@ -146,7 +146,7 @@ ul { list-style-position: inside; }
.diary-entry { .diary-entry {
grid-area: 3 / 2 / 6 / 3; grid-area: 3 / 2 / 6 / 3;
background-color: #ff0000; background-color: #aa2055;
padding: 5px; padding: 5px;
} }
@ -183,6 +183,8 @@ ul { list-style-position: inside; }
grid-template-rows: 15% 35% auto; grid-template-rows: 15% 35% auto;
grid-column-gap: 0px; grid-column-gap: 0px;
grid-row-gap: 0px; grid-row-gap: 0px;
overflow-y: scroll;
overflow-x: hidden;
} }
.footer-row { .footer-row {

@ -9,7 +9,14 @@
% include diary-boxes.tpl % include diary-boxes.tpl
<div class="recommend"> <div class="recommend">
{{!articles}} % for r in recommends:
<div class="snippet-title">
<a href={{r[2]}} rel="nofollow"><b>{{!r[0]}}</b></a>
</div>
<div class="snippet-content">
{{!r[1]}}
</div>
% end
</div> </div>
<div class="footer-row"> </div> <div class="footer-row"> </div>

Loading…
Cancel
Save