Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.html #3315

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 18 additions & 36 deletions _layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
---
layout: default
---
{% assign t = site.data.locales[page.lang][page.lang] %}
{% if page.title %}
{% assign header = page.title %}
{% else %}
{% assign header = site.title %}
{% endif %}
{% include nav.html %}

<div class="bg-gray-light">

<header class="py-4 py-md-6">
<header class="py-4 py-md-6" role="banner">
<div class="container-lg p-responsive mx-auto text-center pt-6">
<h1 class="h00-mktg">{{ header }}</h1>
<p class="lead-mktg text-gray mb-md-5 col-md-8 mx-auto">
{{ t.index.lead }}
</p>
<p class="lead-mktg " id="opensourcefriday" style="display:none">
<p class="lead-mktg hidden" id="opensourcefriday">
{{ t.index.opensourcefriday }}:
<a href='https://opensourcefriday.com'>opensourcefriday.com</a>
</p>
Expand All @@ -28,31 +16,25 @@ <h1 class="h00-mktg">{{ header }}</h1>
<div class="gutter-sm d-flex flex-wrap flex-items-stretch pb-md-6">
{% assign articles = site.articles | where: 'lang', page.lang | sort: 'order' %}
{% for article in articles %}
{% if article.layout != 'index' %}
<div class="col-12 col-sm-9 mx-auto col-md-6 mt-4 mt-lg-5">
<a href="{{ article.url | relative_url }}" class="guide-cover {{ article.class }} Box height-full d-block">

<div class="lh-none guide-cover-img text-center pt-4">
<img src="{{ site.baseurl }}/assets/images/illos/{{ article.class }}.svg" class=""
alt="{{ article.title }} illustration">
{% if article.layout != 'index' %}
<div class="col-12 col-sm-9 mx-auto col-md-6 mt-4 mt-lg-5">
<a href="{{ article.url | relative_url }}" class="guide-cover {{ article.class }} Box height-full d-block">
<div class="lh-none guide-cover-img text-center pt-4">
<img src="{{ site.baseurl }}/assets/images/illos/{{ article.class }}.svg" alt="{{ article.title }} illustration">
</div>
<div class="flex-self-end p-4 text-center p-lg-5">
<h3 class="h3-mktg text-bold lh-condensed mb-2 text-black">
{{ article.title }}
</h3>
<div class="mb-0 text-gray">
{{ article.description | markdownify }}
</div>
</div>
</a>
</div>

<div class="flex-self-end p-4 text-center p-lg-5">
<h3 class="h3-mktg text-bold lh-condensed mb-2 text-black">
{{ article.title }}
</h3>
<div class="mb-0 text-gray">
{{ article.description | markdownify }}
</div>
</div>

</a>
</div>
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>

</div>

{% include footer.html %}
Loading