-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1f9e7b
commit f4c8560
Showing
3 changed files
with
36 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,6 @@ | ||
--- | ||
title: Test | ||
layout: none | ||
layout: navjs | ||
comment: You need this file so we get the right navigation structure. Just leave the body empty. | ||
--- | ||
|
||
{% capture html %} | ||
|
||
{% assign entries = site.pages | sort: "path" %} | ||
|
||
var NAVTitle = "{{site.title}}"; | ||
var NAVHome = "{{site.baseurl}}"; | ||
var NAVPages = [ | ||
{% for entry in entries %} | ||
|
||
{% capture slug %}{{ entry.url | split: "/" | last }}{% endcapture %} | ||
{% capture current %}{{ entry.url | remove: slug | remove: "//" | append: "/" }}{% endcapture %} | ||
{% if entry.ignore %} | ||
{% else %} | ||
{ | ||
url: "{{entry.url}}", | ||
absurl: "{{ site.baseurl }}{{ entry.url }}", | ||
slug: "{{slug}}", | ||
title: "{{entry.title}}", | ||
weight: "{{entry.weight}}" | ||
}, | ||
{% endif %} | ||
{% endfor %} | ||
]; | ||
var SiteSettings = {{ site.settings | jsonify }}; | ||
var APPREDIRECTS = { | ||
{% for redir in site.AppRedirects %} | ||
{{redir.key}}: "{{redir.url}}", | ||
{% endfor %} | ||
} | ||
|
||
|
||
{% endcapture %}{{ html | strip_newlines | replace:' ','' | replace:' ','' | replace:' ',' ' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% capture html %} | ||
|
||
{% assign entries = site.pages | sort: "path" %} | ||
|
||
var NAVTitle = "{{site.title}}"; | ||
var NAVHome = "{{site.baseurl}}"; | ||
var NAVPages = [ | ||
{% for entry in entries %} | ||
|
||
{% capture slug %}{{ entry.url | split: "/" | last }}{% endcapture %} | ||
{% capture current %}{{ entry.url | remove: slug | remove: "//" | append: "/" }}{% endcapture %} | ||
{% if entry.ignore %} | ||
{% else %} | ||
{ | ||
url: "{{entry.url}}", | ||
absurl: "{{ site.baseurl }}{{ entry.url }}", | ||
slug: "{{slug}}", | ||
title: "{{entry.title}}", | ||
weight: "{{entry.weight}}" | ||
}, | ||
{% endif %} | ||
{% endfor %} | ||
]; | ||
var SiteSettings = {{ site.settings | jsonify }}; | ||
var APPREDIRECTS = { | ||
{% for redir in site.AppRedirects %} | ||
{{redir.key}}: "{{redir.url}}", | ||
{% endfor %} | ||
} | ||
|
||
|
||
{% endcapture %}{{ html | strip_newlines | replace:' ','' | replace:' ','' | replace:' ',' ' }} | ||
|
||
{{content}} |