The core template itself consists of .top.inc
, .bottom.inc
(and .coursebottom.inc
for course pages) to create the basic structure, and md.php
and Parsedown.php
which handle Markdown rendering.
Don't touch any of the core files.
The other files are used to configure the site:
.htaccess
pulls in the template & configures several other Apache settings.
.config.inc
configures several template options..title.inc
will be pulled into the header of the site..nav-[position].inc
should be lists of li
tags that will be used to make up the navigation structure of the site.ASSETS/custom.css
is loaded to provide any site-specific CSS.
Thanks to some .htaccess
magic, any file in the site structure saved with an .md
extension will get run through a PHP Markdown parser.
The only little issue is that you have to go to the page without the .md
extension, otherwise it will serve up the raw file.
This also means that your index
file must be PHP, not Markdown.
The .config.inc
file is filled with php DEFINE
statements that control the template.
All of these options are subdirectory-specific - if you copy your .config
file to a subdirectory, you can override the settings for the pages in that directory.
These can all be referenced in the site content as well.
ROOT
ASSETS
LAB
THEME
paper
is about as plain, simple, black-on-white as it getsboilerwhite
has some Purdue Old Gold accents on a white backgroundblackngold
has a black background with white text & gold accentsmoon
is a brown & warm grey theme.
sky
is a light blue & white theme.lawn
is green & leafy.PANELED
true
, the site content will be contained in a white box instead of up against the themed backgroundFLUID
true
, the site will take up the full width of the screen.TOP
true
, the content from .title
will be placed at the top of every page.NAVLAYOUT
top
puts a full-width navbar under the title sectiondetached
puts a navbar above the page contentleft
puts a navigation menu on the left side of the pageright
puts a navigation menu on the right side of the pageIn addition to the above settings, a course page needs the following 2 constants defined:
COURSE
COURSETITLE
Purdue University, 610 Purdue Mall, West Lafayette, IN 47907, (765) 494-4600
© 2019 Purdue University | An equal access/equal opportunity university | Copyright Complaints | Maintained by Mechanical Engineering Technical Services
Trouble with this page? Disability-related accessibility issue? Please contact us at mecl@purdue.edu.