scholarslab / scholarslab.github.io

World Wide Web site! For the Scholars' Lab!
https://scholarslab.lib.virginia.edu
12 stars 7 forks source link

Improve ease of adding events to website #973

Open amandavisconti opened 7 months ago

amandavisconti commented 6 months ago

A closed ticket had some ideas that could or could not be useful: Add & test event.html check to include end_date and/or end_time display only if present remove "author" as event post option & template call add speaker as event post option & template call (and style) , but make it only display if exists (some events have no speaker, e.g. transcribe-a-thon) move "layout" column to just something the script appends to each post make script create "slug" from hyphenating title (and remove from spreadsheet column) Input body content too? Way to do this easily, or (far worse) set as YAML variable then {{events.content}} pulls in? In script (not spreadsheet), add quotation marks around each input

Resources:

about the script: http://www.evanlovely.com/utilities/jekyll/spreadsheet-to-markdown/
the script: https://raw.githubusercontent.com/EvanLovely/csv_to_jekyll/master/csv_to_jekyll.py
event template: https://docs.google.com/document/d/1qLncvRa6aqQPpf2BtZwGJFf_vqrLTG6EB6qoyenZxLc/edit
sheet to turn into file: https://docs.google.com/spreadsheets/d/1AkkCmNsWGTTbLUyLvekg_nFtsDanMfqqU02QZyN-l1A/edit#gid=0

For later:

Jeremy suggests just serve directly from spreadsheet

How to not read in & create new posts for whole spreadsheet each time (only new or changed data?)
amandavisconti commented 5 months ago

I'm testing out whether we could use a 2-tab Gsheet to input event info (with dropdowns/date-time formatting) and spit out the YAML to copy from the other tab (and paste into event file). link

Might be moot if we find a way to import from LibCal?

amandavisconti commented 1 month ago

Update from 9/17/2024 Laura, Jeremy, Amanda meeting:

amandavisconti commented 1 month ago

Update from 10/8/2024 chats: