Skip to content

Commit

Permalink
LOCO and associated site infrastructure for external events (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonJF authored Aug 12, 2024
1 parent 11948b3 commit bad2872
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
6 changes: 6 additions & 0 deletions content/events/spli/loco24.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 1st International Workshop on Low Carbon Computing
published: 2024-08-12
description: SPLI and the Low Carbon and Sustainable Computing group at Glasgow are organising LOCO 2024, the 1st International Workshop on Low Carbon Computing.
externalUrl: https://locos.codeberg.page/loco2024/
---
12 changes: 12 additions & 0 deletions content/news/loco.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: 1st International Workshop on Low Carbon Computing
published: 2024-08-12
---

SPLI and the Low Carbon and Sustainable Computing group at Glasgow are organising **LOCO 2024**, the 1st International Workshop on Low Carbon Computing.

3 December 2024 – hybrid event hosted in Glasgow, Scotland, United Kingdom

Deadline for extended abstracts: 24 September via [EasyChair](https://easychair.org/my/conference?conf=loco2024).

Full details on the [LOCO 2024 web site](https://locos.codeberg.page/loco2024/).
4 changes: 3 additions & 1 deletion site.hs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,10 @@ skeletonContext currentPage = do
spliEvents <- loadAll ("content/events/spli/*.md" .&&. hasVersion "navItems") :: Compiler [Item String]
eventInfo <- mapM (\itm -> do
let ident = itemIdentifier itm
let url = "/" ++ (replaceExt "html" (itemIdentifier itm))
let pageUrl = "/" ++ (replaceExt "html" (itemIdentifier itm))
desc <- getMetadataField' ident "title"
extUrl <- getMetadataField ident "externalUrl"
let url = fromMaybe pageUrl extUrl
return (desc, url)) spliEvents
let events = defaultEvents ++ eventInfo
return $
Expand Down
6 changes: 6 additions & 0 deletions templates/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,15 @@ <h2 class="">SPLI Events</h2>
<i class="$icon$"></i>
</div>
$endif$
$if(externalUrl)$
<a href="$externalUrl$" class="stretched-link">
<h3>$title$</h3>
</a>
$else$
<a href="$url$" class="stretched-link">
<h3>$title$</h3>
</a>
$endif$
<p>$description$</p>
</div>
</div><!-- End Service Item -->
Expand Down

0 comments on commit bad2872

Please sign in to comment.