Skip to content

Commit

Permalink
Reduce size of Salmeron image
Browse files Browse the repository at this point in the history
  • Loading branch information
howardjp committed May 4, 2024
1 parent b762f90 commit d6cd128
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
8 changes: 7 additions & 1 deletion _includes/figure.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
{% assign pull = "" %}
{% endif %}

{% if include.border == true %}
{% assign img_border = "img-border" %}
{% else %}
{% assign img_border = "" %}
{% endif %}

{% assign w = include.width | to_integer %}
{% if w <= 12 %}
{% assign colwidth="col-md-" | append: w %}
Expand All @@ -25,7 +31,7 @@
{% endif %}
<div class="card">
<figure>
<img class="featured-img mx-auto" src="{{ '/assets/img/' | append: include.image | relative_url }}"
<img class="featured-img mx-auto {{ img_border }}" src="{{ '/assets/img/' | append: include.image | relative_url }}"
alt="{{ include.alt | default: 'no description' }}"
{% if include.load != null %}loading="lazy"{% else %}loading="{{ include.loading }}"{% endif %}/>
<div class="content">
Expand Down
3 changes: 1 addition & 2 deletions _posts/2024/2024-05-04-a-maltese-grant-of-arms.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ reinforces my commitment to uphold the values it signifies and to
carry forth the legacy of service and excellence that the arms
represent.

{% include figure.html image="jhoward-maltese-coa-salmeron-960px.png"
width="12"
{% include figure.html image="jhoward-maltese-salmeron-960px.jpg" width="12" border=true
cap="Coat of Arms for James P. Howard, II, as interpreted by [Dr Antonio Salmerón](http://blason.es/)"
alt="Coat of Arms for James P. Howard, II, as interpreted by Dr Antonio Salmerón" %}
6 changes: 6 additions & 0 deletions assets/css/jameshoward.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ figure {
margin: 1em;
}

.img-border {
border-color: #303030;
border-style: solid;
border-width: 1px;
}

.featured-image-post {
margin-top: -5em;
z-index: 100;
Expand Down
Binary file added assets/img/jhoward-maltese-salmeron-960px.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/img/jhoward-maltese-salmeron-960px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions honors/maltese-coat-arms.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ redirect_from:
- /honors/malta/
---

{% include figure.html image="jhoward-maltese-coa-salmeron-960px.png" placement="right"
width="40%"
{% include figure.html image="jhoward-maltese-salmeron-960px.jpg" placement="right" width="40%" border=true
cap="Coat of Arms for James P. Howard, II, as interpreted by [Dr Antonio Salmerón](http://blason.es/)"
alt="Coat of Arms for James P. Howard, II, as interpreted by Dr Antonio Salmerón" %}

Expand Down Expand Up @@ -200,7 +199,7 @@ the essence of the coat of arms remains consistent across different
renditions, showcasing the universal language of heraldry that
transcends individual variations in artistic expression.

{% include figure.html image="jhoward-maltese-coa-salmeron-960px.png" width="80%"
{% include figure.html image="jhoward-maltese-salmeron-960px.jpg" width="80%" border=true
cap="Coat of Arms for James P. Howard, II, as interpreted by [Dr Antonio Salmerón](http://blason.es/)"
alt="Coat of Arms for James P. Howard, II, as interpreted by Dr Antonio Salmerón" %}

Expand Down

0 comments on commit d6cd128

Please sign in to comment.