meta stuff

master
chimchooree 8 months ago
parent cbaac05266
commit 7bca2b850e

@ -571,6 +571,7 @@ def entry(page_t):
preview = preview_t.replace('<p>','') preview = preview_t.replace('<p>','')
preview = preview.replace('</p>','') preview = preview.replace('</p>','')
preview = preview.replace('&lt;p&gt;','') preview = preview.replace('&lt;p&gt;','')
preview = preview[:246] + " ..."
print(preview) 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"} 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"}

@ -1,9 +1,15 @@
<title>{{title or 'blessfrey.me'}}</title> <title>{{title or 'blessfrey.me'}}</title>
<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 property="og:title" content="{{title or 'blessfrey.me'}}" />
<meta property="og:locale" content="en_US" />
<meta name="author" content="Chimchooree">
<meta name="description" content="{{preview}}"> <meta name="description" content="{{preview}}">
<meta property="og:description" content="{{preview}}" /> <meta property="og:description" content="{{preview}}" />
<meta property="og:site_name" content="Blessfrey.me" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="{{title or 'blessfrey.me'}}" />
<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