diff --git a/.gitignore b/.gitignore index 5e9b332..d4e9783 100644 --- a/.gitignore +++ b/.gitignore @@ -67,4 +67,5 @@ target/ migrations/ !migrations/__init__.py collectedstatic/ -DjangoBlog/whoosh_index/ \ No newline at end of file +DjangoBlog/whoosh_index/ +google93fd32dbd906620a.html \ No newline at end of file diff --git a/DjangoBlog/common_markdown.py b/DjangoBlog/common_markdown.py new file mode 100644 index 0000000..3ff5605 --- /dev/null +++ b/DjangoBlog/common_markdown.py @@ -0,0 +1,56 @@ +#!/usr/bin/env python +# encoding: utf-8 + + +""" +@version: ?? +@author: liangliangyy +@license: MIT Licence +@contact: liangliangyy@gmail.com +@site: https://www.lylinux.org/ +@software: PyCharm +@file: common_markdown.py +@time: 2017/1/14 上午2:30 +""" + +import mistune +from pygments import highlight +from pygments.lexers import get_lexer_by_name +from pygments.formatters import html + + +def block_code(text, lang, inlinestyles=False, linenos=False): + if not lang: + text = text.strip() + return u'
%s
\n' % mistune.escape(text) + + try: + lexer = get_lexer_by_name(lang, stripall=True) + formatter = html.HtmlFormatter( + noclasses=inlinestyles, linenos=linenos + ) + code = highlight(text, lexer, formatter) + if linenos: + return '
%s
\n' % code + return code + except: + return '
%s
\n' % ( + lang, mistune.escape(text) + ) + + +class BlogMarkDownRenderer(mistune.Renderer): + def block_code(self, text, lang): + # renderer has an options + inlinestyles = self.options.get('inlinestyles') + linenos = self.options.get('linenos') + return block_code(text, lang, inlinestyles, linenos) + + +class common_markdown(): + @staticmethod + def get_markdown(value): + renderer = BlogMarkDownRenderer(inlinestyles=False) + + mdp = mistune.Markdown(escape=True, renderer=renderer) + return mdp(value) diff --git a/DjangoBlog/settings.py b/DjangoBlog/settings.py index a7b54f5..8275a19 100644 --- a/DjangoBlog/settings.py +++ b/DjangoBlog/settings.py @@ -158,7 +158,7 @@ SITE_DESCRIPTION = '大巧无工,重剑无锋.' SITE_SEO_DESCRIPTION = '小站主要用来分享和记录学习经验,教程,记录个人生活的点滴以及一些随笔.欢迎大家访问小站' SITE_SEO_KEYWORDS = 'linux,apache,mysql,服务器,ubuntu,shell,web,csharp,.net,asp,mac,swift' ARTICLE_SUB_LENGTH = 300 - +SHOW_GOOGLE_ADSENSE = True # bootstrap颜色样式 BOOTSTRAP_COLOR_TYPES = [ 'default', 'primary', 'success', 'info', 'warning', 'danger' diff --git a/blog/context_processors.py b/blog/context_processors.py index 0cea458..bba9ac4 100644 --- a/blog/context_processors.py +++ b/blog/context_processors.py @@ -19,6 +19,7 @@ from django.conf import settings def seo_processor(requests): return { 'SITE_NAME': settings.SITE_NAME, + 'SHOW_GOOGLE_ADSENSE': settings.SHOW_GOOGLE_ADSENSE, 'SITE_SEO_DESCRIPTION': settings.SITE_SEO_DESCRIPTION, 'SITE_DESCRIPTION': settings.SITE_DESCRIPTION, 'SITE_KEYWORDS': settings.SITE_SEO_KEYWORDS, diff --git a/blog/static/blog/css/style.css b/blog/static/blog/css/style.css index 921bc7f..2328292 100755 --- a/blog/static/blog/css/style.css +++ b/blog/static/blog/css/style.css @@ -923,6 +923,7 @@ article.sticky .featured-post { font-size: 12px; font-size: 0.857142857rem; line-height: 2; + background-color: rgba(0,0,0,0.04); } .entry-content pre, @@ -2356,4 +2357,4 @@ li #reply-title { border: 0; font: inherit; vertical-align: baseline; -} \ No newline at end of file +} diff --git a/blog/static/pygments/README.rst b/blog/static/pygments/README.rst new file mode 100755 index 0000000..286782d --- /dev/null +++ b/blog/static/pygments/README.rst @@ -0,0 +1,25 @@ +pygments-css +============ + +Pygments_, a Python-based code highlighting tool, comes with a set of builtin styles_ (not css files) for code highlighting. You have to generate a CSS file using the command line. I just figured I'd save someone this work in the future and generate all the CSS files based on the Pygments builtins. + +Pretty simple stuff here. These css files were generated using pygmentize +on the command line like so:: + + pygmentize -S default -f html > default.css + +I'm using a combination of Pygments and Markdown on a django project that has a model with the following save method:: + + def save(self): + self.html = markdown(self.body, 'codehilite') + super(Entry, self).save() + +That's why the CSS styles all have .codehilite in front of them. You should change the .codehilite to work with the style name that you use for your Pygments HTML output. + +.. _Pygments: http://pygments.org +.. _styles: http://dev.pocoo.org/projects/pygments/browser/pygments/styles + +Theme previews +-------------- + +To preview the various themes, check out http://richleland.github.io/pygments-css/. diff --git a/blog/static/pygments/UNLICENSE.txt b/blog/static/pygments/UNLICENSE.txt new file mode 100755 index 0000000..cf1ab25 --- /dev/null +++ b/blog/static/pygments/UNLICENSE.txt @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/blog/static/pygments/autumn.css b/blog/static/pygments/autumn.css new file mode 100755 index 0000000..5bc7f03 --- /dev/null +++ b/blog/static/pygments/autumn.css @@ -0,0 +1,58 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #aaaaaa; font-style: italic } /* Comment */ +.codehilite .err { color: #F00000; background-color: #F0A0A0 } /* Error */ +.codehilite .k { color: #0000aa } /* Keyword */ +.codehilite .cm { color: #aaaaaa; font-style: italic } /* Comment.Multiline */ +.codehilite .cp { color: #4c8317 } /* Comment.Preproc */ +.codehilite .c1 { color: #aaaaaa; font-style: italic } /* Comment.Single */ +.codehilite .cs { color: #0000aa; font-style: italic } /* Comment.Special */ +.codehilite .gd { color: #aa0000 } /* Generic.Deleted */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #aa0000 } /* Generic.Error */ +.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.codehilite .gi { color: #00aa00 } /* Generic.Inserted */ +.codehilite .go { color: #888888 } /* Generic.Output */ +.codehilite .gp { color: #555555 } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.codehilite .gt { color: #aa0000 } /* Generic.Traceback */ +.codehilite .kc { color: #0000aa } /* Keyword.Constant */ +.codehilite .kd { color: #0000aa } /* Keyword.Declaration */ +.codehilite .kn { color: #0000aa } /* Keyword.Namespace */ +.codehilite .kp { color: #0000aa } /* Keyword.Pseudo */ +.codehilite .kr { color: #0000aa } /* Keyword.Reserved */ +.codehilite .kt { color: #00aaaa } /* Keyword.Type */ +.codehilite .m { color: #009999 } /* Literal.Number */ +.codehilite .s { color: #aa5500 } /* Literal.String */ +.codehilite .na { color: #1e90ff } /* Name.Attribute */ +.codehilite .nb { color: #00aaaa } /* Name.Builtin */ +.codehilite .nc { color: #00aa00; text-decoration: underline } /* Name.Class */ +.codehilite .no { color: #aa0000 } /* Name.Constant */ +.codehilite .nd { color: #888888 } /* Name.Decorator */ +.codehilite .ni { color: #800000; font-weight: bold } /* Name.Entity */ +.codehilite .nf { color: #00aa00 } /* Name.Function */ +.codehilite .nn { color: #00aaaa; text-decoration: underline } /* Name.Namespace */ +.codehilite .nt { color: #1e90ff; font-weight: bold } /* Name.Tag */ +.codehilite .nv { color: #aa0000 } /* Name.Variable */ +.codehilite .ow { color: #0000aa } /* Operator.Word */ +.codehilite .w { color: #bbbbbb } /* Text.Whitespace */ +.codehilite .mf { color: #009999 } /* Literal.Number.Float */ +.codehilite .mh { color: #009999 } /* Literal.Number.Hex */ +.codehilite .mi { color: #009999 } /* Literal.Number.Integer */ +.codehilite .mo { color: #009999 } /* Literal.Number.Oct */ +.codehilite .sb { color: #aa5500 } /* Literal.String.Backtick */ +.codehilite .sc { color: #aa5500 } /* Literal.String.Char */ +.codehilite .sd { color: #aa5500 } /* Literal.String.Doc */ +.codehilite .s2 { color: #aa5500 } /* Literal.String.Double */ +.codehilite .se { color: #aa5500 } /* Literal.String.Escape */ +.codehilite .sh { color: #aa5500 } /* Literal.String.Heredoc */ +.codehilite .si { color: #aa5500 } /* Literal.String.Interpol */ +.codehilite .sx { color: #aa5500 } /* Literal.String.Other */ +.codehilite .sr { color: #009999 } /* Literal.String.Regex */ +.codehilite .s1 { color: #aa5500 } /* Literal.String.Single */ +.codehilite .ss { color: #0000aa } /* Literal.String.Symbol */ +.codehilite .bp { color: #00aaaa } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #aa0000 } /* Name.Variable.Class */ +.codehilite .vg { color: #aa0000 } /* Name.Variable.Global */ +.codehilite .vi { color: #aa0000 } /* Name.Variable.Instance */ +.codehilite .il { color: #009999 } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/borland.css b/blog/static/pygments/borland.css new file mode 100755 index 0000000..6a011b2 --- /dev/null +++ b/blog/static/pygments/borland.css @@ -0,0 +1,46 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #008800; font-style: italic } /* Comment */ +.codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.codehilite .k { color: #000080; font-weight: bold } /* Keyword */ +.codehilite .cm { color: #008800; font-style: italic } /* Comment.Multiline */ +.codehilite .cp { color: #008080 } /* Comment.Preproc */ +.codehilite .c1 { color: #008800; font-style: italic } /* Comment.Single */ +.codehilite .cs { color: #008800; font-weight: bold } /* Comment.Special */ +.codehilite .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #aa0000 } /* Generic.Error */ +.codehilite .gh { color: #999999 } /* Generic.Heading */ +.codehilite .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ +.codehilite .go { color: #888888 } /* Generic.Output */ +.codehilite .gp { color: #555555 } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #aaaaaa } /* Generic.Subheading */ +.codehilite .gt { color: #aa0000 } /* Generic.Traceback */ +.codehilite .kc { color: #000080; font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { color: #000080; font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { color: #000080; font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { color: #000080; font-weight: bold } /* Keyword.Pseudo */ +.codehilite .kr { color: #000080; font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #000080; font-weight: bold } /* Keyword.Type */ +.codehilite .m { color: #0000FF } /* Literal.Number */ +.codehilite .s { color: #0000FF } /* Literal.String */ +.codehilite .na { color: #FF0000 } /* Name.Attribute */ +.codehilite .nt { color: #000080; font-weight: bold } /* Name.Tag */ +.codehilite .ow { font-weight: bold } /* Operator.Word */ +.codehilite .w { color: #bbbbbb } /* Text.Whitespace */ +.codehilite .mf { color: #0000FF } /* Literal.Number.Float */ +.codehilite .mh { color: #0000FF } /* Literal.Number.Hex */ +.codehilite .mi { color: #0000FF } /* Literal.Number.Integer */ +.codehilite .mo { color: #0000FF } /* Literal.Number.Oct */ +.codehilite .sb { color: #0000FF } /* Literal.String.Backtick */ +.codehilite .sc { color: #800080 } /* Literal.String.Char */ +.codehilite .sd { color: #0000FF } /* Literal.String.Doc */ +.codehilite .s2 { color: #0000FF } /* Literal.String.Double */ +.codehilite .se { color: #0000FF } /* Literal.String.Escape */ +.codehilite .sh { color: #0000FF } /* Literal.String.Heredoc */ +.codehilite .si { color: #0000FF } /* Literal.String.Interpol */ +.codehilite .sx { color: #0000FF } /* Literal.String.Other */ +.codehilite .sr { color: #0000FF } /* Literal.String.Regex */ +.codehilite .s1 { color: #0000FF } /* Literal.String.Single */ +.codehilite .ss { color: #0000FF } /* Literal.String.Symbol */ +.codehilite .il { color: #0000FF } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/bw.css b/blog/static/pygments/bw.css new file mode 100755 index 0000000..db28785 --- /dev/null +++ b/blog/static/pygments/bw.css @@ -0,0 +1,34 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { font-style: italic } /* Comment */ +.codehilite .err { border: 1px solid #FF0000 } /* Error */ +.codehilite .k { font-weight: bold } /* Keyword */ +.codehilite .cm { font-style: italic } /* Comment.Multiline */ +.codehilite .c1 { font-style: italic } /* Comment.Single */ +.codehilite .cs { font-style: italic } /* Comment.Special */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gh { font-weight: bold } /* Generic.Heading */ +.codehilite .gp { font-weight: bold } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { font-weight: bold } /* Generic.Subheading */ +.codehilite .kc { font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { font-weight: bold } /* Keyword.Namespace */ +.codehilite .kr { font-weight: bold } /* Keyword.Reserved */ +.codehilite .s { font-style: italic } /* Literal.String */ +.codehilite .nc { font-weight: bold } /* Name.Class */ +.codehilite .ni { font-weight: bold } /* Name.Entity */ +.codehilite .ne { font-weight: bold } /* Name.Exception */ +.codehilite .nn { font-weight: bold } /* Name.Namespace */ +.codehilite .nt { font-weight: bold } /* Name.Tag */ +.codehilite .ow { font-weight: bold } /* Operator.Word */ +.codehilite .sb { font-style: italic } /* Literal.String.Backtick */ +.codehilite .sc { font-style: italic } /* Literal.String.Char */ +.codehilite .sd { font-style: italic } /* Literal.String.Doc */ +.codehilite .s2 { font-style: italic } /* Literal.String.Double */ +.codehilite .se { font-weight: bold; font-style: italic } /* Literal.String.Escape */ +.codehilite .sh { font-style: italic } /* Literal.String.Heredoc */ +.codehilite .si { font-weight: bold; font-style: italic } /* Literal.String.Interpol */ +.codehilite .sx { font-style: italic } /* Literal.String.Other */ +.codehilite .sr { font-style: italic } /* Literal.String.Regex */ +.codehilite .s1 { font-style: italic } /* Literal.String.Single */ +.codehilite .ss { font-style: italic } /* Literal.String.Symbol */ diff --git a/blog/static/pygments/colorful.css b/blog/static/pygments/colorful.css new file mode 100755 index 0000000..72750df --- /dev/null +++ b/blog/static/pygments/colorful.css @@ -0,0 +1,61 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #808080 } /* Comment */ +.codehilite .err { color: #F00000; background-color: #F0A0A0 } /* Error */ +.codehilite .k { color: #008000; font-weight: bold } /* Keyword */ +.codehilite .o { color: #303030 } /* Operator */ +.codehilite .cm { color: #808080 } /* Comment.Multiline */ +.codehilite .cp { color: #507090 } /* Comment.Preproc */ +.codehilite .c1 { color: #808080 } /* Comment.Single */ +.codehilite .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.codehilite .gd { color: #A00000 } /* Generic.Deleted */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #FF0000 } /* Generic.Error */ +.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.codehilite .gi { color: #00A000 } /* Generic.Inserted */ +.codehilite .go { color: #808080 } /* Generic.Output */ +.codehilite .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.codehilite .gt { color: #0040D0 } /* Generic.Traceback */ +.codehilite .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { color: #003080; font-weight: bold } /* Keyword.Pseudo */ +.codehilite .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #303090; font-weight: bold } /* Keyword.Type */ +.codehilite .m { color: #6000E0; font-weight: bold } /* Literal.Number */ +.codehilite .s { background-color: #fff0f0 } /* Literal.String */ +.codehilite .na { color: #0000C0 } /* Name.Attribute */ +.codehilite .nb { color: #007020 } /* Name.Builtin */ +.codehilite .nc { color: #B00060; font-weight: bold } /* Name.Class */ +.codehilite .no { color: #003060; font-weight: bold } /* Name.Constant */ +.codehilite .nd { color: #505050; font-weight: bold } /* Name.Decorator */ +.codehilite .ni { color: #800000; font-weight: bold } /* Name.Entity */ +.codehilite .ne { color: #F00000; font-weight: bold } /* Name.Exception */ +.codehilite .nf { color: #0060B0; font-weight: bold } /* Name.Function */ +.codehilite .nl { color: #907000; font-weight: bold } /* Name.Label */ +.codehilite .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.codehilite .nt { color: #007000 } /* Name.Tag */ +.codehilite .nv { color: #906030 } /* Name.Variable */ +.codehilite .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.codehilite .w { color: #bbbbbb } /* Text.Whitespace */ +.codehilite .mf { color: #6000E0; font-weight: bold } /* Literal.Number.Float */ +.codehilite .mh { color: #005080; font-weight: bold } /* Literal.Number.Hex */ +.codehilite .mi { color: #0000D0; font-weight: bold } /* Literal.Number.Integer */ +.codehilite .mo { color: #4000E0; font-weight: bold } /* Literal.Number.Oct */ +.codehilite .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.codehilite .sc { color: #0040D0 } /* Literal.String.Char */ +.codehilite .sd { color: #D04020 } /* Literal.String.Doc */ +.codehilite .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.codehilite .se { color: #606060; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.codehilite .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.codehilite .si { background-color: #e0e0e0 } /* Literal.String.Interpol */ +.codehilite .sx { color: #D02000; background-color: #fff0f0 } /* Literal.String.Other */ +.codehilite .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.codehilite .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.codehilite .ss { color: #A06000 } /* Literal.String.Symbol */ +.codehilite .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #306090 } /* Name.Variable.Class */ +.codehilite .vg { color: #d07000; font-weight: bold } /* Name.Variable.Global */ +.codehilite .vi { color: #3030B0 } /* Name.Variable.Instance */ +.codehilite .il { color: #0000D0; font-weight: bold } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/default.css b/blog/static/pygments/default.css new file mode 100755 index 0000000..0f81fc8 --- /dev/null +++ b/blog/static/pygments/default.css @@ -0,0 +1,59 @@ +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #177500 } /* Comment */ +.highlight .err { color: #000000 } /* Error */ +.highlight .k { color: #A90D91 } /* Keyword */ +.highlight .l { color: #1C01CE } /* Literal */ +.highlight .n { color: #000000 } /* Name */ +.highlight .o { color: #000000 } /* Operator */ +.highlight .ch { color: #177500 } /* Comment.Hashbang */ +.highlight .cm { color: #177500 } /* Comment.Multiline */ +.highlight .cp { color: #633820 } /* Comment.Preproc */ +.highlight .cpf { color: #177500 } /* Comment.PreprocFile */ +.highlight .c1 { color: #177500 } /* Comment.Single */ +.highlight .cs { color: #177500 } /* Comment.Special */ +.highlight .kc { color: #A90D91 } /* Keyword.Constant */ +.highlight .kd { color: #A90D91 } /* Keyword.Declaration */ +.highlight .kn { color: #A90D91 } /* Keyword.Namespace */ +.highlight .kp { color: #A90D91 } /* Keyword.Pseudo */ +.highlight .kr { color: #A90D91 } /* Keyword.Reserved */ +.highlight .kt { color: #A90D91 } /* Keyword.Type */ +.highlight .ld { color: #1C01CE } /* Literal.Date */ +.highlight .m { color: #1C01CE } /* Literal.Number */ +.highlight .s { color: #C41A16 } /* Literal.String */ +.highlight .na { color: #836C28 } /* Name.Attribute */ +.highlight .nb { color: #A90D91 } /* Name.Builtin */ +.highlight .nc { color: #3F6E75 } /* Name.Class */ +.highlight .no { color: #000000 } /* Name.Constant */ +.highlight .nd { color: #000000 } /* Name.Decorator */ +.highlight .ni { color: #000000 } /* Name.Entity */ +.highlight .ne { color: #000000 } /* Name.Exception */ +.highlight .nf { color: #000000 } /* Name.Function */ +.highlight .nl { color: #000000 } /* Name.Label */ +.highlight .nn { color: #000000 } /* Name.Namespace */ +.highlight .nx { color: #000000 } /* Name.Other */ +.highlight .py { color: #000000 } /* Name.Property */ +.highlight .nt { color: #000000 } /* Name.Tag */ +.highlight .nv { color: #000000 } /* Name.Variable */ +.highlight .ow { color: #000000 } /* Operator.Word */ +.highlight .mb { color: #1C01CE } /* Literal.Number.Bin */ +.highlight .mf { color: #1C01CE } /* Literal.Number.Float */ +.highlight .mh { color: #1C01CE } /* Literal.Number.Hex */ +.highlight .mi { color: #1C01CE } /* Literal.Number.Integer */ +.highlight .mo { color: #1C01CE } /* Literal.Number.Oct */ +.highlight .sb { color: #C41A16 } /* Literal.String.Backtick */ +.highlight .sc { color: #2300CE } /* Literal.String.Char */ +.highlight .sd { color: #C41A16 } /* Literal.String.Doc */ +.highlight .s2 { color: #C41A16 } /* Literal.String.Double */ +.highlight .se { color: #C41A16 } /* Literal.String.Escape */ +.highlight .sh { color: #C41A16 } /* Literal.String.Heredoc */ +.highlight .si { color: #C41A16 } /* Literal.String.Interpol */ +.highlight .sx { color: #C41A16 } /* Literal.String.Other */ +.highlight .sr { color: #C41A16 } /* Literal.String.Regex */ +.highlight .s1 { color: #C41A16 } /* Literal.String.Single */ +.highlight .ss { color: #C41A16 } /* Literal.String.Symbol */ +.highlight .bp { color: #5B269A } /* Name.Builtin.Pseudo */ +.highlight .vc { color: #000000 } /* Name.Variable.Class */ +.highlight .vg { color: #000000 } /* Name.Variable.Global */ +.highlight .vi { color: #000000 } /* Name.Variable.Instance */ +.highlight .il { color: #1C01CE } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/blog/static/pygments/emacs.css b/blog/static/pygments/emacs.css new file mode 100755 index 0000000..07112cd --- /dev/null +++ b/blog/static/pygments/emacs.css @@ -0,0 +1,61 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #008800; font-style: italic } /* Comment */ +.codehilite .err { border: 1px solid #FF0000 } /* Error */ +.codehilite .k { color: #AA22FF; font-weight: bold } /* Keyword */ +.codehilite .o { color: #666666 } /* Operator */ +.codehilite .cm { color: #008800; font-style: italic } /* Comment.Multiline */ +.codehilite .cp { color: #008800 } /* Comment.Preproc */ +.codehilite .c1 { color: #008800; font-style: italic } /* Comment.Single */ +.codehilite .cs { color: #008800; font-weight: bold } /* Comment.Special */ +.codehilite .gd { color: #A00000 } /* Generic.Deleted */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #FF0000 } /* Generic.Error */ +.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.codehilite .gi { color: #00A000 } /* Generic.Inserted */ +.codehilite .go { color: #808080 } /* Generic.Output */ +.codehilite .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.codehilite .gt { color: #0040D0 } /* Generic.Traceback */ +.codehilite .kc { color: #AA22FF; font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { color: #AA22FF; font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { color: #AA22FF; font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { color: #AA22FF } /* Keyword.Pseudo */ +.codehilite .kr { color: #AA22FF; font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #00BB00; font-weight: bold } /* Keyword.Type */ +.codehilite .m { color: #666666 } /* Literal.Number */ +.codehilite .s { color: #BB4444 } /* Literal.String */ +.codehilite .na { color: #BB4444 } /* Name.Attribute */ +.codehilite .nb { color: #AA22FF } /* Name.Builtin */ +.codehilite .nc { color: #0000FF } /* Name.Class */ +.codehilite .no { color: #880000 } /* Name.Constant */ +.codehilite .nd { color: #AA22FF } /* Name.Decorator */ +.codehilite .ni { color: #999999; font-weight: bold } /* Name.Entity */ +.codehilite .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ +.codehilite .nf { color: #00A000 } /* Name.Function */ +.codehilite .nl { color: #A0A000 } /* Name.Label */ +.codehilite .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ +.codehilite .nt { color: #008000; font-weight: bold } /* Name.Tag */ +.codehilite .nv { color: #B8860B } /* Name.Variable */ +.codehilite .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ +.codehilite .w { color: #bbbbbb } /* Text.Whitespace */ +.codehilite .mf { color: #666666 } /* Literal.Number.Float */ +.codehilite .mh { color: #666666 } /* Literal.Number.Hex */ +.codehilite .mi { color: #666666 } /* Literal.Number.Integer */ +.codehilite .mo { color: #666666 } /* Literal.Number.Oct */ +.codehilite .sb { color: #BB4444 } /* Literal.String.Backtick */ +.codehilite .sc { color: #BB4444 } /* Literal.String.Char */ +.codehilite .sd { color: #BB4444; font-style: italic } /* Literal.String.Doc */ +.codehilite .s2 { color: #BB4444 } /* Literal.String.Double */ +.codehilite .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ +.codehilite .sh { color: #BB4444 } /* Literal.String.Heredoc */ +.codehilite .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ +.codehilite .sx { color: #008000 } /* Literal.String.Other */ +.codehilite .sr { color: #BB6688 } /* Literal.String.Regex */ +.codehilite .s1 { color: #BB4444 } /* Literal.String.Single */ +.codehilite .ss { color: #B8860B } /* Literal.String.Symbol */ +.codehilite .bp { color: #AA22FF } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #B8860B } /* Name.Variable.Class */ +.codehilite .vg { color: #B8860B } /* Name.Variable.Global */ +.codehilite .vi { color: #B8860B } /* Name.Variable.Instance */ +.codehilite .il { color: #666666 } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/friendly.css b/blog/static/pygments/friendly.css new file mode 100755 index 0000000..1f2f18f --- /dev/null +++ b/blog/static/pygments/friendly.css @@ -0,0 +1,61 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #60a0b0; font-style: italic } /* Comment */ +.codehilite .err { border: 1px solid #FF0000 } /* Error */ +.codehilite .k { color: #007020; font-weight: bold } /* Keyword */ +.codehilite .o { color: #666666 } /* Operator */ +.codehilite .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */ +.codehilite .cp { color: #007020 } /* Comment.Preproc */ +.codehilite .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */ +.codehilite .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */ +.codehilite .gd { color: #A00000 } /* Generic.Deleted */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #FF0000 } /* Generic.Error */ +.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.codehilite .gi { color: #00A000 } /* Generic.Inserted */ +.codehilite .go { color: #808080 } /* Generic.Output */ +.codehilite .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.codehilite .gt { color: #0040D0 } /* Generic.Traceback */ +.codehilite .kc { color: #007020; font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { color: #007020 } /* Keyword.Pseudo */ +.codehilite .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #902000 } /* Keyword.Type */ +.codehilite .m { color: #40a070 } /* Literal.Number */ +.codehilite .s { color: #4070a0 } /* Literal.String */ +.codehilite .na { color: #4070a0 } /* Name.Attribute */ +.codehilite .nb { color: #007020 } /* Name.Builtin */ +.codehilite .nc { color: #0e84b5; font-weight: bold } /* Name.Class */ +.codehilite .no { color: #60add5 } /* Name.Constant */ +.codehilite .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.codehilite .ni { color: #d55537; font-weight: bold } /* Name.Entity */ +.codehilite .ne { color: #007020 } /* Name.Exception */ +.codehilite .nf { color: #06287e } /* Name.Function */ +.codehilite .nl { color: #002070; font-weight: bold } /* Name.Label */ +.codehilite .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.codehilite .nt { color: #062873; font-weight: bold } /* Name.Tag */ +.codehilite .nv { color: #bb60d5 } /* Name.Variable */ +.codehilite .ow { color: #007020; font-weight: bold } /* Operator.Word */ +.codehilite .w { color: #bbbbbb } /* Text.Whitespace */ +.codehilite .mf { color: #40a070 } /* Literal.Number.Float */ +.codehilite .mh { color: #40a070 } /* Literal.Number.Hex */ +.codehilite .mi { color: #40a070 } /* Literal.Number.Integer */ +.codehilite .mo { color: #40a070 } /* Literal.Number.Oct */ +.codehilite .sb { color: #4070a0 } /* Literal.String.Backtick */ +.codehilite .sc { color: #4070a0 } /* Literal.String.Char */ +.codehilite .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */ +.codehilite .s2 { color: #4070a0 } /* Literal.String.Double */ +.codehilite .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */ +.codehilite .sh { color: #4070a0 } /* Literal.String.Heredoc */ +.codehilite .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */ +.codehilite .sx { color: #c65d09 } /* Literal.String.Other */ +.codehilite .sr { color: #235388 } /* Literal.String.Regex */ +.codehilite .s1 { color: #4070a0 } /* Literal.String.Single */ +.codehilite .ss { color: #517918 } /* Literal.String.Symbol */ +.codehilite .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #bb60d5 } /* Name.Variable.Class */ +.codehilite .vg { color: #bb60d5 } /* Name.Variable.Global */ +.codehilite .vi { color: #bb60d5 } /* Name.Variable.Instance */ +.codehilite .il { color: #40a070 } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/fruity.css b/blog/static/pygments/fruity.css new file mode 100755 index 0000000..2b3be4d --- /dev/null +++ b/blog/static/pygments/fruity.css @@ -0,0 +1,69 @@ +.codehilite .hll { background-color: #333333 } +.codehilite .c { color: #008800; font-style: italic; background-color: #0f140f } /* Comment */ +.codehilite .err { color: #ffffff } /* Error */ +.codehilite .g { color: #ffffff } /* Generic */ +.codehilite .k { color: #fb660a; font-weight: bold } /* Keyword */ +.codehilite .l { color: #ffffff } /* Literal */ +.codehilite .n { color: #ffffff } /* Name */ +.codehilite .o { color: #ffffff } /* Operator */ +.codehilite .x { color: #ffffff } /* Other */ +.codehilite .p { color: #ffffff } /* Punctuation */ +.codehilite .cm { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Multiline */ +.codehilite .cp { color: #ff0007; font-weight: bold; font-style: italic; background-color: #0f140f } /* Comment.Preproc */ +.codehilite .c1 { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Single */ +.codehilite .cs { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Special */ +.codehilite .gd { color: #ffffff } /* Generic.Deleted */ +.codehilite .ge { color: #ffffff } /* Generic.Emph */ +.codehilite .gr { color: #ffffff } /* Generic.Error */ +.codehilite .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */ +.codehilite .gi { color: #ffffff } /* Generic.Inserted */ +.codehilite .go { color: #444444; background-color: #222222 } /* Generic.Output */ +.codehilite .gp { color: #ffffff } /* Generic.Prompt */ +.codehilite .gs { color: #ffffff } /* Generic.Strong */ +.codehilite .gu { color: #ffffff; font-weight: bold } /* Generic.Subheading */ +.codehilite .gt { color: #ffffff } /* Generic.Traceback */ +.codehilite .kc { color: #fb660a; font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { color: #fb660a; font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { color: #fb660a; font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { color: #fb660a } /* Keyword.Pseudo */ +.codehilite .kr { color: #fb660a; font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #cdcaa9; font-weight: bold } /* Keyword.Type */ +.codehilite .ld { color: #ffffff } /* Literal.Date */ +.codehilite .m { color: #0086f7; font-weight: bold } /* Literal.Number */ +.codehilite .s { color: #0086d2 } /* Literal.String */ +.codehilite .na { color: #ff0086; font-weight: bold } /* Name.Attribute */ +.codehilite .nb { color: #ffffff } /* Name.Builtin */ +.codehilite .nc { color: #ffffff } /* Name.Class */ +.codehilite .no { color: #0086d2 } /* Name.Constant */ +.codehilite .nd { color: #ffffff } /* Name.Decorator */ +.codehilite .ni { color: #ffffff } /* Name.Entity */ +.codehilite .ne { color: #ffffff } /* Name.Exception */ +.codehilite .nf { color: #ff0086; font-weight: bold } /* Name.Function */ +.codehilite .nl { color: #ffffff } /* Name.Label */ +.codehilite .nn { color: #ffffff } /* Name.Namespace */ +.codehilite .nx { color: #ffffff } /* Name.Other */ +.codehilite .py { color: #ffffff } /* Name.Property */ +.codehilite .nt { color: #fb660a; font-weight: bold } /* Name.Tag */ +.codehilite .nv { color: #fb660a } /* Name.Variable */ +.codehilite .ow { color: #ffffff } /* Operator.Word */ +.codehilite .w { color: #888888 } /* Text.Whitespace */ +.codehilite .mf { color: #0086f7; font-weight: bold } /* Literal.Number.Float */ +.codehilite .mh { color: #0086f7; font-weight: bold } /* Literal.Number.Hex */ +.codehilite .mi { color: #0086f7; font-weight: bold } /* Literal.Number.Integer */ +.codehilite .mo { color: #0086f7; font-weight: bold } /* Literal.Number.Oct */ +.codehilite .sb { color: #0086d2 } /* Literal.String.Backtick */ +.codehilite .sc { color: #0086d2 } /* Literal.String.Char */ +.codehilite .sd { color: #0086d2 } /* Literal.String.Doc */ +.codehilite .s2 { color: #0086d2 } /* Literal.String.Double */ +.codehilite .se { color: #0086d2 } /* Literal.String.Escape */ +.codehilite .sh { color: #0086d2 } /* Literal.String.Heredoc */ +.codehilite .si { color: #0086d2 } /* Literal.String.Interpol */ +.codehilite .sx { color: #0086d2 } /* Literal.String.Other */ +.codehilite .sr { color: #0086d2 } /* Literal.String.Regex */ +.codehilite .s1 { color: #0086d2 } /* Literal.String.Single */ +.codehilite .ss { color: #0086d2 } /* Literal.String.Symbol */ +.codehilite .bp { color: #ffffff } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #fb660a } /* Name.Variable.Class */ +.codehilite .vg { color: #fb660a } /* Name.Variable.Global */ +.codehilite .vi { color: #fb660a } /* Name.Variable.Instance */ +.codehilite .il { color: #0086f7; font-weight: bold } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/github.css b/blog/static/pygments/github.css new file mode 100755 index 0000000..3c6b05f --- /dev/null +++ b/blog/static/pygments/github.css @@ -0,0 +1,61 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #999988; font-style: italic } /* Comment */ +.codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.codehilite .k { color: #000000; font-weight: bold } /* Keyword */ +.codehilite .o { color: #000000; font-weight: bold } /* Operator */ +.codehilite .cm { color: #999988; font-style: italic } /* Comment.Multiline */ +.codehilite .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */ +.codehilite .c1 { color: #999988; font-style: italic } /* Comment.Single */ +.codehilite .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ +.codehilite .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ +.codehilite .ge { color: #000000; font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #aa0000 } /* Generic.Error */ +.codehilite .gh { color: #999999 } /* Generic.Heading */ +.codehilite .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ +.codehilite .go { color: #888888 } /* Generic.Output */ +.codehilite .gp { color: #555555 } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #aaaaaa } /* Generic.Subheading */ +.codehilite .gt { color: #aa0000 } /* Generic.Traceback */ +.codehilite .kc { color: #000000; font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { color: #000000; font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { color: #000000; font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */ +.codehilite .kr { color: #000000; font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #445588; font-weight: bold } /* Keyword.Type */ +.codehilite .m { color: #009999 } /* Literal.Number */ +.codehilite .s { color: #d01040 } /* Literal.String */ +.codehilite .na { color: #008080 } /* Name.Attribute */ +.codehilite .nb { color: #0086B3 } /* Name.Builtin */ +.codehilite .nc { color: #445588; font-weight: bold } /* Name.Class */ +.codehilite .no { color: #008080 } /* Name.Constant */ +.codehilite .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */ +.codehilite .ni { color: #800080 } /* Name.Entity */ +.codehilite .ne { color: #990000; font-weight: bold } /* Name.Exception */ +.codehilite .nf { color: #990000; font-weight: bold } /* Name.Function */ +.codehilite .nl { color: #990000; font-weight: bold } /* Name.Label */ +.codehilite .nn { color: #555555 } /* Name.Namespace */ +.codehilite .nt { color: #000080 } /* Name.Tag */ +.codehilite .nv { color: #008080 } /* Name.Variable */ +.codehilite .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.codehilite .w { color: #bbbbbb } /* Text.Whitespace */ +.codehilite .mf { color: #009999 } /* Literal.Number.Float */ +.codehilite .mh { color: #009999 } /* Literal.Number.Hex */ +.codehilite .mi { color: #009999 } /* Literal.Number.Integer */ +.codehilite .mo { color: #009999 } /* Literal.Number.Oct */ +.codehilite .sb { color: #d01040 } /* Literal.String.Backtick */ +.codehilite .sc { color: #d01040 } /* Literal.String.Char */ +.codehilite .sd { color: #d01040 } /* Literal.String.Doc */ +.codehilite .s2 { color: #d01040 } /* Literal.String.Double */ +.codehilite .se { color: #d01040 } /* Literal.String.Escape */ +.codehilite .sh { color: #d01040 } /* Literal.String.Heredoc */ +.codehilite .si { color: #d01040 } /* Literal.String.Interpol */ +.codehilite .sx { color: #d01040 } /* Literal.String.Other */ +.codehilite .sr { color: #009926 } /* Literal.String.Regex */ +.codehilite .s1 { color: #d01040 } /* Literal.String.Single */ +.codehilite .ss { color: #990073 } /* Literal.String.Symbol */ +.codehilite .bp { color: #999999 } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #008080 } /* Name.Variable.Class */ +.codehilite .vg { color: #008080 } /* Name.Variable.Global */ +.codehilite .vi { color: #008080 } /* Name.Variable.Instance */ +.codehilite .il { color: #009999 } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/manni.css b/blog/static/pygments/manni.css new file mode 100755 index 0000000..e43a122 --- /dev/null +++ b/blog/static/pygments/manni.css @@ -0,0 +1,61 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #0099FF; font-style: italic } /* Comment */ +.codehilite .err { color: #AA0000; background-color: #FFAAAA } /* Error */ +.codehilite .k { color: #006699; font-weight: bold } /* Keyword */ +.codehilite .o { color: #555555 } /* Operator */ +.codehilite .cm { color: #0099FF; font-style: italic } /* Comment.Multiline */ +.codehilite .cp { color: #009999 } /* Comment.Preproc */ +.codehilite .c1 { color: #0099FF; font-style: italic } /* Comment.Single */ +.codehilite .cs { color: #0099FF; font-weight: bold; font-style: italic } /* Comment.Special */ +.codehilite .gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #FF0000 } /* Generic.Error */ +.codehilite .gh { color: #003300; font-weight: bold } /* Generic.Heading */ +.codehilite .gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */ +.codehilite .go { color: #AAAAAA } /* Generic.Output */ +.codehilite .gp { color: #000099; font-weight: bold } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #003300; font-weight: bold } /* Generic.Subheading */ +.codehilite .gt { color: #99CC66 } /* Generic.Traceback */ +.codehilite .kc { color: #006699; font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { color: #006699; font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { color: #006699; font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { color: #006699 } /* Keyword.Pseudo */ +.codehilite .kr { color: #006699; font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #007788; font-weight: bold } /* Keyword.Type */ +.codehilite .m { color: #FF6600 } /* Literal.Number */ +.codehilite .s { color: #CC3300 } /* Literal.String */ +.codehilite .na { color: #330099 } /* Name.Attribute */ +.codehilite .nb { color: #336666 } /* Name.Builtin */ +.codehilite .nc { color: #00AA88; font-weight: bold } /* Name.Class */ +.codehilite .no { color: #336600 } /* Name.Constant */ +.codehilite .nd { color: #9999FF } /* Name.Decorator */ +.codehilite .ni { color: #999999; font-weight: bold } /* Name.Entity */ +.codehilite .ne { color: #CC0000; font-weight: bold } /* Name.Exception */ +.codehilite .nf { color: #CC00FF } /* Name.Function */ +.codehilite .nl { color: #9999FF } /* Name.Label */ +.codehilite .nn { color: #00CCFF; font-weight: bold } /* Name.Namespace */ +.codehilite .nt { color: #330099; font-weight: bold } /* Name.Tag */ +.codehilite .nv { color: #003333 } /* Name.Variable */ +.codehilite .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.codehilite .w { color: #bbbbbb } /* Text.Whitespace */ +.codehilite .mf { color: #FF6600 } /* Literal.Number.Float */ +.codehilite .mh { color: #FF6600 } /* Literal.Number.Hex */ +.codehilite .mi { color: #FF6600 } /* Literal.Number.Integer */ +.codehilite .mo { color: #FF6600 } /* Literal.Number.Oct */ +.codehilite .sb { color: #CC3300 } /* Literal.String.Backtick */ +.codehilite .sc { color: #CC3300 } /* Literal.String.Char */ +.codehilite .sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */ +.codehilite .s2 { color: #CC3300 } /* Literal.String.Double */ +.codehilite .se { color: #CC3300; font-weight: bold } /* Literal.String.Escape */ +.codehilite .sh { color: #CC3300 } /* Literal.String.Heredoc */ +.codehilite .si { color: #AA0000 } /* Literal.String.Interpol */ +.codehilite .sx { color: #CC3300 } /* Literal.String.Other */ +.codehilite .sr { color: #33AAAA } /* Literal.String.Regex */ +.codehilite .s1 { color: #CC3300 } /* Literal.String.Single */ +.codehilite .ss { color: #FFCC33 } /* Literal.String.Symbol */ +.codehilite .bp { color: #336666 } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #003333 } /* Name.Variable.Class */ +.codehilite .vg { color: #003333 } /* Name.Variable.Global */ +.codehilite .vi { color: #003333 } /* Name.Variable.Instance */ +.codehilite .il { color: #FF6600 } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/monokai.css b/blog/static/pygments/monokai.css new file mode 100755 index 0000000..6121071 --- /dev/null +++ b/blog/static/pygments/monokai.css @@ -0,0 +1,64 @@ +.codehilite .hll { background-color: #49483e } +.codehilite .c { color: #75715e } /* Comment */ +.codehilite .err { color: #960050; background-color: #1e0010 } /* Error */ +.codehilite .k { color: #66d9ef } /* Keyword */ +.codehilite .l { color: #ae81ff } /* Literal */ +.codehilite .n { color: #f8f8f2 } /* Name */ +.codehilite .o { color: #f92672 } /* Operator */ +.codehilite .p { color: #f8f8f2 } /* Punctuation */ +.codehilite .cm { color: #75715e } /* Comment.Multiline */ +.codehilite .cp { color: #75715e } /* Comment.Preproc */ +.codehilite .c1 { color: #75715e } /* Comment.Single */ +.codehilite .cs { color: #75715e } /* Comment.Special */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .kc { color: #66d9ef } /* Keyword.Constant */ +.codehilite .kd { color: #66d9ef } /* Keyword.Declaration */ +.codehilite .kn { color: #f92672 } /* Keyword.Namespace */ +.codehilite .kp { color: #66d9ef } /* Keyword.Pseudo */ +.codehilite .kr { color: #66d9ef } /* Keyword.Reserved */ +.codehilite .kt { color: #66d9ef } /* Keyword.Type */ +.codehilite .ld { color: #e6db74 } /* Literal.Date */ +.codehilite .m { color: #ae81ff } /* Literal.Number */ +.codehilite .s { color: #e6db74 } /* Literal.String */ +.codehilite .na { color: #a6e22e } /* Name.Attribute */ +.codehilite .nb { color: #f8f8f2 } /* Name.Builtin */ +.codehilite .nc { color: #a6e22e } /* Name.Class */ +.codehilite .no { color: #66d9ef } /* Name.Constant */ +.codehilite .nd { color: #a6e22e } /* Name.Decorator */ +.codehilite .ni { color: #f8f8f2 } /* Name.Entity */ +.codehilite .ne { color: #a6e22e } /* Name.Exception */ +.codehilite .nf { color: #a6e22e } /* Name.Function */ +.codehilite .nl { color: #f8f8f2 } /* Name.Label */ +.codehilite .nn { color: #f8f8f2 } /* Name.Namespace */ +.codehilite .nx { color: #a6e22e } /* Name.Other */ +.codehilite .py { color: #f8f8f2 } /* Name.Property */ +.codehilite .nt { color: #f92672 } /* Name.Tag */ +.codehilite .nv { color: #f8f8f2 } /* Name.Variable */ +.codehilite .ow { color: #f92672 } /* Operator.Word */ +.codehilite .w { color: #f8f8f2 } /* Text.Whitespace */ +.codehilite .mf { color: #ae81ff } /* Literal.Number.Float */ +.codehilite .mh { color: #ae81ff } /* Literal.Number.Hex */ +.codehilite .mi { color: #ae81ff } /* Literal.Number.Integer */ +.codehilite .mo { color: #ae81ff } /* Literal.Number.Oct */ +.codehilite .sb { color: #e6db74 } /* Literal.String.Backtick */ +.codehilite .sc { color: #e6db74 } /* Literal.String.Char */ +.codehilite .sd { color: #e6db74 } /* Literal.String.Doc */ +.codehilite .s2 { color: #e6db74 } /* Literal.String.Double */ +.codehilite .se { color: #ae81ff } /* Literal.String.Escape */ +.codehilite .sh { color: #e6db74 } /* Literal.String.Heredoc */ +.codehilite .si { color: #e6db74 } /* Literal.String.Interpol */ +.codehilite .sx { color: #e6db74 } /* Literal.String.Other */ +.codehilite .sr { color: #e6db74 } /* Literal.String.Regex */ +.codehilite .s1 { color: #e6db74 } /* Literal.String.Single */ +.codehilite .ss { color: #e6db74 } /* Literal.String.Symbol */ +.codehilite .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #f8f8f2 } /* Name.Variable.Class */ +.codehilite .vg { color: #f8f8f2 } /* Name.Variable.Global */ +.codehilite .vi { color: #f8f8f2 } /* Name.Variable.Instance */ +.codehilite .il { color: #ae81ff } /* Literal.Number.Integer.Long */ + +.codehilite .gh { } /* Generic Heading & Diff Header */ +.codehilite .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */ +.codehilite .gd { color: #f92672; } /* Generic.Deleted & Diff Deleted */ +.codehilite .gi { color: #a6e22e; } /* Generic.Inserted & Diff Inserted */ diff --git a/blog/static/pygments/murphy.css b/blog/static/pygments/murphy.css new file mode 100755 index 0000000..b948c8f --- /dev/null +++ b/blog/static/pygments/murphy.css @@ -0,0 +1,61 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #606060; font-style: italic } /* Comment */ +.codehilite .err { color: #F00000; background-color: #F0A0A0 } /* Error */ +.codehilite .k { color: #208090; font-weight: bold } /* Keyword */ +.codehilite .o { color: #303030 } /* Operator */ +.codehilite .cm { color: #606060; font-style: italic } /* Comment.Multiline */ +.codehilite .cp { color: #507090 } /* Comment.Preproc */ +.codehilite .c1 { color: #606060; font-style: italic } /* Comment.Single */ +.codehilite .cs { color: #c00000; font-weight: bold; font-style: italic } /* Comment.Special */ +.codehilite .gd { color: #A00000 } /* Generic.Deleted */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #FF0000 } /* Generic.Error */ +.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.codehilite .gi { color: #00A000 } /* Generic.Inserted */ +.codehilite .go { color: #808080 } /* Generic.Output */ +.codehilite .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.codehilite .gt { color: #0040D0 } /* Generic.Traceback */ +.codehilite .kc { color: #208090; font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { color: #208090; font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { color: #208090; font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { color: #0080f0; font-weight: bold } /* Keyword.Pseudo */ +.codehilite .kr { color: #208090; font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #6060f0; font-weight: bold } /* Keyword.Type */ +.codehilite .m { color: #6000E0; font-weight: bold } /* Literal.Number */ +.codehilite .s { background-color: #e0e0ff } /* Literal.String */ +.codehilite .na { color: #000070 } /* Name.Attribute */ +.codehilite .nb { color: #007020 } /* Name.Builtin */ +.codehilite .nc { color: #e090e0; font-weight: bold } /* Name.Class */ +.codehilite .no { color: #50e0d0; font-weight: bold } /* Name.Constant */ +.codehilite .nd { color: #505050; font-weight: bold } /* Name.Decorator */ +.codehilite .ni { color: #800000 } /* Name.Entity */ +.codehilite .ne { color: #F00000; font-weight: bold } /* Name.Exception */ +.codehilite .nf { color: #50e0d0; font-weight: bold } /* Name.Function */ +.codehilite .nl { color: #907000; font-weight: bold } /* Name.Label */ +.codehilite .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.codehilite .nt { color: #007000 } /* Name.Tag */ +.codehilite .nv { color: #003060 } /* Name.Variable */ +.codehilite .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.codehilite .w { color: #bbbbbb } /* Text.Whitespace */ +.codehilite .mf { color: #6000E0; font-weight: bold } /* Literal.Number.Float */ +.codehilite .mh { color: #005080; font-weight: bold } /* Literal.Number.Hex */ +.codehilite .mi { color: #6060f0; font-weight: bold } /* Literal.Number.Integer */ +.codehilite .mo { color: #4000E0; font-weight: bold } /* Literal.Number.Oct */ +.codehilite .sb { background-color: #e0e0ff } /* Literal.String.Backtick */ +.codehilite .sc { color: #8080F0 } /* Literal.String.Char */ +.codehilite .sd { color: #D04020 } /* Literal.String.Doc */ +.codehilite .s2 { background-color: #e0e0ff } /* Literal.String.Double */ +.codehilite .se { color: #606060; font-weight: bold; background-color: #e0e0ff } /* Literal.String.Escape */ +.codehilite .sh { background-color: #e0e0ff } /* Literal.String.Heredoc */ +.codehilite .si { background-color: #e0e0e0 } /* Literal.String.Interpol */ +.codehilite .sx { color: #f08080; background-color: #e0e0ff } /* Literal.String.Other */ +.codehilite .sr { color: #000000; background-color: #e0e0ff } /* Literal.String.Regex */ +.codehilite .s1 { background-color: #e0e0ff } /* Literal.String.Single */ +.codehilite .ss { color: #f0c080 } /* Literal.String.Symbol */ +.codehilite .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #c0c0f0 } /* Name.Variable.Class */ +.codehilite .vg { color: #f08040 } /* Name.Variable.Global */ +.codehilite .vi { color: #a0a0f0 } /* Name.Variable.Instance */ +.codehilite .il { color: #6060f0; font-weight: bold } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/native.css b/blog/static/pygments/native.css new file mode 100755 index 0000000..b1e8fa2 --- /dev/null +++ b/blog/static/pygments/native.css @@ -0,0 +1,69 @@ +.codehilite .hll { background-color: #404040 } +.codehilite .c { color: #999999; font-style: italic } /* Comment */ +.codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.codehilite .g { color: #d0d0d0 } /* Generic */ +.codehilite .k { color: #6ab825; font-weight: bold } /* Keyword */ +.codehilite .l { color: #d0d0d0 } /* Literal */ +.codehilite .n { color: #d0d0d0 } /* Name */ +.codehilite .o { color: #d0d0d0 } /* Operator */ +.codehilite .x { color: #d0d0d0 } /* Other */ +.codehilite .p { color: #d0d0d0 } /* Punctuation */ +.codehilite .cm { color: #999999; font-style: italic } /* Comment.Multiline */ +.codehilite .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */ +.codehilite .c1 { color: #999999; font-style: italic } /* Comment.Single */ +.codehilite .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */ +.codehilite .gd { color: #d22323 } /* Generic.Deleted */ +.codehilite .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #d22323 } /* Generic.Error */ +.codehilite .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */ +.codehilite .gi { color: #589819 } /* Generic.Inserted */ +.codehilite .go { color: #cccccc } /* Generic.Output */ +.codehilite .gp { color: #aaaaaa } /* Generic.Prompt */ +.codehilite .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */ +.codehilite .gt { color: #d22323 } /* Generic.Traceback */ +.codehilite .kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { color: #6ab825 } /* Keyword.Pseudo */ +.codehilite .kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #6ab825; font-weight: bold } /* Keyword.Type */ +.codehilite .ld { color: #d0d0d0 } /* Literal.Date */ +.codehilite .m { color: #3677a9 } /* Literal.Number */ +.codehilite .s { color: #ed9d13 } /* Literal.String */ +.codehilite .na { color: #bbbbbb } /* Name.Attribute */ +.codehilite .nb { color: #24909d } /* Name.Builtin */ +.codehilite .nc { color: #447fcf; text-decoration: underline } /* Name.Class */ +.codehilite .no { color: #40ffff } /* Name.Constant */ +.codehilite .nd { color: #ffa500 } /* Name.Decorator */ +.codehilite .ni { color: #d0d0d0 } /* Name.Entity */ +.codehilite .ne { color: #bbbbbb } /* Name.Exception */ +.codehilite .nf { color: #447fcf } /* Name.Function */ +.codehilite .nl { color: #d0d0d0 } /* Name.Label */ +.codehilite .nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */ +.codehilite .nx { color: #d0d0d0 } /* Name.Other */ +.codehilite .py { color: #d0d0d0 } /* Name.Property */ +.codehilite .nt { color: #6ab825; font-weight: bold } /* Name.Tag */ +.codehilite .nv { color: #40ffff } /* Name.Variable */ +.codehilite .ow { color: #6ab825; font-weight: bold } /* Operator.Word */ +.codehilite .w { color: #666666 } /* Text.Whitespace */ +.codehilite .mf { color: #3677a9 } /* Literal.Number.Float */ +.codehilite .mh { color: #3677a9 } /* Literal.Number.Hex */ +.codehilite .mi { color: #3677a9 } /* Literal.Number.Integer */ +.codehilite .mo { color: #3677a9 } /* Literal.Number.Oct */ +.codehilite .sb { color: #ed9d13 } /* Literal.String.Backtick */ +.codehilite .sc { color: #ed9d13 } /* Literal.String.Char */ +.codehilite .sd { color: #ed9d13 } /* Literal.String.Doc */ +.codehilite .s2 { color: #ed9d13 } /* Literal.String.Double */ +.codehilite .se { color: #ed9d13 } /* Literal.String.Escape */ +.codehilite .sh { color: #ed9d13 } /* Literal.String.Heredoc */ +.codehilite .si { color: #ed9d13 } /* Literal.String.Interpol */ +.codehilite .sx { color: #ffa500 } /* Literal.String.Other */ +.codehilite .sr { color: #ed9d13 } /* Literal.String.Regex */ +.codehilite .s1 { color: #ed9d13 } /* Literal.String.Single */ +.codehilite .ss { color: #ed9d13 } /* Literal.String.Symbol */ +.codehilite .bp { color: #24909d } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #40ffff } /* Name.Variable.Class */ +.codehilite .vg { color: #40ffff } /* Name.Variable.Global */ +.codehilite .vi { color: #40ffff } /* Name.Variable.Instance */ +.codehilite .il { color: #3677a9 } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/package.json b/blog/static/pygments/package.json new file mode 100755 index 0000000..195fa73 --- /dev/null +++ b/blog/static/pygments/package.json @@ -0,0 +1,15 @@ +{ + "name": "pygments-css", + "version": "1.0.0", + "description": "CSS stylesheets for pygments", + "repository": { + "type": "git", + "url": "git+https://github.com/richleland/pygments-css.git" + }, + "keywords": ["pygments", "css", "highlighting"], + "license": "UNLICENSE", + "bugs": { + "url": "https://github.com/richleland/pygments-css/issues" + }, + "homepage": "https://github.com/richleland/pygments-css#readme" +} diff --git a/blog/static/pygments/pastie.css b/blog/static/pygments/pastie.css new file mode 100755 index 0000000..c23fa49 --- /dev/null +++ b/blog/static/pygments/pastie.css @@ -0,0 +1,60 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #888888 } /* Comment */ +.codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.codehilite .k { color: #008800; font-weight: bold } /* Keyword */ +.codehilite .cm { color: #888888 } /* Comment.Multiline */ +.codehilite .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ +.codehilite .c1 { color: #888888 } /* Comment.Single */ +.codehilite .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ +.codehilite .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #aa0000 } /* Generic.Error */ +.codehilite .gh { color: #303030 } /* Generic.Heading */ +.codehilite .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ +.codehilite .go { color: #888888 } /* Generic.Output */ +.codehilite .gp { color: #555555 } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #606060 } /* Generic.Subheading */ +.codehilite .gt { color: #aa0000 } /* Generic.Traceback */ +.codehilite .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { color: #008800 } /* Keyword.Pseudo */ +.codehilite .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #888888; font-weight: bold } /* Keyword.Type */ +.codehilite .m { color: #0000DD; font-weight: bold } /* Literal.Number */ +.codehilite .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ +.codehilite .na { color: #336699 } /* Name.Attribute */ +.codehilite .nb { color: #003388 } /* Name.Builtin */ +.codehilite .nc { color: #bb0066; font-weight: bold } /* Name.Class */ +.codehilite .no { color: #003366; font-weight: bold } /* Name.Constant */ +.codehilite .nd { color: #555555 } /* Name.Decorator */ +.codehilite .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ +.codehilite .nf { color: #0066bb; font-weight: bold } /* Name.Function */ +.codehilite .nl { color: #336699; font-style: italic } /* Name.Label */ +.codehilite .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ +.codehilite .py { color: #336699; font-weight: bold } /* Name.Property */ +.codehilite .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ +.codehilite .nv { color: #336699 } /* Name.Variable */ +.codehilite .ow { color: #008800 } /* Operator.Word */ +.codehilite .w { color: #bbbbbb } /* Text.Whitespace */ +.codehilite .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ +.codehilite .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ +.codehilite .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.codehilite .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ +.codehilite .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ +.codehilite .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ +.codehilite .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ +.codehilite .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ +.codehilite .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ +.codehilite .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ +.codehilite .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ +.codehilite .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ +.codehilite .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ +.codehilite .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ +.codehilite .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ +.codehilite .bp { color: #003388 } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #336699 } /* Name.Variable.Class */ +.codehilite .vg { color: #dd7700 } /* Name.Variable.Global */ +.codehilite .vi { color: #3333bb } /* Name.Variable.Instance */ +.codehilite .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/perldoc.css b/blog/static/pygments/perldoc.css new file mode 100755 index 0000000..e25c8ae --- /dev/null +++ b/blog/static/pygments/perldoc.css @@ -0,0 +1,58 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #228B22 } /* Comment */ +.codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.codehilite .k { color: #8B008B; font-weight: bold } /* Keyword */ +.codehilite .cm { color: #228B22 } /* Comment.Multiline */ +.codehilite .cp { color: #1e889b } /* Comment.Preproc */ +.codehilite .c1 { color: #228B22 } /* Comment.Single */ +.codehilite .cs { color: #8B008B; font-weight: bold } /* Comment.Special */ +.codehilite .gd { color: #aa0000 } /* Generic.Deleted */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #aa0000 } /* Generic.Error */ +.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.codehilite .gi { color: #00aa00 } /* Generic.Inserted */ +.codehilite .go { color: #888888 } /* Generic.Output */ +.codehilite .gp { color: #555555 } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.codehilite .gt { color: #aa0000 } /* Generic.Traceback */ +.codehilite .kc { color: #8B008B; font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { color: #8B008B; font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { color: #8B008B; font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { color: #8B008B; font-weight: bold } /* Keyword.Pseudo */ +.codehilite .kr { color: #8B008B; font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #a7a7a7; font-weight: bold } /* Keyword.Type */ +.codehilite .m { color: #B452CD } /* Literal.Number */ +.codehilite .s { color: #CD5555 } /* Literal.String */ +.codehilite .na { color: #658b00 } /* Name.Attribute */ +.codehilite .nb { color: #658b00 } /* Name.Builtin */ +.codehilite .nc { color: #008b45; font-weight: bold } /* Name.Class */ +.codehilite .no { color: #00688B } /* Name.Constant */ +.codehilite .nd { color: #707a7c } /* Name.Decorator */ +.codehilite .ne { color: #008b45; font-weight: bold } /* Name.Exception */ +.codehilite .nf { color: #008b45 } /* Name.Function */ +.codehilite .nn { color: #008b45; text-decoration: underline } /* Name.Namespace */ +.codehilite .nt { color: #8B008B; font-weight: bold } /* Name.Tag */ +.codehilite .nv { color: #00688B } /* Name.Variable */ +.codehilite .ow { color: #8B008B } /* Operator.Word */ +.codehilite .w { color: #bbbbbb } /* Text.Whitespace */ +.codehilite .mf { color: #B452CD } /* Literal.Number.Float */ +.codehilite .mh { color: #B452CD } /* Literal.Number.Hex */ +.codehilite .mi { color: #B452CD } /* Literal.Number.Integer */ +.codehilite .mo { color: #B452CD } /* Literal.Number.Oct */ +.codehilite .sb { color: #CD5555 } /* Literal.String.Backtick */ +.codehilite .sc { color: #CD5555 } /* Literal.String.Char */ +.codehilite .sd { color: #CD5555 } /* Literal.String.Doc */ +.codehilite .s2 { color: #CD5555 } /* Literal.String.Double */ +.codehilite .se { color: #CD5555 } /* Literal.String.Escape */ +.codehilite .sh { color: #1c7e71; font-style: italic } /* Literal.String.Heredoc */ +.codehilite .si { color: #CD5555 } /* Literal.String.Interpol */ +.codehilite .sx { color: #cb6c20 } /* Literal.String.Other */ +.codehilite .sr { color: #1c7e71 } /* Literal.String.Regex */ +.codehilite .s1 { color: #CD5555 } /* Literal.String.Single */ +.codehilite .ss { color: #CD5555 } /* Literal.String.Symbol */ +.codehilite .bp { color: #658b00 } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #00688B } /* Name.Variable.Class */ +.codehilite .vg { color: #00688B } /* Name.Variable.Global */ +.codehilite .vi { color: #00688B } /* Name.Variable.Instance */ +.codehilite .il { color: #B452CD } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/tango.css b/blog/static/pygments/tango.css new file mode 100755 index 0000000..dfd06f1 --- /dev/null +++ b/blog/static/pygments/tango.css @@ -0,0 +1,69 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #8f5902; font-style: italic } /* Comment */ +.codehilite .err { color: #a40000; border: 1px solid #ef2929 } /* Error */ +.codehilite .g { color: #000000 } /* Generic */ +.codehilite .k { color: #204a87; font-weight: bold } /* Keyword */ +.codehilite .l { color: #000000 } /* Literal */ +.codehilite .n { color: #000000 } /* Name */ +.codehilite .o { color: #ce5c00; font-weight: bold } /* Operator */ +.codehilite .x { color: #000000 } /* Other */ +.codehilite .p { color: #000000; font-weight: bold } /* Punctuation */ +.codehilite .cm { color: #8f5902; font-style: italic } /* Comment.Multiline */ +.codehilite .cp { color: #8f5902; font-style: italic } /* Comment.Preproc */ +.codehilite .c1 { color: #8f5902; font-style: italic } /* Comment.Single */ +.codehilite .cs { color: #8f5902; font-style: italic } /* Comment.Special */ +.codehilite .gd { color: #a40000 } /* Generic.Deleted */ +.codehilite .ge { color: #000000; font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #ef2929 } /* Generic.Error */ +.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.codehilite .gi { color: #00A000 } /* Generic.Inserted */ +.codehilite .go { color: #000000; font-style: italic } /* Generic.Output */ +.codehilite .gp { color: #8f5902 } /* Generic.Prompt */ +.codehilite .gs { color: #000000; font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.codehilite .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */ +.codehilite .kc { color: #204a87; font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { color: #204a87; font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { color: #204a87; font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { color: #204a87; font-weight: bold } /* Keyword.Pseudo */ +.codehilite .kr { color: #204a87; font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #204a87; font-weight: bold } /* Keyword.Type */ +.codehilite .ld { color: #000000 } /* Literal.Date */ +.codehilite .m { color: #0000cf; font-weight: bold } /* Literal.Number */ +.codehilite .s { color: #4e9a06 } /* Literal.String */ +.codehilite .na { color: #c4a000 } /* Name.Attribute */ +.codehilite .nb { color: #204a87 } /* Name.Builtin */ +.codehilite .nc { color: #000000 } /* Name.Class */ +.codehilite .no { color: #000000 } /* Name.Constant */ +.codehilite .nd { color: #5c35cc; font-weight: bold } /* Name.Decorator */ +.codehilite .ni { color: #ce5c00 } /* Name.Entity */ +.codehilite .ne { color: #cc0000; font-weight: bold } /* Name.Exception */ +.codehilite .nf { color: #000000 } /* Name.Function */ +.codehilite .nl { color: #f57900 } /* Name.Label */ +.codehilite .nn { color: #000000 } /* Name.Namespace */ +.codehilite .nx { color: #000000 } /* Name.Other */ +.codehilite .py { color: #000000 } /* Name.Property */ +.codehilite .nt { color: #204a87; font-weight: bold } /* Name.Tag */ +.codehilite .nv { color: #000000 } /* Name.Variable */ +.codehilite .ow { color: #204a87; font-weight: bold } /* Operator.Word */ +.codehilite .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */ +.codehilite .mf { color: #0000cf; font-weight: bold } /* Literal.Number.Float */ +.codehilite .mh { color: #0000cf; font-weight: bold } /* Literal.Number.Hex */ +.codehilite .mi { color: #0000cf; font-weight: bold } /* Literal.Number.Integer */ +.codehilite .mo { color: #0000cf; font-weight: bold } /* Literal.Number.Oct */ +.codehilite .sb { color: #4e9a06 } /* Literal.String.Backtick */ +.codehilite .sc { color: #4e9a06 } /* Literal.String.Char */ +.codehilite .sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */ +.codehilite .s2 { color: #4e9a06 } /* Literal.String.Double */ +.codehilite .se { color: #4e9a06 } /* Literal.String.Escape */ +.codehilite .sh { color: #4e9a06 } /* Literal.String.Heredoc */ +.codehilite .si { color: #4e9a06 } /* Literal.String.Interpol */ +.codehilite .sx { color: #4e9a06 } /* Literal.String.Other */ +.codehilite .sr { color: #4e9a06 } /* Literal.String.Regex */ +.codehilite .s1 { color: #4e9a06 } /* Literal.String.Single */ +.codehilite .ss { color: #4e9a06 } /* Literal.String.Symbol */ +.codehilite .bp { color: #3465a4 } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #000000 } /* Name.Variable.Class */ +.codehilite .vg { color: #000000 } /* Name.Variable.Global */ +.codehilite .vi { color: #000000 } /* Name.Variable.Instance */ +.codehilite .il { color: #0000cf; font-weight: bold } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/trac.css b/blog/static/pygments/trac.css new file mode 100755 index 0000000..c0157cb --- /dev/null +++ b/blog/static/pygments/trac.css @@ -0,0 +1,59 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #999988; font-style: italic } /* Comment */ +.codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.codehilite .k { font-weight: bold } /* Keyword */ +.codehilite .o { font-weight: bold } /* Operator */ +.codehilite .cm { color: #999988; font-style: italic } /* Comment.Multiline */ +.codehilite .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ +.codehilite .c1 { color: #999988; font-style: italic } /* Comment.Single */ +.codehilite .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ +.codehilite .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #aa0000 } /* Generic.Error */ +.codehilite .gh { color: #999999 } /* Generic.Heading */ +.codehilite .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ +.codehilite .go { color: #888888 } /* Generic.Output */ +.codehilite .gp { color: #555555 } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #aaaaaa } /* Generic.Subheading */ +.codehilite .gt { color: #aa0000 } /* Generic.Traceback */ +.codehilite .kc { font-weight: bold } /* Keyword.Constant */ +.codehilite .kd { font-weight: bold } /* Keyword.Declaration */ +.codehilite .kn { font-weight: bold } /* Keyword.Namespace */ +.codehilite .kp { font-weight: bold } /* Keyword.Pseudo */ +.codehilite .kr { font-weight: bold } /* Keyword.Reserved */ +.codehilite .kt { color: #445588; font-weight: bold } /* Keyword.Type */ +.codehilite .m { color: #009999 } /* Literal.Number */ +.codehilite .s { color: #bb8844 } /* Literal.String */ +.codehilite .na { color: #008080 } /* Name.Attribute */ +.codehilite .nb { color: #999999 } /* Name.Builtin */ +.codehilite .nc { color: #445588; font-weight: bold } /* Name.Class */ +.codehilite .no { color: #008080 } /* Name.Constant */ +.codehilite .ni { color: #800080 } /* Name.Entity */ +.codehilite .ne { color: #990000; font-weight: bold } /* Name.Exception */ +.codehilite .nf { color: #990000; font-weight: bold } /* Name.Function */ +.codehilite .nn { color: #555555 } /* Name.Namespace */ +.codehilite .nt { color: #000080 } /* Name.Tag */ +.codehilite .nv { color: #008080 } /* Name.Variable */ +.codehilite .ow { font-weight: bold } /* Operator.Word */ +.codehilite .w { color: #bbbbbb } /* Text.Whitespace */ +.codehilite .mf { color: #009999 } /* Literal.Number.Float */ +.codehilite .mh { color: #009999 } /* Literal.Number.Hex */ +.codehilite .mi { color: #009999 } /* Literal.Number.Integer */ +.codehilite .mo { color: #009999 } /* Literal.Number.Oct */ +.codehilite .sb { color: #bb8844 } /* Literal.String.Backtick */ +.codehilite .sc { color: #bb8844 } /* Literal.String.Char */ +.codehilite .sd { color: #bb8844 } /* Literal.String.Doc */ +.codehilite .s2 { color: #bb8844 } /* Literal.String.Double */ +.codehilite .se { color: #bb8844 } /* Literal.String.Escape */ +.codehilite .sh { color: #bb8844 } /* Literal.String.Heredoc */ +.codehilite .si { color: #bb8844 } /* Literal.String.Interpol */ +.codehilite .sx { color: #bb8844 } /* Literal.String.Other */ +.codehilite .sr { color: #808000 } /* Literal.String.Regex */ +.codehilite .s1 { color: #bb8844 } /* Literal.String.Single */ +.codehilite .ss { color: #bb8844 } /* Literal.String.Symbol */ +.codehilite .bp { color: #999999 } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #008080 } /* Name.Variable.Class */ +.codehilite .vg { color: #008080 } /* Name.Variable.Global */ +.codehilite .vi { color: #008080 } /* Name.Variable.Instance */ +.codehilite .il { color: #009999 } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/vim.css b/blog/static/pygments/vim.css new file mode 100755 index 0000000..740f437 --- /dev/null +++ b/blog/static/pygments/vim.css @@ -0,0 +1,69 @@ +.codehilite .hll { background-color: #222222 } +.codehilite .c { color: #000080 } /* Comment */ +.codehilite .err { color: #cccccc; border: 1px solid #FF0000 } /* Error */ +.codehilite .g { color: #cccccc } /* Generic */ +.codehilite .k { color: #cdcd00 } /* Keyword */ +.codehilite .l { color: #cccccc } /* Literal */ +.codehilite .n { color: #cccccc } /* Name */ +.codehilite .o { color: #3399cc } /* Operator */ +.codehilite .x { color: #cccccc } /* Other */ +.codehilite .p { color: #cccccc } /* Punctuation */ +.codehilite .cm { color: #000080 } /* Comment.Multiline */ +.codehilite .cp { color: #000080 } /* Comment.Preproc */ +.codehilite .c1 { color: #000080 } /* Comment.Single */ +.codehilite .cs { color: #cd0000; font-weight: bold } /* Comment.Special */ +.codehilite .gd { color: #cd0000 } /* Generic.Deleted */ +.codehilite .ge { color: #cccccc; font-style: italic } /* Generic.Emph */ +.codehilite .gr { color: #FF0000 } /* Generic.Error */ +.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.codehilite .gi { color: #00cd00 } /* Generic.Inserted */ +.codehilite .go { color: #808080 } /* Generic.Output */ +.codehilite .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ +.codehilite .gs { color: #cccccc; font-weight: bold } /* Generic.Strong */ +.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.codehilite .gt { color: #0040D0 } /* Generic.Traceback */ +.codehilite .kc { color: #cdcd00 } /* Keyword.Constant */ +.codehilite .kd { color: #00cd00 } /* Keyword.Declaration */ +.codehilite .kn { color: #cd00cd } /* Keyword.Namespace */ +.codehilite .kp { color: #cdcd00 } /* Keyword.Pseudo */ +.codehilite .kr { color: #cdcd00 } /* Keyword.Reserved */ +.codehilite .kt { color: #00cd00 } /* Keyword.Type */ +.codehilite .ld { color: #cccccc } /* Literal.Date */ +.codehilite .m { color: #cd00cd } /* Literal.Number */ +.codehilite .s { color: #cd0000 } /* Literal.String */ +.codehilite .na { color: #cccccc } /* Name.Attribute */ +.codehilite .nb { color: #cd00cd } /* Name.Builtin */ +.codehilite .nc { color: #00cdcd } /* Name.Class */ +.codehilite .no { color: #cccccc } /* Name.Constant */ +.codehilite .nd { color: #cccccc } /* Name.Decorator */ +.codehilite .ni { color: #cccccc } /* Name.Entity */ +.codehilite .ne { color: #666699; font-weight: bold } /* Name.Exception */ +.codehilite .nf { color: #cccccc } /* Name.Function */ +.codehilite .nl { color: #cccccc } /* Name.Label */ +.codehilite .nn { color: #cccccc } /* Name.Namespace */ +.codehilite .nx { color: #cccccc } /* Name.Other */ +.codehilite .py { color: #cccccc } /* Name.Property */ +.codehilite .nt { color: #cccccc } /* Name.Tag */ +.codehilite .nv { color: #00cdcd } /* Name.Variable */ +.codehilite .ow { color: #cdcd00 } /* Operator.Word */ +.codehilite .w { color: #cccccc } /* Text.Whitespace */ +.codehilite .mf { color: #cd00cd } /* Literal.Number.Float */ +.codehilite .mh { color: #cd00cd } /* Literal.Number.Hex */ +.codehilite .mi { color: #cd00cd } /* Literal.Number.Integer */ +.codehilite .mo { color: #cd00cd } /* Literal.Number.Oct */ +.codehilite .sb { color: #cd0000 } /* Literal.String.Backtick */ +.codehilite .sc { color: #cd0000 } /* Literal.String.Char */ +.codehilite .sd { color: #cd0000 } /* Literal.String.Doc */ +.codehilite .s2 { color: #cd0000 } /* Literal.String.Double */ +.codehilite .se { color: #cd0000 } /* Literal.String.Escape */ +.codehilite .sh { color: #cd0000 } /* Literal.String.Heredoc */ +.codehilite .si { color: #cd0000 } /* Literal.String.Interpol */ +.codehilite .sx { color: #cd0000 } /* Literal.String.Other */ +.codehilite .sr { color: #cd0000 } /* Literal.String.Regex */ +.codehilite .s1 { color: #cd0000 } /* Literal.String.Single */ +.codehilite .ss { color: #cd0000 } /* Literal.String.Symbol */ +.codehilite .bp { color: #cd00cd } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #00cdcd } /* Name.Variable.Class */ +.codehilite .vg { color: #00cdcd } /* Name.Variable.Global */ +.codehilite .vi { color: #00cdcd } /* Name.Variable.Instance */ +.codehilite .il { color: #cd00cd } /* Literal.Number.Integer.Long */ diff --git a/blog/static/pygments/vs.css b/blog/static/pygments/vs.css new file mode 100755 index 0000000..515298f --- /dev/null +++ b/blog/static/pygments/vs.css @@ -0,0 +1,33 @@ +.codehilite .hll { background-color: #ffffcc } +.codehilite .c { color: #008000 } /* Comment */ +.codehilite .err { border: 1px solid #FF0000 } /* Error */ +.codehilite .k { color: #0000ff } /* Keyword */ +.codehilite .cm { color: #008000 } /* Comment.Multiline */ +.codehilite .cp { color: #0000ff } /* Comment.Preproc */ +.codehilite .c1 { color: #008000 } /* Comment.Single */ +.codehilite .cs { color: #008000 } /* Comment.Special */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gh { font-weight: bold } /* Generic.Heading */ +.codehilite .gp { font-weight: bold } /* Generic.Prompt */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .gu { font-weight: bold } /* Generic.Subheading */ +.codehilite .kc { color: #0000ff } /* Keyword.Constant */ +.codehilite .kd { color: #0000ff } /* Keyword.Declaration */ +.codehilite .kn { color: #0000ff } /* Keyword.Namespace */ +.codehilite .kp { color: #0000ff } /* Keyword.Pseudo */ +.codehilite .kr { color: #0000ff } /* Keyword.Reserved */ +.codehilite .kt { color: #2b91af } /* Keyword.Type */ +.codehilite .s { color: #a31515 } /* Literal.String */ +.codehilite .nc { color: #2b91af } /* Name.Class */ +.codehilite .ow { color: #0000ff } /* Operator.Word */ +.codehilite .sb { color: #a31515 } /* Literal.String.Backtick */ +.codehilite .sc { color: #a31515 } /* Literal.String.Char */ +.codehilite .sd { color: #a31515 } /* Literal.String.Doc */ +.codehilite .s2 { color: #a31515 } /* Literal.String.Double */ +.codehilite .se { color: #a31515 } /* Literal.String.Escape */ +.codehilite .sh { color: #a31515 } /* Literal.String.Heredoc */ +.codehilite .si { color: #a31515 } /* Literal.String.Interpol */ +.codehilite .sx { color: #a31515 } /* Literal.String.Other */ +.codehilite .sr { color: #a31515 } /* Literal.String.Regex */ +.codehilite .s1 { color: #a31515 } /* Literal.String.Single */ +.codehilite .ss { color: #a31515 } /* Literal.String.Symbol */ diff --git a/blog/static/pygments/zenburn.css b/blog/static/pygments/zenburn.css new file mode 100755 index 0000000..f7ca7b0 --- /dev/null +++ b/blog/static/pygments/zenburn.css @@ -0,0 +1,71 @@ + +.codehilite code, .codehilite pre{color:#fdce93;background-color:#3f3f3f} +.codehilite .hll{background-color:#222} +.codehilite .c{color:#7f9f7f} +.codehilite .err{color:#e37170;background-color:#3d3535} +.codehilite .g{color:#7f9f7f} +.codehilite .k{color:#f0dfaf} +.codehilite .l{color:#ccc} +.codehilite .n{color:#dcdccc} +.codehilite .o{color:#f0efd0} +.codehilite .x{color:#ccc} +.codehilite .p{color:#41706f} +.codehilite .cm{color:#7f9f7f} +.codehilite .cp{color:#7f9f7f} +.codehilite .c1{color:#7f9f7f} +.codehilite .cs{color:#cd0000;font-weight:bold} +.codehilite .gd{color:#cd0000} +.codehilite .ge{color:#ccc;font-style:italic} +.codehilite .gr{color:red} +.codehilite .gh{color:#dcdccc;font-weight:bold} +.codehilite .gi{color:#00cd00} +.codehilite .go{color:gray} +.codehilite .gp{color:#dcdccc;font-weight:bold} +.codehilite .gs{color:#ccc;font-weight:bold} +.codehilite .gu{color:purple;font-weight:bold} +.codehilite .gt{color:#0040D0} +.codehilite .kc{color:#dca3a3} +.codehilite .kd{color:#ffff86} +.codehilite .kn{color:#dfaf8f;font-weight:bold} +.codehilite .kp{color:#cdcf99} +.codehilite .kr{color:#cdcd00} +.codehilite .kt{color:#00cd00} +.codehilite .ld{color:#cc9393} +.codehilite .m{color:#8cd0d3} +.codehilite .s{color:#cc9393} +.codehilite .na{color:#9ac39f} +.codehilite .nb{color:#efef8f} +.codehilite .nc{color:#efef8f} +.codehilite .no{color:#ccc} +.codehilite .nd{color:#ccc} +.codehilite .ni{color:#c28182} +.codehilite .ne{color:#c3bf9f;font-weight:bold} +.codehilite .nf{color:#efef8f} +.codehilite .nl{color:#ccc} +.codehilite .nn{color:#8fbede} +.codehilite .nx{color:#ccc} +.codehilite .py{color:#ccc} +.codehilite .nt{color:#9ac39f} +.codehilite .nv{color:#dcdccc} +.codehilite .ow{color:#f0efd0} +.codehilite .w{color:#ccc} +.codehilite .mf{color:#8cd0d3} +.codehilite .mh{color:#8cd0d3} +.codehilite .mi{color:#8cd0d3} +.codehilite .mo{color:#8cd0d3} +.codehilite .sb{color:#cc9393} +.codehilite .sc{color:#cc9393} +.codehilite .sd{color:#cc9393} +.codehilite .s2{color:#cc9393} +.codehilite .se{color:#cc9393} +.codehilite .sh{color:#cc9393} +.codehilite .si{color:#cc9393} +.codehilite .sx{color:#cc9393} +.codehilite .sr{color:#cc9393} +.codehilite .s1{color:#cc9393} +.codehilite .ss{color:#cc9393} +.codehilite .bp{color:#efef8f} +.codehilite .vc{color:#efef8f} +.codehilite .vg{color:#dcdccc} +.codehilite .vi{color:#ffffc7} +.codehilite .il{color:#8cd0d3} diff --git a/blog/templatetags/blog_tags.py b/blog/templatetags/blog_tags.py index 4bd7ccc..c4d48e9 100644 --- a/blog/templatetags/blog_tags.py +++ b/blog/templatetags/blog_tags.py @@ -49,16 +49,8 @@ def datetimeformat(data): @register.filter(is_safe=True) @stringfilter def custom_markdown(content): - return mark_safe(markdown2.markdown(force_text(content), - extras=["fenced-code-blocks", "cuddled-lists", "metadata", "tables", - "spoiler"])) - """ - return mark_safe(markdown.markdown(content, - extensions= - ['markdown.extensions.fenced_code', - 'markdown.extensions.codehilite'], - safe_mode=True, enable_attributes=False)) - """ + from DjangoBlog.common_markdown import common_markdown + return mark_safe(common_markdown.get_markdown(content)) @register.filter(is_safe=True) @@ -125,6 +117,7 @@ def load_sidebar(user): dates = Article.objects.datetimes('created_time', 'month', order='DESC') links = Links.objects.all() commment_list = Comment.objects.order_by('-id')[:settings.SIDEBAR_COMMENT_COUNT] + show_adsense = settings.SHOW_GOOGLE_ADSENSE # tags= return { 'recent_articles': recent_articles, @@ -133,7 +126,8 @@ def load_sidebar(user): 'article_dates': dates, 'sidabar_links': links, 'sidebar_comments': commment_list, - 'user': user + 'user': user, + 'show_adsense': show_adsense } diff --git a/image/2017/01/12/1.txt b/image/2017/01/12/1.txt new file mode 100644 index 0000000..d0bfd17 --- /dev/null +++ b/image/2017/01/12/1.txt @@ -0,0 +1,1595 @@ + +requirements.txt +end read +start upload +end upload + + + + + + Page not found at /fileupload + + + + +
+

