summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-05-27 21:17:24 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-05-27 21:17:24 +0200
commitfb1406d898406709fc9cac2c50945fe1c15add43 (patch)
tree4892a9165149caa95e5a2e0fbd47cb0fda701979
parentb3c72a1370cf5cf0c620b3c40d5947f3d93cbed1 (diff)
downloaddirty-haskell.org-fb1406d898406709fc9cac2c50945fe1c15add43.tar
dirty-haskell.org-fb1406d898406709fc9cac2c50945fe1c15add43.tar.gz
dirty-haskell.org-fb1406d898406709fc9cac2c50945fe1c15add43.tar.bz2
dirty-haskell.org-fb1406d898406709fc9cac2c50945fe1c15add43.tar.xz
dirty-haskell.org-fb1406d898406709fc9cac2c50945fe1c15add43.zip
Support for some kinds of links
-rw-r--r--provider/css/default.css20
-rw-r--r--provider/templates/default.html1
2 files changed, 21 insertions, 0 deletions
diff --git a/provider/css/default.css b/provider/css/default.css
index b8d562c..36cbb72 100644
--- a/provider/css/default.css
+++ b/provider/css/default.css
@@ -67,6 +67,26 @@ a {
67 color:inherit; 67 color:inherit;
68} 68}
69 69
70header ul.links {
71 padding:1em 0 0 0;
72 margin:1em 0 0 0;
73 border-top:2px solid #f0f0f0;
74 display:block;
75 list-style:none outside none;
76}
77
78header ul.links:empty { display:none; }
79
80header ul.links li {
81 margin:0;
82 padding:0;
83 display:inline;
84}
85
86header ul.links li:after { content:", "; }
87
88header ul.links li:last-child:after { content: ""; }
89
70p { 90p {
71 margin-top:1em; 91 margin-top:1em;
72 margin-bottom:0; 92 margin-bottom:0;
diff --git a/provider/templates/default.html b/provider/templates/default.html
index 7cc15f4..ffdd5e2 100644
--- a/provider/templates/default.html
+++ b/provider/templates/default.html
@@ -18,6 +18,7 @@
18<header> 18<header>
19 <h1 class="title"><a href="/" title="dirty-haskell.org">dirty-haskell.org</a>$if(title)$: $title$$endif$</h1> 19 <h1 class="title"><a href="/" title="dirty-haskell.org">dirty-haskell.org</a>$if(title)$: $title$$endif$</h1>
20 <h2 class="subtitle">It's not crazy — it's having fun with types.</h2> 20 <h2 class="subtitle">It's not crazy — it's having fun with types.</h2>
21 <ul class="links">$if(repo)$<li><a href="$repo$">Code repository</a></li>$endif$$if(base)$<li><a href="$base$">Base file</a></li>$endif$</ul>
21</header> 22</header>
22$body$ 23$body$
23<footer> 24<footer>