Commit d47bc6e5 authored by Antoine Fauchié's avatar Antoine Fauchié
Browse files

edit: improve formats access

parent 090656bf
Pipeline #11602 passed with stages
in 15 seconds
......@@ -7,7 +7,7 @@ pages:
script:
- pandoc -f markdown -t html --template=template-home.html source.md --citeproc -o public/index.html
- pandoc -f markdown -t html --template=template-poster.html source.md --citeproc -o public/poster.html
- pandoc -f markdown -t plain source.md --citeproc -o public/index.txt
- pandoc -f markdown -t plain source.md --citeproc -o public/plain.txt
- cp index.css public/index.css
- cp poster.css public/poster.css
- cp -r images/* public/images/.
......
......@@ -11,10 +11,16 @@ body {
}
nav {
margin: 0 auto;
font-size: 1.5em;
margin-top: 2em;
margin-bottom: 2em;
max-width: 20em;
}
.un {
border: dashed black 3px;
}
a, a:hover {
color: #265D8A;
}
......@@ -28,12 +34,6 @@ h1, h2 {
h1 {
font-size: 3em;
}
h2 {
margin-top: 0em;
}
h3 {
margin-bottom: 0em;
}
p {
margin: 0.5em auto;
line-height: 1.25em;
......
......@@ -17,7 +17,7 @@ formats:
- name: XML
address: index.xml
- name: txt
address: index.txt
address: plain.txt
---
::: {.un}
......
......@@ -8,6 +8,8 @@
<body>
<header>
<h1>$title$</h1>
<p>$credits$ Source: <a href="https://$source$">$source$</a></p>
<p class="title-nav">Other formats:<p>
<nav>
$for(formats)$
<a href="$formats.address$">$formats.name$</a>
......@@ -18,7 +20,7 @@
$body$
</div>
<footer>
<p>$credits$ Source: <a href="https://$source$">$source$</a></p>
$foot$
</footer>
</body>
......
Supports Markdown
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