diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..dc471de --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "pelican-plugins"] + path = pelican-plugins + url = https://github.com/getpelican/pelican-plugins.git diff --git a/_nb_header.html b/_nb_header.html new file mode 100644 index 0000000..cc86135 --- /dev/null +++ b/_nb_header.html @@ -0,0 +1,1702 @@ + + + + + + + + + + diff --git a/pelicanconf.py b/pelicanconf.py index 0b4dd9b..7a6e502 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -2,14 +2,17 @@ from __future__ import unicode_literals AUTHOR = 'Marvin Steadfast' -SITENAME = 'xsteadfastx is trying to code' +SITENAME = 'is trying to code' SITEURL = 'http://code.xsteadfastx.org' +AVATAR = '/theme/images/avatar.png' TIMEZONE = "Europe/Berlin" +DESCRIPTION = "Der Versuch zu programmieren und Computer Zeugs nieder zu bloggen." # can be useful in development, but set to False when you're ready to publish RELATIVE_URLS = True GITHUB_URL = 'http://github.com/xsteadfastx/' +TWITTER_NAME = 'xsteadfastx' #DISQUS_SITENAME = "xsteadfastxistryingtocode" ISSO_URL = 'http://comments.xsteadfastx.org' PDF_GENERATOR = False @@ -35,6 +38,8 @@ STATIC_PATHS = [ 'images', #'extra/robots.txt', 'extra/CNAME', + #'code', + #'notebooks' ] # custom page generated with a jinja2 template @@ -47,9 +52,18 @@ PYGMENTS_RST_OPTIONS = {'linenos': 'table'} # have to be in caps #foobar = "barbaz" -THEME = 'themes/xsteadfastx' +THEME = 'themes/xsteadfastx-greg' OUTPUT_PATH = 'output' PATH = 'content' ARTICLE_URL = 'posts/{date:%Y}/{date:%m}/{slug}/' ARTICLE_SAVE_AS = 'posts/{date:%Y}/{date:%m}/{slug}/index.html' + +# plugins +#PLUGIN_PATH = '../pelican-plugins' +#PLUGINS = ['liquid_tags.notebook', 'liquid_tags.include_code', +# 'liquid_tags.img', 'liquid_tags.video'] + +#CODE_DIR = 'code' +#NOTEBOOK_DIR = 'notebooks' +#EXTRA_HEADER = open('_nb_header.html').read().decode('utf-8') diff --git a/themes/xsteadfastx-greg/readme.md b/themes/xsteadfastx-greg/readme.md new file mode 100644 index 0000000..c8b08dc --- /dev/null +++ b/themes/xsteadfastx-greg/readme.md @@ -0,0 +1,15 @@ +Notebook Simpler +--------------------------------- + +This is [Pelican](https://github.com/getpelican) theme designed for using [IPython Notebooks](http://ipython.org/notebook.html) with Pelican's [liquid tags plugin](https://github.com/getpelican/pelican-plugins/tree/master/liquid_tags). + +It utilizes a slightly modified version of [Skeleton](www.getskeleton.com) and [Font Awesome](http://fortawesome.github.io/Font-Awesome/). + +### Index Screenshot +![Index-Screenshot](https://raw.github.com/gjreda/gregreda.com/master/theme/notebook-simpler/screenshot-index.png) + +### Article Screenshot +![Article-Screenshot](https://raw.github.com/gjreda/gregreda.com/master/theme/notebook-simpler/screenshot-article.png) + +### IPython Notebook Screenshot +![Notebook-Screenshot](https://raw.github.com/gjreda/gregreda.com/master/theme/notebook-simpler/screenshot-ipynb.png) diff --git a/themes/xsteadfastx-greg/screenshot-article.png b/themes/xsteadfastx-greg/screenshot-article.png new file mode 100644 index 0000000..31adc31 Binary files /dev/null and b/themes/xsteadfastx-greg/screenshot-article.png differ diff --git a/themes/xsteadfastx-greg/screenshot-index.png b/themes/xsteadfastx-greg/screenshot-index.png new file mode 100644 index 0000000..952c6af Binary files /dev/null and b/themes/xsteadfastx-greg/screenshot-index.png differ diff --git a/themes/xsteadfastx-greg/screenshot-ipynb.png b/themes/xsteadfastx-greg/screenshot-ipynb.png new file mode 100644 index 0000000..ca0e92c Binary files /dev/null and b/themes/xsteadfastx-greg/screenshot-ipynb.png differ diff --git a/themes/xsteadfastx-greg/static/css/base.css b/themes/xsteadfastx-greg/static/css/base.css new file mode 100644 index 0000000..9ae0270 --- /dev/null +++ b/themes/xsteadfastx-greg/static/css/base.css @@ -0,0 +1,269 @@ +/* +* Skeleton V1.2 +* Copyright 2011, Dave Gamache +* www.getskeleton.com +* Free to use under the MIT license. +* http://www.opensource.org/licenses/mit-license.php +* 6/20/2012 +*/ + + +/* Table of Content +================================================== + #Reset & Basics + #Basic Styles + #Site Styles + #Typography + #Links + #Lists + #Images + #Buttons + #Forms + #Misc */ + + +/* #Reset & Basics (Inspired by E. Meyers) +================================================== */ + html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; } + article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { + display: block; } + body { + line-height: 1; } + ol, ul { + list-style: none; } + blockquote, q { + quotes: none; } + blockquote:before, blockquote:after, + q:before, q:after { + content: ''; + content: none; } + table { + border-collapse: collapse; + border-spacing: 0; } + + +/* #Basic Styles +================================================== */ + body { + background: #fff; + font: 14px/21px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; + color: #444; + -webkit-font-smoothing: antialiased; /* Fix for webkit rendering */ + -webkit-text-size-adjust: 100%; + } + + +/* #Typography +================================================== */ + h1, h2, h3, h4, h5, h6 { + color: #181818; + font-family: "Georgia", "Times New Roman", serif; + font-weight: normal; } + h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; } + h1 { font-size: 46px; line-height: 50px; margin-bottom: 14px;} + h2 { font-size: 35px; line-height: 40px; margin-bottom: 10px; } + h3 { font-size: 28px; line-height: 34px; margin-bottom: 8px; } + h4 { font-size: 21px; line-height: 30px; margin-bottom: 4px; } + h5 { font-size: 17px; line-height: 24px; } + h6 { font-size: 14px; line-height: 21px; } + .subheader { color: #777; } + + p { margin: 0 0 20px 0; } + p img { margin: 0; } + p.lead { font-size: 21px; line-height: 27px; color: #777; } + + em { font-style: italic; } + strong { font-weight: bold; color: #333; } + small { font-size: 80%; } + +/* Blockquotes */ + blockquote, blockquote p { font-size: 17px; line-height: 24px; color: #777; font-style: italic; } + blockquote { margin: 0 0 20px; padding: 9px 20px 0 19px; border-left: 1px solid #ddd; } + blockquote cite { display: block; font-size: 12px; color: #555; } + blockquote cite:before { content: "\2014 \0020"; } + blockquote cite a, blockquote cite a:visited, blockquote cite a:visited { color: #555; } + + hr { border: solid #ddd; border-width: 1px 0 0; clear: both; margin: 10px 0 30px; height: 0; } + + +/* #Links +================================================== */ + a, a:visited { color: #333; text-decoration: underline; outline: 0; } + a:hover, a:focus { color: #000; } + p a, p a:visited { line-height: inherit; } + + +/* #Lists +================================================== */ + ul, ol { margin-bottom: 20px; } + ul { list-style: none outside; } + ol { list-style: decimal; } + ol, ul.square, ul.circle, ul.disc { margin-left: 30px; } + ul.square { list-style: square outside; } + ul.circle { list-style: circle outside; } + ul.disc { list-style: disc outside; } + ul ul, ul ol, + ol ol, ol ul { margin: 4px 0 5px 30px; font-size: 90%; } + ul ul li, ul ol li, + ol ol li, ol ul li { margin-bottom: 6px; } + li { line-height: 18px; margin-bottom: 12px; } + ul.large li { line-height: 21px; } + li p { line-height: 21px; } + +/* #Images +================================================== */ + + img.scale-with-grid { + max-width: 100%; + height: auto; } + + +/* #Buttons +================================================== */ + + .button, + button, + input[type="submit"], + input[type="reset"], + input[type="button"] { + background: #eee; /* Old browsers */ + background: #eee -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* FF3.6+ */ + background: #eee -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2))); /* Chrome,Safari4+ */ + background: #eee -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Chrome10+,Safari5.1+ */ + background: #eee -o-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Opera11.10+ */ + background: #eee -ms-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* IE10+ */ + background: #eee linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* W3C */ + border: 1px solid #aaa; + border-top: 1px solid #ccc; + border-left: 1px solid #ccc; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + color: #444; + display: inline-block; + font-size: 11px; + font-weight: bold; + text-decoration: none; + text-shadow: 0 1px rgba(255, 255, 255, .75); + cursor: pointer; + margin-bottom: 20px; + line-height: normal; + padding: 8px 10px; + font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; } + + .button:hover, + button:hover, + input[type="submit"]:hover, + input[type="reset"]:hover, + input[type="button"]:hover { + color: #222; + background: #ddd; /* Old browsers */ + background: #ddd -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); /* FF3.6+ */ + background: #ddd -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3))); /* Chrome,Safari4+ */ + background: #ddd -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Chrome10+,Safari5.1+ */ + background: #ddd -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Opera11.10+ */ + background: #ddd -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* IE10+ */ + background: #ddd linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* W3C */ + border: 1px solid #888; + border-top: 1px solid #aaa; + border-left: 1px solid #aaa; } + + .button:active, + button:active, + input[type="submit"]:active, + input[type="reset"]:active, + input[type="button"]:active { + border: 1px solid #666; + background: #ccc; /* Old browsers */ + background: #ccc -moz-linear-gradient(top, rgba(255,255,255,.35) 0%, rgba(10,10,10,.4) 100%); /* FF3.6+ */ + background: #ccc -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.35)), color-stop(100%,rgba(10,10,10,.4))); /* Chrome,Safari4+ */ + background: #ccc -webkit-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Chrome10+,Safari5.1+ */ + background: #ccc -o-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Opera11.10+ */ + background: #ccc -ms-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* IE10+ */ + background: #ccc linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* W3C */ } + + .button.full-width, + button.full-width, + input[type="submit"].full-width, + input[type="reset"].full-width, + input[type="button"].full-width { + width: 100%; + padding-left: 0 !important; + padding-right: 0 !important; + text-align: center; } + + /* Fix for odd Mozilla border & padding issues */ + button::-moz-focus-inner, + input::-moz-focus-inner { + border: 0; + padding: 0; + } + + +/* #Forms +================================================== */ + + form { + margin-bottom: 20px; } + fieldset { + margin-bottom: 20px; } + input[type="text"], + input[type="password"], + input[type="email"], + textarea, + select { + border: 1px solid #ccc; + padding: 6px 4px; + outline: none; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + border-radius: 2px; + font: 13px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; + color: #777; + margin: 0; + width: 210px; + max-width: 100%; + display: block; + margin-bottom: 20px; + background: #fff; } + select { + padding: 0; } + input[type="text"]:focus, + input[type="password"]:focus, + input[type="email"]:focus, + textarea:focus { + border: 1px solid #aaa; + color: #444; + -moz-box-shadow: 0 0 3px rgba(0,0,0,.2); + -webkit-box-shadow: 0 0 3px rgba(0,0,0,.2); + box-shadow: 0 0 3px rgba(0,0,0,.2); } + textarea { + min-height: 60px; } + label, + legend { + display: block; + font-weight: bold; + font-size: 13px; } + select { + width: 220px; } + input[type="checkbox"] { + display: inline; } + label span, + legend span { + font-weight: normal; + font-size: 13px; + color: #444; } + +/* #Misc +================================================== */ + .remove-bottom { margin-bottom: 0 !important; } + .half-bottom { margin-bottom: 10px !important; } + .add-bottom { margin-bottom: 20px !important; } + + diff --git a/themes/xsteadfastx-greg/static/css/layout.css b/themes/xsteadfastx-greg/static/css/layout.css new file mode 100644 index 0000000..b99f451 --- /dev/null +++ b/themes/xsteadfastx-greg/static/css/layout.css @@ -0,0 +1,58 @@ +/* +* Skeleton V1.2 +* Copyright 2011, Dave Gamache +* www.getskeleton.com +* Free to use under the MIT license. +* http://www.opensource.org/licenses/mit-license.php +* 6/20/2012 +*/ + +/* Table of Content +================================================== + #Site Styles + #Page Styles + #Media Queries + #Font-Face */ + +/* #Site Styles +================================================== */ + +/* #Page Styles +================================================== */ + +/* #Media Queries +================================================== */ + + /* Smaller than standard 960 (devices and browsers) */ + @media only screen and (max-width: 959px) {} + + /* Tablet Portrait size to standard 960 (devices and browsers) */ + @media only screen and (min-width: 768px) and (max-width: 959px) {} + + /* All Mobile Sizes (devices and browser) */ + @media only screen and (max-width: 767px) {} + + /* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ + @media only screen and (min-width: 480px) and (max-width: 767px) {} + + /* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */ + @media only screen and (max-width: 479px) {} + + +/* #Font-Face +================================================== */ +/* This is the proper syntax for an @font-face file + Just create a "fonts" folder at the root, + copy your FontName into code below and remove + comment brackets */ + +/* @font-face { + font-family: 'FontName'; + src: url('../fonts/FontName.eot'); + src: url('../fonts/FontName.eot?iefix') format('eot'), + url('../fonts/FontName.woff') format('woff'), + url('../fonts/FontName.ttf') format('truetype'), + url('../fonts/FontName.svg#webfontZam02nTh') format('svg'); + font-weight: normal; + font-style: normal; } +*/ \ No newline at end of file diff --git a/themes/xsteadfastx-greg/static/css/pygment.css b/themes/xsteadfastx-greg/static/css/pygment.css new file mode 100644 index 0000000..9065cc5 --- /dev/null +++ b/themes/xsteadfastx-greg/static/css/pygment.css @@ -0,0 +1,65 @@ +/* +Generated with Pygments +$ pygmentize -S monokai -f html -a .highlight > theme/notebook-simpler/static/css/pygment.css +*/ + +.highlight .hll { background-color: #49483e } +.highlight { background: #272822; color: #f8f8f2 } +.highlight .c { color: #75715e } /* Comment */ +.highlight .err { color: #960050; background-color: #1e0010 } /* Error */ +.highlight .k { color: #66d9ef } /* Keyword */ +.highlight .l { color: #ae81ff } /* Literal */ +.highlight .n { color: #f8f8f2 } /* Name */ +.highlight .o { color: #f92672 } /* Operator */ +.highlight .p { color: #f8f8f2 } /* Punctuation */ +.highlight .cm { color: #75715e } /* Comment.Multiline */ +.highlight .cp { color: #75715e } /* Comment.Preproc */ +.highlight .c1 { color: #75715e } /* Comment.Single */ +.highlight .cs { color: #75715e } /* Comment.Special */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .kc { color: #66d9ef } /* Keyword.Constant */ +.highlight .kd { color: #66d9ef } /* Keyword.Declaration */ +.highlight .kn { color: #f92672 } /* Keyword.Namespace */ +.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */ +.highlight .kr { color: #66d9ef } /* Keyword.Reserved */ +.highlight .kt { color: #66d9ef } /* Keyword.Type */ +.highlight .ld { color: #e6db74 } /* Literal.Date */ +.highlight .m { color: #ae81ff } /* Literal.Number */ +.highlight .s { color: #e6db74 } /* Literal.String */ +.highlight .na { color: #a6e22e } /* Name.Attribute */ +.highlight .nb { color: #f8f8f2 } /* Name.Builtin */ +.highlight .nc { color: #a6e22e } /* Name.Class */ +.highlight .no { color: #66d9ef } /* Name.Constant */ +.highlight .nd { color: #a6e22e } /* Name.Decorator */ +.highlight .ni { color: #f8f8f2 } /* Name.Entity */ +.highlight .ne { color: #a6e22e } /* Name.Exception */ +.highlight .nf { color: #a6e22e } /* Name.Function */ +.highlight .nl { color: #f8f8f2 } /* Name.Label */ +.highlight .nn { color: #f8f8f2 } /* Name.Namespace */ +.highlight .nx { color: #a6e22e } /* Name.Other */ +.highlight .py { color: #f8f8f2 } /* Name.Property */ +.highlight .nt { color: #f92672 } /* Name.Tag */ +.highlight .nv { color: #f8f8f2 } /* Name.Variable */ +.highlight .ow { color: #f92672 } /* Operator.Word */ +.highlight .w { color: #f8f8f2 } /* Text.Whitespace */ +.highlight .mf { color: #ae81ff } /* Literal.Number.Float */ +.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */ +.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */ +.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */ +.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */ +.highlight .sc { color: #e6db74 } /* Literal.String.Char */ +.highlight .sd { color: #e6db74 } /* Literal.String.Doc */ +.highlight .s2 { color: #e6db74 } /* Literal.String.Double */ +.highlight .se { color: #ae81ff } /* Literal.String.Escape */ +.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */ +.highlight .si { color: #e6db74 } /* Literal.String.Interpol */ +.highlight .sx { color: #e6db74 } /* Literal.String.Other */ +.highlight .sr { color: #e6db74 } /* Literal.String.Regex */ +.highlight .s1 { color: #e6db74 } /* Literal.String.Single */ +.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */ +.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */ +.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */ +.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */ +.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */ +.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */ diff --git a/themes/xsteadfastx-greg/static/css/simply.css b/themes/xsteadfastx-greg/static/css/simply.css new file mode 100644 index 0000000..371e5f4 --- /dev/null +++ b/themes/xsteadfastx-greg/static/css/simply.css @@ -0,0 +1,185 @@ +/* +* Greg Reda +* Styling based on the Skeleton documention (http://www.getskeleton.com/) +* 11/25/2012 +* Use it however you want +*/ + +/* +TODO: +- Clean this crap up. +*/ + +@import url(http://fonts.googleapis.com/css?family=Droid+Serif); +@import url(http://fonts.googleapis.com/css?family=Droid+Sans); +@import url(http://fonts.googleapis.com/css?family=Source+Code+Pro); + +{margin: 0; padding: 0;} +html, body { + height: 100%; + font-family: "Droid Sans", sans-serif; +} +h1, h2, h3, h4, h5, h6 { font-family: "Droid Serif", serif; } +#content h3, h4 { margin-top: 20px; } + +div.container { + padding-top: 50px; + min-height: 100%; + margin-left: auto; + margin-right: auto; + /*margin-bottom: -50px;*/ + /*position: relative;*/ +} +footer { + float: right !important; + /*height: 50px;*/ + /*position: relative;*/ + text-align: center; + /*clear: both;*/ +} + +section#content { + margin-top: 30px 0; + float: right; +} +#content img { + display: block; + margin-left: auto; + margin-right: auto; + max-width: 90%; +} + + +/*SIDEBAR*/ +#sidebar { + position: fixed; + text-align: center; + font-family: "Droid Serif", serif; +} + +#sidebar li { + margin: 0px; + font-size: 18px; +} + +#logo { + letter-spacing: -1px; + font-weight: bold; +} + +#avatar { + /*border-radius: 10px;*/ + margin-left: auto; + margin-right: auto; + margin-bottom: 10px; + display: block; + width: 140px; + border: 0px; + +} + + +blockquote { + padding: 0px 20px 0px 20px !important; + border-left: 2px solid #ddd !important; +} + + +/* +* Styling +*/ + +/*Links*/ +a, a:visited { + text-decoration: none !important; + font-weight: bold; +} + +a.icon, a:visited.icon, a:active.icon { + font-size: 17px; + color: #555; + font-weight: bold; +} +a:hover.icon, a:focus.icon { color: #222; } + +/*Horizontal Rulers*/ +hr.large { + border: none; + height: 2px; + background-color: #ebebeb; + margin: 10px 10px; +} + +hr.small { + margin: 5px 0px; +} + + +/*Article Design*/ +.article-title { + clear: both; + float: left; + margin-top: 0px !important; +} +.article-date { + font-style: italic; + float: right; + margin: 8px 10px; +} +.article-summary { clear: both; } +.article-content { clear: both; overflow: hidden; } +.article-content img { border: 1px solid #222; } + +.article-content p { + margin: 12px 0px 12px 0px !important; + font-family: 'Droid Sans', sans-serif; + font-weight: 400; + line-height: 1.4em; + font-size: 18px; +} + +.caption { font-size: 12px !important; } + +.back-to-home { + margin-top: 20px; + margin-bottom: 10px; +} + + +/*Code Formatting*/ +code, pre.ipynb { + font-family: "Source Code Pro", monospace !important; + font-size: 13px !important; +} +.highlight, pre { + font-family: "Source Code Pro", monospace; + font-size: 12px; + background-color: #272822; + line-height: 125%; + padding: 5px 10px 5px 10px; + border-radius: 4px; +} + + +/*Mobile*/ +@media only screen and (max-width: 768px) { + #sidebar { + position: relative; + width: 100%; + top: 8px; + } + + /*#sidebar img { width: 140px; margin-right: 10px; }*/ + + #content { + float: none; + margin-top: 30px; + } + + #content img { + max-width: 85%; + display: block; + margin-left: auto; + margin-right: auto; + } +} diff --git a/themes/xsteadfastx-greg/static/css/skeleton.css b/themes/xsteadfastx-greg/static/css/skeleton.css new file mode 100644 index 0000000..9c7d269 --- /dev/null +++ b/themes/xsteadfastx-greg/static/css/skeleton.css @@ -0,0 +1,242 @@ +/* +* Skeleton V1.2 +* Copyright 2011, Dave Gamache +* www.getskeleton.com +* Free to use under the MIT license. +* http://www.opensource.org/licenses/mit-license.php +* 6/20/2012 +*/ + + +/* Table of Contents +================================================== + #Base 960 Grid + #Tablet (Portrait) + #Mobile (Portrait) + #Mobile (Landscape) + #Clearing */ + + + +/* #Base 960 Grid +================================================== */ + .row { margin-bottom: 20px; } + + /* Nested Column Classes */ + .column.alpha, .columns.alpha { margin-left: 0; } + .column.omega, .columns.omega { margin-right: 0; } + +/* #Flexible column widths +================================================== */ + .container { width: 75%; } /*whatever you want - can even be fixed if you prefer*/ + .container .column, + .container .columns { margin-left: 0.78125%; margin-right: 0.78125%; } + + .container .one.column, + .container .one.columns { width: 4.6875%; } + .container .two.columns { width: 10.9375%; } + .container .three.columns { width: 17.1875%; } + .container .four.columns { width: 23.4375%; } + .container .five.columns { width: 29.6875%; } + .container .six.columns { width: 35.9375%; } + .container .seven.columns { width: 42.1875%; } + .container .eight.columns { width: 48.4375%; } + .container .nine.columns { width: 54.6875%; } + .container .ten.columns { width: 60.9375%; } + .container .eleven.columns { width: 67.1875%; } + .container .twelve.columns { width: 73.4375%; } + .container .thirteen.columns { width: 79.6875%; } + .container .fourteen.columns { width: 85.9375%; } + .container .fifteen.columns { width: 92.1875%; } + .container .sixteen.columns { width: 98.4375%; } + + .container .one-third.column { width: 31.7708%; } + .container .two-thirds.column { width: 65.1041%; } + + /* Offsets */ + .container .offset-by-one { padding-left: 6.25%; } + .container .offset-by-two { padding-left: 12.5%; } + .container .offset-by-three { padding-left: 18.75%; } + .container .offset-by-four { padding-left: 25%; } + .container .offset-by-five { padding-left: 31.25%; } + .container .offset-by-six { padding-left: 37.5%; } + .container .offset-by-seven { padding-left: 43.75%; } + .container .offset-by-eight { padding-left: 50%; } + .container .offset-by-nine { padding-left: 56.25%; } + .container .offset-by-ten { padding-left: 62.5%; } + .container .offset-by-eleven { padding-left: 68.75%; } + .container .offset-by-twelve { padding-left: 75%; } + .container .offset-by-thirteen { padding-left: 81.25%; } + .container .offset-by-fourteen { padding-left: 87.5%; } + .container .offset-by-fifteen { padding-left: 93.75%; } + + +/* #Tablet (Portrait) +================================================== */ + + /* Note: Design for a width of 768px */ + + @media only screen and (min-width: 768px) and (max-width: 959px) { + .container { width: 768px; } + .container .column, + .container .columns { margin-left: 10px; margin-right: 10px; } + .column.alpha, .columns.alpha { margin-left: 0; margin-right: 10px; } + .column.omega, .columns.omega { margin-right: 0; margin-left: 10px; } + .alpha.omega { margin-left: 0; margin-right: 0; } + + .container .one.column, + .container .one.columns { width: 28px; } + .container .two.columns { width: 76px; } + .container .three.columns { width: 124px; } + .container .four.columns { width: 172px; } + .container .five.columns { width: 220px; } + .container .six.columns { width: 268px; } + .container .seven.columns { width: 316px; } + .container .eight.columns { width: 364px; } + .container .nine.columns { width: 412px; } + .container .ten.columns { width: 460px; } + .container .eleven.columns { width: 508px; } + .container .twelve.columns { width: 556px; } + .container .thirteen.columns { width: 604px; } + .container .fourteen.columns { width: 652px; } + .container .fifteen.columns { width: 700px; } + .container .sixteen.columns { width: 748px; } + + .container .one-third.column { width: 236px; } + .container .two-thirds.column { width: 492px; } + + /* Offsets */ + .container .offset-by-one { padding-left: 48px; } + .container .offset-by-two { padding-left: 96px; } + .container .offset-by-three { padding-left: 144px; } + .container .offset-by-four { padding-left: 192px; } + .container .offset-by-five { padding-left: 240px; } + .container .offset-by-six { padding-left: 288px; } + .container .offset-by-seven { padding-left: 336px; } + .container .offset-by-eight { padding-left: 384px; } + .container .offset-by-nine { padding-left: 432px; } + .container .offset-by-ten { padding-left: 480px; } + .container .offset-by-eleven { padding-left: 528px; } + .container .offset-by-twelve { padding-left: 576px; } + .container .offset-by-thirteen { padding-left: 624px; } + .container .offset-by-fourteen { padding-left: 672px; } + .container .offset-by-fifteen { padding-left: 720px; } + } + + +/* #Mobile (Portrait) +================================================== */ + + /* Note: Design for a width of 320px */ + + @media only screen and (max-width: 767px) { + .container { width: 300px; } + .container .columns, + .container .column { margin: 0; } + + .container .one.column, + .container .one.columns, + .container .two.columns, + .container .three.columns, + .container .four.columns, + .container .five.columns, + .container .six.columns, + .container .seven.columns, + .container .eight.columns, + .container .nine.columns, + .container .ten.columns, + .container .eleven.columns, + .container .twelve.columns, + .container .thirteen.columns, + .container .fourteen.columns, + .container .fifteen.columns, + .container .sixteen.columns, + .container .one-third.column, + .container .two-thirds.column { width: 300px; } + + /* Offsets */ + .container .offset-by-one, + .container .offset-by-two, + .container .offset-by-three, + .container .offset-by-four, + .container .offset-by-five, + .container .offset-by-six, + .container .offset-by-seven, + .container .offset-by-eight, + .container .offset-by-nine, + .container .offset-by-ten, + .container .offset-by-eleven, + .container .offset-by-twelve, + .container .offset-by-thirteen, + .container .offset-by-fourteen, + .container .offset-by-fifteen { padding-left: 0; } + + } + + +/* #Mobile (Landscape) +================================================== */ + + /* Note: Design for a width of 480px */ + + @media only screen and (min-width: 480px) and (max-width: 767px) { + .container { width: 420px; } + .container .columns, + .container .column { margin: 0; } + + .container .one.column, + .container .one.columns, + .container .two.columns, + .container .three.columns, + .container .four.columns, + .container .five.columns, + .container .six.columns, + .container .seven.columns, + .container .eight.columns, + .container .nine.columns, + .container .ten.columns, + .container .eleven.columns, + .container .twelve.columns, + .container .thirteen.columns, + .container .fourteen.columns, + .container .fifteen.columns, + .container .sixteen.columns, + .container .one-third.column, + .container .two-thirds.column { width: 420px; } + } + + +/* #Clearing +================================================== */ + + /* Self Clearing Goodness */ + .container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; } + + /* Use clearfix class on parent to clear nested columns, + or wrap each row of columns in a
*/ + .clearfix:before, + .clearfix:after, + .row:before, + .row:after { + content: '\0020'; + display: block; + overflow: hidden; + visibility: hidden; + width: 0; + height: 0; } + .row:after, + .clearfix:after { + clear: both; } + .row, + .clearfix { + zoom: 1; } + + /* You can also use a
to clear columns */ + .clear { + clear: both; + display: block; + overflow: hidden; + visibility: hidden; + width: 0; + height: 0; + } diff --git a/themes/xsteadfastx-greg/static/images/apple-touch-icon-114x114.png b/themes/xsteadfastx-greg/static/images/apple-touch-icon-114x114.png new file mode 100644 index 0000000..88a9d5e Binary files /dev/null and b/themes/xsteadfastx-greg/static/images/apple-touch-icon-114x114.png differ diff --git a/themes/xsteadfastx-greg/static/images/apple-touch-icon-72x72.png b/themes/xsteadfastx-greg/static/images/apple-touch-icon-72x72.png new file mode 100644 index 0000000..bbca145 Binary files /dev/null and b/themes/xsteadfastx-greg/static/images/apple-touch-icon-72x72.png differ diff --git a/themes/xsteadfastx-greg/static/images/apple-touch-icon.png b/themes/xsteadfastx-greg/static/images/apple-touch-icon.png new file mode 100644 index 0000000..72281c1 Binary files /dev/null and b/themes/xsteadfastx-greg/static/images/apple-touch-icon.png differ diff --git a/themes/xsteadfastx-greg/static/images/avatar.png b/themes/xsteadfastx-greg/static/images/avatar.png new file mode 100644 index 0000000..77f337d Binary files /dev/null and b/themes/xsteadfastx-greg/static/images/avatar.png differ diff --git a/themes/xsteadfastx-greg/static/images/favicon.ico b/themes/xsteadfastx-greg/static/images/favicon.ico new file mode 100644 index 0000000..cae0891 Binary files /dev/null and b/themes/xsteadfastx-greg/static/images/favicon.ico differ diff --git a/themes/xsteadfastx-greg/templates/analytics.html b/themes/xsteadfastx-greg/templates/analytics.html new file mode 100644 index 0000000..c464f14 --- /dev/null +++ b/themes/xsteadfastx-greg/templates/analytics.html @@ -0,0 +1,16 @@ +{% if GOOGLE_ANALYTICS %} + +{% endif %} \ No newline at end of file diff --git a/themes/xsteadfastx-greg/templates/article.html b/themes/xsteadfastx-greg/templates/article.html new file mode 100644 index 0000000..78a8da7 --- /dev/null +++ b/themes/xsteadfastx-greg/templates/article.html @@ -0,0 +1,67 @@ +{% extends 'base.html' %} +{% block title %}{{ article.title }} | {{ SITENAME }}{% endblock %} +{% block metadesc %}{{ article.description|e }}{% endblock %} + +{% block header %} + + {% if EXTRA_HEADER %} + {{ EXTRA_HEADER }} + {% endif %} +{% endblock %} + +{% block twittercards %} + + + + + + + +{% endblock %} + +{% block content %} + +

