Skip to content

Commit

Permalink
Adding Whoops Video to 404 Page (CodingTrain#2868)
Browse files Browse the repository at this point in the history
  • Loading branch information
duskvirkus authored Nov 8, 2020
1 parent d9e4398 commit 93cf525
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
12 changes: 8 additions & 4 deletions 404.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
---
layout: base
layout: video
title: "Whoops 404 :( Your rainbow is in another train station"
video_number: " :("
video_id: QYjPBcqo1-s
date: 2019-07-14
can_contribute: true
permalink: /404.html
---
<h2> 404 :( </h2>
<h2>Your rainbow is in another train station</h2>
<p>It was not possible to find the page, visit the <a href="{{ '/' | relative_url }}">Home</a> to find other Coding Challenges. If you think there is a problem report it on <a href="{{ site.github.repository_url }}/issues" target="_blank" rel="noopener noreferrer">Github Issues</a>.
<p>
It was not possible to find the page, visit the <a href="{{ '/' | relative_url }}">Home</a> to find other Videos. If you think there is a problem report it as <a href="{{ site.github.repository_url }}/issues" target="_blank" rel="noopener noreferrer">an issue on the GitHub Coding Train website Repository</a>. Add your own whoops moment or happy accident project below.
</p>
22 changes: 13 additions & 9 deletions _jekyll/includes/1-tools/sort-videos.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,18 @@
| where_exp: 'video', 'video.video_id' %}
{% endunless %}

{% comment %} Filter out the index pages. {% endcomment %}
{% if include.sortByDate %}
{% assign out_sortedVideos = int_videos | where: 'layout', 'video' | sort: 'date' %}
{% else %}
{% assign out_sortedVideos = int_videos | where: 'layout', 'video' | sort: 'video_number' %}
{% endif %}
{% if int_videos.size > 0 %}

{% comment %} Filter out the index pages. {% endcomment %}
{% if include.sortByDate %}
{% assign out_sortedVideos = int_videos | where: 'layout', 'video' | sort: 'date' %}
{% else %}
{% assign out_sortedVideos = int_videos | where: 'layout', 'video' | sort: 'video_number' %}
{% endif %}

{% comment %} Reverse video order if include.reverse is set to true. {% endcomment %}
{% if include.reverse %}
{% assign out_sortedVideos = out_sortedVideos | reverse %}
{% endif %}

{% comment %} Reverse video order if include.reverse is set to true. {% endcomment %}
{% if include.reverse %}
{% assign out_sortedVideos = out_sortedVideos | reverse %}
{% endif %}

0 comments on commit 93cf525

Please sign in to comment.