Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
homepage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexis Durgnat
homepage
Commits
8550442d
Commit
8550442d
authored
4 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
added class ctxt
parent
59d3b861
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hakyll-bootstrap/Main.hs
+7
-2
7 additions, 2 deletions
hakyll-bootstrap/Main.hs
hakyll-bootstrap/templates/nav.html
+1
-1
1 addition, 1 deletion
hakyll-bootstrap/templates/nav.html
with
8 additions
and
3 deletions
hakyll-bootstrap/Main.hs
+
7
−
2
View file @
8550442d
...
...
@@ -40,6 +40,11 @@ mathCtx = field "mathjax" $ \item -> do
then
"<script type=
\"
text/javascript
\"
src=
\"
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML
\"
></script>"
else
""
courseCtx
posts
title
=
listField
"posts"
postCtx
(
return
posts
)
`
mappend
`
constField
"title"
title
`
mappend
`
defaultContext
archiveCtx
posts
=
listField
"posts"
postCtx
(
return
posts
)
`
mappend
`
constField
"title"
"Archives"
...
...
@@ -71,7 +76,7 @@ static = do
resize
::
Rules
()
resize
=
do
match
"img/thumbnails/**"
$
do
match
"img/thumbnails/**
.png
"
$
do
route
idRoute
compile
$
loadImage
>>=
scaleImageCompiler
140
140
...
...
@@ -119,7 +124,7 @@ conc = do
compile
$
do
posts
<-
recentFirst
=<<
loadAll
"cours/*"
makeItem
""
>>=
loadAndApplyTemplate
"templates/archive.html"
(
archiv
eCtx
posts
)
>>=
loadAndApplyTemplate
"templates/archive.html"
(
cours
eCtx
posts
"Programmation concurrente"
)
>>=
relativizeUrls
index
::
Rules
()
...
...
This diff is collapsed.
Click to expand it.
hakyll-bootstrap/templates/nav.html
+
1
−
1
View file @
8550442d
...
...
@@ -19,7 +19,7 @@
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Mathématiques en technologie de l'information
</a></li>
<li><a
href=
"#"
>
Programmation séquentielle en C
</a></li>
<li><a
href=
"
#
"
>
Programmation concurrente
</a></li>
<li><a
href=
"
/prog_conc.html
"
>
Programmation concurrente
</a></li>
<li
class=
"divider"
></li>
<li
class=
"dropdown-header"
>
Archivés
</li>
<li><a
href=
"#"
>
Sciences orientation logicielle
</a></li>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment