diff --git a/layouts/index.html b/layouts/index.html index bdceb5d..a633013 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,7 +4,7 @@
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} - {{ range $paginator.Pages }} + {{ range where $paginator.Pages "Params.hidden" "ne" "true" }}
{{ .Scratch.Set "isHome" true }} diff --git a/layouts/shortcodes/codecaption.html b/layouts/shortcodes/codecaption.html index dca5d3f..c27dd79 100644 --- a/layouts/shortcodes/codecaption.html +++ b/layouts/shortcodes/codecaption.html @@ -8,10 +8,14 @@ { { < /codecaption > } } -->
+ {{ if isset .Params "title" }}
{{ .Get "title" }}
-
- {{ highlight .Inner (.Get "lang") "linenos=true" }} -
+ {{ end }} + {{ if isset .Params "plain" }} +
{{ highlight .Inner (.Get "lang") "" }}
+ {{ else }} +
{{ highlight .Inner (.Get "lang") "linenos=true" }}
+ {{ end }}
diff --git a/static/css/hugo-octopress.css b/static/css/hugo-octopress.css index 37d8845..a28ceeb 100644 --- a/static/css/hugo-octopress.css +++ b/static/css/hugo-octopress.css @@ -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,