]> khamidou — GitHub mirrors - debuggers.git/commitdiff
added about page skeleton
authorkarim hamidou <khamidou@gmail.com>
Sun, 25 May 2014 15:32:42 +0000 (17:32 +0200)
committerkarim hamidou <khamidou@gmail.com>
Sun, 25 May 2014 15:32:42 +0000 (17:32 +0200)
_includes/about.md [new file with mode: 0644]
_layouts/default.html
_layouts/post.html
_plugins/markdown-tag.rb [new file with mode: 0644]
about.html [new file with mode: 0644]
css/main.css

diff --git a/_includes/about.md b/_includes/about.md
new file mode 100644 (file)
index 0000000..18ff2a6
--- /dev/null
@@ -0,0 +1,19 @@
+# About
+
+I love reading debugging stories. This site is an attempt to read interesting stories on a regular basis. 
+
+## Submitting stories
+
+Whether you're working on video games, embedded software, webapps or enterprise software, you probably have an interesting debugging story to tell. I want to publish it. 
+
+You can contact me at: `karim AT debuggers.co`
+
+## Interview format
+
+I always ask the same questions to my guests:
+
+1. Who are you?
+2. What is the most interesting/funniest bug you've met?
+3. Anything else to add?
+
+The rest is free-form.
index 36421391b76bf67018570c56cd23c44c00bb6048..68567a320513dd7e385f5c599e3d8d0219031082 100644 (file)
@@ -29,7 +29,7 @@
                       Updates on Tuesdays.
                   </p>
                   <ul>
-                      <li><a href="/">Home</a></li>
+                      <li><a href="/about.html">About</a></li>
                       {% comment %}
                       <li><a href="/archives.html">Archives</a></li>
                       {% endcomment %}
index 8e7496224f8e160fca0666159ec707d0f16f8851..2b692b8edee995c56bad8fe2157c344130bfb7a1 100644 (file)
@@ -2,7 +2,11 @@
 layout: default
 ---
 <div class="post">
+
+{% if page.image %}    
 <img class="authorPic" src="{{ page.image }}"></img>
+{%endif %}
+
 <h1 class="title"><a href="{{page.url}}">{{ page.title }}</a></h1>
 <div class="meta">Posted: {{ page.date | date_to_string }}. 
     Filed under: {% for cat in page.categories %}
diff --git a/_plugins/markdown-tag.rb b/_plugins/markdown-tag.rb
new file mode 100644 (file)
index 0000000..cdbe824
--- /dev/null
@@ -0,0 +1,24 @@
+=begin
+  Jekyll tag to include Markdown text from _includes directory preprocessing with Liquid.
+  Usage:
+    {% markdown <filename> %}
+  Dependency:
+    - kramdown
+=end
+module Jekyll
+  class MarkdownTag < Liquid::Tag
+    def initialize(tag_name, text, tokens)
+      super
+      @text = text.strip
+    end
+    require "kramdown"
+    def render(context)
+      tmpl = File.read File.join Dir.pwd, "_includes", @text
+      site = context.registers[:site]
+      tmpl = (Liquid::Template.parse tmpl).render site.site_payload
+      html = Kramdown::Document.new(tmpl).to_html
+    end
+  end
+end
+Liquid::Template.register_tag('markdown', Jekyll::MarkdownTag)
+
diff --git a/about.html b/about.html
new file mode 100644 (file)
index 0000000..5865d41
--- /dev/null
@@ -0,0 +1,9 @@
+---
+layout: default
+title:  About
+date:   2014-05-01 11:08:23
+---
+
+<div class="post" style="padding-top: 15px">
+    {% markdown about.md %}
+</div>
index b405ee6ad2960308a9eb25a3a2cbbc5e0872ad56..2b7522fc2f8bdb93962e7f5d10605d9e238d7cea 100755 (executable)
@@ -85,18 +85,18 @@ h2 a:visited { color: #292929; }
   margin-bottom: 20px;
 }
 
-.post .title {
+.post h1 {
   margin-top: 0px;
   margin-bottom: 0px;
+  font-size: 1.2em;
+  color: #292929;
 }
 
-.post .title a  {
-  font-size: 1.2em;
+.post h1 a  {
   text-decoration: none;
-  color: #292929;
 }
 
-.post .title a:visited  {
+.post h1 a:visited  {
   color: #292929;
 }
 
@@ -112,6 +112,7 @@ h2 a:visited { color: #292929; }
 
 .post ul, .post ol {
   margin-left: 1.35em;
+  margin-bottom: 20px;
 }
 
 .post code {