]> khamidou — GitHub mirrors - debuggers.git/commitdiff
added support for link posts
authorkarim hamidou <khamidou@gmail.com>
Sun, 22 Jun 2014 09:29:28 +0000 (11:29 +0200)
committerkarim hamidou <khamidou@gmail.com>
Sun, 22 Jun 2014 09:29:28 +0000 (11:29 +0200)
css/main.css
index.html

index 9564116eafa19a1b2ba7ad28ff6f60ac650a7398..5e27575a61383f0cd58612b5978faa13a384ed69 100755 (executable)
@@ -92,6 +92,14 @@ h2 a:visited { color: #292929; }
   color: #292929;
 }
 
+.post .linkPost h1 {
+    margin-top: 10px;
+}
+
+.post .linkPost a {
+    text-decoration: underline; 
+}
+
 .post h1 a  {
   text-decoration: none;
 }
@@ -121,6 +129,12 @@ h2 a:visited { color: #292929; }
   border: none;
 }
 
+.post blockquote {
+    border-left: 3px solid #525252;
+    padding-left: 10px;
+    font-style: italic;
+}
+
 /* terminal */
 .post pre.terminal {
   border: 1px solid #000;
@@ -159,3 +173,5 @@ h2 a:visited { color: #292929; }
     padding-right: 3px;
     box-shadow: 0px 0.5px #ccc;
 }
+
+
index ecfaa4801a6795eac11d9007bce2f095a9164029..ca6da07d6264cff8e80ff08397c882875bcefcc7 100644 (file)
@@ -7,16 +7,30 @@ title: Debuggers
   <ul class="posts">
     {% for post in site.posts %}
     <div class="post">
-        <img class="authorPic" src="{{ post.image }}"></img>
-        <h1 class="title"><a href="{{ post.url }}">{{ post.title}}</a></h1>
-        {% if post.content contains '<!-- more -->' %}
-            {{ post.content | split :'<!-- more -->' | first }}
+        {% if post.link %}
+        <div class="linkPost">
+             <h1 class="title"><a href="{{ post.link }}">{{ post.title}}</a></h1>
+             {{ post.content }}
+        </div>
+        {% else %}
+        <div class="textPost">
+            {% if post.image %}
+                <img class="authorPic" src="{{ post.image }}"></img>
+            {% endif %}
+
+            <h1 class="title"><a href="{{ post.url }}">{{ post.title}}</a></h1>
+
+            {% if post.content contains '<!-- more -->' %}
+                {{ post.content | split :'<!-- more -->' | first }}
+            {% endif %}
+        </div>
         {% endif %}
         <span class="meta">Posted: {{ post.date | date_to_string }}. 
             Filed under: {% for cat in post.categories %}
             <span class="cat">{{ cat }}</span>
             {% endfor %}
         </span>
+
     </div>
     {% endfor %}
   </ul>