mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-25 22:39:41 +01:00
add pathPrefix configuration
This commit is contained in:
parent
e1f30883fb
commit
e877c17f7d
13
README.md
13
README.md
@ -77,6 +77,19 @@ Open the `blog` directory in your code editor of choice and edit `src/templates/
|
|||||||
|
|
||||||
After clicking that button, you’ll authenticate with GitHub and choose a repository name. Netlify will then automatically create a repository in your GitHub account with a copy of the files from the template. Next, it will build and deploy the new site on Netlify, bringing you to the site dashboard when the build is complete. Next, you’ll need to set up Netlify’s Identity service to authorize users to log in to the CMS.
|
After clicking that button, you’ll authenticate with GitHub and choose a repository name. Netlify will then automatically create a repository in your GitHub account with a copy of the files from the template. Next, it will build and deploy the new site on Netlify, bringing you to the site dashboard when the build is complete. Next, you’ll need to set up Netlify’s Identity service to authorize users to log in to the CMS.
|
||||||
|
|
||||||
|
## Deploy to Github Pages
|
||||||
|
|
||||||
|
To deploy to github pages, simply do the following:
|
||||||
|
|
||||||
|
- Ensure that your `package.json` file correctly reflects where this repo lives
|
||||||
|
- Change the `pathPrefix` in your `config.js`
|
||||||
|
- Run the standard deploy command
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm run deploy
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Access Locally
|
#### Access Locally
|
||||||
```
|
```
|
||||||
$ git clone https://github.com/[GITHUB_USERNAME]/[REPO_NAME].git
|
$ git clone https://github.com/[GITHUB_USERNAME]/[REPO_NAME].git
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
url: 'https://lumen.netlify.com',
|
url: 'https://lumen.netlify.com',
|
||||||
|
pathPrefix: '/',
|
||||||
title: 'Blog by John Doe',
|
title: 'Blog by John Doe',
|
||||||
subtitle: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
|
subtitle: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
|
||||||
copyright: '© All rights reserved.',
|
copyright: '© All rights reserved.',
|
||||||
|
@ -4,6 +4,7 @@ const siteConfig = require('./config.js');
|
|||||||
const postCssPlugins = require('./postcss-config.js');
|
const postCssPlugins = require('./postcss-config.js');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
pathPrefix: siteConfig.pathPrefix,
|
||||||
siteMetadata: {
|
siteMetadata: {
|
||||||
url: siteConfig.url,
|
url: siteConfig.url,
|
||||||
title: siteConfig.title,
|
title: siteConfig.title,
|
||||||
|
Loading…
Reference in New Issue
Block a user