Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div id="content">
<div class="blog-index">
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
{{ range $paginator.Pages }}
{{ range where $paginator.Pages "Params.hidden" "ne" "true" }}
<article>

{{ .Scratch.Set "isHome" true }}
Expand Down
10 changes: 7 additions & 3 deletions layouts/shortcodes/codecaption.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@
{ { < /codecaption > } } -->

<figure class="code">
{{ if isset .Params "title" }}
<figcaption>
<span>{{ .Get "title" }}</span>
</figcaption>
<div class="codewrapper">
{{ highlight .Inner (.Get "lang") "linenos=true" }}
</div>
{{ end }}
{{ if isset .Params "plain" }}
<div class="codewrapper" style="padding: 2px 5px;">{{ highlight .Inner (.Get "lang") "" }}</div>
{{ else }}
<div class="codewrapper">{{ highlight .Inner (.Get "lang") "linenos=true" }}</div>
{{ end }}
</figure>
344 changes: 51 additions & 293 deletions static/css/hugo-octopress.css
Original file line number Diff line number Diff line change
Expand Up @@ -1449,299 +1449,57 @@ div.linenodiv > pre > code

/* End fix codecaption and the new Chroma highlighter */

.pre-code span,
html .gist .gist-file .gist-syntax .highlighttable pre span,
.highlighttable code span {
font-style: normal !important;
font-weight: normal !important
}
.pre-code .c,
html .gist .gist-file .gist-syntax .highlighttable pre .c,
.highlighttable code .c {
color: #586e75 !important;
font-style: italic !important
}
.pre-code .cm,
html .gist .gist-file .gist-syntax .highlighttable pre .cm,
.highlighttable code .cm {
color: #586e75 !important;
font-style: italic !important
}
.pre-code .cp,
html .gist .gist-file .gist-syntax .highlighttable pre .cp,
.highlighttable code .cp {
color: #586e75 !important;
font-style: italic !important
}
.pre-code .c1,
html .gist .gist-file .gist-syntax .highlighttable pre .c1,
.highlighttable code .c1 {
color: #586e75 !important;
font-style: italic !important
}
.pre-code .cs,
html .gist .gist-file .gist-syntax .highlighttable pre .cs,
.highlighttable code .cs {
color: #586e75 !important;
font-weight: bold !important;
font-style: italic !important
}
.pre-code .err,
html .gist .gist-file .gist-syntax .highlighttable pre .err,
.highlighttable code .err {
color: #dc322f !important;
background: none !important
}
.pre-code .k,
html .gist .gist-file .gist-syntax .highlighttable pre .k,
.highlighttable code .k {
color: #cb4b16 !important
}
.pre-code .o,
html .gist .gist-file .gist-syntax .highlighttable pre .o,
.highlighttable code .o {
color: #93a1a1 !important;
font-weight: bold !important
}
.pre-code .p,
html .gist .gist-file .gist-syntax .highlighttable pre .p,
.highlighttable code .p {
color: #93a1a1 !important
}
.pre-code .ow,
html .gist .gist-file .gist-syntax .highlighttable pre .ow,
.highlighttable code .ow {
color: #2aa198 !important;
font-weight: bold !important
}
.pre-code .gd,
html .gist .gist-file .gist-syntax .highlighttable pre .gd,
.highlighttable code .gd {
color: #93a1a1 !important;
background-color: #372c34 !important;
display: inline-block
}
.pre-code .gd .x,
html .gist .gist-file .gist-syntax .highlighttable pre .gd .x,
.highlighttable code .gd .x {
color: #93a1a1 !important;
background-color: #4d2d33 !important;
display: inline-block
}
.pre-code .ge,
html .gist .gist-file .gist-syntax .highlighttable pre .ge,
.highlighttable code .ge {
color: #93a1a1 !important;
font-style: italic !important
}
.pre-code .gh,
html .gist .gist-file .gist-syntax .highlighttable pre .gh,
.highlighttable code .gh {
color: #586e75 !important
}
.pre-code .gi,
html .gist .gist-file .gist-syntax .highlighttable pre .gi,
.highlighttable code .gi {
color: #93a1a1 !important;
background-color: #1a412b !important;
display: inline-block
}
.pre-code .gi .x,
html .gist .gist-file .gist-syntax .highlighttable pre .gi .x,
.highlighttable code .gi .x {
color: #93a1a1 !important;
background-color: #355720 !important;
display: inline-block
}
.pre-code .gs,
html .gist .gist-file .gist-syntax .highlighttable pre .gs,
.highlighttable code .gs {
color: #93a1a1 !important;
font-weight: bold !important
}
.pre-code .gu,
html .gist .gist-file .gist-syntax .highlighttable pre .gu,
.highlighttable code .gu {
color: #6c71c4 !important
}
.pre-code .kc,
html .gist .gist-file .gist-syntax .highlighttable pre .kc,
.highlighttable code .kc {
color: #859900 !important;
font-weight: bold !important
}
.pre-code .kd,
html .gist .gist-file .gist-syntax .highlighttable pre .kd,
.highlighttable code .kd {
color: #268bd2 !important
}
.pre-code .kp,
html .gist .gist-file .gist-syntax .highlighttable pre .kp,
.highlighttable code .kp {
color: #cb4b16 !important;
font-weight: bold !important
}
.pre-code .kr,
html .gist .gist-file .gist-syntax .highlighttable pre .kr,
.highlighttable code .kr {
color: #d33682 !important;
font-weight: bold !important
}
.pre-code .kt,
html .gist .gist-file .gist-syntax .highlighttable pre .kt,
.highlighttable code .kt {
color: #2aa198 !important
}
.pre-code .n,
html .gist .gist-file .gist-syntax .highlighttable pre .n,
.highlighttable code .n {
color: #268bd2 !important
}
.pre-code .na,
html .gist .gist-file .gist-syntax .highlighttable pre .na,
.highlighttable code .na {
color: #268bd2 !important
}
.pre-code .nb,
html .gist .gist-file .gist-syntax .highlighttable pre .nb,
.highlighttable code .nb {
color: #859900 !important
}
.pre-code .nc,
html .gist .gist-file .gist-syntax .highlighttable pre .nc,
.highlighttable code .nc {
color: #d33682 !important
}
.pre-code .no,
html .gist .gist-file .gist-syntax .highlighttable pre .no,
.highlighttable code .no {
color: #b58900 !important
}
.pre-code .nl,
html .gist .gist-file .gist-syntax .highlighttable pre .nl,
.highlighttable code .nl {
color: #859900 !important
}
.pre-code .ne,
html .gist .gist-file .gist-syntax .highlighttable pre .ne,
.highlighttable code .ne {
color: #268bd2 !important;
font-weight: bold !important
}
.pre-code .nf,
html .gist .gist-file .gist-syntax .highlighttable pre .nf,
.highlighttable code .nf {
color: #268bd2 !important;
font-weight: bold !important
}
.pre-code .nn,
html .gist .gist-file .gist-syntax .highlighttable pre .nn,
.highlighttable code .nn {
color: #b58900 !important
}
.pre-code .nt,
html .gist .gist-file .gist-syntax .highlighttable pre .nt,
.highlighttable code .nt {
color: #268bd2 !important;
font-weight: bold !important
}
.pre-code .nx,
html .gist .gist-file .gist-syntax .highlighttable pre .nx,
.highlighttable code .nx {
color: #b58900 !important
}
.pre-code .vg,
html .gist .gist-file .gist-syntax .highlighttable pre .vg,
.highlighttable code .vg {
color: #268bd2 !important
}
.pre-code .vi,
html .gist .gist-file .gist-syntax .highlighttable pre .vi,
.highlighttable code .vi {
color: #268bd2 !important
}
.pre-code .nv,
html .gist .gist-file .gist-syntax .highlighttable pre .nv,
.highlighttable code .nv {
color: #268bd2 !important
}
.pre-code .mf,
html .gist .gist-file .gist-syntax .highlighttable pre .mf,
.highlighttable code .mf {
color: #2aa198 !important
}
.pre-code .m,
html .gist .gist-file .gist-syntax .highlighttable pre .m,
.highlighttable code .m {
color: #2aa198 !important
}
.pre-code .mh,
html .gist .gist-file .gist-syntax .highlighttable pre .mh,
.highlighttable code .mh {
color: #2aa198 !important
}
.pre-code .mi,
html .gist .gist-file .gist-syntax .highlighttable pre .mi,
.highlighttable code .mi {
color: #2aa198 !important
}
.pre-code .s,
html .gist .gist-file .gist-syntax .highlighttable pre .s,
.highlighttable code .s {
color: #2aa198 !important
}
.pre-code .sd,
html .gist .gist-file .gist-syntax .highlighttable pre .sd,
.highlighttable code .sd {
color: #2aa198 !important
}
.pre-code .s2,
html .gist .gist-file .gist-syntax .highlighttable pre .s2,
.highlighttable code .s2 {
color: #2aa198 !important
}
.pre-code .se,
html .gist .gist-file .gist-syntax .highlighttable pre .se,
.highlighttable code .se {
color: #dc322f !important
}
.pre-code .si,
html .gist .gist-file .gist-syntax .highlighttable pre .si,
.highlighttable code .si {
color: #268bd2 !important
}
.pre-code .sr,
html .gist .gist-file .gist-syntax .highlighttable pre .sr,
.highlighttable code .sr {
color: #2aa198 !important
}
.pre-code .s1,
html .gist .gist-file .gist-syntax .highlighttable pre .s1,
.highlighttable code .s1 {
color: #2aa198 !important
}
.pre-code div .gd,
html .gist .gist-file .gist-syntax .highlighttable pre div .gd,
.highlighttable code div .gd,
.pre-code div .gd .x,
html .gist .gist-file .gist-syntax .highlighttable pre div .gd .x,
.highlighttable code div .gd .x,
.pre-code div .gi,
html .gist .gist-file .gist-syntax .highlighttable pre div .gi,
.highlighttable code div .gi,
.pre-code div .gi .x,
html .gist .gist-file .gist-syntax .highlighttable pre div .gi .x,
.highlighttable code div .gi .x {
display: inline-block;
width: 100%
}
.highlighttable,
.gist-highlighttable {
margin-bottom: 1.8em;
background: #002b36;
overflow-y: hidden;
overflow-x: auto
}
/* Background */ .chroma { color: #e5e5e5; background-color: #000000 }
/* Error */ .chroma .err { color: #ff0000 }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTableTD +1 */ .chroma .lntd + .lntd { width: 100%; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #3c3d38 }
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; display: block; }
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
/* Keyword */ .chroma .k { color: #ffffff; font-weight: bold }
/* KeywordConstant */ .chroma .kc { color: #ffffff; font-weight: bold }
/* KeywordDeclaration */ .chroma .kd { color: #ffffff; font-weight: bold }
/* KeywordNamespace */ .chroma .kn { color: #ffffff; font-weight: bold }
/* KeywordPseudo */ .chroma .kp { color: #ffffff; font-weight: bold }
/* KeywordReserved */ .chroma .kr { color: #ffffff; font-weight: bold }
/* KeywordType */ .chroma .kt { color: #ffffff; font-weight: bold }
/* NameAttribute */ .chroma .na { color: #007f7f }
/* NameBuiltin */ .chroma .nb { color: #ffffff; font-weight: bold }
/* NameTag */ .chroma .nt { font-weight: bold }
/* LiteralDate */ .chroma .ld { color: #ffff00; font-weight: bold }
/* LiteralString */ .chroma .s { color: #00ffff; font-weight: bold }
/* LiteralStringAffix */ .chroma .sa { color: #00ffff; font-weight: bold }
/* LiteralStringBacktick */ .chroma .sb { color: #00ffff; font-weight: bold }
/* LiteralStringChar */ .chroma .sc { color: #00ffff; font-weight: bold }
/* LiteralStringDelimiter */ .chroma .dl { color: #00ffff; font-weight: bold }
/* LiteralStringDoc */ .chroma .sd { color: #00ffff; font-weight: bold }
/* LiteralStringDouble */ .chroma .s2 { color: #00ffff; font-weight: bold }
/* LiteralStringEscape */ .chroma .se { color: #00ffff; font-weight: bold }
/* LiteralStringHeredoc */ .chroma .sh { color: #00ffff; font-weight: bold }
/* LiteralStringInterpol */ .chroma .si { color: #00ffff; font-weight: bold }
/* LiteralStringOther */ .chroma .sx { color: #00ffff; font-weight: bold }
/* LiteralStringRegex */ .chroma .sr { color: #00ffff; font-weight: bold }
/* LiteralStringSingle */ .chroma .s1 { color: #00ffff; font-weight: bold }
/* LiteralStringSymbol */ .chroma .ss { color: #00ffff; font-weight: bold }
/* LiteralNumber */ .chroma .m { color: #ffff00; font-weight: bold }
/* LiteralNumberBin */ .chroma .mb { color: #ffff00; font-weight: bold }
/* LiteralNumberFloat */ .chroma .mf { color: #ffff00; font-weight: bold }
/* LiteralNumberHex */ .chroma .mh { color: #ffff00; font-weight: bold }
/* LiteralNumberInteger */ .chroma .mi { color: #ffff00; font-weight: bold }
/* LiteralNumberIntegerLong */ .chroma .il { color: #ffff00; font-weight: bold }
/* LiteralNumberOct */ .chroma .mo { color: #ffff00; font-weight: bold }
/* Comment */ .chroma .c { color: #007f7f }
/* CommentHashbang */ .chroma .ch { color: #007f7f }
/* CommentMultiline */ .chroma .cm { color: #007f7f }
/* CommentSingle */ .chroma .c1 { color: #007f7f }
/* CommentSpecial */ .chroma .cs { color: #007f7f }
/* CommentPreproc */ .chroma .cp { color: #00ff00; font-weight: bold }
/* CommentPreprocFile */ .chroma .cpf { color: #00ff00; font-weight: bold }
/* GenericHeading */ .chroma .gh { font-weight: bold }
/* GenericStrong */ .chroma .gs { font-weight: bold }
/* GenericSubheading */ .chroma .gu { font-weight: bold }


pre::-webkit-scrollbar,
.highlighttable::-webkit-scrollbar,
Expand Down