Commit fc85c4d4 authored by Fabien Maniere's avatar Fabien Maniere

add dynamic year + few changes

parent bc9dfdcf
......@@ -48,22 +48,26 @@ section .card * {
transition: all 0.2s ease-in-out;
}
section .card:hover {
.panel-articles .card:hover,
#section-connect .card:hover {
border: 1px solid var(--bs-primary);
cursor: pointer;
}
section .card:hover .card-title {
.panel-articles .card:hover .card-title,
#section-connect .card:hover .card-title {
color: var(--bs-primary);
}
.card-header {
border-bottom: 0;
}
.card {
.panel-articles .card,
#section-connect .card {
position: relative;
}
.card a.btn::before {
.panel-articles .card a.btn::before,
#section-connect .card a.btn::before {
content: "";
position: absolute;
top: 0px;
......
......@@ -7,5 +7,6 @@ executable site
main-is: site.hs
build-depends: base == 4.*
, hakyll == 4.16.*
, time
ghc-options: -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010
......@@ -619,7 +619,7 @@ keywords: gargantext, libre, fiable, transparent, intelligible, écosystème, d
<!-- </div> -->
<div class="alert alert-light col col-lg-10 mx-auto my-5 text-center border border-secondary">
<div class="alert alert-light col col-lg-10 mx-auto my-5 p-4 text-center border border-secondary">
<span class="alert-heading fw-bold">
<span class="fa-stack">
<i class="fa fa-circle fa-stack-2x text-primary"></i>
......@@ -627,7 +627,7 @@ keywords: gargantext, libre, fiable, transparent, intelligible, écosystème, d
</span>
Vous n’avez pas encore d’accès ?
</span>
<a href="https://iscpif.fr/demander-lacces-aux-services/" target="_blank" class="fw-bold">Contactez-nous <i class="fa fa-external-link " aria-hidden="true"></i></a>.
<a href="https://iscpif.fr/demander-lacces-aux-services/" target="_blank" class="btn btn-primary d-inline-block">Contactez-nous <i class="fa fa-external-link " aria-hidden="true"></i></a>.
</div>
</div>
......
......@@ -2,6 +2,8 @@
{-# LANGUAGE OverloadedStrings #-}
import Data.Monoid (mappend)
import Hakyll
import Data.Time.Clock (getCurrentTime)
import Data.Time.Format (formatTime, defaultTimeLocale)
--------------------------------------------------------------------------------
......@@ -47,8 +49,10 @@ main = hakyllWith config $ do
route idRoute
compile $ do
posts <- recentFirst =<< loadAll "posts/*"
currentYear <- unsafeCompiler getCurrentYear
let indexCtx =
listField "posts" postCtx (return posts) `mappend`
constField "year" currentYear `mappend`
defaultContext
getResourceBody
......@@ -65,6 +69,9 @@ postCtx =
dateField "date" "%B %e, %Y" `mappend`
defaultContext
getCurrentYear :: IO String
getCurrentYear = formatTime defaultTimeLocale "%Y" <$> getCurrentTime
config :: Configuration
config = defaultConfiguration
{ previewPort = 7000
......
......@@ -71,7 +71,7 @@
<footer class="bg-green justify-content-center align-items-center text-center p-4 mt-5">
<div class="footer-bottom text-light text-center py-5 "><a href="https://gitlab.iscpif.fr/gargantext/main/raw/master/LICENSE" target="_blank" class="text-light">Mentions légales <i class="fa fa-external-link " aria-hidden="true"></i></a> - © GarganText 2024</div>
<div class="footer-bottom text-light text-center py-5 "><a href="https://gitlab.iscpif.fr/gargantext/main/raw/master/LICENSE" target="_blank" class="text-light">Mentions légales <i class="fa fa-external-link " aria-hidden="true"></i></a> - © GarganText $year$</div>
<ul class="logos list-unstyled list-inline">
<li class="list-inline-item"><a href="https://www.cnrs.fr" target="_blank" class="footer-link"><img src="/images/logo-cnrs-white.png" alt="CNRS - Centre national de la recherche scientifique" class="logo logo-iscpif"></a></li>
<a class="list-inline-item"><a href="https://iscpif.fr" target="_blank" class="footer-link"><img src="/images/logo-iscpif.png" alt="ISCPIF - Institut des systèmes complexes Paris Ile-de-France" class="logo logo-cnrs"></a></li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment