Permalink
Browse files

updates and cleanup

  • Loading branch information...
1 parent e248c96 commit f213bf7a49632fb3ccb3da1eb7f3785be3088a44 @qasimalyas committed Nov 25, 2011
View
@@ -1,3 +1,4 @@
-auto: --auto
+auto: true
+markdown: rdiscount
pygments: true
permalink: /:day-:month-:year/:title.html
@@ -3,7 +3,7 @@ layout: post
title: What makes a good website
summary: It’s the very simple basics and…
---
-<h1>{{ page.title }}</h1>
+#{{ page.title }}
* Clean code which is then extendible
* Keeping things simple
View
@@ -1,6 +1,6 @@
-<nav class="navigation">
+<nav class=navigation>
<ul>
- <li {% if page.nav == 'index' %} class="selected"> <span>Posts</span> {% else %}> <a href="/index.html">Posts</a> {% endif %}</li>
- <li {% if page.nav == 'about' %} class="selected"> <span>About</span> {% else %}> <a href="/about.html">About</a> {% endif %}</li>
+ <li {% if page.nav == 'index' %} class=selected> <span>Posts</span> {% else %}> <a href="/index.html">Posts</a> {% endif %}</li>
+ <li {% if page.nav == 'about' %} class=selected> <span>About</span> {% else %}> <a href="/about.html">About</a> {% endif %}</li>
</ul>
</nav>
View
@@ -2,7 +2,8 @@
<html>
<head>
- <meta charset="utf-8" />
+ <meta charset=utf-8 >
+ <meta name="viewport" content="initial-scale = 1.0" >
<title>{{ page.title }}</title>
{% include css.html %}
<script type="text/javascript">
@@ -20,7 +21,7 @@
</script>
</head>
<body>
- <div id="container">
+ <div id=container>
{% include header.html %}
{% include nav.html %}
{{ content }}
View
@@ -1,6 +1,6 @@
---
layout: base
---
- <article class="post">
+ <article class=post>
{{ content }}
</article>
View
@@ -0,0 +1,46 @@
+# Title: Simple Video tag for Jekyll
+# Author: Brandon Mathis http://brandonmathis.com
+# Description: Easily output MPEG4 HTML5 video with a flash backup.
+#
+# Syntax {% video url/to/video [width height] [url/to/poster] %}
+#
+# Example:
+# {% video http://s3.imathis.com/video/zero-to-fancy-buttons.mp4 640 320 http://s3.imathis.com/video/zero-to-fancy-buttons.png %}
+#
+# Output:
+# <video width='720' height='480' preload='none' controls poster='http://site.com/poster-frame.jpg'>
+# <source src='http://site.com/video.mp4' type='video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"'/>
+# </video>
+#
+
+module Jekyll
+
+ class VideoTag < Liquid::Tag
+ @video = nil
+ @poster = ''
+ @height = ''
+ @width = ''
+
+ def initialize(tag_name, markup, tokens)
+ if markup =~ /((https?:\/\/|\/)(\S+))(\s+(\d+)\s(\d+))?(\s+(https?:\/\/|\/)(\S+))?/i
+ @video = $1
+ @width = $5
+ @height = $6
+ @poster = $7
+ end
+ super
+ end
+
+ def render(context)
+ output = super
+ if @video
+ video = "<video width='#{@width}' height='#{@height}' preload='none' controls poster='#{@poster}'>"
+ video += "<source src='#{@video}' type='video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"'/></video>"
+ else
+ "Error processing input, expected syntax: {% video url/to/video [width height] [url/to/poster] %}"
+ end
+ end
+ end
+end
+
+Liquid::Template.register_tag('video', Jekyll::VideoTag)
@@ -2,6 +2,7 @@
layout: post
title: display inline-block, my new friend
summary: One of the css properties that I&rsquo;ve been using&hellip;
+category: css
---
#{{ page.title }}
View
@@ -30,10 +30,11 @@ header {
}
footer {
- margin: -47px auto 0;
+ margin: -70px auto 0;
border-top: 2px solid rgba(255, 255, 255, .5);
padding-top: 15px;
width: 60%;
+ height: 45px;
color: #d7d4c7;
}
footer p {
@@ -134,7 +135,7 @@ code {
#container::after {
content: '';
display: block;
- padding-bottom: 47px;
+ padding-bottom: 70px;
}
/* Navigation -------------- */
@@ -201,11 +202,18 @@ code {
}
-@media only screen and (min-width: 600px) {
-
-}
-
-@media only screen and (min-width: 1000px) {
-
+@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
+ #container, footer {
+ width: 90%;
+ }
+ footer {
+ margin-top: 25px;
+ padding-bottom: 10px;
+ }
}
+@media only screen and (max-device-width: 1000px) {
+ #container, footer {
+ width: 90%;
+ }
+}

0 comments on commit f213bf7

Please sign in to comment.