Skip to content

knagasaki/showcase.iiif.io

 
 

Repository files navigation

Build Status

IIIF Showcase

Source of the IIIF demos site (showcase.iiif.io)

To Debug the Site

  1. bundle install

  2. Run $ ./dev.sh to compile the site and run a dev server on http://localhost:4000.

To Publish the Site

(E.g. for Apache to serve), run ./publish.sh /my/site/dir. Note that if the site is not at '/' on the server, js and css will not work (the source files use absolute paths.)

Some Things to Note

  • Much of the site data is in the YAML files in _data/ make edits there.
  • Site level variables are set in _config.yml.

Adding a Tile to the Showcase

  1. Add an entry to the YAML file under source/_data/showcase.yml with the following format:
- name: Example Project
  id: example-project
  img_url: img/showcase/example-project.png
  desc:
  - >
    Brief (max. ~30-50 words) description of your project here.
  url: showcase/example-project.html
  1. Add a file example-project.html to the source/showcase directory with the following content (adapted as necessary):
---
title: "Showcase : Example Project"
id: example-project
categories: [pages]
layout: sub-page
---

<section class="showcase showcase-item wrapper">
  {% include showcase_return.html %}

  <iframe src="http://example-project.com" frameborder="0"></iframe>

  {% assign id = "example-project" %}
  {% include sub-showcase_md.html %}
</section>

  1. Create a 500 x 500 pixel PNG (or JPEG or GIF) image named example-project.png that represents "Example Project" and add it to the source/img/showcase directory.

About

Source for the showcase.iiif.io site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.6%
  • CSS 33.9%
  • HTML 5.0%
  • Other 0.5%