Skip to content

Commit

Permalink
Merge pull request #23 from provopoulos/twitter_module
Browse files Browse the repository at this point in the history
Twitter_module_83
  • Loading branch information
p15zerv authored Apr 27, 2020
2 parents 002d9ba + 127dd81 commit 19e3ed6
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
47 changes: 47 additions & 0 deletions _includes/dynamic.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% if include.index %}
{% assign i = include.index %}
{% endif %}

{% if include.id %}
{% assign f = site.[include.id][i] %}
{% endif %}

{% if include.category %}
{% assign cat = include.category %}
{% endif %}



<div class="feature__item">
<div class="archive__item">
<div class="archive__item-body">
{% if include.category %}
<h3>{{ cat }}</h3>
{% endif %}
<a href="{{ site.url }}{{ site.baseurl }}{{ site.[include.id][i].url }}">


{% if f.title %}
<h2 class="archive__item-title">{{ f.title }}</h2>
{% endif %}

</a>

{% if f.image_url %}
<div class="archive__item-teaser">
{% capture url %}{{ f.image_url }}{% endcapture %}
{% assign split_url = url | split: '.' %}
{% capture thumb_url %}{{split_url[0]}}-thumb.{{split_url[1]}}{% endcapture %}
<img src="{{ site.url }}{{ site.baseurl }}{{ thumb_url }}">
</div>
{% endif %}

{% if f.excerpt %}
<div class="archive__item-excerpt">
{{ f.excerpt | markdownify }}
</div>
{% endif %}

</div>
</div>
</div>
16 changes: 16 additions & 0 deletions _includes/twitter-module.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<div class="feature__item">
<div class="archive__item">
<div class="archive__item-body">
<div align="center">
<h3>Feed</h3>
<a class="twitter-timeline"
href="https://twitter.com/myionio?ref_src=twsrc%5Etfw"
data-width="350"
data-height="450"
data-dnt="true"
data-chrome="noheader nofooter noscrollbar transparent">Tweets by @myionio</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
</div>
</div>
</div>

0 comments on commit 19e3ed6

Please sign in to comment.