scholarslab / neatline-theme-template

A starter theme for Neatline exhibits.
Apache License 2.0
3 stars 16 forks source link

Neatline Starter Theme

This is a template for an exhibit-specific Neatline theme, extracted from the Project Gemini over Baja California project. The theme uses:

Installation

To get started, fork the repo and clone it into your Omeka theme at:

[omeka-theme]/neatline/exhibits/themes/[exhibit-slug]

Where exhibit-slug is the "URL Slug" of the exhibit you're theming. Then, you'll need to install Node.js and a handful of global packages. If you're on Mac:

  1. Install homebrew:

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  2. Install Node.js and npm:

    brew install node

  3. Install Bower:

    npm install -g bower

  4. Install the Grunt CLI tool:

    npm install -g grunt-cli

  5. Install NPM packages:

    npm install

  6. Install Bower packages:

    bower install

Development

Once the packages are installed, kick things off by running the watch task:

grunt watch

Now, when you save any of the *.js or *.styl files under the assets/ directory, Grunt will automatically compile the two payload files that are loaded by Neatline: style.css and script.js.

When you're ready to deploy the theme to production, run:

grunt compile:min

Which compresses the CSS and Javascript payloads. Happy theming!