Page not found (404)

+ + + + + + + + + + +
Request Method:POST
Request URL:http://www.lylinux.net/fileupload
+
+
+ +

+ Using the URLconf defined in DjangoBlog.urls, + Django tried these URL patterns, in this order: +

+
    + +
  1. + + ^admin/ + + +
  2. + +
  3. + + + + + ^$ + [name='index'] + +
  4. + +
  5. + + + + + ^page/(?P<page>\d+)$ + [name='index_page'] + +
  6. + +
  7. + + + + + ^article/(?P<year>\d+)/(?P<month>\d+)/(?P<day>\d+)/(?P<article_id>\d+)-(?P<slug>\S+).html$ + [name='detail'] + +
  8. + +
  9. + + + + + ^blogpage/(?P<year>\d+)/(?P<month>\d+)/(?P<day>\d+)/(?P<page_id>\d+)-(?P<slug>\S+).html$ + [name='pagedetail'] + +
  10. + +
  11. + + + + + ^category/(?P<category_name>\S+).html$ + [name='category_detail'] + +
  12. + +
  13. + + + + + ^author/(?P<author_name>\w+).html$ + [name='author_detail'] + +
  14. + +
  15. + + + + + ^tag/(?P<tag_name>.+).html$ + [name='tag_detail'] + +
  16. + +
  17. + + + + + ^upload + [name='upload'] + +
  18. + +
  19. + + + + + ^article/(?P<article_id>\d+)/postcomment$ + [name='postcomment'] + +
  20. + +
  21. + + + + + ^login/$ + [name='login'] + +
  22. + +
  23. + + + + + ^register/$ + [name='register'] + +
  24. + +
  25. + + + + + ^logout/$ + [name='logout'] + +
  26. + +
  27. + + + + + ^oauth/wbauthorize/(?P<sitename>\w+)$ + + +
  28. + +
  29. + + + + + ^oauth/wboauthurl$ + + +
  30. + +
  31. + + ^sitemap\.xml$ + [name='django.contrib.sitemaps.views.sitemap'] + +
  32. + +
  33. + + ^feed/$ + + +
  34. + +
  35. + + ^search + + +
  36. + +
+

The current URL, fileupload, didn't match any of these.

+ +
+ +
+

+ You're seeing this error because you have DEBUG = True in + your Django settings file. Change that to False, and Django + will display a standard 404 page. +

+
+ + + +requirements.txt +end read +start upload +end upload + + + + + + + AttributeError at /upload + + + + + + +
+

AttributeError at /upload

+
'MultiValueDict' object has no attribute 'iteritems'
+ + + + + + + + + + + + + + + + + + + + + + + + +
Request Method:POST
Request URL:http://www.lylinux.net/upload
Django Version:1.10.3
Exception Type:AttributeError
Exception Value:
'MultiValueDict' object has no attribute 'iteritems'<
+error
+/Users/liangliang/1.txt
+end read
+start upload
+end upload
+
+
+
+
+  
+  
+  AttributeError at /upload
+  
+  
+  
+  
+
+
+
+

AttributeError at /upload

+
'MultiValueDict' object has no attribute 'iteritems'
+ + + + + + + + + + + + + + + + + + + + + + + + +
Request Method:POST
Request URL:http://www.lylinux.net/upload
Django Version:1.10.3
Exception Type:AttributeError
Exception Value:
'MultiValueDict' object has no attribute 'iteritems'<
+error
+/Users/liangliang/1.txt
+end read
+start upload
+end upload
+
+
+
+
+  
+  
+  AttributeError at /upload
+  
+  
+  
+  
+
+
+
+

AttributeError at /upload

+
'MultiValueDict' object has no attribute 'iteritems'
+ + + + + + + + + + + + + + + + + + + + + + + + +
Request Method:POST
Request URL:http://www.lylinux.net/upload
Django Version:1.10.3
Exception Type:AttributeError
Exception Value:
'MultiValueDict' object has no attribute 'iteritems'<
+error
+/Users/liangliang/1.txt
+end read
+start upload
+end upload
+
+
+
+
+  
+  
+  AttributeError at /upload
+  
+  
+  
+  
+
+
+
+

AttributeError at /upload

+
'MultiValueDict' object has no attribute 'iteritems'
+ + + + + + + + + + + + + + + + + + + + + + + + +
Request Method:POST
Request URL:http://www.lylinux.net/upload
Django Version:1.10.3
Exception Type:AttributeError
Exception Value:
'MultiValueDict' object has no attribute 'iteritems'<
+error
+/Users/liangliang/1.txt
+end read
+start upload
+/Users/liangliang/1.txt
+end read
+start upload
+end upload
+
+
+
+
+  
+  
+  AttributeError at /upload
+  
+  
+  
+  
+
+
+
+

AttributeError at /upload

+
'MultiValueDict' object has no attribute 'iteritems'
+ + + + + + + + + + + + + + + + + + + + + + + + +
Request Method:POST
Request URL:http://www.lylinux.net/upload
Django Version:1.10.3
Exception Type:AttributeError
Exception Value:
'MultiValueDict' object has no attribute 'iteritems'<
+/Users/liangliang/1.txt
+end read
+start upload
+end upload
+
+
+
+
+  
+  
+  AttributeError at /upload
+  
+  
+  
+  
+
+
+
+

