xonecas.io
2495
Xg

xonecas.github.com / commit 97c8b2e

i

xonecas2013-05-05 97c8b2eb64c49000e481a743010746e2504c03ca parent 3efaeb8

5 files changed

_includes/disqus.html+14−0
@@ -0,0 +1,14 @@
1+<div id="disqus_thread"></div>
2+<script type="text/javascript">
3+ /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
4+ var disqus_shortname = 'xonecas'; // required: replace example with your forum shortname
5+
6+ /* * * DON'T EDIT BELOW THIS LINE * * */
7+ (function() {
8+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
9+ dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
10+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
11+ })();
12+</script>
13+<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
14+<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
_layouts/default.html+5−3
@@ -8,9 +8,11 @@
88 <link href="/css/flatty.css" rel="stylesheet">
99 </head>
1010 <body style="display: none;">
11- <div class="container">
12- {{ content }}
13- {% include sidebar.html %}
11+ <div class="container cf">
12+ <div class="content">{{ content }}</div>
13+ <div class="sidebar">
14+ {% include sidebar.html %}
15+ </div>
1416 </div>
1517 {% include analytics.html %}
1618 <script src="/js/jquery.min.js"></script>
_layouts/post.html+8−23
@@ -3,29 +3,14 @@ layout: default
33 ---
44 <div class="post">
55 {{ content }}
6- <div id="disqus_thread"></div>
7- <script type="text/javascript">
8- /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
9- var disqus_shortname = 'xonecas'; // required: replace example with your forum shortname
10-
11- /* * * DON'T EDIT BELOW THIS LINE * * */
12- (function() {
13- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
14- dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
15- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
16- })();
17- </script>
18- <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
19- <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
6+ {% include disqus.html %}
207 <h3>Related</h3>
21- <div class="row-fluid">
22- {% for post in site.related_posts limit:3 %}
23- <div class="span4">
24- <a href="{{ post.url }}">
25- {{ post.title }}
26- <small>{{ post.date | date_to_string }}</small>
27- </a>
28- </div>
29- {% endfor %}
8+ {% for post in site.related_posts limit:3 %}
9+ <div class="">
10+ <a href="{{ post.url }}">
11+ {{ post.title }}
12+ <small>{{ post.date | date_to_string }}</small>
13+ </a>
3014 </div>
15+ {% endfor %}
3116 </div>
css/flatty.css+139−81
@@ -1,17 +1,32 @@
11 html, body {
2- font-size: 19px;
3- line-height: 31px;
4- font-family: Georgia, serif;
5- color: #333;
2+ font-family: Helvetica, Arial, sans-serif;
3+ color: #eee;
4+ background-color: #020001;
65 }
76 code, pre {
8- font-size: 12px;
7+ /*font-size: 12px;*/
98 font-family: Menlo, Consolas, monospace;
10- line-height: 19px;
9+ /*line-height: 19px;*/
1110 }
1211 pre {
1312 padding: 2em 0;
1413 }
14+
15+a, a:visited {
16+ color: #D43B2D;
17+ text-decoration: none;
18+}
19+
20+a:hover, a:active {
21+ color: #FE6C2B;
22+}
23+
24+h1, h2, h3, h4, h5, h6, .fancy {
25+ font-family: "Lucida Grande", sans-serif;
26+ line-height: 1.2em;
27+}
28+
29+
1530 .muted {
1631 color: #666;
1732 }
@@ -23,88 +38,131 @@ pre {
2338 margin: 0 10px 10px 0;
2439 }
2540
41+
42+
2643 /* layout */
2744 .container {
28- width: 960px;
45+ width: 940px;
2946 margin: 0 auto;
3047 }
48+
49+.content {
50+ width: 800px;
51+ float: left;
52+ font-size: 17px;
53+ line-height: 28px;
54+}
55+
56+.sidebar {
57+ float: right;
58+ width: 120px;
59+ font-size: 14px;
60+ line-height: 19px;
61+}
62+
3163 .pull-right {
3264 float: right;
3365 }
3466 .pull-left {
3567 float: left;
3668 }
37-.title {
38- margin: 90px 0;
39-}
40-
41-/* solarized light pygments */
42-.highlight { background-color: #ffffcc }
43-.highlight .c { color: #586E75 } /* Comment */
44-.highlight .err { color: #93A1A1 } /* Error */
45-.highlight .g { color: #93A1A1 } /* Generic */
46-.highlight .k { color: #859900 } /* Keyword */
47-.highlight .l { color: #93A1A1 } /* Literal */
48-.highlight .n { color: #93A1A1 } /* Name */
49-.highlight .o { color: #859900 } /* Operator */
50-.highlight .x { color: #CB4B16 } /* Other */
51-.highlight .p { color: #93A1A1 } /* Punctuation */
52-.highlight .cm { color: #586E75 } /* Comment.Multiline */
53-.highlight .cp { color: #859900 } /* Comment.Preproc */
54-.highlight .c1 { color: #586E75 } /* Comment.Single */
55-.highlight .cs { color: #859900 } /* Comment.Special */
56-.highlight .gd { color: #2AA198 } /* Generic.Deleted */
57-.highlight .ge { color: #93A1A1; font-style: italic } /* Generic.Emph */
58-.highlight .gr { color: #DC322F } /* Generic.Error */
59-.highlight .gh { color: #CB4B16 } /* Generic.Heading */
60-.highlight .gi { color: #859900 } /* Generic.Inserted */
61-.highlight .go { color: #93A1A1 } /* Generic.Output */
62-.highlight .gp { color: #93A1A1 } /* Generic.Prompt */
63-.highlight .gs { color: #93A1A1; font-weight: bold } /* Generic.Strong */
64-.highlight .gu { color: #CB4B16 } /* Generic.Subheading */
65-.highlight .gt { color: #93A1A1 } /* Generic.Traceback */
66-.highlight .kc { color: #CB4B16 } /* Keyword.Constant */
67-.highlight .kd { color: #268BD2 } /* Keyword.Declaration */
68-.highlight .kn { color: #859900 } /* Keyword.Namespace */
69-.highlight .kp { color: #859900 } /* Keyword.Pseudo */
70-.highlight .kr { color: #268BD2 } /* Keyword.Reserved */
71-.highlight .kt { color: #DC322F } /* Keyword.Type */
72-.highlight .ld { color: #93A1A1 } /* Literal.Date */
73-.highlight .m { color: #2AA198 } /* Literal.Number */
74-.highlight .s { color: #2AA198 } /* Literal.String */
75-.highlight .na { color: #93A1A1 } /* Name.Attribute */
76-.highlight .nb { color: #B58900 } /* Name.Builtin */
77-.highlight .nc { color: #268BD2 } /* Name.Class */
78-.highlight .no { color: #CB4B16 } /* Name.Constant */
79-.highlight .nd { color: #268BD2 } /* Name.Decorator */
80-.highlight .ni { color: #CB4B16 } /* Name.Entity */
81-.highlight .ne { color: #CB4B16 } /* Name.Exception */
82-.highlight .nf { color: #268BD2 } /* Name.Function */
83-.highlight .nl { color: #93A1A1 } /* Name.Label */
84-.highlight .nn { color: #93A1A1 } /* Name.Namespace */
85-.highlight .nx { color: #93A1A1 } /* Name.Other */
86-.highlight .py { color: #93A1A1 } /* Name.Property */
87-.highlight .nt { color: #268BD2 } /* Name.Tag */
88-.highlight .nv { color: #268BD2 } /* Name.Variable */
89-.highlight .ow { color: #859900 } /* Operator.Word */
90-.highlight .w { color: #93A1A1 } /* Text.Whitespace */
91-.highlight .mf { color: #2AA198 } /* Literal.Number.Float */
92-.highlight .mh { color: #2AA198 } /* Literal.Number.Hex */
93-.highlight .mi { color: #2AA198 } /* Literal.Number.Integer */
94-.highlight .mo { color: #2AA198 } /* Literal.Number.Oct */
95-.highlight .sb { color: #586E75 } /* Literal.String.Backtick */
96-.highlight .sc { color: #2AA198 } /* Literal.String.Char */
97-.highlight .sd { color: #93A1A1 } /* Literal.String.Doc */
98-.highlight .s2 { color: #2AA198 } /* Literal.String.Double */
99-.highlight .se { color: #CB4B16 } /* Literal.String.Escape */
100-.highlight .sh { color: #93A1A1 } /* Literal.String.Heredoc */
101-.highlight .si { color: #2AA198 } /* Literal.String.Interpol */
102-.highlight .sx { color: #2AA198 } /* Literal.String.Other */
103-.highlight .sr { color: #DC322F } /* Literal.String.Regex */
104-.highlight .s1 { color: #2AA198 } /* Literal.String.Single */
105-.highlight .ss { color: #2AA198 } /* Literal.String.Symbol */
106-.highlight .bp { color: #268BD2 } /* Name.Builtin.Pseudo */
107-.highlight .vc { color: #268BD2 } /* Name.Variable.Class */
108-.highlight .vg { color: #268BD2 } /* Name.Variable.Global */
109-.highlight .vi { color: #268BD2 } /* Name.Variable.Instance */
110-.highlight .il { color: #2AA198 } /* Literal.Number.Integer.Long */
69+
70+
71+.highlight { background: #202020; color: #e2e2e5; word-wrap: break-word;}
72+.highlight .hll { background-color: #ffffcc }
73+.highlight .c { color: #808080; font-style: italic} /* Comment */
74+.highlight .err { color: #e2e2e5} /* Error */
75+.highlight .g { color: #e2e2e5} /* Generic */
76+.highlight .k { color: #7e8aa2} /* Keyword */
77+.highlight .l { color: #e2e2e5} /* Literal */
78+.highlight .n { color: #e2e2e5} /* Name */
79+.highlight .o { color: #e2e2e5} /* Operator */
80+.highlight .x { color: #e2e2e5} /* Other */
81+.highlight .p { color: #e2e2e5} /* Punctuation */
82+.highlight .cm { color: #808080; font-style: italic} /* Comment.Multiline */
83+.highlight .cp { color: #faf4c6} /* Comment.Preproc */
84+.highlight .c1 { color: #808080; font-style: italic} /* Comment.Single */
85+.highlight .cs { color: #808080; font-style: italic} /* Comment.Special */
86+.highlight .gd { color: #e2e2e5} /* Generic.Deleted */
87+.highlight .ge { color: #e2e2e5} /* Generic.Emph */
88+.highlight .gr { color: #e2e2e5} /* Generic.Error */
89+.highlight .gh { color: #f6f3e8; font-weight: bold} /* Generic.Heading */
90+.highlight .gi { color: #e2e2e5} /* Generic.Inserted */
91+.highlight .go { color: #808080; background-color: #303030 } /* Generic.Output */
92+.highlight .gp { color: #e2e2e5} /* Generic.Prompt */
93+.highlight .gs { color: #e2e2e5} /* Generic.Strong */
94+.highlight .gu { color: #f6f3e8; font-weight: bold} /* Generic.Subheading */
95+.highlight .gt { color: #e2e2e5} /* Generic.Traceback */
96+.highlight .kc { color: #7e8aa2} /* Keyword.Constant */
97+.highlight .kd { color: #7e8aa2} /* Keyword.Declaration */
98+.highlight .kn { color: #7e8aa2} /* Keyword.Namespace */
99+.highlight .kp { color: #7e8aa2} /* Keyword.Pseudo */
100+.highlight .kr { color: #7e8aa2} /* Keyword.Reserved */
101+.highlight .kt { color: #7e8aa2} /* Keyword.Type */
102+.highlight .ld { color: #e2e2e5} /* Literal.Date */
103+.highlight .m { color: #ff9800} /* Literal.Number */
104+.highlight .s { color: #b1d631; font-style: italic} /* Literal.String */
105+.highlight .na { color: #ffffff; font-weight: bold} /* Name.Attribute */
106+.highlight .nb { color: #e2e2e5} /* Name.Builtin */
107+.highlight .nc { color: #e2e2e5} /* Name.Class */
108+.highlight .no { color: #ff9800} /* Name.Constant */
109+.highlight .nd { color: #e2e2e5} /* Name.Decorator */
110+.highlight .ni { color: #ff9800} /* Name.Entity */
111+.highlight .ne { color: #e2e2e5} /* Name.Exception */
112+.highlight .nf { color: #ffffff; font-weight: bold} /* Name.Function */
113+.highlight .nl { color: #e2e2e5} /* Name.Label */
114+.highlight .nn { color: #e2e2e5} /* Name.Namespace */
115+.highlight .nx { color: #e2e2e5} /* Name.Other */
116+.highlight .py { color: #e2e2e5} /* Name.Property */
117+.highlight .nt { color: #7e8aa2} /* Name.Tag */
118+.highlight .nv { color: #b1d631} /* Name.Variable */
119+.highlight .ow { color: #e2e2e5} /* Operator.Word */
120+.highlight .w { color: #e2e2e5} /* Text.Whitespace */
121+.highlight .mf { color: #ff9800} /* Literal.Number.Float */
122+.highlight .mh { color: #ff9800} /* Literal.Number.Hex */
123+.highlight .mi { color: #ff9800} /* Literal.Number.Integer */
124+.highlight .mo { color: #ff9800} /* Literal.Number.Oct */
125+.highlight .sb { color: #b1d631; font-style: italic} /* Literal.String.Backtick */
126+.highlight .sc { color: #b1d631; font-style: italic} /* Literal.String.Char */
127+.highlight .sd { color: #b1d631; font-style: italic} /* Literal.String.Doc */
128+.highlight .s2 { color: #b1d631; font-style: italic} /* Literal.String.Double */
129+.highlight .se { color: #b1d631; font-style: italic} /* Literal.String.Escape */
130+.highlight .sh { color: #b1d631; font-style: italic} /* Literal.String.Heredoc */
131+.highlight .si { color: #b1d631; font-style: italic} /* Literal.String.Interpol */
132+.highlight .sx { color: #b1d631; font-style: italic} /* Literal.String.Other */
133+.highlight .sr { color: #b1d631; font-style: italic} /* Literal.String.Regex */
134+.highlight .s1 { color: #b1d631; font-style: italic} /* Literal.String.Single */
135+.highlight .ss { color: #b1d631; font-style: italic} /* Literal.String.Symbol */
136+.highlight .bp { color: #e2e2e5} /* Name.Builtin.Pseudo */
137+.highlight .vc { color: #b1d631} /* Name.Variable.Class */
138+.highlight .vg { color: #b1d631} /* Name.Variable.Global */
139+.highlight .vi { color: #b1d631} /* Name.Variable.Instance */
140+.highlight .il { color: #ff9800} /* Literal.Number.Integer.Long */
141+
142+
143+/**
144+* * For modern browsers
145+* * 1. The space content is one way to avoid an Opera bug when the
146+* * contenteditable attribute is included anywhere else in the document.
147+* * Otherwise it causes space to appear at the top and bottom of elements
148+* * that are clearfixed.
149+* * 2. The use of `table` rather than `block` is only necessary if using
150+* * `:before` to contain the top-margins of child elements.
151+**/
152+.cf:before,
153+.cf:after {
154+ content: " "; /* 1 */
155+ display: table; /* 2 */
156+}
157+
158+.cf:after {
159+ clear: both;
160+}
161+
162+/**
163+* * For IE 6/7 only
164+* * Include this rule to trigger hasLayout and contain floats.
165+**/
166+.cf {
167+ *zoom: 1;
168+}
index.html+4−6
@@ -3,16 +3,14 @@ layout: default
33 ---
44 <div class="title">
55 <a id="reload-title" class="pull-right" href="#">
6- Whats this?
6+ <small>Whats this?</small>
77 </a>
88 <h1>
99 <span id="random-title">Loading...</span>
1010 </h1>
11- <p>
12- <small>
13- I coulnd't think of a title, so a random one is generated.
14- <a href="/2013/02/25/random-title-generator.html">This</a> is how I did it.
15- </small>
11+ <p class="fancy">
12+ I coulnd't think of a title, so a random one is generated.
13+ <a href="/2013/02/25/random-title-generator.html">This</a> is how I did it.
1614 </p>
1715 </div>
1816 <div>