Jekyll: Difference between revisions
From Stat DS Computing Wiki
No edit summary |
No edit summary |
||
| Line 23: | Line 23: | ||
4 - Generate the final project files in your "/public_html" folder. | 4 - Generate the final project files in your "/public_html" folder. | ||
<syntaxhighlight lang="bash"> | |||
jekyll build --source ~/jekyllsetupfolder --destination ~/public_html | |||
</syntaxhighlight> | |||
5 - Access your site in a web browser. | |||
<syntaxhighlight lang="bash"> | |||
https://stat.cmu.edu/~yourusername | |||
</syntaxhighlight> | |||
If you need to make changes to your site after taking it live, edit the files in your "jekyllsetupfolder". | |||
Once you've made your changes, run the command below. | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
jekyll build --source ~/jekyllsetupfolder --destination ~/public_html | jekyll build --source ~/jekyllsetupfolder --destination ~/public_html | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 15:23, 17 December 2025
Follow the steps below to create a custom webpage on https://stat.cmu.edu under your own personal (/~yourusername) path using Jekyll. If you do not have a "stat.cmu.edu/~yourusername" site already, you must contact "remarks.stat.cmu.edu" for initial setup.
1 - Sign into the server.
ssh username@stat.cmu.edu2 - Initialize a new Jekyll projet folder. Do not use your "public_html" folder for this.
jekyll new jekyllsetupfolder3 - Edit the URL parameters in the config file.
nano jekyllsetupfolder/_config.ymlEdit the "baseurl" and "url" values in the yml file
baseurl: "/~yourusername" # the subpath of your site, e.g. /blog
url: "https://stat.cmu.edu" # the base hostname & protocol for your site, e.g. http://example.com4 - Generate the final project files in your "/public_html" folder.
jekyll build --source ~/jekyllsetupfolder --destination ~/public_html5 - Access your site in a web browser.
https://stat.cmu.edu/~yourusername
If you need to make changes to your site after taking it live, edit the files in your "jekyllsetupfolder".
Once you've made your changes, run the command below.
jekyll build --source ~/jekyllsetupfolder --destination ~/public_html