All front matter is written in Markdown.
At the start of *.md
files, there will be a section delimited by ---
. These are variables for each page.
title
- title of the pagenav_title
[Optional] - the text to be used in the navbar.title
used as defaultnav_index
- the position of the page in the navbar. Sorted alphabetically otherwise.nav_ignore
- set totrue
if page is not to be shown in the navbar.- Other default variables can be found here
Set the baseurl
variable in config.yaml
according to wherever you are going to host this site from relative to the root. For example, if the website is to be hosted on https://web.iisermohali.ac.in/students/oppcell
, then set baseurl: "/students/oppcell"
.
If viewing on Github, comment out the line as # baseurl: ...
- Clone repo and cd into it.
- Follow the steps as described in the Jekyll installation page
- Run
bundle install
then,bundle update
- Run
bundle exec jekyll serve
- Open the browser to the server address as outputted in the previous command.
- You should be able to see the site. Make changes as necessary, and check using
bundle exec jekyll serve
. - When you are happy, use the files generated in
_site
and place in the production server. Make sure you have set thebaseurl
in_config.yaml
as discussed in Important Info. - Make sure you update
README.md
if necessary.
Publishing is done by using sftp
to put files generated in _site
onto the oppcell server. The login details needs to be provided by the faculty incharge of the OppCell to the webdev. Contact the CC for the same.