{{article.title}}

+
{{ article.locale_date }}
+
+ {{ article.content }} +
+ {{ ARTICLE_FOOTER }} + + Follow @{{ TWITTER_NAME }} + Tweet +
← Back to Home
+
+ + + {% if DISQUS_SITENAME %} +
+ + + comments powered by Disqus + {% endif %} + + + {% if ISSO_URL %} + +
+ {% endif %} + + +{% endblock %} diff --git a/themes/xsteadfastx-greg/templates/base.html b/themes/xsteadfastx-greg/templates/base.html new file mode 100644 index 0000000..1806694 --- /dev/null +++ b/themes/xsteadfastx-greg/templates/base.html @@ -0,0 +1,127 @@ + + + + + + + + {% block header %}{% endblock %} + + + + {% block title %}{% endblock %} + + + + + + {% if FEED_ALL_ATOM %} + + {% endif %} + + + + + + + + + + {% if TWITTER_CARDS %} + {% block twittercards %}{% endblock %} + {% endif %} + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ {% block content %}{% endblock %} +
+ + + +
+ + + {% include "analytics.html" %} + + + + + + diff --git a/themes/xsteadfastx-greg/templates/index.html b/themes/xsteadfastx-greg/templates/index.html new file mode 100644 index 0000000..db35d6d --- /dev/null +++ b/themes/xsteadfastx-greg/templates/index.html @@ -0,0 +1,14 @@ +{% extends 'base.html' %} +{% block title %}Home | {{ SITENAME }}{% endblock %} +{% block metadesc %}{{ DESCRIPTION }}{% endblock %} +{% block content %} + + {% for article in articles %} + {% if article.status != 'draft' %} +

{{ article.title }}

+
{{ article.locale_date }}
+
+ {% endif %} + {% endfor %} + +{% endblock %} \ No newline at end of file