A Jekyll plugin for generating conversational transcripts.
Converts posts with a .transcript
extension from this 2016-01-19-example.transcript to this Generated Transcript Page.
Copy over the following assets to your Jekyll install:
_plugins/transcript_converter.rb
to your_plugins
directorycss/transcripts.css
to yourcss
directoryimages/generic_speaker.png
to yourimages
directory
You also need to update _includes/head.html
to include the transcript.css
:
<link rel="stylesheet" href="{{ "/css/transcripts.css" | prepend: site.baseurl }}">
Transcripts must be placed in _posts
and have a .transcript
extension.
Transcripts are an extension of Markdown. It simply adds the bang-hash (!#) element to the Markdown lexicon. The new element defines the start of a speaker's comments. Contents of the bang-hash should contain the speakers name and an optional time stamp. Everything else is processed as markdown.
You can also include front matter properties to specify image URLs to use for each speakers. See example above on how this is done.