diff options
author | clarkzjw <[email protected]> | 2023-03-10 21:14:40 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-03-10 21:14:40 -0800 |
commit | 78d996f287ecc2c4ab8c4580f8d2ba0a1eed963e (patch) | |
tree | c7575cadabf63d58f230bb61ae39db971c0c0865 | |
parent | f68bb4719a4da7115953cc2ab10f20baee329741 (diff) | |
download | photo-78d996f287ecc2c4ab8c4580f8d2ba0a1eed963e.tar.gz |
update caption
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | bot/bot.py | 2 | ||||
-rw-r--r-- | site/Gemfile.lock | 3 | ||||
-rw-r--r-- | site/index.html | 4 |
4 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,4 @@ | |||
1 | site/_data/photos.json | ||
1 | .env | 2 | .env |
2 | pg.yml | 3 | pg.yml |
3 | .idea/ | 4 | .idea/ |
@@ -111,7 +111,7 @@ def upload_to_s3(key_name: str, file: bytes): | |||
111 | print(f' {bucket["Name"]}') | 111 | print(f' {bucket["Name"]}') |
112 | return False | 112 | return False |
113 | 113 | ||
114 | response = client.put_object(Body=file, Bucket=bucket_name, Key=key_name, ContentType="image/webp") | 114 | response = client.put_object(Body=file, Bucket=bucket_name, Key=key_name, ContentType="application/json") |
115 | status = response["ResponseMetadata"]["HTTPStatusCode"] | 115 | status = response["ResponseMetadata"]["HTTPStatusCode"] |
116 | if status == 200: | 116 | if status == 200: |
117 | print("upload {} to {} succeed".format(key_name, bucket_name)) | 117 | print("upload {} to {} succeed".format(key_name, bucket_name)) |
diff --git a/site/Gemfile.lock b/site/Gemfile.lock index 1cb0959..df95b15 100644 --- a/site/Gemfile.lock +++ b/site/Gemfile.lock | |||
@@ -210,6 +210,8 @@ GEM | |||
210 | jekyll-feed (~> 0.9) | 210 | jekyll-feed (~> 0.9) |
211 | jekyll-seo-tag (~> 2.1) | 211 | jekyll-seo-tag (~> 2.1) |
212 | minitest (5.17.0) | 212 | minitest (5.17.0) |
213 | nokogiri (1.14.2-arm64-darwin) | ||
214 | racc (~> 1.4) | ||
213 | nokogiri (1.14.2-x86_64-linux) | 215 | nokogiri (1.14.2-x86_64-linux) |
214 | racc (~> 1.4) | 216 | racc (~> 1.4) |
215 | octokit (4.25.1) | 217 | octokit (4.25.1) |
@@ -250,6 +252,7 @@ GEM | |||
250 | webrick (1.8.1) | 252 | webrick (1.8.1) |
251 | 253 | ||
252 | PLATFORMS | 254 | PLATFORMS |
255 | arm64-darwin-22 | ||
253 | x86_64-linux | 256 | x86_64-linux |
254 | 257 | ||
255 | DEPENDENCIES | 258 | DEPENDENCIES |
diff --git a/site/index.html b/site/index.html index 8071de9..f8b34a1 100644 --- a/site/index.html +++ b/site/index.html | |||
@@ -37,6 +37,10 @@ title: Photos | |||
37 | </a> | 37 | </a> |
38 | <figcaption> | 38 | <figcaption> |
39 | {{ photo.caption | strip | markdownify }} | 39 | {{ photo.caption | strip | markdownify }} |
40 | <span class="desc photo-exif" style="font-size:9.0pt" > | ||
41 | {{ photo.model | strip }} | ||
42 | </span> | ||
43 | <br> | ||
40 | <span class="desc photo-metadata"> | 44 | <span class="desc photo-metadata"> |
41 | {{ photo.createdAt | date: "%Y/%m/%d (%a)" }} | 45 | {{ photo.createdAt | date: "%Y/%m/%d (%a)" }} |
42 | </span> | 46 | </span> |