AttributeError at /upload

+
'MultiValueDict' object has no attribute 'iteritems'
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/Users/liangliang/1.txt +end read +start upload +end upload + + + + + + + AttributeError at /upload + + + + + + +
+

AttributeError at /upload

+
'MultiValueDict' object has no attribute 'iteritems'
+
Request Method:POST
Request URL:http://127.0.0.1:8000/upload
Django Version:1.10.4
Exception Type:AttributeError
Exception Value:
'MultiValueDict' object has no attribute 'iteritems'
Exception Location:/Users/liangliang/Source/Python/DjangoBlog/blog/views.py in fileupload, line 214
Python Executable:/Users/liangliang/Source/Python/ENV/python3/bin/python3.6
Python Version:3.6.0
Python Path:
['/Users/liangliang/Source/Python/DjangoBlog',
+ '/Users/liangliang/Source/Python/DjangoBlog',
+ '/Users/liangliang/Source/Python/ENV/python3/lib/python36.zip',
+ '/Users/liangliang/Source/Python/ENV/python3/lib/python3.6',
+ '/Users/liangliang/Source/Python/ENV/python3/lib/python3.6/lib-dynload',
+ '/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
+ '/Users/liangliang/Source/Python/ENV/python3/lib/python3.6/site-packages']
Server time:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/Users/liangliang/1.txt +end read +start upload +end upload +/Users/liangliang/1.txt +end read +start upload +end upload +/Users/liangliang/1.txt +end read +start upload +end upload +/Users/liangliang/1.txt +end read +start upload +/Users/liangliang/1.txt +end read +start upload +end upload +/Users/liangliang/1.txt +end read +start upload +/Users/liangliang/1.txt +end read +start upload +end upload +/Users/liangliang/1.txt +end read +start upload +end upload +/Users/liangliang/1.txt +end read +start upload +end upload +/Users/liangliang/1.txt +end read +start upload +/Users/liangliang/1.txt +end read +start upload +end upload + + + + + + + MultiValueDictKeyError at /upload + + + + + + +
+

