Add some more benches, fix <section> tags
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
<div class="nav">
|
||||
<a href="/bench/3.html">Prev</a>
|
||||
<a href="/">Home</a>
|
||||
<a href="#">Next</a>
|
||||
<a href="/bench/5.html">Next</a>
|
||||
</nav>
|
||||
</main>
|
||||
<hr>
|
||||
|
||||
38
bench/5.html
Normal file
38
bench/5.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<title>Bench - Aaron Gutierrez</title>
|
||||
<link rel="stylesheet" href="/site.css" >
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>Bench.</h1>
|
||||
</header>
|
||||
<main>
|
||||
<p>Towards the start of my time at Carnegie Mellon, I started taking
|
||||
pictures of benches. It provided me an object to seek out; and seek
|
||||
benches out I did. Since then, I've amassed a collection of photographs
|
||||
from all over the world.</p>
|
||||
|
||||
<p>All images <a href="https://creativecommons.org/licenses/by-nc/4.0/">
|
||||
CC BY-NC</a> Aaron Gutierrez.</p>
|
||||
|
||||
<div class="img-grid">
|
||||
<a href="/img/bench/065.jpg"><picture><source type="image/webp" srcset="/img/bench/065.thumb.webp, /img/bench/065.thumb@2x.webp 2x"><img src="/img/bench/065.thumb.jpg"></picture></a>
|
||||
<a href="/img/bench/066.jpg"><picture><source type="image/webp" srcset="/img/bench/066.thumb.webp, /img/bench/066.thumb@2x.webp 2x"><img src="/img/bench/066.thumb.jpg"></picture></a>
|
||||
|
||||
</div>
|
||||
<div class="nav">
|
||||
<a href="/bench/4.html">Prev</a>
|
||||
<a href="/">Home</a>
|
||||
<a href="#">Next</a>
|
||||
</nav>
|
||||
</main>
|
||||
<hr>
|
||||
<footer>
|
||||
<a href="https://wwww.aarongutierrez.com">www.aarongutierrez.com</a>
|
||||
<a href="https://www.frat.tech">www.frat.tech</a>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -55,7 +55,9 @@
|
||||
<a href="https://www.delts.org">∆T∆</a>, where I built and maintained our
|
||||
reimbursement tracking web application.</li>
|
||||
</ul>
|
||||
</section>
|
||||
<h2>Links</h2>
|
||||
<section>
|
||||
<ul>
|
||||
<li><a href="bench/1.html">My Benches</a></li>
|
||||
<li>Github: <a href="https://github.com/aarongut">aarongut</a></li>
|
||||
@@ -63,6 +65,7 @@
|
||||
<li><a href="campaign/index.html">Campaign Website</a></li>
|
||||
<li>Email: <a href="mailto:aaron@aarongutierrez.com">aaron@aarongutierrez.com</a>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
<hr>
|
||||
<footer>
|
||||
|
||||
9
pub.py
9
pub.py
@@ -47,7 +47,7 @@ def upload_root():
|
||||
upload_file('site.css')
|
||||
upload_file('pubkey.asc')
|
||||
|
||||
def upload_bench():
|
||||
def make_bench():
|
||||
imgs = os.listdir('img/bench')
|
||||
img_files = [f for f in filter_filenames(imgs, ['jpg', 'webp'])]
|
||||
num_imgs = int(len(img_files) / 4)
|
||||
@@ -69,6 +69,9 @@ def upload_bench():
|
||||
with open('bench/{}.html'.format(i//16 + 1), 'w') as out:
|
||||
out.write(template.format(page, prev_link, next_link))
|
||||
|
||||
def upload_bench():
|
||||
imgs = os.listdir('img/bench')
|
||||
img_files = [f for f in filter_filenames(imgs, ['jpg', 'webp'])]
|
||||
files = filter_filenames(os.listdir('bench'), 'html')
|
||||
for f in files:
|
||||
upload_file('bench/{}'.format(f))
|
||||
@@ -95,7 +98,7 @@ if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(description='Publish www.aarongutierrez.com')
|
||||
|
||||
pub_help = 'What to publish'
|
||||
pub_choices = ['all', 'root', 'img', 'bench', '15418', 'campaign']
|
||||
pub_choices = ['all', 'root', 'img', 'bench-local', 'bench', '15418', 'campaign']
|
||||
parser.add_argument('pub', choices=pub_choices, help=pub_help)
|
||||
|
||||
args = parser.parse_args()
|
||||
@@ -104,6 +107,8 @@ if __name__ == '__main__':
|
||||
upload_root()
|
||||
if args.pub == 'img' or args.pub == 'all':
|
||||
upload_img()
|
||||
if args.pub == 'bench-local' or args.pub == 'all':
|
||||
make_bench()
|
||||
if args.pub == 'bench' or args.pub == 'all':
|
||||
upload_bench()
|
||||
if args.pub == '15418' or args.pub == 'all':
|
||||
|
||||
Reference in New Issue
Block a user