Skip to content

Commit

Permalink
Add some more photos
Browse files Browse the repository at this point in the history
  • Loading branch information
apexskier committed Oct 13, 2021
1 parent 8930159 commit ff768d9
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 9 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions content/photos/2021-09-05-carlsbad-cactus/index.md
@@ -0,0 +1,18 @@
---
title: Little Cactus
date: 2021-10-12 19:42:00
tags: [outdoors]
images:
- https://content.camlittle.com/photos/2021-09-05-carlsbad-cactus_1280.jpg

photo: 2021-09-05-carlsbad-cactus
camera: Sony α6300
location: Carlsbad Caverns National Park, NM

color:
top: '#737369'
right: '#918f89'
left: '#767470'
bottom: '#686a5f'
average: '#85827b'
---
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions content/photos/2021-09-05-carlsbad-snake/index.md
@@ -0,0 +1,20 @@
---
title: Little Snake
date: 2021-10-12 19:41:00
tags: [outdoors]
images:
- https://content.camlittle.com/photos/2021-09-05-carlsbad-snake_1280.jpg

photo: 2021-09-05-carlsbad-snake
camera: Sony α6300
location: Carlsbad Caverns National Park, NM

color:
top: '#968e8a'
right: '#a49c9a'
left: '#a7a1a0'
bottom: '#a29c9a'
average: '#9d9694'
---

![For scale](for-scale.jpeg)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions content/photos/2021-09-11-lightning/index.md
@@ -0,0 +1,18 @@
---
title: "Lightning"
date: 2021-10-12 19:43:00
tags: ["outdoors"]
images:
- https://content.camlittle.com/photos/2021-09-11-lightning_1280.jpg

photo: 2021-09-11-lightning
camera: Sony α6300
location: San Rafael Reef, UT

color:
top: '#cfc3dd'
right: '#cdbede'
left: '#7f6b91'
bottom: '#221d27'
average: '#c0b2ce'
---
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions content/photos/2021-10-10-seasonal-transition/index.md
@@ -0,0 +1,18 @@
---
title: "Seasonal Transition"
date: 2021-10-12 19:44:00
tags: ["outdoors"]
images:
- https://content.camlittle.com/photos/2021-10-10-seasonal-transition_1280.jpg

photo: 2021-10-10-seasonal-transition
camera: Sony α6300
location: Cache National Forest⁩, UT

color:
top: '#dcdde1'
right: '#7a7a7f'
left: '#9f9b9c'
bottom: '#453830'
average: '#948f90'
---
4 changes: 2 additions & 2 deletions layouts/photos/single.html
Expand Up @@ -45,9 +45,9 @@
<div>
<h1>{{ .Title }}</h1>
<p>
{{ partial "time" (default .Params.captureDate .Date) }}
<span title="Date">📅</span> {{ partial "time" (default .Params.captureDate .Date) }}
{{ with .Params.location }}<br />
{{ . }}{{ end }}
<span title="Location">📍</span> {{ . }}{{ end }}
</p>
</div>

Expand Down
14 changes: 7 additions & 7 deletions photo.js
Expand Up @@ -31,6 +31,13 @@ const [, , file, name] = process.argv;
const filePrefix = `content/photos/${name}/${name}`;
const inputBuffer = await readFile(file);

process.env["AWS_PROFILE"] = "digitalocean";

const s3 = new S3({
endpoint: "sfo2.digitaloceanspaces.com",
region: "sfo2",
});

await exec(`hugo new --kind photos photos/${name}`);

const work = [];
Expand Down Expand Up @@ -64,13 +71,6 @@ const [, , file, name] = process.argv;

const image = sharp(inputBuffer);

process.env["AWS_PROFILE"] = "digitalocean";

const s3 = new S3({
endpoint: "sfo2.digitaloceanspaces.com",
region: "sfo2",
});

for (const format of ["jpg", "webp"]) {
for (const res of [128, 640, 1280, 2880]) {
const outputFilename = `${filePrefix}_${res}.${format}`;
Expand Down

0 comments on commit ff768d9

Please sign in to comment.