]> khamidou — GitHub mirrors - debuggers.git/commitdiff
basic layout master
authorkarim hamidou <khamidou@gmail.com>
Wed, 30 Apr 2014 07:24:18 +0000 (09:24 +0200)
committerkarim hamidou <khamidou@gmail.com>
Wed, 30 Apr 2014 07:24:18 +0000 (09:24 +0200)
.gitignore [new file with mode: 0644]
_config.yml
_layouts/default.html
_layouts/post.html
css/gridiculous.css [new file with mode: 0644]
css/main.css
index.html

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..c08f9ad
--- /dev/null
@@ -0,0 +1 @@
+_site
\ No newline at end of file
index 86502ae4c4174bb822c79ba62183edb2c95b7bab..9742483d16ef5687fa6feb03cb17eeca0adad019 100644 (file)
@@ -1,3 +1,3 @@
-name: Of Bugs And Fixes
+name: Debuggers
 markdown: redcarpet
 pygments: true
index 2c1d7556795db87f9526b034a10bd3e510dbe45d..9c6ee5e0d4e4360822b8b073405c4efb669f2023 100644 (file)
@@ -7,6 +7,7 @@
         <meta name="viewport" content="width=device-width">
 
         <!-- syntax highlighting CSS -->
+        <link rel="stylesheet" href="/css/gridiculous.css">
         <link rel="stylesheet" href="/css/syntax.css">
 
         <!-- Custom CSS -->
 
     </head>
     <body>
+        <div class="grid w960">
+          <div class="header row">
+         </div>
 
-        <div class="site">
-          <div class="header">
-            <h1 class="title"><a href="/">{{ site.name }}</a></h1>
-            <a class="extra" href="/">Debugging stories from the trenches</a>
-          </div>
-
-          {{ content }}
-
-          <div class="footer">
-            <div class="contact">
-              <p>
-                A <a href="http://khamidou.com">Khamidou</a> snafu.
-              </p>
-            </div>
+          <div class="row">
+              <div class="c4 leftCol">
+                  <h2>Debuggers</h2>
+                  <p>
+                      Debuggers is a blog about interesting bugs. Once a week, a programmer tells the story of one bug he had to fix.
+                  </p>
+                  <ul>
+                      <li><a href="/home.html">Home</a></li>
+                      <li><a href="/archives.html">Archives</a></li>
+                  </ul>
+                  <p>Edited by <a href="http://khamidou.com">Karim Hamidou</a>.</p>
+              </div>
+              <div class="c8 rightCol">
+                  {{ content }}
+              </div>
           </div>
         </div>
 
index 04e3586b82a9ebd72fd4dfab80f275f2d47682cd..e7c57921f55cb4cf2b38e416e43c6de849dd126b 100644 (file)
@@ -1,9 +1,12 @@
 ---
 layout: default
 ---
-<h2>{{ page.title }}</h2>
-<p class="meta">{{ page.date | date_to_string }}</p>
+<h1>{{ page.title }}</h1>
 
 <div class="post">
+<img src="{{ page.image }}"></img>
+<p class="meta">{{ page.date | date_to_string }}</p>
+
 {{ content }}
+
 </div>
