-
Notifications
You must be signed in to change notification settings - Fork 1
Try to show article preview in icon #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,14 @@ | ||||||||||||||||||||||||||||||
| {% if include.pdf %} | ||||||||||||||||||||||||||||||
| <object | ||||||||||||||||||||||||||||||
| data="{{ include.pdf | relative_url | uri_escape }}#page=1&view=FitH" | ||||||||||||||||||||||||||||||
| type="application/pdf" | ||||||||||||||||||||||||||||||
| aria-label="{{ include.title | default: 'PDF preview' | regex_strip }}" | ||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||
| <img | ||||||||||||||||||||||||||||||
| src="{{ include.image | relative_url | uri_escape }}" | ||||||||||||||||||||||||||||||
| alt="{{ include.title | default: 'preview image' | regex_strip }}" | ||||||||||||||||||||||||||||||
| loading="lazy" | ||||||||||||||||||||||||||||||
| {% include fallback.html %} | ||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
| <img | |
| src="{{ include.image | relative_url | uri_escape }}" | |
| alt="{{ include.title | default: 'preview image' | regex_strip }}" | |
| loading="lazy" | |
| {% include fallback.html %} | |
| > | |
| {% if include.image %} | |
| <img | |
| src="{{ include.image | relative_url | uri_escape }}" | |
| alt="{{ include.title | default: 'preview image' | regex_strip }}" | |
| loading="lazy" | |
| {% include fallback.html %} | |
| > | |
| {% endif %} |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,6 +2,9 @@ | |||||||
| {% for poster in posters %} | ||||||||
| <div class="citation-container"> | ||||||||
| <div class="citation"> | ||||||||
| <a href="{{ poster.pdf | relative_url }}" target="_blank" class="citation-image" aria-label="{{ poster.title | default: 'poster link' | regex_strip }}"> | ||||||||
| {% include pdf-preview.html pdf=poster.pdf image=poster.image title=poster.title %} | ||||||||
|
||||||||
| {% include pdf-preview.html pdf=poster.pdf image=poster.image title=poster.title %} | |
| {% assign poster_image = poster.image | default: '/assets/img/poster-placeholder.png' %} | |
| {% include pdf-preview.html pdf=poster.pdf image=poster_image title=poster.title %} |
Uh oh!
There was an error while loading. Please reload this page.