Commit 9776ca28 authored by Ronny Bangsund's avatar Ronny Bangsund

Attempts to make plain text look better.

-Changed text to none (which really doesn't seem to change anything, but might be correct for Prism)
-Added background to pre blocks to make plain text stand out properly
-Removed a few newlines in the template to make the source look nicer in the browser's view source option
parent e2a251b3
......@@ -7,7 +7,7 @@ import (
)
var languages = map[string]string{
"text": "Plain text",
"none": "Plain text",
"aspnet": "ASP.Net",
"bash": "Bash",
"c": "C",
......
......@@ -5,6 +5,9 @@
* @author Lea Verou
*/
pre {
background-color:black;
}
code[class*="language-"],
pre[class*="language-"],
textarea {
......
......@@ -20,10 +20,8 @@
<option value="week" >A week</option>
</select>
<select name="language" style="position:relative;left:10px;top:0;">
{{with .}}
{{$x := .Fave}}
{{range $k,$v := .Languages}}
<option {{if eq $k $x}}selected="selected" {{end}}value="{{$k}}">{{$v}}</option>
{{with .}}{{$x := .Fave}}
{{range $k,$v := .Languages}}<option {{if eq $k $x}}selected="selected" {{end}}value="{{$k}}">{{$v}}</option>
{{end}}
{{end}}
</select>
......
Markdown is supported
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