diff --git a/css/gridiculous.css b/css/gridiculous.css
new file mode 100644 (file)
index 0000000..126563e
--- /dev/null
@@ -0,0 +1,108 @@
+/*
+ * Gridiculous
+ *
+ * A responsive grid boilerplate that takes you all the way from 1200px on down to 320px.
+ *
+ * created by c.bavota
+ * released under GPL v2
+ *
+ * March 4th, 2013
+ */
+
+/* =Normalize.css v2.1.0 by Nicolas Gallagher - http://necolas.github.com/normalize.css/
+-------------------------------------------------------------- */
+article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}
+audio,canvas,video{display:inline-block}
+audio:not([controls]){display:none;height:0}
+[hidden]{display:none}
+html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}
+body{margin:0}
+a:focus{outline:thin dotted}
+a:active,a:hover{outline:0}
+h1{font-size:2em;margin:0.67em 0}
+abbr[title]{border-bottom:1px dotted}
+b,strong{font-weight:bold}
+dfn{font-style:italic}
+hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}
+mark{background:#ff0;color:#000}
+code,kbd,pre,samp{font-family:monospace, serif;font-size:1em}
+q{quotes:"\201C" "\201D" "\2018" "\2019"}
+small{font-size:80%}
+sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
+sup{top:-0.5em}
+sub{bottom:-0.25em}
+img{border:0}
+svg:not(:root){overflow:hidden}
+figure{margin:0}
+fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}
+legend{border:0;padding:0}
+button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}
+button,input{line-height:normal}
+button,select{text-transform:none}
+button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}
+button[disabled],html input[disabled]{cursor:default}
+input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}
+input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
+input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}
+button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}
+textarea{overflow:auto;vertical-align:top}
+table{border-collapse:collapse;border-spacing:0}
+
+/* =Clearfix by Nicolas Gallagher
+-------------------------------------------------------------- */
+.row:before,.row:after,.clearfix:before,.clearfix:after{content:'';display:table}
+.row:after,.clearfix:after{clear:both}
+.row,.clearfix{zoom:1}
+
+/* =Gridiculous
+-------------------------------------------------------------- */
+*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}
+body{font-size:100%;line-height:1.6875}
+.grid{margin:0 auto;max-width:1200px;width:100%}
+img{max-width:100%;height:auto;display:block;margin-left:auto;margin-right:auto}
+.wfull{width:100%;max-width:100%}
+.w320{max-width:320px}
+.w640{max-width:640px}
+.w960{max-width:960px}
+.row{width:100%;margin-bottom:20px}
+.row .row{width:auto;margin:0 -20px}
+.c1{width:8.33%}
+.c2{width:16.66%}
+.c3{width:25%}
+.c4{width:33.33%}
+.c5{width:41.66%}
+.c6{width:50%}
+.c7{width:58.33%}
+.c8{width:66.66%}
+.c9{width:75%}
+.c10{width:83.33%}
+.c11{width:91.66%}
+.c12{width:100%}
+.c1,.c2,.c3,.c4,.c5,.c6,.c7,.c8,.c9,.c10,.c11,.c12{min-height:1px;float:left;padding-left:20px;padding-right:20px;position:relative}
+.s1{margin-left:8.33%}
+.s2{margin-left:16.66%}
+.s3{margin-left:25%}
+.s4{margin-left:33.33%}
+.s5{margin-left:41.66%}
+.s6{margin-left:50%}
+.s7{margin-left:58.33%}
+.s8{margin-left:66.66%}
+.s9{margin-left:75%}
+.s10{margin-left:83.33%}
+.s11{margin-left:91.66%}
+.end{float:right!important}
+
+/* =Media query for 960 Screens - sets nested grids to 100%
+-------------------------------------------------------------- */
+@media only screen and (max-width:960px){
+.row .row .c1,.row .row .c2,.row .row .c3,.row .row .c4,.row .row .c5,.row .row .c6,.row .row .c7,.row .row .c8,.row .row .c9,.row .row .c10,.row .row .c11,.row .row .c12{width:100%;margin-bottom:20px}
+.row .row > div:last-child{margin-bottom:0 !important}
+}
+
+/* =Media query for iPad and tablets
+-------------------------------------------------------------- */
+@media handheld, only screen and (max-width: 768px), only screen and (max-device-width: 768px) and (orientation:portrait){
+body{font-size:90%}
+.row{margin-bottom:0!important}
+.c1,.c2,.c3,.c4,.c5,.c6,.c7,.c8,.c9,.c10,.c11,.c12{width:100%;margin-right:0;margin-left:0;margin-bottom:20px}
+}
index 1a2c013f5bec517738d364dc74b5b4b192dddeba..52d4c55387295f0d5975d01e992c31445ae55aac 100755 (executable)
   padding: 0;
 }
 
-html, body { height: 100%; }
+html, body { min-height: 100%; }
 
 body {
-  background-color: #FFF;
-  font: 13.34px Helvetica, Arial, sans-serif;
-  font-size: small;
-  text-align: center;
+  font-family: Helvetica, Arial, sans-serif;
+  background: #F4F3DD; /* Old browsers */
+  color: #292929;
+  /* IE9 SVG, needs conditional override of 'filter' to 'none' */
 }
 
 h1, h2, h3, h4, h5, h6 {
@@ -25,9 +25,9 @@ h1, h2, h3, h4, h5, h6 {
 h1 { margin-bottom: 1em; }
 p { margin: 1em 0; }
 
-a         { color: #00a; }
-a:hover   { color: #000; }
-a:visited { color: #a0a; }
+a { color: #292929; }
+a:hover   { color: #999999; }
+a:visited { color: #707070; }
 
 /*****************************************************************************/
 /*
@@ -49,6 +49,12 @@ a:visited { color: #a0a; }
   font-size: 80%;
 }
 
+.posts img, .post img {
+  margin-left: 0px;
+  border: 1px solid #292929;
+  margin-bottom: 10px;
+}
+
 /*****************************************************************************/
 /*
 /* Site
@@ -158,3 +164,15 @@ a:visited { color: #a0a; }
 .post pre.terminal code {
   background-color: #333;
 }
+
+.rightCol {
+    background-color: #fff;
+}
+
+.leftCol h2 {
+    font-size: 2.1em;
+}
+
+.leftCol ul {
+    list-style-type: none;
+}
index af124be2dc1994ba7ae390ea388dd0f03ddbcde2..81783d1d7c2b13a47f49de3e9dff076fcbb497e1 100644 (file)
@@ -1,13 +1,20 @@
 ---
 layout: default
-title: Of Bugs And Fixes
+title: Debuggers
 ---
 
 <div id="home">
-  <h1>Blog Posts</h1>
   <ul class="posts">
     {% for post in site.posts %}
-      <li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
+    <div class="post">
+        <a href="{{ post.url }}"><h1>{{ post.title}}</h1></a>
+        <img src="{{ post.image }}"></img>
+        {% if post.content contains '<!-- more -->' %}
+            {{ post.content | split :'<!-- more -->' | first }}
+        {% endif %}
+        <a href="{{ post.url }}">More...</a>
+    </div>
+    <hr>
     {% endfor %}
   </ul>
 </div>