New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use / for template names regardless of platform. #36

Merged
merged 1 commit into from Aug 12, 2013

Conversation

Projects
None yet
2 participants
@noahcampbell
Contributor

noahcampbell commented Aug 12, 2013

The path seperator was causing templates to not be loaded on windows.
Now all template names use / internally.

Use / for template names regardless of platform.
The path seperator was causing templates to not be loaded on windows.
Now all template names use / internally.

spf13 added a commit that referenced this pull request Aug 12, 2013

Merge pull request #36 from noahcampbell/master
Use / for template names regardless of platform.

@spf13 spf13 merged commit cb39f05 into gohugoio:master Aug 12, 2013

1 check passed

default The Travis CI build passed
Details

bep added a commit to bep/hugo that referenced this pull request Nov 12, 2017

bep added a commit to bep/hugo that referenced this pull request Nov 12, 2017

bep added a commit to bep/hugo that referenced this pull request Nov 12, 2017

bep added a commit to bep/hugo that referenced this pull request Nov 12, 2017

bep added a commit to bep/hugo that referenced this pull request Nov 13, 2017

bep added a commit to bep/hugo that referenced this pull request Nov 16, 2017

bep added a commit to bep/hugo that referenced this pull request Nov 16, 2017

bep added a commit to bep/hugo that referenced this pull request Nov 16, 2017

bep added a commit to bep/hugo that referenced this pull request Nov 16, 2017

bep added a commit to bep/hugo that referenced this pull request Nov 17, 2017

bep added a commit to bep/hugo that referenced this pull request Nov 17, 2017

bep added a commit to bep/hugo that referenced this pull request Nov 17, 2017

bep added a commit to bep/hugo that referenced this pull request Nov 17, 2017

Add support for multiple staticDirs
This commit adds support for multiple statDirs both on the global and language level.

A simple `config.toml` example:

```bash
staticDir = ["static1", "static2"]
[languages]
[languages.no]
staticDir = ["staticDir_override", "static_no"]
baseURL = "https://example.no"
languageName = "Norsk"
weight = 1
title = "På norsk"

[languages.en]
staticDir2 = "static_en"
baseURL = "https://example.com"
languageName = "English"
weight = 2
title = "In English"
```

In the above, with no theme used:

the English site will get its static files as a union of "static1", "static2" and "static_en". On file duplicates, the right-most version will win.
the Norwegian site will get its static files as a union of "staticDir_override" and "static_no".

This commit also concludes the Multihost support in gohugoio#4027.

Fixes gohugoio#36
Closes gohugoio#4027

bep added a commit that referenced this pull request Nov 17, 2017

Add support for multiple staticDirs
This commit adds support for multiple statDirs both on the global and language level.

A simple `config.toml` example:

```bash
staticDir = ["static1", "static2"]
[languages]
[languages.no]
staticDir = ["staticDir_override", "static_no"]
baseURL = "https://example.no"
languageName = "Norsk"
weight = 1
title = "På norsk"

[languages.en]
staticDir2 = "static_en"
baseURL = "https://example.com"
languageName = "English"
weight = 2
title = "In English"
```

In the above, with no theme used:

the English site will get its static files as a union of "static1", "static2" and "static_en". On file duplicates, the right-most version will win.
the Norwegian site will get its static files as a union of "staticDir_override" and "static_no".

This commit also concludes the Multihost support in #4027.

Fixes #36
Closes #4027
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment