Skip to content

Commit

Permalink
Smartify titles and refactor span styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ndarville committed Jan 13, 2017
1 parent dbfd5fa commit 1ee37f6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
max-width: 280px;
height: auto;
}

span {
text-align: center;
}
</style>

<div class="container">
Expand Down
8 changes: 4 additions & 4 deletions bought.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ title: Wishlist (Bought)
{% for w in range[1] %}{% unless w.bought != true %}

<div class="tile" markdown="1">
#### {{ w.title }} {% if w.price %}<span style="white-space:nowrap">{**{{ w.price }},-**}</span>{% endif %} ####
#### {{ w.title | smartify }} {% if w.price %}<span style="white-space:nowrap">{**{{ w.price }},-**}</span>{% endif %} ####

{% if w.image %}![{{ w.title }}]({{ w.image }}){% endif %}
{% if w.image %}![{{ w.title | smartify }}]({{ w.image }}){% endif %}

{% if w.link.dk or w.link.bookdepository or w.link.amazon %}
<span style="text-align: center;">{% if w.link.dk %}[[Dansk butik]({{ w.link.dk }})]{% if w.link.amazon %} / {% endif %}{% endif %}{% if w.link.bookdepository %}[[Book Depository]({{ w.link.bookdepository }})]{% if w.link.amazon %} / {% endif %}{% endif %}{% if w.link.amazon %}[[Amazon]({{ w.link.amazon }})]{% endif %}</span>
<span>{% if w.link.dk %}[[Dansk butik]({{ w.link.dk }})]{% if w.link.amazon %} / {% endif %}{% endif %}{% if w.link.bookdepository %}[[Book Depository]({{ w.link.bookdepository }})]{% if w.link.amazon %} / {% endif %}{% endif %}{% if w.link.amazon %}[[Amazon]({{ w.link.amazon }})]{% endif %}</span>
{% endif %}
{% if w.link.other %}
<span style="text-align: center;">[[Purchase]({{ w.link.other }})]</span>
<span>[[Purchase]({{ w.link.other }})]</span>
{% endif %}
</div>
{% endunless %}{% endfor %}
Expand Down
12 changes: 6 additions & 6 deletions index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ title: Wishlist
{% for c in site.data.charities %}

<div class="tile" markdown="1">
#### {{ c.title }} ####
#### {{ c.title | smartify }} ####

<span style="text-align: center;">[[Donate]({{ c.link }})]</span>
<span>[[Donate]({{ c.link }})]</span>
</div>
{% endfor %}

Expand All @@ -23,15 +23,15 @@ title: Wishlist
{% for w in range[1] %}{% unless w.bought or w.hidden %}

<div class="tile" markdown="1">
#### {{ w.title }} {% if w.price %}<span style="white-space:nowrap">{**{{ w.price }},-**}</span>{% endif %} ####
#### {{ w.title | smartify }} {% if w.price %}<span style="white-space:nowrap">{**{{ w.price }},-**}</span>{% endif %} ####

{% if w.image %}![{{ w.title }}]({{ w.image }}){% endif %}
{% if w.image %}![{{ w.title | smartify }}]({{ w.image }}){% endif %}

{% if w.link.dk or w.link.bookdepository or w.link.amazon %}
<span style="text-align: center;">{% if w.link.dk %}[[Dansk butik]({{ w.link.dk }})]{% if w.link.amazon %} / {% endif %}{% endif %}{% if w.link.bookdepository %}[[Book Depository]({{ w.link.bookdepository }})]{% if w.link.amazon %} / {% endif %}{% endif %}{% if w.link.amazon %}[[Amazon]({{ w.link.amazon }})]{% endif %}</span>
<span>{% if w.link.dk %}[[Dansk butik]({{ w.link.dk }})]{% if w.link.amazon %} / {% endif %}{% endif %}{% if w.link.bookdepository %}[[Book Depository]({{ w.link.bookdepository }})]{% if w.link.amazon %} / {% endif %}{% endif %}{% if w.link.amazon %}[[Amazon]({{ w.link.amazon }})]{% endif %}</span>
{% endif %}
{% if w.link.other %}
<span style="text-align: center;">[[Purchase]({{ w.link.other }})]</span>
<span>[[Purchase]({{ w.link.other }})]</span>
{% endif %}
</div>
{% endunless %}{% endfor %}
Expand Down

0 comments on commit 1ee37f6

Please sign in to comment.