feature recommend python ends
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ def diary(page):
|
||||
@route('/diary/entries/<page:int>')
|
||||
def entry(page):
|
||||
"""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_views_path = os.path.join(abs_app_dir_path, 'views')
|
||||
TEMPLATE_PATH.insert(0, abs_views_path )
|
||||
|
||||
@@ -146,7 +146,7 @@ ul { list-style-position: inside; }
|
||||
|
||||
.diary-entry {
|
||||
grid-area: 3 / 2 / 6 / 3;
|
||||
background-color: #ff0000;
|
||||
background-color: #aa2055;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
@@ -183,6 +183,8 @@ ul { list-style-position: inside; }
|
||||
grid-template-rows: 15% 35% auto;
|
||||
grid-column-gap: 0px;
|
||||
grid-row-gap: 0px;
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.footer-row {
|
||||
|
||||
@@ -9,7 +9,14 @@
|
||||
% include diary-boxes.tpl
|
||||
|
||||
<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 class="footer-row"> </div>
|
||||
|
||||
Reference in New Issue
Block a user