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
orestis.malaspin
homepage
Commits
166f86d6
Commit
166f86d6
authored
4 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
trying to see if twitter can be nice
parent
06065bf6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#12609
passed
4 years ago
Stage: test
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hakyll-bootstrap/Main.hs
+20
-0
20 additions, 0 deletions
hakyll-bootstrap/Main.hs
hakyll-bootstrap/js/widgets.js
+8
-0
8 additions, 0 deletions
hakyll-bootstrap/js/widgets.js
hakyll-bootstrap/templates/page.html
+1
-0
1 addition, 0 deletions
hakyll-bootstrap/templates/page.html
with
29 additions
and
0 deletions
hakyll-bootstrap/Main.hs
+
20
−
0
View file @
166f86d6
...
...
@@ -169,6 +169,13 @@ main = hakyllWith config $ do
>>=
loadAndApplyTemplate
"templates/archive.html"
(
pagesCtx
posts
"Bachelor projects"
)
>>=
relativizeUrls
-- Render some static pages
match
(
fromList
staticPages
)
$
do
route
$
setExtension
".html"
compile
$
pandocCompiler
>>=
loadAndApplyTemplate
"templates/page.html"
postCtx
>>=
relativizeUrls
-- Index
match
"index.html"
$
do
route
idRoute
...
...
@@ -187,6 +194,19 @@ main = hakyllWith config $ do
-- Read templates
match
"templates/*"
$
compile
templateCompiler
where
staticPages
=
[
"pages/contact.md"
]
-- Used to compile to PDF
-- where
-- writeXeTex :: Item Pandoc.Pandoc -> Compiler (Item String)
-- writeXeTex = traverse $ \pandoc ->
-- case Pandoc.runPure (Pandoc.writeLaTeX Pandoc.def pandoc) of
-- Left err -> fail $ show err
-- Right x -> return (T.unpack x)
--------------------------------------------------------------------
-- Contexts
--------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
hakyll-bootstrap/js/widgets.js
0 → 100644
+
8
−
0
View file @
166f86d6
This diff is collapsed.
Click to expand it.
hakyll-bootstrap/templates/page.html
+
1
−
0
View file @
166f86d6
...
...
@@ -30,5 +30,6 @@
<script
src=
"/js/jquery.js"
></script>
<script
src=
"/js/bootstrap.js"
></script>
<script
src=
"/js/holder.js"
></script>
<script
src=
"/js/widgets.js"
charset=
"utf-8"
></script>
</body>
</html>
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