Properly extract and display title for all formats.
This commit is contained in:
@@ -222,10 +222,6 @@ html {overflow-y: scroll;}
|
||||
margin-top: 1.5em !important;
|
||||
}
|
||||
|
||||
.wikistyle h1:first-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wikistyle h2 {
|
||||
font-size: 150% !important;
|
||||
margin-top: 1.5em !important;
|
||||
@@ -344,25 +340,60 @@ html {overflow-y: scroll;}
|
||||
|
||||
/* Special markup considerations */
|
||||
|
||||
.wikistyle.gollum > h1:first-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* asciidoc */
|
||||
|
||||
.wikistyle .ulist p,
|
||||
.wikistyle .olist p {
|
||||
.wikistyle.gollum.asciidoc > div#header > h1:first-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wikistyle.gollum.asciidoc .ulist p,
|
||||
.wikistyle.gollum.asciidoc .olist p {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.wikistyle .loweralpha {
|
||||
.wikistyle.gollum.asciidoc .loweralpha {
|
||||
list-style-type: lower-alpha;
|
||||
}
|
||||
|
||||
.wikistyle .lowerroman {
|
||||
.wikistyle.gollum.asciidoc .lowerroman {
|
||||
list-style-type: lower-roman;
|
||||
}
|
||||
|
||||
.wikistyle .upperalpha {
|
||||
.wikistyle.gollum.asciidoc .upperalpha {
|
||||
list-style-type: upper-alpha;
|
||||
}
|
||||
|
||||
.wikistyle .upperroman {
|
||||
.wikistyle.gollum.asciidoc .upperroman {
|
||||
list-style-type: upper-roman;
|
||||
}
|
||||
}
|
||||
|
||||
/* org */
|
||||
|
||||
.wikistyle.gollum.org > p.title:first-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wikistyle.gollum.org p:first-child + h1 {
|
||||
border-top: none !important;
|
||||
}
|
||||
|
||||
/* pod */
|
||||
|
||||
.wikistyle.gollum.pod > a.dummyTopAnchor:first-child + h1 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wikistyle.gollum.pod h1 a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* rest */
|
||||
|
||||
.wikistyle.gollum.rest > div.document > div.section > h1:first-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<a href="/">Home</a> | <a href="/edit/{{name}}">Edit</a>
|
||||
</div>
|
||||
<h1>{{human_name}}</h1>
|
||||
<div class="wikistyle">
|
||||
<div class="wikistyle gollum {{format}}">
|
||||
{{{content}}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -11,6 +11,10 @@ module Precious
|
||||
"A Page"
|
||||
end
|
||||
|
||||
def format
|
||||
@page.format.to_s
|
||||
end
|
||||
|
||||
def author
|
||||
@page.version.author.name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user