This commit is contained in:
Aaron Gutierrez
2021-02-14 12:51:29 -08:00
parent 5c4c93b8bf
commit 194ce72f36
3 changed files with 16 additions and 2 deletions

View File

@@ -1,9 +1,15 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Bench - Aaron Gutierrez</title>
<title>Bench Aaron Gutierrez</title>
<link rel="stylesheet" href="/site.css" >
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="Bench Aaron Gutierrez">
<meta property="og:type" content="website">
<meta property="og:image" content="/img/bench/041.780.jpg">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="780">
<meta property="og:url" content="https://www.aarongutierrez.com/bench/{1}">
</head>
<body>
<header>

View File

@@ -4,6 +4,12 @@
<title>Bench #{1} - Aaron Gutierrez</title>
<link rel="stylesheet" href="/site.css" >
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="Bench #{1}">
<meta property="og:type" content="website">
<meta property="og:image" content="{2}">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="780">
<meta property="og:url" content="https://www.aarongutierrez.com/bench/{1}">
</head>
<body>
<header>

4
pub.py
View File

@@ -129,8 +129,10 @@ def make_bench_view(idx, prev, nxt):
body = bench_view_ftm.format(idx)
preview = "/img/bench/{0:03d}.780.jpg".format(idx)
with open('bench/view/{}.html'.format(idx), 'w') as out:
out.write(template.format(body, idx, prev, nxt))
out.write(template.format(body, idx, preview, prev, nxt))
def upload_bench():
imgs = os.listdir('img/bench')