Make baseurl empty and adapt README, netlify.toml and the sitemap_generator accordingly

This commit is contained in:
erciccione 2020-08-30 11:00:11 +02:00
parent a66e14d55d
commit 213df55033
No known key found for this signature in database
GPG key ID: 762AF8C608E56CDF
4 changed files with 4 additions and 4 deletions

View file

@ -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: 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. 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). 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. 4. If all went well, you should see the Monero website and you're ready to make changes.

View file

@ -2,7 +2,7 @@ email: dev@getmonero.org
name: Monero name: Monero
description: Monero is a digital currency that is secure, private, and untraceable. description: Monero is a digital currency that is secure, private, and untraceable.
keywords: "monero, xmr, bitmonero, cryptocurrency" keywords: "monero, xmr, bitmonero, cryptocurrency"
baseurl: "https://www.getmonero.org" baseurl: ""
url: "https://www.getmonero.org" url: "https://www.getmonero.org"
markdown: kramdown markdown: kramdown

View file

@ -181,7 +181,7 @@ module Jekyll
# Returns the location of the page or post # Returns the location of the page or post
def fill_location(site, page_or_post) def fill_location(site, page_or_post)
loc = REXML::Element.new "loc" 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.text = page_or_post.location_on_server(url)
loc loc

View file

@ -1,6 +1,6 @@
[build] [build]
publish = "_site/" publish = "_site/"
command = "jekyll build --trace --limit-posts 10 --baseurl ''" command = "jekyll build --trace --limit-posts 10"
[build.environment] [build.environment]
RUBY_VERSION = "2.6" RUBY_VERSION = "2.6"