mirror of
https://github.com/MinimalBible/MinimalBible.github.io
synced 2024-12-22 06:38:27 -05:00
Add notes about setting site.url properly
This commit is contained in:
parent
78d37e0e28
commit
4aba5ea6ba
@ -39,7 +39,10 @@ General notes and suggestions for customizing **HPSTR**.
|
|||||||
title: Site Title
|
title: Site Title
|
||||||
description: Describe your website here.
|
description: Describe your website here.
|
||||||
disqus_shortname: shortname
|
disqus_shortname: shortname
|
||||||
url: http://your-website.com
|
# Your site's domain goes here. When working locally use localhost server leave blank
|
||||||
|
# PS. If you set this wrong stylesheets and scripts won't load and most links will break.
|
||||||
|
# PPS. If you leave it blank for local testing home links won't work, they'll be fine for live domains though.
|
||||||
|
url: http://localhost:4000
|
||||||
|
|
||||||
# Owner/author information
|
# Owner/author information
|
||||||
owner:
|
owner:
|
||||||
@ -123,7 +126,7 @@ hpstr-jekyll-theme/
|
|||||||
|
|
||||||
### _config.yml
|
### _config.yml
|
||||||
|
|
||||||
Most of the variables found here are used in the .html files found in `_includes` if you need to add or remove anything. A good place to start would be to add the `title`, `description`, and `url` for your site. Links are absolute and prefixed with `{{ "{{ site.url " }}}}` in the various `_includes` and `_layouts`, so remember to comment out `url`[^1] when working locally to avoid broken links.
|
Most of the variables found here are used in the .html files found in `_includes` if you need to add or remove anything. A good place to start would be to add the `title`, `description`, and `url` for your site. Links are absolute and prefixed with `{{ "{{ site.url " }}}}` in the various `_includes` and `_layouts`, so remember to properly set `url`[^1] to `http://localhost:4000` when developing locally.
|
||||||
|
|
||||||
#### Disqus Comments
|
#### Disqus Comments
|
||||||
|
|
||||||
@ -261,10 +264,10 @@ Having a problem getting something to work or want to know why I setup something
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This theme is free and open source software, distributed under the [GNU General Public License]({{ site.url }}/LICENSE) version 2 or later. So feel free to use this Jekyll theme on your site without linking back to me or including a disclaimer.
|
This theme is free and open source software, distributed under the [GNU General Public License]({{ site.url }}/LICENSE) version 2 or later. So feel free to to modify this theme to suit your needs.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
[^1]: Used to generate absolute urls in `sitemap.xml`, `feed.xml`, and for canonical urls in `head.html`. Don't include a trailing `/` in your base url ie: http://mademistakes.com. When developing locally remove or comment out this line so local CSS, JS, and image assets are used.
|
[^1]: Used to generate absolute urls in `sitemap.xml`, `feed.xml`, and for canonical urls in `head.html`. Don't include a trailing `/` in your base url ie: http://mademistakes.com. When developing locally I suggest using http://localhost:4000 or whatever localhost you're using to properly load all theme stylesheets, scripts, and image assets. If you leave this variable blank all links will resolve correctly except those pointing to home.
|
||||||
|
|
||||||
[^2]: If you're using GitHub Pages to host your site be aware that plugins are disabled. So you'll need to build your site locally and then manually deploy if you want to use this sweet plugin.
|
[^2]: If you're using GitHub Pages to host your site be aware that plugins are disabled. So you'll need to build your site locally and then manually deploy if you want to use this sweet plugin.
|
Loading…
Reference in New Issue
Block a user