code4lib / 2016.code4lib.org

Code4Lib 2016 Philly
11 stars 22 forks source link

{{ site.data.path }} and local development #23

Closed cdmo closed 8 years ago

cdmo commented 8 years ago

This variable {{ site.data.path }} outputs /2016.code4lib.org/. So

<link rel="stylesheet" href="{{ site.data.path }}prototype/bootstrap/dist/css/bootstrap.css">

produces:

<link rel="stylesheet" href="/2016.code4lib.org/prototype/bootstrap/dist/css/bootstrap.css">

Which, of course, doesn't load anything and the page just loads HTML. All of the links in header and footer break locally too.

@roastduckalamode am I missing something?

queryluke commented 8 years ago

If you're working locally, you need to change _data/path.yml to "/", then it will put out

href="/prototype/..."

cdmo commented 8 years ago

Okie doke