Revert "Refactor: Use Liquid filter to find home page title" (#3451)
Reverts alshedivat/al-folio#3448
This commit is contained in:
parent
24d730578a
commit
3e2b8f7812
@ -6,7 +6,9 @@ const ninja = document.querySelector('ninja-keys');
|
|||||||
|
|
||||||
// add the home and posts menu items
|
// add the home and posts menu items
|
||||||
ninja.data = [
|
ninja.data = [
|
||||||
{%- assign about_title = site.pages | where: "permalink", "/" | first.title | strip -%}
|
{%- for page in site.pages -%}
|
||||||
|
{%- if page.permalink == '/' -%}{%- assign about_title = page.title | strip -%}{%- endif -%}
|
||||||
|
{%- endfor -%}
|
||||||
{
|
{
|
||||||
id: "nav-{{ about_title | slugify }}",
|
id: "nav-{{ about_title | slugify }}",
|
||||||
title: "{{ about_title | truncatewords: 13 }}",
|
title: "{{ about_title | truncatewords: 13 }}",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user