Commit 78bd9ea
committed
Fix the site url.
- Add default url for docs.twinbasic.com
- Use JEKYLL_SITE_CONFIG to provide site-specific configuration, e.g. url.
This fixes 404 errors on redirect_from pages.
If you're hosting this repository for your development purposes, the `url` will not be `https://docs.twinbasic.com`, obviously. But there's no way to override the url from `jekyll build`'s command line. Thus, the `JEKYLL_SITE_CONFIG` site variable (on GitHub's repo configuration), should contain any configuration overrides that take over the default config file.
At the very least, that should be `url: https://mysite.github.io`.
This will get echoed into a temporary `_site_config.yml`, and passed to `jekyll build`.1 parent 28f04bf commit 78bd9ea
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | | - | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments