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
font-feature-settings: "ss05" 1, "cv89" 2 font-feature-settings: "ss05" 1, "cv89" 2
@import code-highlight-light @import code-highlight-light
blockquote
border-left: 1px solid silver
margin-left: 2rem
padding-left: 0.5rem
aside aside
@include padding-horiz(1rem) @include padding-horiz(1rem)
padding-top: 1rem padding-top: 1rem

10
templates/shortcodes/img.html

@ -13,12 +13,16 @@
{% set cropped = effective_image.height > crop_height and not allow_tall %} {% set cropped = effective_image.height > crop_height and not allow_tall %}
<figure> <figure>
<img src="{% if resize %}{{ effective_image.url }}{% else %}{{ url }}{% endif %}" alt="{{ alt }}" <img
{%- if cropped %}height="{{ crop_height }}" width="{{article_width}}"{% endif %}> 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 %} {% if caption or resize or cropped %}
<div> <div>
{% if caption %}<figcaption>{{ caption | safe }}</figcaption>{% endif %} {% 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> </div>
{% endif %} {% endif %}
</figure> </figure>

4
templates/shortcodes/quote.html

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