CMS Development

WHarsh
Member

Moving old blogs to top of navigation page

I need help moving recently updated/optimized OLD blogs to the top of my blog navigation page. (i.e. for time sensitive/seasonal posts that get updated each year). At the moment, my custom code only allows brand NEW blogs do show up at the top (left). 

 

This is the template being used:  https://app.hubspot.com/design-manager/5843319/code/59895431320

0 Upvotes
2 Replies 2
WHarsh
Member

Moving old blogs to top of navigation page

Here's the page: https://www.vanderbeken-remodel.com/snohomish-county-remodeling-blog

Here's the code:

<!--
templateType: blog_listing
isAvailableForNewContent: true
label: Blog Listing
screenshotPath: ../images/template-previews/blog-index.png
-->
{% extends './layouts/base.html' %}

{% block template_stylesheets %}
<link type="text/css" rel="stylesheet" href="{{ get_asset_url('../css/templates/_blog.css') }}">
{% endblock template_stylesheets %}

{% block body %}
{# The main-content ID is used for the navigation skipper in the header.html file. More information on the navigation skipper can be found here: https://github.com/HubSpot/cms-theme-boilerplate/wiki/Accessibility #}
<main id="main-content" class="body-container-wrapper">
<div class="body-container body-container--blog-index">

{# Blog Header #}
{% module "blog_header" path='/VanderBeken_Remodel_November_2021/modules/Blog Header', label="Blog Header" %}
{# End Blog Header #}

{# Blog listing section #}
{% dnd_area 'dnd_area_blog', label='Main Content'%}
{% dnd_section %}
{% dnd_column %}
{% dnd_row %}
{% dnd_module path='../modules/Blog Listings' %}
{% end_dnd_module %}
{% end_dnd_row %}
{% end_dnd_column %}
{% end_dnd_section %}
{% end_dnd_area %}
{# End blog listing section #}

{# Blog pagination #}
{% module "load_more" path="../modules/Load More", label="Load More" %}
{# End blog pagination #}

{% module "bottom_pane" path="../modules/Bottom Pane", label="Bottom Pane" %}

</div>
</main>
{% endblock body %}

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Moving old blogs to top of navigation page

Hi, there! You'll need to add a code example and link to your page in order for the community to assist you. This is because I nor the community can access your portal or the Design Manager.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes