Skip to content

Commit

Permalink
Clean up what's not needed and fix link from articles id
Browse files Browse the repository at this point in the history
  • Loading branch information
dpshelio committed Aug 8, 2019
1 parent 92eaee7 commit f3f0392
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions _layouts/aio.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@
Generate list of episodes and extras for the language shown. - NOTE: _extras need in the permlinks /<language>/page!!
{% endcomment %}
{% if page.path contains "_locale" %}
{% assign locale = page.path | remove: "_locale/" | split: "/" | first | downcase %}
{% assign pathLocale = locale | append: '/' | prepend: '/' %}
{% assign episodes = site.locale | where_exp:"item", "item.path contains pathLocale" | where_exp:"item", "item.path contains 'episode'" | sort: "path" %}
{% else %}
{% assign locale = "en" %}
{% assign episodes = site.episodes %}
{% endif %}
{% assign lang_file = locale | append: '.md' %}
{% assign data_language = site.pages | where_exp:"page", "page.path contains 'i18n'" | where_exp:"page", "page.path contains lang_file" | first %}
{% include main_title.html %}
<script>
window.onload = function() {
Expand Down Expand Up @@ -47,5 +42,5 @@
Create anchor for each one of the episodes.
{% endcomment %}
{% for episode in episodes %}
<article id="{{ episode.url }}"></article>
<article id="{{ episode.url | absolute_url }}"></article>
{% endfor %}

0 comments on commit f3f0392

Please sign in to comment.