From 2764ce38ff89667fc4073fb66cdd634caaffd613 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 12 Mar 2015 13:01:16 -0700 Subject: Fix #9 - ekphrastisize some poems For ekphrastic articles, add `ekphrastic` node to YAML metadata. This node includes subnodes `image`, `title`, `alt`, `link`, and `class`. `image` provides a link to the local image--just include the file name with the extension, not the folder (all images should be in /img/.) `title` provides the title of the image, and the alt-text, if there is no `alt` node. `alt`, if it exists, provides the alt text for the image. `link`, if present, wraps the image in an `` tag--it should point to the source web page of the ekphrastic image. `class`, if present, sets the class(es) for the image, for styling. In this commit, I've set `ekphrastic` on the four articles that have them so far: 'The Death Zone,' 'AMBER alert,' 'The moon is gone,' and 'Man.' I've also updated .template.html with the changes, and updated README.md to reflect the changes in YAML structure. --- .template.html | 40 +++++++++- 100-lines.html | 5 +- README.md | 5 ++ about-the-author.html | 83 ++++++++++--------- amber-alert.html | 16 ++-- and.html | 7 +- angeltoabraham.html | 11 ++- apollo11.html | 15 ++-- arspoetica.html | 11 ++- art.html | 9 +-- axe.html | 11 ++- big-dipper.html | 9 +-- boar.html | 13 ++- boy_bus.html | 11 ++- building.html | 11 ++- call-me-aural-pleasure.html | 9 +-- cereal.html | 11 ++- cold-wind.html | 5 +- creation-myth.html | 11 ++- css/common.css | 5 +- deadman.html | 5 +- death-zone.html | 28 ++++--- deathstrumpet.html | 13 ++- dream.html | 13 ++- early.html | 13 ++- elegyforanalternateself.html | 7 +- epigraph.html | 5 +- ex-machina.html | 21 +++-- exasperated.html | 17 ++-- father.html | 11 ++- feedingtheraven.html | 11 ++- finding-the-lion.html | 15 ++-- fire.html | 7 +- found-typewriter-poem.html | 9 +-- hands.html | 15 ++-- hard-game.html | 15 ++-- hardware.html | 11 ++- howithappened.html | 5 +- howtoread.html | 29 ++++--- hymnal.html | 17 ++-- i-am.html | 5 +- i-think-its-you.html | 7 +- i-wanted-to-tell-you-something.html | 17 ++-- in-bed.html | 111 +++++++++++++------------- index.html | 37 +++++---- initial-conditions.html | 17 ++-- january.html | 17 ++-- joke.html | 13 ++- lappel-du-vide.html | 29 ++++--- largest-asteroid.html | 5 +- last-bastion.html | 9 +-- last-passenger.html | 9 +-- leaf.html | 9 +-- leg.html | 37 +++++---- likingthings.html | 9 +-- listen.html | 7 +- love-as-god.html | 17 ++-- lovesong.html | 13 ++- man.html | 24 +++--- moon-drowning.html | 11 ++- moongone.html | 16 ++-- mountain.html | 11 ++- movingsideways.html | 25 +++--- music-433.html | 15 ++-- no-nothing.html | 7 +- notes.html | 13 ++- nothing-is-ever-over.html | 5 +- onformalpoetry.html | 5 +- options.html | 9 +-- ouroboros_memory.html | 17 ++-- paul.html | 65 ++++++++------- philosophy.html | 7 +- phone.html | 11 ++- planks.html | 15 ++-- plant.html | 7 +- poetry-time.html | 17 ++-- prelude.html | 5 +- problems.html | 29 ++++--- proverbs.html | 19 +++-- punch.html | 9 +-- purpose-dogs.html | 9 +-- question.html | 11 ++- real-writer.html | 5 +- reports.html | 19 +++-- riptide_memory.html | 15 ++-- ronaldmcdonald.html | 19 +++-- roughgloves.html | 5 +- sapling.html | 9 +-- seasonal-affective-disorder.html | 17 ++-- sense-of-it.html | 11 ++- serengeti.html | 5 +- shed.html | 11 ++- shipwright.html | 5 +- sixteenth-chapel.html | 17 ++-- snow.html | 13 ++- something-simple.html | 5 +- spittle.html | 5 +- squirrel.html | 5 +- src/amber-alert.txt | 7 +- src/death-zone.txt | 7 +- src/man.txt | 10 ++- src/moongone.txt | 10 ++- stagnant.html | 9 +-- statements-frag.html | 43 +++++----- stayed-on-the-bus.html | 5 +- stump.html | 13 ++- swansong-alt.html | 5 +- swansong.html | 5 +- swear.html | 17 ++-- table_contents.html | 155 ++++++++++++++++++------------------ tapestry.html | 11 ++- telemarketer.html | 25 +++--- the-night-we-met.html | 13 ++- the-sea_the-beach.html | 13 ++- theoceanoverflowswithcamels.html | 5 +- time-looks-up-to-the-sky.html | 15 ++-- todaniel.html | 11 ++- toilet.html | 11 ++- toothpaste.html | 9 +-- treatise.html | 17 ++-- underwear.html | 11 ++- wallpaper.html | 9 +-- weplayedthosegamestoo.html | 5 +- when-im-sorry-i.html | 9 +-- window.html | 11 ++- words-meaning.html | 9 +-- worse-looking-over.html | 5 +- writing.html | 9 +-- x-ray.html | 13 ++- yellow.html | 9 +-- 130 files changed, 955 insertions(+), 1012 deletions(-) diff --git a/.template.html b/.template.html index 6308d10..1d6a405 100644 --- a/.template.html +++ b/.template.html @@ -62,9 +62,43 @@ $endif$ -
- $body$ -
+ $if(ekphrastic.image)$ +
+ $if(ekphrastic.link)$ + + $ekphrastic.alt$ + + $else$ + $ekphrastic.alt$ + $endif$ +
+ $endif$ + +
$body$