From 17b2370e4c260c228296e8c09810170a20bf4791 Mon Sep 17 00:00:00 2001 From: Digital Grinnell Date: Tue, 1 Oct 2024 13:17:21 -0500 Subject: [PATCH 01/12] Code ONLY changes from the yeager-collection.grinnell.edu experience --- README.md | 6 ++++- _config.yml | 11 ++++++++ _includes/feature/pdf.html | 5 +++- _includes/footer.html | 7 ++++- _includes/index/time.html | 3 +++ _includes/item/pdf-embed.html | 2 ++ _includes/transcript/item/filters.html | 27 ++++++++++++++++--- _includes/transcript/timestamp/mp3.html | 2 +- .../transcript/timestamp/soundcloud.html | 2 +- _layouts/home-infographic.html | 2 +- _layouts/item/pdf.html | 8 +++++- 11 files changed, 64 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ea7e35b0..c4c36045 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,11 @@ However, here is a super quick overview of the process: - Edit your project's "_config.yml" with your collection information (see [site configuration docs](https://collectionbuilder.github.io/cb-docs/docs/config/)). Additional customization is done via a theme file, configuration files, CSS tweaks, and more--however, once your "_config.yml" is edited your site is ready to be previewed. - Generate your site using Jekyll! (see docs for how to [use Jekyll locally](https://collectionbuilder.github.io/cb-docs/docs/repository/generate/) and [deploy on the web](https://collectionbuilder.github.io/cb-docs/docs/deploy/)) -Please feel free to ask questions in the main [CollectionBuilder discussion forum](https://github.com/CollectionBuilder/collectionbuilder.github.io/discussions). +Please feel free to ask questions in the main [CollectionBuilder discussion forum](https://github.com/CollectionBuilder/collectionbuilder.github.io/discussions). + +## Important TIMESTAMP Note! + +If you put `timestamp` in your transcripts (we highly recommended that you do) please make sure they use full `[hh:mm:ss]` notation! You may omit the `hh:` portion for timestamps of less than an hour, but make sure you always specify a full `mm:ss` notation. For example, for 9-minutes 7 seconds do NOT specify `[9:7]` or `[9:07]`, the proper form is `[00:09:07]` but `[09:07]` will also work. ---------- diff --git a/_config.yml b/_config.yml index 8e59f1fe..d81d9e36 100644 --- a/_config.yml +++ b/_config.yml @@ -24,11 +24,16 @@ tagline: Prototype for working with Oral History as Data items in CollectionBuil # description appears in meta tags and other locations # this description might appear in search result lists, keep around 160 characters max description: "CB-OHD is a mix of CollectionBuilder-CSV and Oral History as Data (OHD)." +# if you want a different description to appear in the footer only, define it here, or leave blank to use description +footer_description: "cb-oralhistory rocks!" # keywords, a short list of subjects describing the collection, separated by semicolon, to appear in rich markup keywords: oral histories;digital collections # creator of the digital collection, to appear in meta tags; we typically use our GitHub usernames but feel free to just use your name author: dcnb +### The documentation suggests... +# JEKYLL_ENV=production # ...must be set in order to make a production build. + ########## # COLLECTION SETTINGS # @@ -81,3 +86,9 @@ exclude: [docs/, Rakefile, README.md, LICENSE, CITATION.cff, CODE_OF_CONDUCT.md, # compress CSS output sass: style: compressed + +########### +# Additional parameters +# +# timezone: added per suggestion found in https://talk.jekyllrb.com/t/timezone-global-configuration-problem/7985 +timezone: America/Chicago \ No newline at end of file diff --git a/_includes/feature/pdf.html b/_includes/feature/pdf.html index c07c9f95..83478d07 100644 --- a/_includes/feature/pdf.html +++ b/_includes/feature/pdf.html @@ -21,6 +21,8 @@ Note: if you have issues make sure the item is a PDF file! {%- endcomment -%} + + {% if include.objectid contains "/" %} {%- capture src -%}{{ include.objectid | relative_url }}{%- endcapture -%} {%- capture pdf_link -%}{{ src }}{%- endcapture -%} @@ -40,4 +42,5 @@ {% unless include.caption == false %}
{{ pdf_caption }}
{% endunless %} - \ No newline at end of file + + \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html index 00335010..e8c1b4ba 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -5,7 +5,12 @@

{{ site.title }}

-

{{ site.description }}

+ {% if site.footer_description %} +

{{ site.footer_description }}

+ {% else %} +

{{ site.description }}

+ {% endif %} +