Skip to content

Commit

Permalink
Fix publication previews on publications page
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
abhilesh committed Oct 15, 2024
1 parent e798500 commit 4869d48
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 29 deletions.
40 changes: 17 additions & 23 deletions _layouts/bib.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,6 @@
<div class="row">
{% if site.enable_publication_thumbnails %}
<div class="col-sm-2 {% if entry.preview %}preview{% else %}abbr{% endif %}">
{%- if entry.abbr -%}
{%- if site.data.venues[entry.abbr] -%}
{% assign venue_style = null %}
{% 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 rounded w-100"
{% if venue_style %}
{{ venue_style }}
{% endif -%}
>
{% if site.data.venues[entry.abbr].url %}
<a href="{{ site.data.venues[entry.abbr].url }}">{{ entry.abbr }}</a>
{% else %}
<div>{{- entry.abbr -}}</div>
{% endif %}
</abbr>
{% else %}
<abbr class="badge rounded w-100">{{ entry.abbr }}</abbr>
{% endif %}
{% endif %}
{% if entry.preview %}
{% if entry.preview contains '://' %}
<img class="preview z-depth-1 rounded" src="{{ entry.preview }}">
Expand All @@ -40,12 +18,28 @@
alt=entry.preview
%}
{% endif %}
{% elsif entry.abbr %}
{% if site.data.venues[entry.abbr] %}
{% assign venue_style = null %}
{% 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 %}
{% endif %}
</div>
{% endif %}

<!-- Entry bib key -->
<div id="{{ entry.key }}" class="{% if site.enable_publication_thumbnails %}col-sm-8{% else %}col-sm-10{% endif %}">
<div id="{{entry.key}}" class="{% if site.enable_publication_thumbnails %}col-sm-8{% else %}col-sm-10{% endif %}">
<!-- Title -->
<div class="title">{{ entry.title }}</div>
<!-- Author -->
Expand Down
2 changes: 1 addition & 1 deletion _news/announcement_3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
date: 2022-09-05 07:59:00-0400
title: "Joined UCL's GEE Department
title: "Joined UCL's GEE Department"
inline: true
related_posts: false
---
Expand Down
2 changes: 1 addition & 1 deletion _pages/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: about
title: About
permalink: /
subtitle: <em>Evolutionary Geneticist & Bioinformatician</em> <br> <em><a href=https://www.mrc-mbu.cam.ac.uk/'>MRC Mitochondrial Biology Unit <br> University of Cambridge</a></em>
subtitle: <em>Evolutionary Geneticist & Bioinformatician</em> <br> <em><a href=https://www.mrc-mbu.cam.ac.uk/>MRC Mitochondrial Biology Unit <br> University of Cambridge</a></em>

profile:
align: right
Expand Down
2 changes: 1 addition & 1 deletion _pages/publications.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: page
permalink: /publications/
title: Publications
description: More details about my publications can be found on my <a href="https://scholar.google.com/citations?user=KmALIboAAAAJ">Google Scholar profile</a>.
description: More details about my publications can be found on my <a href=https://scholar.google.com/citations?user=KmALIboAAAAJ>Google Scholar profile</a>.
nav: true
nav_order: 1
---
Expand Down
8 changes: 5 additions & 3 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* To adjust anything, simply edit the variables below and rebuild the theme.
******************************************************************************/

@use "sass:color";

// Colors
//$red-color: #ff3636 !default;
$red-color: #d45453 !default; // Radix red
Expand All @@ -12,20 +14,20 @@ $orange-color: #f29105 !default;
$blue-color: #0076df !default;
$blue-color-dark: #00369f !default;
$cyan-color: #2698ba !default;
$light-cyan-color: lighten($cyan-color, 25%);
$light-cyan-color: color.adjust($cyan-color, $lightness: 25%);
$green-color: #00ab37 !default;
$green-color-lime: #b7d12a !default;
$green-color-dark: #009f06 !default;
$green-color-light: #ddffdd !default;
$green-color-bright: #11d68b !default;
$purple-color: #b509ac !default;
$light-purple-color: lighten($purple-color, 25%);
$light-purple-color: color.adjust($purple-color, $lightness: 25%);
$pink-color: #f92080 !default;
$pink-color-light: #ffdddd !default;
$yellow-color: #efcc00 !default;

$grey-color: #828282 !default;
$grey-color-light: lighten($grey-color, 40%);
$grey-color-light: color.adjust($grey-color, $lightness: 40%);
$grey-color-dark: #1c1c1d;
$grey-900: #212529;

Expand Down

0 comments on commit 4869d48

Please sign in to comment.