From 0c77fc0668ef5b33e2ee33675873c5e456cb7087 Mon Sep 17 00:00:00 2001 From: Tony Zorman Date: Mon, 12 Aug 2024 09:53:11 +0200 Subject: [PATCH] site: Create posters directory --- docs/ct2024.html | 6 ++--- .../posters/ct2024}/poster.pdf | Bin .../posters/ct2024}/poster.png | Bin .../posters/ct2024}/source.tar.gz | Bin docs/research.html | 2 +- ct2024.md => posters/ct2024/ct2024.md | 6 ++--- .../ct2024}/poster.pdf | Bin .../ct2024}/poster.png | Bin .../ct2024}/source.tar.gz | Bin research.md | 2 +- src/site.hs | 25 +++++++++++++----- 11 files changed, 26 insertions(+), 15 deletions(-) rename {ct2024-poster => docs/posters/ct2024}/poster.pdf (100%) rename {ct2024-poster => docs/posters/ct2024}/poster.png (100%) rename {ct2024-poster => docs/posters/ct2024}/source.tar.gz (100%) rename ct2024.md => posters/ct2024/ct2024.md (87%) rename {docs/ct2024-poster => posters/ct2024}/poster.pdf (100%) rename {docs/ct2024-poster => posters/ct2024}/poster.png (100%) rename {docs/ct2024-poster => posters/ct2024}/source.tar.gz (100%) diff --git a/docs/ct2024.html b/docs/ct2024.html index f1ee8e0..3f4a05a 100644 --- a/docs/ct2024.html +++ b/docs/ct2024.html @@ -54,8 +54,8 @@

Pivotality, Twisted Centres, and the Anti-Double of a Hopf Monad

Click on the preview image for a full-scale version.

- -A preview of the poster + +A preview of the poster

@@ -65,7 +65,7 @@

Pivotality, Twisted Centres, and the Anti-Double of a Hopf Monad

and [StZo]; a repository with the full source code is available here.
In the unlikely case that ever goes away before this website does, -a tarball is also available.

diff --git a/ct2024-poster/poster.pdf b/docs/posters/ct2024/poster.pdf similarity index 100% rename from ct2024-poster/poster.pdf rename to docs/posters/ct2024/poster.pdf diff --git a/ct2024-poster/poster.png b/docs/posters/ct2024/poster.png similarity index 100% rename from ct2024-poster/poster.png rename to docs/posters/ct2024/poster.png diff --git a/ct2024-poster/source.tar.gz b/docs/posters/ct2024/source.tar.gz similarity index 100% rename from ct2024-poster/source.tar.gz rename to docs/posters/ct2024/source.tar.gz diff --git a/docs/research.html b/docs/research.html index acd63e4..18c1dda 100644 --- a/docs/research.html +++ b/docs/research.html @@ -281,7 +281,7 @@

Posters§

Pivotality, Twisted Centres, and the Anti-Double of a Hopf Monad
2024-06-27, CT24, Santiago de Compostela; -pdf +pdf and accompanying website;

diff --git a/ct2024.md b/posters/ct2024/ct2024.md similarity index 87% rename from ct2024.md rename to posters/ct2024/ct2024.md index f08644c..a4786ed 100644 --- a/ct2024.md +++ b/posters/ct2024/ct2024.md @@ -7,10 +7,10 @@ no-comment: true Click on the preview image for a full-scale version.
- + A preview of the poster
@@ -39,4 +39,4 @@ a repository with the full source code is available [here][ghub:source-code].[^1 [paper:diagrammatics]: https://arxiv.org/abs/2312.13074 [^1]: In the unlikely case that ever goes away before this website does, - [a tarball](./ct2024-poster/source.tar.gz) is also available. + [a tarball](./posters/ct2024/source.tar.gz) is also available. diff --git a/docs/ct2024-poster/poster.pdf b/posters/ct2024/poster.pdf similarity index 100% rename from docs/ct2024-poster/poster.pdf rename to posters/ct2024/poster.pdf diff --git a/docs/ct2024-poster/poster.png b/posters/ct2024/poster.png similarity index 100% rename from docs/ct2024-poster/poster.png rename to posters/ct2024/poster.png diff --git a/docs/ct2024-poster/source.tar.gz b/posters/ct2024/source.tar.gz similarity index 100% rename from docs/ct2024-poster/source.tar.gz rename to posters/ct2024/source.tar.gz diff --git a/research.md b/research.md index 0b63e1b..2679f81 100644 --- a/research.md +++ b/research.md @@ -162,7 +162,7 @@ All of my papers are readily available on the [arXiv].[^2] - *Pivotality, Twisted Centres, and the Anti-Double of a Hopf Monad* \ 2024-06-27, CT24, Santiago de Compostela; - [PDF](./ct2024-poster/poster.pdf) + [PDF](./posters/ct2024/poster.pdf) and [accompanying website](./ct2024.html); diff --git a/src/site.hs b/src/site.hs index 7eb553a..f16ee27 100644 --- a/src/site.hs +++ b/src/site.hs @@ -144,12 +144,16 @@ aboutMe = do standalones :: Context String -> Rules () standalones tagCtx = do -- Mackey functors seminar - mkStandalone "mackey-functors.md" pure tagCtx - -- CT2024 poster - match "ct2024-poster/**" do + mkStandalone "mackey-functors.md" pure tagCtx Nothing + -- Posters + let posterGlob :: String -> Pattern + = \pth -> fromGlob ("posters/" <> pth <> "/**") .&&. complement "**.md" + --- CT2024 + match (posterGlob "ct2024") do route idRoute compile copyFileCompiler - mkStandalone "ct2024.md" pure tagCtx + mkStandalone "posters/ct2024/ct2024.md" pure tagCtx (Just "ct2024.html") + --- Ferrara 2024 -- Git introduction let gitCtx title = constField "title" title <> tagCtx fixTranscript = withItemBody $ pure . -- I know… @@ -157,9 +161,11 @@ standalones tagCtx = do mkStandalone "talks/git-introduction.md" fixTranscript (gitCtx "Git Introduction" <> constField "no-toc" "true") + Nothing mkStandalone "talks/git-introduction/transcript.md" pure (gitCtx "How to Use Git—an Interactive Tutorial") + Nothing -- Key match "key.txt" do route idRoute @@ -170,9 +176,14 @@ standalones tagCtx = do compile $ getResourceBody >>= relativizeUrls where -- Compile a standalone site. - mkStandalone :: Pattern -> (Item String -> Compiler (Item String)) -> Context String -> Rules () - mkStandalone ptn action baseCtx = match ptn do - route $ setExtension "html" + mkStandalone + :: Pattern -- Match the main standalone page + -> (Item String -> Compiler (Item String)) -- Additional compilation step + -> Context String -- Context + -> Maybe String -- Alternative route + -> Rules () + mkStandalone ptn action baseCtx altRoute = match ptn do + route $ maybe (setExtension "html") constRoute altRoute compile do ctx <- getTocCtx baseCtx myPandocCompiler