Skip to content

Commit

Permalink
fix: breadcrumbs and series page
Browse files Browse the repository at this point in the history
  • Loading branch information
JesperDramsch committed Aug 23, 2024
1 parent 248b90b commit 773c174
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
17 changes: 8 additions & 9 deletions _includes/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<div id="breadcrumbs">
{% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
<a href="{{site.baseurl_root}}">Home</a>
{% for crumb in crumbs offset: 1 %}
{% if forloop.last %}
/ <a href="#">{{ title }}</a>
{% else %}
/ <a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a>
{% endif %}
{% endfor %}
{% assign crumbs = page.url | remove:'/index.html' | split: '/' %} {% if crumbs.size > 1 %}
<a href="{{site.baseurl}}/">Home</a>
{% endif %} {% for crumb in crumbs offset: 1 %} {% if forloop.last %} / <a href="#">{{ title }}</a> {% else %} /
<a
href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}"
>{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a
>
{% endif %} {% endfor %}
</div>
13 changes: 0 additions & 13 deletions _pages/series.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,6 @@

{% include masthead.html title=series_title hook=series_hook description=series_description %}
<div class="container">
<div class="page-header">
<div class="row">
<div class="col-12 col-sm-12">
{% include breadcrumbs.html %}
<h1>
{{ title }}
</h1>
</div>
<div class="meta col-12">
{% tf series/description.md %}
</div>
</div>
</div>
<div id="confs">
<div id="past_confs">
{% assign confs = site.data.conferences | concat: site.data.archive | concat: site.data.legacy | sort: "year" | reverse | group_by: "conference" | sort: "name" %}
Expand Down

0 comments on commit 773c174

Please sign in to comment.