Source of the IIIF demos site (showcase.iiif.io)
-
bundle install
-
Run
$ ./dev.sh
to compile the site and run a dev server on http://localhost:4000.
(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.)
- Much of the site data is in the YAML files in
_data/
make edits there. - Site level variables are set in
_config.yml
.
- 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
- Add a file
example-project.html
to thesource/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>
- Create a 500 x 500 pixel PNG (or JPEG or GIF) image named
example-project.png
that represents "Example Project" and add it to thesource/img/showcase
directory.