Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 3 additions & 5 deletions _includes/homepage/post-playlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
{%- endif -%}

{%- if include.tag and include.tag != "" -%}
{%- assign filtered_pages = site.pages | where_exp: "page", "page.tags contains include.tag" -%}
{%- assign filtered_pages = site.pages | where_exp: "page", "page.layout == 'post' and page.permalink and page.hidden != true and page.tags contains include.tag" -%}
{%- else -%}
{%- assign filtered_pages = site.pages -%}
{%- assign filtered_pages = site.pages | where_exp: "page", "page.layout == 'post' and page.permalink and page.hidden != true" -%}
{%- endif -%}
{%- assign filtered_pages = filtered_pages | sort: "updatedAt" | reverse -%}

Expand All @@ -42,9 +42,7 @@ <h5>{{ heading }}</h5>
<div class="rr-post-playlist-container">
<div class="row rr-post-playlist-row {{ include.classes }}">
{%- for relevant_page in filtered_pages limit: limit -%}
{%- if relevant_page.layout == "post" and relevant_page.permalink -%}
{% include post-discovery/post-card.html post=relevant_page classes="" %}
{%- endif -%}
{% include post-discovery/post-card.html post=relevant_page classes="" %}
{%- endfor -%}
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion _includes/post-discovery/post-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
{% assign generated_placeholder_slug = include.post.permalink | replace: '.html', '' | slugify %}
{% assign generated_placeholder_path = '/public/generated/placeholders/' | append: generated_placeholder_slug | append: '.jpg' %}
{% assign generated_placeholder_file = site.static_files | where: 'path', generated_placeholder_path | first %}
{% if include.hidden %}
{% assign hide_card = include.post.hidden %}
{% if include.hidden == true %}
{% assign hide_card = true %}
{% endif %}
{% if hide_card == true %}
<a style="display:none" class="hidden-card" href="{{ include.post.url }}" data-image="{{ include.post.image }}" data-title="{{ include.post.title }}" {% if card_topics %}data-tag="{% if include.post.recommend %}{% if include.post.recommend.first %}{{ include.post.recommend.first }}{% else %}{{ include.post.recommend }}{% endif %}{% elsif include.post.tags.first %}{{ include.post.tags.first }}{% else %}{{ include.post.tags }}{% endif %}"{% endif %} data-date=" {{ include.post.updatedAt | date_to_long_string: "ordinal" }}"> </a>
{% else %}
<div class="{{ include.classes }} card card-video">
Expand Down
6 changes: 3 additions & 3 deletions _includes/posts/post-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
{% endif %}
<div>
{% if page.thumbnail %}
<img class="post-header-icon" src="{{ page.thumbnail }}" alt="Post thumbnail">
<img class="post-header-icon" src="{{ page.thumbnail }}" alt="Post thumbnail" width="100px" height="100px">
{% elsif page_category_meta and page_category_meta.image %}
<img class="post-header-icon" src="{{ page_category_meta.image }}" alt="{{ page_category_meta.title | default: page_category }}">
<img class="post-header-icon" src="{{ page_category_meta.image }}" alt="{{ page_category_meta.title | default: page_category }}" width="100px" height="100px">
{% else %}
<img src="/public/images/RetroReversingLogoSmall.png" alt="Retro reversing logo">
<img src="/public/images/RetroReversingLogoSmall.png" width="100px" height="100px" alt="Retro reversing logo">
{% endif %}
</div>
<div>
Expand Down
4 changes: 2 additions & 2 deletions _includes/recommended-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{% endcomment %}

{% for recommend in related_topics %}
{% for post in site.pages where_exp:"post","post.tags contains recommend" %}
{% for post in site.pages where_exp:"post","post.tags contains recommend and post.hidden != true" %}
{% if post.tags contains recommend and post.url != include.current_url %}
<li>
{% include_cached post-discovery/post-card.html post=post classes="" %}
Expand All @@ -30,7 +30,7 @@
This is for when the related topics are NOT an array
{% endcomment %}

{% for post in site.pages where_exp:"post","post.tags contains related_topics" %}
{% for post in site.pages where_exp:"post","post.tags contains related_topics and post.hidden != true" %}
{% if post.tags contains related_topics and post.url != include.current_url %}
<li>
{% include_cached post-discovery/post-card.html post=post classes="" %}
Expand Down
Loading
Loading