MultiValueDictKeyError at /upload

+
'0'
+
Request Method:POST
Request URL:http://127.0.0.1:8000/upload
Django Version:1.10.4
Exception Type:AttributeError
Exception Value:
'MultiValueDict' object has no attribute 'iteritems'
Exception Location:/Users/liangliang/Source/Python/DjangoBlog/blog/views.py in fileupload, line 214
Python Executable:/Users/liangliang/Source/Python/ENV/python3/bin/python3.6
Python Version:3.6.0
Python Path:
['/Users/liangliang/Source/Python/DjangoBlog',
+ '/Users/liangliang/Source/Python/DjangoBlog',
+ '/Users/liangliang/Source/Python/ENV/python3/lib/python36.zip',
+ '/Users/liangliang/Source/Python/ENV/python3/lib/python3.6',
+ '/Users/liangliang/Source/Python/ENV/python3/lib/python3.6/lib-dynload',
+ '/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
+ '/Users/liangliang/Source/Python/ENV/python3/lib/python3.6/site-packages']
Server time:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Request Method:POST
Request URL:http://127.0.0.1:8000/upload
Django Version:1.10.4
Exception Type:MultiValueDictKeyError
Exception Value:
'0'
Exception Location:/Users/liangli +/Users/liangliang/1.txt +end read +start upload \ No newline at end of file diff --git a/templates/blog/tags/article_info.html b/templates/blog/tags/article_info.html index af456cd..270815a 100644 --- a/templates/blog/tags/article_info.html +++ b/templates/blog/tags/article_info.html @@ -1,9 +1,10 @@ {% load blog_tags %} -
+
-

+

{% if isindex %} {{ article.title }} @@ -34,7 +35,7 @@ {% endif %}

-
+
{% if isindex %} {{ article.body|truncatechars_content|custom_markdown }}

+ 本条目发布于。 {% if user.is_authenticated %} 编辑 diff --git a/templates/blog/tags/sidebar.html b/templates/blog/tags/sidebar.html index 6af5e62..a956353 100755 --- a/templates/blog/tags/sidebar.html +++ b/templates/blog/tags/sidebar.html @@ -74,6 +74,9 @@ {% endif %} + {% if show_adsense %} + {% include 'share_layout/adsense.html' %} + {% endif %}