Skip to content

Commit

Permalink
Change tutorials to include type
Browse files Browse the repository at this point in the history
  • Loading branch information
naanadr committed Apr 28, 2020
1 parent 42ed376 commit c498455
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
19 changes: 19 additions & 0 deletions _includes/tutorials.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<article class="about-section py-5">
<div class="container">
<h2 class="title mb-3">Tutoriais</h2>
<figure>
<img class="img-fluid" src="{{site.url}}{{site.baseurl}}/assets/images/blog/banner-tutoriais.png" alt="tutoriais">
</figure>

{% for post in site.posts %}
{% if post.type == "tutorial" %}
<a href="{{ post.url | prepend: site.url }}"><h5 class="mt-5">{{ post.title }} | {{ post.date | date: "%b %-d, %Y"}}</h5></a>
<p>{{ post.description }}</p>
{% endif %}
{% endfor %}

<div class="container"><hr></div>

{% include archive.html %}
</div>
</article><!--//about-section-->
16 changes: 1 addition & 15 deletions tutorials.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,4 @@
title: Tutorials
---

<article class="about-section py-5">
<div class="container">
<h2 class="title mb-3">Tutoriais</h2>
<figure>
<img class="img-fluid" src="{{site.url}}{{site.baseurl}}/assets/images/blog/banner-tutoriais.png" alt="tutoriais">
</figure>

{% for post in site.posts %}
{% if post.type == "tutorial" %}
<a href="{{ post.url | prepend: site.url }}"><h5 class="mt-5">{{ post.title }} | {{ post.date | date: "%b %-d, %Y"}}</h5></a>
<p>{{ post.description }}</p>
{% endif %}
{% endfor %}
</div>
</article><!--//about-section-->
{% include tutorials.html %}

0 comments on commit c498455

Please sign in to comment.