Merge pull request #94 from dapenggao/patch-2
authorMark Otto <markd.otto@gmail.com>
Sun, 21 Jun 2015 23:36:53 +0000 (16:36 -0700)
committerMark Otto <markd.otto@gmail.com>
Sun, 21 Jun 2015 23:36:53 +0000 (16:36 -0700)
Hide "Related Posts" section if it is empty

_includes/head.html
_layouts/post.html

index b88cab32b0796f3a78233a4e9e4a0b2e57c6c828..7437d1942692c8daba85512f7c53c55ddc3d01f7 100644 (file)
@@ -3,7 +3,7 @@
   <link href="http://gmpg.org/xfn/11" rel="profile">
 
   <!-- Enable responsiveness on mobile devices-->
-  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
   <title>
     {% if page.title == "Home" %}
index 5554be9f20d1a393c8ff0c1e0ae970396bbe719f..ec63afc10d770bfaf47daee2c3d2231ce39c8c05 100644 (file)
@@ -15,7 +15,7 @@ layout: default
     {% for post in site.related_posts limit:3 %}
       <li>
         <h3>
-          <a href="{{ site.baseurl }}/{{ post.url }}">
+          <a href="{{ site.baseurl }}{{ post.url }}">
             {{ post.title }}
             <small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></small>
           </a>