Templates for the UNL website, coordinated by the Web Developer Network
JavaScript CSS HTML PHP Java Shell Other
Permalink
Failed to load latest commit information.
.git_filters Fix missing file path in git smudge filter for revision Dec 9, 2015
LICENSES update copyright for the new year Jan 2, 2013
Templates Fix grammer/spelling in UPGRADING documentation Jan 8, 2016
build Update tests to work with root-less travis-ci Feb 15, 2016
designfiles Rename the email design to match sibling design files. Mar 5, 2014
downloads Remove the build dependency on XZ Jun 13, 2016
images Image test with various image types and presentations. Jun 25, 2013
scripts Remove outdated scripts Dec 5, 2015
sharedcode Make contact info more accessible Jan 27, 2016
tests Fix typo in examples and whitespace in a11y test Apr 6, 2016
wdn/templates_4.1 Add black Nebraska N logo for print Sep 27, 2016
.gitattributes Update gitattributes to filter all future include directories Dec 9, 2015
.gitignore Add a sample config file for tests Jan 4, 2016
.htaccess Move utf-8 encoding to template dir, and fix extensions list Oct 28, 2013
.travis.yml Remove the build dependency on XZ Jun 13, 2016
CHANGELOG.md Add date to changelog for 4.1.12 Sep 12, 2016
Gruntfile.js Remove the build dependency on XZ Jun 13, 2016
Makefile Ensure full Makefile backwards compatibility Oct 13, 2015
README.md Rewrite build system for Grunt Aug 31, 2015
VERSION_DEP Bumped dependency version number to 4.1.12 Sep 12, 2016
VERSION_HTML Manually bump the versions for 4.1 beta 1 Nov 19, 2015
affiliate.shtml Populate affiliate template with example content Dec 8, 2015
debug.shtml Update template instances to 4.1 RC Dec 1, 2015
document.shtml Update template instances to 4.1 RC Dec 1, 2015
fixed.shtml Update template instances to 4.1 RC Dec 1, 2015
package.json Bumped dependency version number to 4.1.12 Sep 12, 2016
secure.shtml Update template instances to 4.1 RC Dec 1, 2015

README.md

UNL WDN Templates

The template files are developed and maintained by the Web Developer Network (WDN) at the University of Nebraska-Lincoln. These templates are made up of HTML, CSS and JS to power the underlying web presence.

Template Usage

Template usage is subject to the WDN Terms of Use.

Templates Available

All templates variations utilize the same HTML markup, with an exception of the body class, ex: class="document".

Collaboration

All members of the WDN are invited to contribute to this project. Please make a fork of the main repository for local development. Once you have created and tested your code, please send a pull request to the main repository.

Building Template Resources

Much of the template CSS and JavaScript is built using aggregators, preprocessors, and/or "minifiers". You can build a local copy of these resources with the following instructions as your guide.

The resources are built using a Gruntfile. The following tools are required to be installed.

  • Git -- version control system
  • NodeJS -- used to run the libraries that process and minimize LESS and JS files
  • Grunt -- The Grunt CLI must be installed ( npm install -g grunt-cli ) in order to build.

Installing the additional resources necessary to build the system can be downloaded by running npm install from the project root.

Once all of the above dependencies are met, simply running Grunt grunt at the project root will build all resources. The following are all of the supported targets.

  • default or all - builds all needed CSS and JavaScript
  • clean - removes all built files
  • requirejs or js - builds and minifies combined JS
  • less - builds all CSS files from their LESS counterparts
  • dist - builds the ZIP's used for template distribution

The JavaScript build process can be further customized by passing parameters. The following are the flags that are supported.

EXAMPLE: Build for use in a special CDN or server location grunt --rjs-flags="wdnTemplatePath=//www.unl.edu/"

EXAMPLE: Customize the UNLchat url. Could be useful for integrating a custom instance of UNLchat or for development grunt --rjs-flags="unlChatURl=//ucommchat-test.unl.edu/assests/js"

EXAMPLE: Two or more parameters are separated with a space grunt --rjs-flags="wdnTemplatePath=//www.unl.edu/ unlChatURl=//ucommchat-test.unl.edu/assests/js"

PLEASE NOTE: The build process has been optimized for a Linux or OS X environment. While it is technically possible to build on Windows, the specifics of setting up your environment correctly are beyond the scope of this project.

Further support

Support of the UNL Templates is coordinated and communicated through the WDN.