hofstra / coyote

TRACKING COYOTE, FROM TRICKSTER TO VARMINT AND BACK AGAIN
http://hofstra.github.io/coyote/
Other
0 stars 0 forks source link

As a reader, I want to see newspaper articles in context #6

Open jamiefolsom opened 6 years ago

jamiefolsom commented 6 years ago

Newspaper articles could include a clickable JPEG that shows the article in its original context. Right now, you get a clickable link back to the Library of Congress.

See: http://hofstra.github.io/coyote/sources/coyote-as-trickster/newspapers/east-oregonian-rancher-coyote/ -- is there a way for us to embed an image from LOC?

feralresearch commented 6 years ago

@jamiefolsom The LOC link points to a page with a custom inline PDF viewer, however it appears that these all have a corresponding URL to a JPG, which we could in theory pull into the coyote site.

I don't think this can be handled elegantly enough using only liquid, I would like to create something that: looks for the URL, makes sure it exists, downloads and thumbnails, embeds the link with proper formatting.

The logical thing to do would be to create a Jekyll plugin, but this won't work if we are using GitHub Pages to generate the site (which disables custom plugins for security reasons).

Alternatively I could probably do this client-side with some javascript injected into the page, but this seems a bit clunky (would totally work without changing our deployment pipeline though).

I would like to discuss the best strategy here - I'm leaning towards figuring out a way to inject our own pre-processing step somewhere into our publishing path because it could also be related to #7 (auto-processing of tags).