master
chimchooree 8 months ago
parent 45e13428ac
commit fc1d88e05e

@ -567,7 +567,13 @@ def entry(page_t):
loc = 'diary/entries/' loc = 'diary/entries/'
entry = prepare_diary_entry(page, loc) entry = prepare_diary_entry(page, loc)
info = {'css': 'entry', 'title': entry[0], 'year': find_year(), 'preview': prepare_article(entry[1], loc + page), 'entry': entry, 'recommends': list_rec(page, loc), 'articles': "Articles", 'latest': list_headlines(gather_and_sort(loc)[0:5], loc), 'tags': fill_word_cloud(curate_files(gather_files(loc)), loc), 'page': page, 'category': "diary"} preview_t = prepare_article(entry[1], loc + page)
preview = preview_t.replace('<p>','')
preview = preview.replace('</p>','')
preview = preview.replace('&lt;p&gt;','')
print(preview)
info = {'css': 'entry', 'title': entry[0], 'year': find_year(), 'preview': preview, 'entry': entry, 'recommends': list_rec(page, loc), 'articles': "Articles", 'latest': list_headlines(gather_and_sort(loc)[0:5], loc), 'tags': fill_word_cloud(curate_files(gather_files(loc)), loc), 'page': page, 'category': "diary"}
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 )

@ -2,7 +2,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="chimchooree"> <meta name="author" content="chimchooree">
<meta name="description" content={{preview}}> <meta name="description" content="{{preview}}">
<link rel="stylesheet" type="text/css" href="/static/css/all.css"> <link rel="stylesheet" type="text/css" href="/static/css/all.css">
<link rel="stylesheet" type="text/css" href="/static/css/nav.css"> <link rel="stylesheet" type="text/css" href="/static/css/nav.css">
<link rel="stylesheet" type="text/css" href="/static/css/sidebar.css"> <link rel="stylesheet" type="text/css" href="/static/css/sidebar.css">

Loading…
Cancel
Save