Added date caption to images, and other cleanup.
This commit is contained in:
parent
ca9a912ed8
commit
c9036e47e3
|
@ -0,0 +1,13 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="refresh" content="0; url=articles.html">
|
||||||
|
<script>
|
||||||
|
window.location.href = window.location.origin + "/articles.html";
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
|
|
@ -49,7 +49,7 @@ private void renderSpeciesCards(PlantData data) {
|
||||||
if (imagePairs.length > 0) {
|
if (imagePairs.length > 0) {
|
||||||
string imageFile = imagePairs[0].filename;
|
string imageFile = imagePairs[0].filename;
|
||||||
string thumbnailFile = imagePairs[0].thumbnailFilename;
|
string thumbnailFile = imagePairs[0].thumbnailFilename;
|
||||||
string imgTag = "<img src=\"" ~ imageFile ~ "\"/>";
|
string imgTag = "<img src=\"" ~ (thumbnailFile is null ? imageFile : thumbnailFile) ~ "\"/>";
|
||||||
card = replaceFirst(card, "!IMAGE!", imgTag);
|
card = replaceFirst(card, "!IMAGE!", imgTag);
|
||||||
} else {
|
} else {
|
||||||
card = replaceFirst(card, "!IMAGE!", "");
|
card = replaceFirst(card, "!IMAGE!", "");
|
||||||
|
@ -85,15 +85,7 @@ private void renderSpeciesPages(PlantData data) {
|
||||||
ImageFilePair[] imagePairs = getPlantImages(plant.identifier);
|
ImageFilePair[] imagePairs = getPlantImages(plant.identifier);
|
||||||
Appender!string imagesApp;
|
Appender!string imagesApp;
|
||||||
foreach (imagePair; imagePairs) {
|
foreach (imagePair; imagePairs) {
|
||||||
import std.format;
|
imagesApp ~= generatePhotoSwipeElement(imagePair);
|
||||||
const imgTpl = "<a href=\"%s\" data-pswp-width=\"%d\" data-pswp-height=\"%d\" target=\"_blank\">\n" ~
|
|
||||||
" <img src=\"%s\" alt=\"\"/>\n" ~
|
|
||||||
"</a>\n";
|
|
||||||
imagesApp ~= format!(imgTpl)(
|
|
||||||
"../../" ~ imagePair.filename,
|
|
||||||
imagePair.width, imagePair.height,
|
|
||||||
"../../" ~ imagePair.thumbnailFilename,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
card = replaceFirst(card, "!IMAGES!", imagesApp[]);
|
card = replaceFirst(card, "!IMAGES!", imagesApp[]);
|
||||||
plantDivsApp ~= card;
|
plantDivsApp ~= card;
|
||||||
|
@ -113,6 +105,29 @@ private void renderSpeciesPages(PlantData data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string generatePhotoSwipeElement(ImageFilePair imagePair) {
|
||||||
|
import std.format;
|
||||||
|
import std.datetime;
|
||||||
|
import std.typecons;
|
||||||
|
const linkFormat = "<a href=\"%s\" data-pswp-width=\"%d\" data-pswp-height=\"%d\" target=\"_blank\">";
|
||||||
|
const thumbnailFormat = "<img src=\"%s\" alt=\"\" style=\"display: block;\"/>";
|
||||||
|
const captionFormat = "<time datetime=\"%04d-%02d-%02d\">%s</time>";
|
||||||
|
string linkTag = format!(linkFormat)("../../" ~ imagePair.filename, imagePair.width, imagePair.height);
|
||||||
|
string thumbnailTag = format!(thumbnailFormat)("../../" ~ imagePair.thumbnailFilename);
|
||||||
|
Appender!string app;
|
||||||
|
app ~= linkTag;
|
||||||
|
app ~= "\n ";
|
||||||
|
app ~= thumbnailTag;
|
||||||
|
Nullable!DateTime imageTimestamp = getImageTimestamp(imagePair.filename);
|
||||||
|
if (!imageTimestamp.isNull) {
|
||||||
|
DateTime dt = imageTimestamp.get;
|
||||||
|
app ~= "\n ";
|
||||||
|
app ~= format!(captionFormat)(dt.year, dt.month, dt.day, dt.date.toSimpleString);
|
||||||
|
}
|
||||||
|
app ~= "\n</a>\n";
|
||||||
|
return app[];
|
||||||
|
}
|
||||||
|
|
||||||
ptrdiff_t indexOfStr(string source, string target) {
|
ptrdiff_t indexOfStr(string source, string target) {
|
||||||
for (size_t i = 0; i < source.length - target.length; i++) {
|
for (size_t i = 0; i < source.length - target.length; i++) {
|
||||||
if (source[i..i+target.length] == target) {
|
if (source[i..i+target.length] == target) {
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
<p>!PLANTING_INFO!</p>
|
<p>!PLANTING_INFO!</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
!IMAGES!
|
!IMAGES!
|
||||||
</div>
|
</div>
|
||||||
|
|
36
garden.html
36
garden.html
|
@ -103,7 +103,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/capsicum-annuum-var-glabriusculum/Capsicum_annuum-FWF.jpg"/>
|
<img src="images/garden/species/capsicum-annuum-var-glabriusculum/Capsicum_annuum-FWF.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/juniperus-conferta/Juniperus_conferta_blue_pacific--Javier-Alejandro--CC-BY-NC-ND.jpg"/>
|
<img src="images/garden/species/juniperus-conferta/Juniperus_conferta_blue_pacific--Javier-Alejandro--CC-BY-NC-ND.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/clinopodium-brownei/clinopodium_brownei-keim2-1-e1602619542587.jpg"/>
|
<img src="images/garden/species/clinopodium-brownei/clinopodium_brownei-keim2-1-e1602619542587.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -160,7 +160,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/nepeta-cataria/catnip-test.jpg"/>
|
<img src="images/garden/species/nepeta-cataria/catnip-test.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -179,7 +179,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/coriandrum-sativum/Coriandrum_sativum--Forest-and-Kim-Starr--CC-BY.jpg"/>
|
<img src="images/garden/species/coriandrum-sativum/Coriandrum_sativum--Forest-and-Kim-Starr--CC-BY.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -198,7 +198,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/salvia-misella/salvia-misella.jpg"/>
|
<img src="images/garden/species/salvia-misella/salvia-misella.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -217,7 +217,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/psychotria-nervosa/Psychotria_nervosa-JennyEvans_CCBY-NC2.0.jpg"/>
|
<img src="images/garden/species/psychotria-nervosa/Psychotria_nervosa-JennyEvans_CCBY-NC2.0.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -236,7 +236,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/thymus-vulgaris/Thymus-vulgaris--CT-Arzneimittel-GmbH--CC-BY-ND.jpg"/>
|
<img src="images/garden/species/thymus-vulgaris/Thymus-vulgaris--CT-Arzneimittel-GmbH--CC-BY-ND.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -255,7 +255,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/asparagus-aethiopicus/foxtail_fern_asparagus_meyeri.jpg"/>
|
<img src="images/garden/species/asparagus-aethiopicus/foxtail_fern_asparagus_meyeri.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -274,7 +274,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/allium-tuberosum/Allium_tuberosum-ingarden1.jpg"/>
|
<img src="images/garden/species/allium-tuberosum/Allium_tuberosum-ingarden1.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -293,7 +293,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/trandescantia-zebrina/Tradescantia-zebrina_AdobeStock_492957504_1200px.jpg"/>
|
<img src="images/garden/species/trandescantia-zebrina/Tradescantia-zebrina_AdobeStock_492957504_1200px.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -312,7 +312,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/capsicum-annuum-var-jalapeno/jalapeno.jpg"/>
|
<img src="images/garden/species/capsicum-annuum-var-jalapeno/jalapeno.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -331,7 +331,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/nephrolepis-obliterata/nephrolepis-obliterata.jpg"/>
|
<img src="images/garden/species/nephrolepis-obliterata/nephrolepis-obliterata.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -350,7 +350,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/tagetes-erecta/tagetes-erecta.jpg"/>
|
<img src="images/garden/species/tagetes-erecta/tagetes-erecta.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -369,7 +369,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/plectranthus-mona-lavender/plectranthus-0773400934.jpg"/>
|
<img src="images/garden/species/plectranthus-mona-lavender/plectranthus-0773400934.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -388,7 +388,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/ruellia-caroliniensis/Ruellia-carolinensis-Carolina-Wild-Petunia-by-Marti-Webster-e1525962513541.jpg"/>
|
<img src="images/garden/species/ruellia-caroliniensis/Ruellia-carolinensis-Carolina-Wild-Petunia-by-Marti-Webster-e1525962513541.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -407,7 +407,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/asclepias-curassavica/Asclepias_curassavica-Thekkady-2016-12-03-001.jpg"/>
|
<img src="images/garden/species/asclepias-curassavica/Asclepias_curassavica-Thekkady-2016-12-03-001.thumb.jpg"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="species-card">
|
<div class="species-card">
|
||||||
<section>
|
<section>
|
||||||
|
@ -426,7 +426,7 @@
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
<img src="images/garden/species/teucrium-canadense/teucrium-canadense-perennials-20a__49095.jpg"/>
|
<img src="images/garden/species/teucrium-canadense/teucrium-canadense-perennials-20a__49095.thumb.jpg"/>
|
||||||
</div><!--__SPECIES_LIST_END__-->
|
</div><!--__SPECIES_LIST_END__-->
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="refresh" content="0; url=garden.html">
|
||||||
|
<script>
|
||||||
|
window.location.href = window.location.origin + "/garden.html";
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
</html>
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Planted from seed on the 2nd of March, 2024.</p>
|
<p>Planted from seed on the 2nd of March, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/garlic-chives-001/chives_20240310_113216.jpg" data-pswp-width="1836" data-pswp-height="2552" target="_blank">
|
<a href="../../images/garden/plants/garlic-chives-001/chives_20240310_113216.jpg" data-pswp-width="1836" data-pswp-height="2552" target="_blank">
|
||||||
<img src="../../images/garden/plants/garlic-chives-001/chives_20240310_113216.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/garlic-chives-001/chives_20240310_113216.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted in February, 2024.</p>
|
<p>Transplanted in February, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/tropical-milkweed-001/tropical-milkweed_20240310_113353.jpg" data-pswp-width="1836" data-pswp-height="2986" target="_blank">
|
<a href="../../images/garden/plants/tropical-milkweed-001/tropical-milkweed_20240310_113353.jpg" data-pswp-width="1836" data-pswp-height="2986" target="_blank">
|
||||||
<img src="../../images/garden/plants/tropical-milkweed-001/tropical-milkweed_20240310_113353.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/tropical-milkweed-001/tropical-milkweed_20240310_113353.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted in February, 2024.</p>
|
<p>Transplanted in February, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/foxtail-fern-001/foxtail-fern_20240310_113229.jpg" data-pswp-width="1836" data-pswp-height="2472" target="_blank">
|
<a href="../../images/garden/plants/foxtail-fern-001/foxtail-fern_20240310_113229.jpg" data-pswp-width="1836" data-pswp-height="2472" target="_blank">
|
||||||
<img src="../../images/garden/plants/foxtail-fern-001/foxtail-fern_20240310_113229.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/foxtail-fern-001/foxtail-fern_20240310_113229.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -89,7 +89,6 @@
|
||||||
<p>Transplanted in February, 2024.</p>
|
<p>Transplanted in February, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted from a 1 gallon pot, on February 10th, 2024.</p>
|
<p>Transplanted from a 1 gallon pot, on February 10th, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/bird-pepper-001/bird-pepper_20240310_113310.jpg" data-pswp-width="1836" data-pswp-height="2338" target="_blank">
|
<a href="../../images/garden/plants/bird-pepper-001/bird-pepper_20240310_113310.jpg" data-pswp-width="1836" data-pswp-height="2338" target="_blank">
|
||||||
<img src="../../images/garden/plants/bird-pepper-001/bird-pepper_20240310_113310.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/bird-pepper-001/bird-pepper_20240310_113310.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted on the 2nd of March, 2024.</p>
|
<p>Transplanted on the 2nd of March, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/jalapeno-001/jalapeno_20240310_113329.jpg" data-pswp-width="1836" data-pswp-height="2860" target="_blank">
|
<a href="../../images/garden/plants/jalapeno-001/jalapeno_20240310_113329.jpg" data-pswp-width="1836" data-pswp-height="2860" target="_blank">
|
||||||
<img src="../../images/garden/plants/jalapeno-001/jalapeno_20240310_113329.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/jalapeno-001/jalapeno_20240310_113329.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted on the 10th of February, 2024.</p>
|
<p>Transplanted on the 10th of February, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/brownes-savory-001/browns-savory_20240310_113313.jpg" data-pswp-width="1794" data-pswp-height="1623" target="_blank">
|
<a href="../../images/garden/plants/brownes-savory-001/browns-savory_20240310_113313.jpg" data-pswp-width="1794" data-pswp-height="1623" target="_blank">
|
||||||
<img src="../../images/garden/plants/brownes-savory-001/browns-savory_20240310_113313.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/brownes-savory-001/browns-savory_20240310_113313.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Planted from seed on the 2nd of March, 2024.</p>
|
<p>Planted from seed on the 2nd of March, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/coriander-001/cilantro_20240310_113220.jpg" data-pswp-width="1836" data-pswp-height="2768" target="_blank">
|
<a href="../../images/garden/plants/coriander-001/cilantro_20240310_113220.jpg" data-pswp-width="1836" data-pswp-height="2768" target="_blank">
|
||||||
<img src="../../images/garden/plants/coriander-001/cilantro_20240310_113220.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/coriander-001/cilantro_20240310_113220.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted on the 2nd of March, 2024.</p>
|
<p>Transplanted on the 2nd of March, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/blue-juniper-001/blue-juniper_20240310_113334.jpg" data-pswp-width="1836" data-pswp-height="2673" target="_blank">
|
<a href="../../images/garden/plants/blue-juniper-001/blue-juniper_20240310_113334.jpg" data-pswp-width="1836" data-pswp-height="2673" target="_blank">
|
||||||
<img src="../../images/garden/plants/blue-juniper-001/blue-juniper_20240310_113334.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/blue-juniper-001/blue-juniper_20240310_113334.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted from a small pot bought at a pet store, sometime in October, 2023.</p>
|
<p>Transplanted from a small pot bought at a pet store, sometime in October, 2023.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/catnip-001/catnip_20240310_113153.jpg" data-pswp-width="1836" data-pswp-height="2810" target="_blank">
|
<a href="../../images/garden/plants/catnip-001/catnip_20240310_113153.jpg" data-pswp-width="1836" data-pswp-height="2810" target="_blank">
|
||||||
<img src="../../images/garden/plants/catnip-001/catnip_20240310_113153.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/catnip-001/catnip_20240310_113153.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted on the 2nd of March, 2024.</p>
|
<p>Transplanted on the 2nd of March, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/kimberley-fern-001/fern_20240310_113359.jpg" data-pswp-width="1836" data-pswp-height="2420" target="_blank">
|
<a href="../../images/garden/plants/kimberley-fern-001/fern_20240310_113359.jpg" data-pswp-width="1836" data-pswp-height="2420" target="_blank">
|
||||||
<img src="../../images/garden/plants/kimberley-fern-001/fern_20240310_113359.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/kimberley-fern-001/fern_20240310_113359.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted in February, 2024.</p>
|
<p>Transplanted in February, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/mona-lavender-001/plectranthus_20240310_113255.jpg" data-pswp-width="1836" data-pswp-height="2576" target="_blank">
|
<a href="../../images/garden/plants/mona-lavender-001/plectranthus_20240310_113255.jpg" data-pswp-width="1836" data-pswp-height="2576" target="_blank">
|
||||||
<img src="../../images/garden/plants/mona-lavender-001/plectranthus_20240310_113255.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/mona-lavender-001/plectranthus_20240310_113255.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted on the 10th of February, 2024.</p>
|
<p>Transplanted on the 10th of February, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/dwarf-coffee-001/dwarf-coffee_20240310_113259.jpg" data-pswp-width="1836" data-pswp-height="2036" target="_blank">
|
<a href="../../images/garden/plants/dwarf-coffee-001/dwarf-coffee_20240310_113259.jpg" data-pswp-width="1836" data-pswp-height="2036" target="_blank">
|
||||||
<img src="../../images/garden/plants/dwarf-coffee-001/dwarf-coffee_20240310_113259.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/dwarf-coffee-001/dwarf-coffee_20240310_113259.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted on the 10th of February, 2024.</p>
|
<p>Transplanted on the 10th of February, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/carolina-petunia-001/perennial-petunia_20240310_113346.jpg" data-pswp-width="1836" data-pswp-height="1914" target="_blank">
|
<a href="../../images/garden/plants/carolina-petunia-001/perennial-petunia_20240310_113346.jpg" data-pswp-width="1836" data-pswp-height="1914" target="_blank">
|
||||||
<img src="../../images/garden/plants/carolina-petunia-001/perennial-petunia_20240310_113346.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/carolina-petunia-001/perennial-petunia_20240310_113346.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted on the 9th of March, 2024.</p>
|
<p>Transplanted on the 9th of March, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/creeping-sage-001/creeping-sage_20240310_113303.jpg" data-pswp-width="1836" data-pswp-height="1758" target="_blank">
|
<a href="../../images/garden/plants/creeping-sage-001/creeping-sage_20240310_113303.jpg" data-pswp-width="1836" data-pswp-height="1758" target="_blank">
|
||||||
<img src="../../images/garden/plants/creeping-sage-001/creeping-sage_20240310_113303.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/creeping-sage-001/creeping-sage_20240310_113303.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Planted from seed in February, 2024.</p>
|
<p>Planted from seed in February, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/marigold-001/marigold_20240310_113234.jpg" data-pswp-width="1148" data-pswp-height="1328" target="_blank">
|
<a href="../../images/garden/plants/marigold-001/marigold_20240310_113234.jpg" data-pswp-width="1148" data-pswp-height="1328" target="_blank">
|
||||||
<img src="../../images/garden/plants/marigold-001/marigold_20240310_113234.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/marigold-001/marigold_20240310_113234.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted on the 9th of March, 2024.</p>
|
<p>Transplanted on the 9th of March, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/wood-sage-001/woody-sage_20240310_113339.jpg" data-pswp-width="1836" data-pswp-height="2695" target="_blank">
|
<a href="../../images/garden/plants/wood-sage-001/woody-sage_20240310_113339.jpg" data-pswp-width="1836" data-pswp-height="2695" target="_blank">
|
||||||
<img src="../../images/garden/plants/wood-sage-001/woody-sage_20240310_113339.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/wood-sage-001/woody-sage_20240310_113339.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Planted from seed in March, 2024.</p>
|
<p>Planted from seed in March, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/thyme-001/thyme_20240310_113210.jpg" data-pswp-width="1836" data-pswp-height="2282" target="_blank">
|
<a href="../../images/garden/plants/thyme-001/thyme_20240310_113210.jpg" data-pswp-width="1836" data-pswp-height="2282" target="_blank">
|
||||||
<img src="../../images/garden/plants/thyme-001/thyme_20240310_113210.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/thyme-001/thyme_20240310_113210.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
<p>Transplanted on the 8th of March, 2024.</p>
|
<p>Transplanted on the 8th of March, 2024.</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Images</h3>
|
|
||||||
<div class="pswp-gallery">
|
<div class="pswp-gallery">
|
||||||
<a href="../../images/garden/plants/inchplant-001/inchplant_20240310_113409.jpg" data-pswp-width="1599" data-pswp-height="1566" target="_blank">
|
<a href="../../images/garden/plants/inchplant-001/inchplant_20240310_113409.jpg" data-pswp-width="1599" data-pswp-height="1566" target="_blank">
|
||||||
<img src="../../images/garden/plants/inchplant-001/inchplant_20240310_113409.thumb.jpg" alt=""/>
|
<img src="../../images/garden/plants/inchplant-001/inchplant_20240310_113409.thumb.jpg" alt="" style="display: block;"/>
|
||||||
|
<time datetime="2024-03-10">2024-Mar-10</time>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,6 +3,14 @@
|
||||||
# Helper script that copies files to the server.
|
# Helper script that copies files to the server.
|
||||||
# You need to have authenticated access to the server via SSH to use this.
|
# You need to have authenticated access to the server via SSH to use this.
|
||||||
|
|
||||||
|
# First we build the garden pages from the data in the "garden-plant-data.ods"
|
||||||
|
# spreadsheet (edited via LibreOffice Calc) and the images we've added for each
|
||||||
|
# plant in ./images/garden.
|
||||||
|
|
||||||
|
cd garden-data-gen
|
||||||
|
dub run
|
||||||
|
cd ..
|
||||||
|
|
||||||
# Note: Quite a few files are excluded from being uploaded to the website.
|
# Note: Quite a few files are excluded from being uploaded to the website.
|
||||||
# These are denoted with an "--exclude" parameter.
|
# These are denoted with an "--exclude" parameter.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue