Various changes

This commit is contained in:
Austen Adler 2022-04-17 19:10:01 -04:00
parent 9353106f24
commit 8401827475
4 changed files with 22 additions and 13 deletions

View File

@ -29,6 +29,8 @@ render_image() {
fi fi
fi fi
convert "${EXTRA_OPTIONS[@]}" "orig/${FILENAME}" "build/images/${FILENAME%.*}-${SIZE}.${EXTENSION}" convert "${EXTRA_OPTIONS[@]}" "orig/${FILENAME}" "build/images/${FILENAME%.*}-${SIZE}.${EXTENSION}"
exiftool -overwrite_original -all= -- "build/images/${FILENAME%.*}-${SIZE}.${EXTENSION}"
cwebp "build/images/${FILENAME%.*}-${SIZE}.${EXTENSION}" -o "build/images/${FILENAME%.*}-${SIZE}.webp"
} }
render_image 200 "5._Elementary_GLOBE_Climate_Book_Cover.jpg" --square render_image 200 "5._Elementary_GLOBE_Climate_Book_Cover.jpg" --square
@ -58,6 +60,5 @@ render_image full "Stanitski_Adler_JASON_Argonauts.png"
render_image full "Stanitski_JASON.jpg" render_image full "Stanitski_JASON.jpg"
echo "Stripping metadata" echo "Stripping metadata"
exiftool -overwrite_original -all= -- build/images/*.* exiftool -overwrite_original -all= -- build/images/*.{jpg,png}
echo "Website built $(date)" echo "Website built $(date)"

View File

@ -8,7 +8,7 @@ img.thumbnail {
-moz-border-radius: 50%; -moz-border-radius: 50%;
} }
img.big { img.big, picture.big, .big > img {
width: 100%; width: 100%;
} }

View File

@ -57,7 +57,15 @@ mixin bigimage(src, alt, ryanhawk)
- var loc = src.replace(/[.].+?$/, ""); - var loc = src.replace(/[.].+?$/, "");
- var ext = src.replace(/^.+[.]/, ""); - var ext = src.replace(/^.+[.]/, "");
a(href=`images/${loc}-full.${ext}`) a(href=`images/${loc}-full.${ext}`)
img.big(src=`images/${loc}-full.${ext}`, alt=alt) picture.big
source(type="image/webp" srcset=`images/${loc}-full.webp`)
source(srcset=`images/${loc}-full.${ext}`)
img(src=`images/${loc}-full.${ext}`)
// img(srcset=`images/${loc}-full.webp images/${loc}-full.${ext}` src=`images/${loc}-full.${ext}`, alt=alt)
// img(src=`images/${loc}-full.webp`)
figcaption figcaption
block block
if ryanhawk if ryanhawk

View File

@ -23,23 +23,23 @@ div.section
h4 NOAA Teacher at Sea books h4 NOAA Teacher at Sea books
div(style="flex-flow:row;") div(style="display: flex;flex-flow:row;")
div(style="") div(style="padding: 2rem;")
p Teacher at Sea: Miss Cook's Voyage on the Ronald H. Brown
img(src="images/1._TAS_Miss_Cook_Book_Cover-215.png") img(src="images/1._TAS_Miss_Cook_Book_Cover-215.png")
p Teacher at Sea: Miss Cook's Voyage on the Ronald H. Brown
div(style="") div(style="padding: 2rem;")
p Teacher in the Air: Dr. Diane's Flight with the NOAA Hurricane Hunters
img(src="images/2._TIA_Book_Cover-215.png") img(src="images/2._TIA_Book_Cover-215.png")
p Teacher in the Air: Dr. Diane's Flight with the NOAA Hurricane Hunters
div(style="") div(style="padding: 2rem;")
p Teacher at Sea, Mrs. Armwood's Hydrographic Adventure on the NOAA Ship FAIRWEATHER
img(src="images/3._TAS_Hydrography_Book_Cover-215.png") img(src="images/3._TAS_Hydrography_Book_Cover-215.png")
p Teacher at Sea, Mrs. Armwood's Hydrographic Adventure on the NOAA Ship FAIRWEATHER
div(style="") div(style="padding: 2rem;")
p Teacher at Sea: Mr. Tanenbaum Explores Atlantic Fisheries on the NOAA Ship Henry B. Bigelow
img(src="images/4._TAS_Fisheries_book_Cover-215.png") img(src="images/4._TAS_Fisheries_book_Cover-215.png")
p Teacher at Sea: Mr. Tanenbaum Explores Atlantic Fisheries on the NOAA Ship Henry B. Bigelow
br br
p p
| Diane authored/co-authored four NOAA Teacher at Sea (TAS) books and accompanying teacher activities between 2005 and 2009. The updated TAS website will soon feature the books and lessons here: | Diane authored/co-authored four NOAA Teacher at Sea (TAS) books and accompanying teacher activities between 2005 and 2009. The updated TAS website will soon feature the books and lessons here: