forked from jekyll/minima
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve "Subscribe" link in footer (jekyll#698)
Merge pull request 698
- Loading branch information
Showing
6 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<ul class="social-media-list"> | ||
{%- for entry in site.minima.social_links -%} | ||
{%- include social-item.html -%} | ||
{%- include social-item.html item = entry -%} | ||
{%- endfor -%} | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<symbol id="{{ include.key }}" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" viewBox="0 0 16 16"> | ||
{%- include social-icons/{{ include.key }}.svg -%} | ||
</symbol> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
permalink: /assets/minima-social-icons.svg | ||
--- | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
{% comment %} | ||
Iterate through {{ site.minima.social_links }} and render platform related SVG-symbol | ||
unless the platform is "rss" because we need the "rss" symbol for the `Subscribe` link | ||
in the footer and therefore inject the "rss" icon outside the iteration loop. | ||
{% endcomment %} | ||
{% for entry in site.minima.social_links %} | ||
{%- assign symbol_id = entry.platform -%} | ||
{%- unless symbol_id == "rss" -%} | ||
{%- include svg_symbol.html key = symbol_id -%} | ||
{% endunless %} | ||
{%- endfor -%} | ||
{%- include svg_symbol.html key = "rss" -%} | ||
</svg> |