mirror of
https://github.com/monero-project/monero-site.git
synced 2024-11-16 07:47:48 +00:00
Make baseurl empty and adapt README, netlify.toml and the sitemap_generator accordingly
This commit is contained in:
parent
a66e14d55d
commit
213df55033
4 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ If you need support about something related to the website, plese join `#monero-
|
|||
Once you have the above list of things, it's typically a good idea to build the website from your local computer to make sure it works before you make any changes. To do this, complete the following steps:
|
||||
|
||||
1. Navigate to your local `monero-site` repository.
|
||||
2. Serve the website: `bundle exec jekyll serve --baseurl ''`. If you want, you can speedup thi process by loading only the last blog post instead of all of them. Simply add `--limit_posts 1` to the command above. The resulting command will be `bundle exec jekyll serve --limit_posts 1 --baseurl ''`.
|
||||
2. Serve the website: `bundle exec jekyll serve`. If you want, you can speedup this process by loading only the last blog post instead of all of them. Simply add `--limit_posts 1` to the command above. The resulting command will be `bundle exec jekyll serve --limit_posts 1`.
|
||||
3. Open a browser and go to [http://127.0.0.1:4000](http://127.0.0.1:4000).
|
||||
4. If all went well, you should see the Monero website and you're ready to make changes.
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ email: dev@getmonero.org
|
|||
name: Monero
|
||||
description: Monero is a digital currency that is secure, private, and untraceable.
|
||||
keywords: "monero, xmr, bitmonero, cryptocurrency"
|
||||
baseurl: "https://www.getmonero.org"
|
||||
baseurl: ""
|
||||
url: "https://www.getmonero.org"
|
||||
|
||||
markdown: kramdown
|
||||
|
|
|
@ -181,7 +181,7 @@ module Jekyll
|
|||
# Returns the location of the page or post
|
||||
def fill_location(site, page_or_post)
|
||||
loc = REXML::Element.new "loc"
|
||||
url = site.config['baseurl']
|
||||
url = site.config['url'] + site.config['baseurl']
|
||||
loc.text = page_or_post.location_on_server(url)
|
||||
|
||||
loc
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[build]
|
||||
publish = "_site/"
|
||||
command = "jekyll build --trace --limit-posts 10 --baseurl ''"
|
||||
command = "jekyll build --trace --limit-posts 10"
|
||||
|
||||
[build.environment]
|
||||
RUBY_VERSION = "2.6"
|
||||
|
|
Loading…
Reference in a new issue