Skip to content

Commit 65caab0

Browse files
committed
fix: dynamic CSS root
Also remove old unwanted files
1 parent 32959c1 commit 65caab0

File tree

9 files changed

+14
-955
lines changed

9 files changed

+14
-955
lines changed

config.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
baseURL = "/"
1+
baseURL = ""
2+
# canonifyURLs = true
23
languageCode = "en-gb"
34
title = "JS Bin help"
45
googleAnalytics = "UA-1656750-13"
@@ -13,3 +14,6 @@ home = [ "RSS", "HTML"]
1314
[outputFormats.RSS]
1415
mediatype = "application/rss"
1516
baseName = "feed"
17+
18+
[params]
19+
helpRoot = ""

content/legals/_layout.jade

Lines changed: 0 additions & 6 deletions
This file was deleted.

content/legals/index.jade

Lines changed: 0 additions & 807 deletions
This file was deleted.

content/legals/privacy.jade

Lines changed: 0 additions & 134 deletions
This file was deleted.

data/authors.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"remy": {
33
"name": "Remy Sharp",
4-
"avatar": "https://learn.jsbin.com/images/avatars/remy.jpg"
4+
"avatar": "https://help.jsbin.com/images/avatars/remy.jpg"
55
},
66
"danny": {
77
"name": "Danny Hope",
8-
"avatar": "https://learn.jsbin.com/images/avatars/danny.jpg"
8+
"avatar": "https://help.jsbin.com/images/avatars/danny.jpg"
99
},
1010
"fabien": {
1111
"name": "Fabien O'Carroll",
12-
"avatar": "https://learn.jsbin.com/images/avatars/fabien.jpg"
12+
"avatar": "https://help.jsbin.com/images/avatars/fabien.jpg"
1313
},
1414
"giulia": {
1515
"name": "Giulia Alfonsi",
16-
"avatar": "https://learn.jsbin.com/images/avatars/giulia.jpg"
16+
"avatar": "https://help.jsbin.com/images/avatars/giulia.jpg"
1717
}
1818
}

layouts/_default/baseof.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<!DOCTYPE html>
2+
{{- $.Scratch.Add "helpRoot" (getenv "HELP_ROOT" | default .Site.Params.helpRoot )}}
23
<html id="page">
34
<head>
45
<meta charset="utf-8">
@@ -8,7 +9,7 @@
89
<link rel="icon" href="/images/favicon.png">
910
<link href="https://fonts.googleapis.com/css?family=Open+Sans:700,400" rel="stylesheet" type="text/css">
1011
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
11-
<link rel="stylesheet" href="/css/help.css">
12+
<link rel="stylesheet" href="{{ $.Scratch.Get "helpRoot" }}/css/help.css">
1213
{{ "<!--[if lt IE 9]>" | safeHTML }}
1314
<script src="/js/html5shiv.min.js"></script>
1415
{{ "<![endif]-->" | safeHTML }}

netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
HELP_ROOT = "https://help.jsbin.com"
2+
HUGO_ENABLEGITINFO = "true"
3+
HUGO_VERSION = "0.33"

static/js/_idify.jade

Lines changed: 0 additions & 1 deletion
This file was deleted.

static/js/moment.jade

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)