Skip to content

Commit

Permalink
Adding index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
saldasib committed Aug 9, 2023
1 parent 3207f30 commit 2466b85
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{{ site.description }}

### IIIF Images:
<script src="{{ '/plugins/js/image.js' | absolute_url }}" ></script>

<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"></script>
<link rel="stylesheet" href="plugins/justified/justifiedGallery.min.css" />
<script src="plugins/justified/jquery.justifiedGallery.min.js"></script>

<script>
{% assign files = site.static_files | where_exp: "image", "image.path contains '/images/'" |where_exp: "image", "image.path contains '/info.json'" %}
{% for img_file in files %}
addToGallery('gallery', '{{img_file.path | absolute_url}}', 300,300);
{% endfor %}
</script>
<div id="gallery">
</div>

<script>
$("#gallery").justifiedGallery({
rowHeight: 300
});
</script>


### Manifests:
{% assign manifests = site.static_files | where_exp: "manifest", "manifest.path contains '/manifests/'" |where_exp: "manifest", "manifest.extname == '.json'" | where_exp: "manifest", "manifest.path != '/manifests/collection.json' " %}

{% for file in manifests %}
* [{{ file.path | replace: "/manifests/", ""}}]({{ file.path | absolute_url }})
* [View in Mirador](https://projectmirador.org/embed/?iiif-content={{ file.path | absolute_url}})
* [View in UV](http://universalviewer.io/examples/#?c=&m=&s=&cv=&manifest={{ file.path | absolute_url}})
{% endfor %}

### Annotations

{% assign annotations = site.static_files | where_exp: "annotation", "annotation.path contains '/annotations/'" |where_exp: "annotation", "annotation.extname == '.json'" | where_exp: "annotation", "annotation.path != '/annotations/collection.json'" %}

{% for file in annotations %}
* [{{ file.path | replace: "/annotations/", ""}}]({{ file.path | absolute_url }})
* [View in Annona](plugins/annona/?iiif-content={{ file.path | absolute_url }})
{% endfor %}

0 comments on commit 2466b85

Please sign in to comment.