html escape fixed

make sure description which contain html work right
make pygment css only work in highlight class
This commit is contained in:
MichaelYin
2013-12-12 20:47:35 +08:00
parent fafcb745cc
commit 52654cf609
2 changed files with 71 additions and 71 deletions

View File

@@ -1,69 +1,69 @@
.hll { background-color: #404040 } .highlight .hll { background-color: #404040 }
.c { color: #999999; font-style: italic } /* Comment */ .highlight .c { color: #999999; font-style: italic } /* Comment */
.err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.g { color: #d0d0d0 } /* Generic */ .highlight .g { color: #d0d0d0 } /* Generic */
.k { color: #6ab825; font-weight: bold } /* Keyword */ .highlight .k { color: #6ab825; font-weight: bold } /* Keyword */
.l { color: #d0d0d0 } /* Literal */ .highlight .l { color: #d0d0d0 } /* Literal */
.n { color: #d0d0d0 } /* Name */ .highlight .n { color: #d0d0d0 } /* Name */
.o { color: #d0d0d0 } /* Operator */ .highlight .o { color: #d0d0d0 } /* Operator */
.x { color: #d0d0d0 } /* Other */ .highlight .x { color: #d0d0d0 } /* Other */
.p { color: #d0d0d0 } /* Punctuation */ .highlight .p { color: #d0d0d0 } /* Punctuation */
.cm { color: #999999; font-style: italic } /* Comment.Multiline */ .highlight .cm { color: #999999; font-style: italic } /* Comment.Multiline */
.cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */ .highlight .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */
.c1 { color: #999999; font-style: italic } /* Comment.Single */ .highlight .c1 { color: #999999; font-style: italic } /* Comment.Single */
.cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */ .highlight .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
.gd { color: #d22323 } /* Generic.Deleted */ .highlight .gd { color: #d22323 } /* Generic.Deleted */
.ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */ .highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */
.gr { color: #d22323 } /* Generic.Error */ .highlight .gr { color: #d22323 } /* Generic.Error */
.gh { color: #ffffff; font-weight: bold } /* Generic.Heading */ .highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
.gi { color: #589819 } /* Generic.Inserted */ .highlight .gi { color: #589819 } /* Generic.Inserted */
.go { color: #cccccc } /* Generic.Output */ .highlight .go { color: #cccccc } /* Generic.Output */
.gp { color: #aaaaaa } /* Generic.Prompt */ .highlight .gp { color: #aaaaaa } /* Generic.Prompt */
.gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */ .highlight .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */
.gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */ .highlight .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */
.gt { color: #d22323 } /* Generic.Traceback */ .highlight .gt { color: #d22323 } /* Generic.Traceback */
.kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */ .highlight .kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */
.kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */ .highlight .kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */
.kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */ .highlight .kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */
.kp { color: #6ab825 } /* Keyword.Pseudo */ .highlight .kp { color: #6ab825 } /* Keyword.Pseudo */
.kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */ .highlight .kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */
.kt { color: #6ab825; font-weight: bold } /* Keyword.Type */ .highlight .kt { color: #6ab825; font-weight: bold } /* Keyword.Type */
.ld { color: #d0d0d0 } /* Literal.Date */ .highlight .ld { color: #d0d0d0 } /* Literal.Date */
.m { color: #3677a9 } /* Literal.Number */ .highlight .m { color: #3677a9 } /* Literal.Number */
.s { color: #ed9d13 } /* Literal.String */ .highlight .s { color: #ed9d13 } /* Literal.String */
.na { color: #bbbbbb } /* Name.Attribute */ .highlight .na { color: #bbbbbb } /* Name.Attribute */
.nb { color: #24909d } /* Name.Builtin */ .highlight .nb { color: #24909d } /* Name.Builtin */
.nc { color: #447fcf; text-decoration: underline } /* Name.Class */ .highlight .nc { color: #447fcf; text-decoration: underline } /* Name.Class */
.no { color: #40ffff } /* Name.Constant */ .highlight .no { color: #40ffff } /* Name.Constant */
.nd { color: #ffa500 } /* Name.Decorator */ .highlight .nd { color: #ffa500 } /* Name.Decorator */
.ni { color: #d0d0d0 } /* Name.Entity */ .highlight .ni { color: #d0d0d0 } /* Name.Entity */
.ne { color: #bbbbbb } /* Name.Exception */ .highlight .ne { color: #bbbbbb } /* Name.Exception */
.nf { color: #447fcf } /* Name.Function */ .highlight .nf { color: #447fcf } /* Name.Function */
.nl { color: #d0d0d0 } /* Name.Label */ .highlight .nl { color: #d0d0d0 } /* Name.Label */
.nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */ .highlight .nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */
.nx { color: #d0d0d0 } /* Name.Other */ .highlight .nx { color: #d0d0d0 } /* Name.Other */
.py { color: #d0d0d0 } /* Name.Property */ .highlight .py { color: #d0d0d0 } /* Name.Property */
.nt { color: #6ab825; font-weight: bold } /* Name.Tag */ .highlight .nt { color: #6ab825; font-weight: bold } /* Name.Tag */
.nv { color: #40ffff } /* Name.Variable */ .highlight .nv { color: #40ffff } /* Name.Variable */
.ow { color: #6ab825; font-weight: bold } /* Operator.Word */ .highlight .ow { color: #6ab825; font-weight: bold } /* Operator.Word */
.w { color: #666666 } /* Text.Whitespace */ .highlight .w { color: #666666 } /* Text.Whitespace */
.mf { color: #3677a9 } /* Literal.Number.Float */ .highlight .mf { color: #3677a9 } /* Literal.Number.Float */
.mh { color: #3677a9 } /* Literal.Number.Hex */ .highlight .mh { color: #3677a9 } /* Literal.Number.Hex */
.mi { color: #3677a9 } /* Literal.Number.Integer */ .highlight .mi { color: #3677a9 } /* Literal.Number.Integer */
.mo { color: #3677a9 } /* Literal.Number.Oct */ .highlight .mo { color: #3677a9 } /* Literal.Number.Oct */
.sb { color: #ed9d13 } /* Literal.String.Backtick */ .highlight .sb { color: #ed9d13 } /* Literal.String.Backtick */
.sc { color: #ed9d13 } /* Literal.String.Char */ .highlight .sc { color: #ed9d13 } /* Literal.String.Char */
.sd { color: #ed9d13 } /* Literal.String.Doc */ .highlight .sd { color: #ed9d13 } /* Literal.String.Doc */
.s2 { color: #ed9d13 } /* Literal.String.Double */ .highlight .s2 { color: #ed9d13 } /* Literal.String.Double */
.se { color: #ed9d13 } /* Literal.String.Escape */ .highlight .se { color: #ed9d13 } /* Literal.String.Escape */
.sh { color: #ed9d13 } /* Literal.String.Heredoc */ .highlight .sh { color: #ed9d13 } /* Literal.String.Heredoc */
.si { color: #ed9d13 } /* Literal.String.Interpol */ .highlight .si { color: #ed9d13 } /* Literal.String.Interpol */
.sx { color: #ffa500 } /* Literal.String.Other */ .highlight .sx { color: #ffa500 } /* Literal.String.Other */
.sr { color: #ed9d13 } /* Literal.String.Regex */ .highlight .sr { color: #ed9d13 } /* Literal.String.Regex */
.s1 { color: #ed9d13 } /* Literal.String.Single */ .highlight .s1 { color: #ed9d13 } /* Literal.String.Single */
.ss { color: #ed9d13 } /* Literal.String.Symbol */ .highlight .ss { color: #ed9d13 } /* Literal.String.Symbol */
.bp { color: #24909d } /* Name.Builtin.Pseudo */ .highlight .bp { color: #24909d } /* Name.Builtin.Pseudo */
.vc { color: #40ffff } /* Name.Variable.Class */ .highlight .vc { color: #40ffff } /* Name.Variable.Class */
.vg { color: #40ffff } /* Name.Variable.Global */ .highlight .vg { color: #40ffff } /* Name.Variable.Global */
.vi { color: #40ffff } /* Name.Variable.Instance */ .highlight .vi { color: #40ffff } /* Name.Variable.Instance */
.il { color: #3677a9 } /* Literal.Number.Integer.Long */ .highlight .il { color: #3677a9 } /* Literal.Number.Integer.Long */

View File

@@ -22,7 +22,7 @@
<meta property="og:type" content="article"/> <meta property="og:type" content="article"/>
<meta property="og:title" content="{{ article.title }}"/> <meta property="og:title" content="{{ article.title }}"/>
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/> <meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/>
<meta property="og:description" content="{{ article.summary|striptags }}"/> <meta property="og:description" content="{{ article.summary|striptags|e }}"/>
{% elif page %} {% elif page %}
<meta property="og:type" content="article"/> <meta property="og:type" content="article"/>
<meta property="og:title" content="{{ page.title }}"/> <meta property="og:title" content="{{ page.title }}"/>
@@ -120,4 +120,4 @@
<script src="{{ SITEURL }}/theme/js/respond.min.js"></script> <script src="{{ SITEURL }}/theme/js/respond.min.js"></script>
{% include 'includes/disqus_script.html' %} {% include 'includes/disqus_script.html' %}
</body> </body>
</html> </html>