Skip to content

Commit e3ab74c

Browse files
committed
Attempt debug scripts 1
1 parent b400ab2 commit e3ab74c

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

Diff for: content/_data/debug.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
header:
2+
- title: Home
3+
url: /
4+
- title: About
5+
url: "#"
6+
type: dropdown
7+
subpages:
8+
- title: Vision and Mission
9+
url: /about/#vision
10+
- title: Timeline
11+
url: /timeline
12+
- title: Features
13+
url: "/features"

Diff for: content/_includes/custom-head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
<meta name="msapplication-config" content="/favicon/browserconfig.xml">
99
<meta name="theme-color" content="#ffffff">
1010

11-
<link rel="stylesheet" href="assets/plyr/plyr.css">
11+
<link rel="stylesheet" href="{{ "/assets/plyr/plyr.css" | absolute_url}}">

Diff for: content/debug.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Links Debug
3+
permalink: /debug/
4+
layout: page
5+
---
6+
7+
## Scripts
8+
9+
* absolute_url w/ slash: {{ "/assets/plyr/plyr.css" | absolute_url }}
10+
* expect: deploy-preview-122--cwl-website.netlify.app/assets/plyr/plyr.css
11+
* absolute_url w/o slash: {{ "assets/plyr/plyr.css" | absolute_url }}
12+
* expect: deploy-preview-122--cwl-website.netlify.app/assets/plyr/plyr.css
13+
* relative_url w/ slash: {{ "assets/plyr/plyr.css" | absolute_url }}
14+
* expect: deploy-preview-122--cwl-website.netlify.app/assets/plyr/plyr.css
15+
* relative_url w/o slash: {{ "assets/plyr/plyr.css" | relative_url }}
16+
* expect: /assets/plyr/plyr.css
17+
* no filter: <a href="{{ "assets/plyr/plyr.css" | relative_url }}" title="">{% raw %} {{ "assets/plyr/plyr.css" | relative_url }}{% endraw %}</a>
18+
19+
{% comment %}
20+
<li>{% raw %} {{ "/assets/plyr/plyr.css" | absolute_url }} {% endraw %}: <a href="{{ "/assets/plyr/plyr.css" | absolute_url }}" title="">`{{ "/assets/plyr/plyr.css" | absolute_url }}`</a></li>
21+
<li>{% raw %} {{ "assets/plyr/plyr.css" | absolute_url }} {% endraw %}: <a href="{{ "assets/plyr/plyr.css" | absolute_url }}" title="">`{{ "assets/plyr/plyr.css" | absolute_url }}`</a></li>
22+
{% endcomment %}
23+
24+

0 commit comments

Comments
 (0)