Browse Source

aaaaaaaa

main
xenua 2 years ago
parent
commit
2a4e4b4a94
  1. 5
      sass/style.sass
  2. 10
      templates/shortcodes/img.html
  3. 4
      templates/shortcodes/quote.html

5
sass/style.sass

@ -130,6 +130,11 @@ body @@ -130,6 +130,11 @@ body
font-feature-settings: "ss05" 1, "cv89" 2
@import code-highlight-light
blockquote
border-left: 1px solid silver
margin-left: 2rem
padding-left: 0.5rem
aside
@include padding-horiz(1rem)
padding-top: 1rem

10
templates/shortcodes/img.html

@ -13,12 +13,16 @@ @@ -13,12 +13,16 @@
{% set cropped = effective_image.height > crop_height and not allow_tall %}
<figure>
<img src="{% if resize %}{{ effective_image.url }}{% else %}{{ url }}{% endif %}" alt="{{ alt }}"
{%- if cropped %}height="{{ crop_height }}" width="{{article_width}}"{% endif %}>
<img
src="{% if resize %}{{ effective_image.url }}{% else %}/{{ url }}{% endif %}"
alt="{{ alt }}"
title="{{ alt }}"
{%- if cropped %}height="{{ crop_height }}" width="{{article_width}}"{% endif %}
>
{% if caption or resize or cropped %}
<div>
{% if caption %}<figcaption>{{ caption | safe }}</figcaption>{% endif %}
{% if resize or cropped %}<a href="{{ url }}" target="_blank"> full size</a>{% endif %}
{% if resize or cropped %}<a href="/{{ url }}" target="_blank"> full size</a>{% endif %}
</div>
{% endif %}
</figure>

4
templates/shortcodes/quote.html

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
<blockquote>
{{ body }}<br>
-- {{ author }}
</blockquote>
Loading…
Cancel
Save