Skip to content

Commit

Permalink
Social image and tags on index
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnozbe committed Apr 16, 2024
1 parent 2e7b317 commit a1e4313
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions _includes/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{% if thisbook %}{% capture sharelink_name %}{{ site.data.main.domain }}{{ page.url }}{% endcapture %}{% endif %}
<div id="sharelinks">
{% if page.share!="noshow" %}
{% if page.social %}<div id="social"><img src="{{ site.url }}/social/{{ page.social }}" alt="{{ page.title }}" /></div>{% endif %}
<h3>{{ site.data.main.[share] }}: <a href="{{ sharelink }}">{{ sharelink_name }}</a></h3>
{% capture source %}source{{ langvar }}{% endcapture %}
<p><a href="{{ site.data.main.url_source }}{{ page.path }}?plain=1" target="_blank">{{ site.data.main.[source] }}</a></p>
Expand Down
4 changes: 4 additions & 0 deletions en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ title: Michael Sliwinski
{% include posts.html posts=site.tags.featured limit=1 more=1 %}
</div>

### Topics on my blog:

{% include tags.html %}

### [Latest](/archive/) articles and posts:

{% include posts.html posts=site.categories.en limit=15 more=1 notpost=last_post_url %}
Expand Down
1 change: 1 addition & 0 deletions en/test.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
permalink: /test/
tags: [guest,video]
social: "taiwan.jpg"
---

# Testing playground
Expand Down
4 changes: 4 additions & 0 deletions style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,10 @@ img {
}
}

#social {
max-width: 50%;
}

// CSS Spinner

@keyframes spinner {
Expand Down

0 comments on commit a1e4313

Please sign in to comment.