This is the source code to the Open@RIT website currently hosted at openr.it. It is meant to be built using Jekyll and Sass, with no need for extra plugins.
Most of the pages in the site are simply markdown files and directories. The locations of these markdown files relative to the project root corresponds directly to the location of the page in the final site. For example, the /about/evaluating
page is generated from the file at :/about/evaluating.html
. Some other files and directories are present which play an important role, however. Some of the most important are:
This contains any non-page assets. For the most part, these are static assets that are copied 1:1 into the final site. The one exception to this is the stylesheet, which is fed to Sass for preprossesing before being copied.
Data and lists used to create several elements of the site. Notable inclusions are the nav structure of the site and a list of fellows used to generate the widget on the landing page.
Components which are referenced in other pages. For example, the "quick links" widget you can see on the About page has an aside.html
file in the includes folder, which is referenced in order to generate the widget.
The boilerplate HTML present on every page. This is things like the banner, navigation, footer, and sidenav.
Install Jekyll on your system, or from the local repository. On Linux, the latter can be accomplished using the commands
bundle install
A local webserver can now be created using the command
bundle exec jekyll serve
Or if you're using a system-wide Jekyll install, such as one from a package repo, run just
jekyll serve
A build for deployment can be created using
jekyll build
# or
bundle exec jekyll build
Please configure your webserver to serve files such as /about.html
under /about
and /about/
in addition to /about.html
. For the webserver Caddy, this can be acheived with the addition of the lines
try_files {path}.html {path}