Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
jamiefolsom opened this issue Oct 12, 2017 · 1 comment
Open

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

jamiefolsom opened this issue Oct 12, 2017 · 1 comment
Assignees

Comments

@jamiefolsom
Copy link
Member

jamiefolsom commented Oct 12, 2017

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
Copy link
Contributor

@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).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants