Skip to content

Commit

Permalink
Attempt debug scripts 1
Browse files Browse the repository at this point in the history
  • Loading branch information
lunacodes committed Mar 25, 2022
1 parent b400ab2 commit 714d880
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
13 changes: 13 additions & 0 deletions content/_data/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
header:
- title: Home
url: /
- title: About
url: "#"
type: dropdown
subpages:
- title: Vision and Mission
url: /about/#vision
- title: Timeline
url: /timeline
- title: Features
url: "/features"
2 changes: 1 addition & 1 deletion content/_includes/custom-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
<meta name="msapplication-config" content="/favicon/browserconfig.xml">
<meta name="theme-color" content="#ffffff">

<link rel="stylesheet" href="assets/plyr/plyr.css">
<link rel="stylesheet" href="{{ "/assets/plyr/plyr.css" | absolute_url}}">
24 changes: 24 additions & 0 deletions content/debug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Links Debug
permalink: /debug/
layout: page
---

## Scripts

* absolute_url w/ slash: {{ "/assets/plyr/plyr.css" | absolute_url }}
* expect: deploy-preview-122--cwl-website.netlify.app/assets/plyr/plyr.css
* absolute_url w/o slash: {{ "assets/plyr/plyr.css" | absolute_url }}
* expect: deploy-preview-122--cwl-website.netlify.app/assets/plyr/plyr.css
* relative_url w/ slash: {{ "assets/plyr/plyr.css" | absolute_url }}
* expect: deploy-preview-122--cwl-website.netlify.app/assets/plyr/plyr.css
* relative_url w/o slash: {{ "assets/plyr/plyr.css" | relative_url }}
* expect: /assets/plyr/plyr.css
* no filter: <a href="{{ "assets/plyr/plyr.css" | relative_url }}" title="">{% raw %} {{ "assets/plyr/plyr.css" | relative_url }}{% endraw %}</a>

{% comment %}
<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>
<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>
{% endcomment %}


0 comments on commit 714d880

Please sign in to comment.