Jekyll Newbie - Deployting to MAMP - but still localhost:4000

Hello - I am a newbie - just started playing around with Jekyll after trying HUGO. I went through the tutorial - Setup | Jekyll • Simple, blog-aware, static sites - and was able to install and launch site no issues. I am running on Mac OSX (Mini) Sequoia. Everything is grand until I deployed the _site folder contents from Jekyll to a subfolder on the MAMP server. Both MAMP and Jekyll are on the same local machine.

I copied and pasted the _site contents to the named jekyll_site. When I go to localhost:8888 on MAMP - I get the Index Of/ page showing all my other folders in the root of the MAMP server including the Jekyll folder (this was intentional as I have other projects in other folders). When I select the Jekyll folder - the index.html page launches - but the other pages linked from the navigattion built in the tutorial says page not found. It seems that whenever I try to link to other pages in the Jekyll _site contents on MAMP. -it thinks it is still in 127.0.0.0:4000 not localhost:8888.

I missed something somewhere - is there a configuration or something I need?

Any help most appreciated!

Jekyll has its own webserver, no need to run mamp.

To serve the site in MAMP from the URL /jekyll_site you would need to set the baseurl variable in _config.yml. I.e.:

baseurl: /jekyll_site

By default, Jekyll builds sites to be served from the root of the web-server (i.e. baseurl defaults to the empty string). If the files in _site are moved to a sub-directory, then links will break. For example, Jekyll will use /about/ as the default URL for the About page, but MAMP is serving that page at /jekyll_site/about/, thus the result is a 404.