Skip to content

Commit

Permalink
[ Generate101 ] We are not always in LT
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikNordvallForsberg committed Sep 28, 2023
1 parent 69b5524 commit 624e8e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion OneOhOne.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ usualDay = "Friday"
usualRoom :: String
usualRoom = "LT210"

usualBuilding :: String
usualBuilding = "Livingstone Tower"

-- HTML utils

nl2br :: String -> String
Expand Down Expand Up @@ -350,7 +353,7 @@ generateHTML ts out = do
header = unlines ["### default.html(section.msp101=current,headtags=<link rel='alternate' type='application/rss+xml' title='MSP101 seminars RSS feed' href='/msp101.rss'/>)",
"<!-- DO NOT EDIT THIS FILE DIRECTLY — EDIT _101.json AND RUN Generate101.hs INSTEAD -->",
"<h2>MSP101 Seminar</h2>",
"<p>MSP101 is an ongoing series of informal talks by visiting academics or members of the MSP group. The talks are usually " ++ usualDay ++ " " ++ formattedTime ++ " in room " ++ usualRoom ++ " in Livingstone Tower. They are announced on the <a href='https://lists.cis.strath.ac.uk/mailman/listinfo/msp-interest'>msp-interest</a> mailing-list. The list of talks is also available as a <a type='application/rss+xml' href='/msp101.rss'><img src='/images/feed-icon-14x14.png' alt='feed icon'>RSS feed</a> and as a <a href='msp101.ics'>calendar file</a>. <b>The MSP 101 seminar is now hybrid, with both in-person attendance in room " ++ usualRoom ++ ", and online via Zoom (the link can be found on the msp-interest mailing list and the SPLS Zulipchat).</b></p>"]
"<p>MSP101 is an ongoing series of informal talks by visiting academics or members of the MSP group. The talks are usually " ++ usualDay ++ " " ++ formattedTime ++ " in room " ++ usualRoom ++ " in " ++ usualBuilding ++ ". They are announced on the <a href='https://lists.cis.strath.ac.uk/mailman/listinfo/msp-interest'>msp-interest</a> mailing-list. The list of talks is also available as a <a type='application/rss+xml' href='/msp101.rss'><img src='/images/feed-icon-14x14.png' alt='feed icon'>RSS feed</a> and as a <a href='msp101.ics'>calendar file</a>. <b>The MSP 101 seminar is now hybrid, with both in-person attendance in room " ++ usualRoom ++ ", and online via Zoom (the link can be found on the msp-interest mailing list and the SPLS Zulipchat).</b></p>"]
writeFile out (header ++ upcoming ++ previous)
where
entryBlock b i dt abst = unlines $
Expand Down

0 comments on commit 624e8e3

Please sign in to comment.