-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
Have preview and abbr in bibtex #1162
Comments
I think, you could change Line 16 in 9b14e42
|
As mentioned by @CheariX, a workaround for now could be to slightly change the code in <div class="col-sm-2">
{%- if entry.abbr -%}
<div class="abbr">
{%- if site.data.venues[entry.abbr] -%}
{%- assign venue_style = nil -%}
{%- if site.data.venues[entry.abbr].color != blank -%}
{%- assign venue_style = site.data.venues[entry.abbr].color | prepend: 'style="background-color:' | append: '"' -%}
{%- endif -%}
<abbr class="badge" {% if venue_style %}{{venue_style}}{% endif %}><a href="{{site.data.venues[entry.abbr].url}}">{{entry.abbr}}</a></abbr>
{%- else -%}
<abbr class="badge">{{entry.abbr}}</abbr>
{%- endif -%}
</div>
{%- endif -%}
{%- if entry.preview -%}
<div class="preview">
{% if entry.preview contains '://' -%}
<img class="preview z-depth-1 rounded" src="{{ entry.preview }}">
{%- else -%}
{%- assign entry_path = entry.preview | prepend: '/assets/img/publication_preview/' -%}
{% include figure.html
path=entry_path
class="preview z-depth-1 rounded"
alt=entry.preview -%}
{%- endif -%}
</div>
{%- endif -%}
</div> May not be the cleanest way but seems to work. |
Thanks! That worked |
I do not understand, why having both, Since Therefore, I would suggest to allow both side by side in // cc @george-gca |
It is fine for me, but how would this look like? Showing them side by side wouldn't break the layout too much? |
My suggestion would be to stack them. I used this on my own website (example). If you like this stacking, I can send a PR. |
I like it, but I think it would be better if the |
I think I once had some reason to put it this way, but I do not rember since it was a long time ago. I can send a PR for this (with your proposed order, I think this makes more sense). |
This PR enables to have `abbr` and `preview` for a single publication (closing #1162). The following example shows all three possibilities: 1) Preview + Abbr 2) Preview only 3) Abbr only. <img width="786" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/0633f443-b430-4fa6-a0eb-750170a638bd">
This PR enables to have `abbr` and `preview` for a single publication (closing alshedivat#1162). The following example shows all three possibilities: 1) Preview + Abbr 2) Preview only 3) Abbr only. <img width="786" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/0633f443-b430-4fa6-a0eb-750170a638bd">
This PR enables to have `abbr` and `preview` for a single publication (closing alshedivat#1162). The following example shows all three possibilities: 1) Preview + Abbr 2) Preview only 3) Abbr only. <img width="786" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/0633f443-b430-4fa6-a0eb-750170a638bd">
This PR enables to have `abbr` and `preview` for a single publication (closing alshedivat#1162). The following example shows all three possibilities: 1) Preview + Abbr 2) Preview only 3) Abbr only. <img width="786" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/0633f443-b430-4fa6-a0eb-750170a638bd">
This PR enables to have `abbr` and `preview` for a single publication (closing alshedivat#1162). The following example shows all three possibilities: 1) Preview + Abbr 2) Preview only 3) Abbr only. <img width="786" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/0633f443-b430-4fa6-a0eb-750170a638bd">
This PR enables to have `abbr` and `preview` for a single publication (closing alshedivat#1162). The following example shows all three possibilities: 1) Preview + Abbr 2) Preview only 3) Abbr only. <img width="786" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/0633f443-b430-4fa6-a0eb-750170a638bd">
This PR enables to have `abbr` and `preview` for a single publication (closing alshedivat#1162). The following example shows all three possibilities: 1) Preview + Abbr 2) Preview only 3) Abbr only. <img width="786" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/0633f443-b430-4fa6-a0eb-750170a638bd">
This PR enables to have `abbr` and `preview` for a single publication (closing alshedivat#1162). The following example shows all three possibilities: 1) Preview + Abbr 2) Preview only 3) Abbr only. <img width="786" alt="grafik" src="https://github.com/alshedivat/al-folio/assets/1998723/0633f443-b430-4fa6-a0eb-750170a638bd">
Is your feature request related to a problem? Please describe.
I'm not able to display the venue
abbr
on the left of the publication when I have apreview
in my papers.bib file.Describe the solution you'd like
is there a way to display both the preview AND the venue??
The text was updated successfully, but these errors were encountered: