Permalink
Browse files

Added the archive page.

  • Loading branch information...
1 parent 7ff2269 commit 2abfcc366defe61329264a74e099072fd7e7ceaa @fxjz committed Apr 15, 2012
Showing with 99 additions and 5 deletions.
  1. +1 −0 _layouts/default.html
  2. +6 −0 _layouts/post.html
  3. +61 −0 archive.html
  4. +29 −3 css/master.css
  5. +2 −2 index.html
@@ -28,6 +28,7 @@
<ol>
<li><a href="/" class="home">Felix Jimenez</a></li>
<!-- <li><a href="/projects/">Projects</a></li> -->
+ <li><a href="/archive/">Archive</a></li>
<li><a href="/about/">About</a></li>
<!-- <li><a href="/contact/">Contact</a></li> -->
</ol>
View
@@ -22,6 +22,12 @@
<time pubdate datetime="{{ page.date }}">{{ page.date | date: "%A, %B %d, %Y" }}</time>.
</p>
+ <ul class="tag_list">
+ {% for tag in page.tags %}
+ <li class="tag">{{ tag }}</li>
+ {% endfor %}
+ </ul>
+
<p class="permalink">
<a href="http://fxjz.org{{ page.url }}" rel="permalink"><span>⚓</span> {{ page.url }}</a>
</p>
View
@@ -0,0 +1,61 @@
+---
+layout: default
+---
+<section id="intro" class="span4">
+ <h2>Previously&hellip;</h2>
+
+ <p>This is the full collection of what&rsquo;s been published on fxjz.org. If this isn&rsquo;t enough for you, then <a href="http://twitter.com/fxjz">you should follow me on Twitter</a>.</p>
+</section>
+
+<div id="archive_wrapper" class="span8">
+ <table id="archive" class="table">
+ <thead>
+ <tr>
+ <th>Title</th>
+ <th>Date</th>
+ <th>Tags</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ {% for post in site.posts %}
+ <tr>
+ <td class="post_title">
+ {% if post.href %}
+ <a href="{{ post.href }}" title="{{ post.title }}">
+ {{ post.title }}
+ </a>
+
+ <a rel="permalink" href="{{ post.url }}" title="Permalink to '{{ post.title }}' on fxjz.org"><span>⚓</span></a>
+ {% else %}
+ <a href="{{ post.url }}" title="Permalink to '{{ post.title }}' on fxjz.org">
+ {{ post.title }}
+ </a>
+ {% endif %}
+ </td>
+
+ <td class="post_date">
+ <time pubdate datetime="{{ post.date }}">{{ post.date | date: "%A, %B %d, %Y" }}</time>
+ </td>
+
+ <td class="post_tags">
+ <ul class="tag_list">
+ {% for tag in post.tags %}
+ <li class="tag">{{ tag }}</li>
+ {% endfor %}
+ </ul>
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+
+ <tfoot>
+ <tr>
+ <th>Title</th>
+ <th>Date</th>
+ <th>Tags</th>
+ </tr>
+ </tfoot>
+</table>
+
+</div><!-- /archive_wrapper -->
View
@@ -141,7 +141,8 @@ a[rel="permalink"] span {
a[rel="permalink"]:hover span {color: #777;}
-header h2 a[rel="permalink"] span {margin-left: 12px;}
+header h2 a[rel="permalink"] span,
+table#archive a[rel="permalink"] span {margin-left: 12px;}
/* Related articles */
@@ -188,6 +189,13 @@ header h2 a[rel="permalink"] span {margin-left: 12px;}
width: 24px;
}
+
+.tag_list {list-style-type: none;}
+.tag {display: inline;}
+.tag:before {content: "#";}
+.tag:after {content: ", ";}
+.tag:last-child:after {content: none;}
+
/* END: Articles
------------------------------------------------------------------------------*/
@@ -217,6 +225,21 @@ h2#previously {
+/* START: Archive
+==============================================================================*/
+table#archive .tag_list {margin: 0;}
+
+table#archive td {
+ padding: 10px;
+ vertical-align: middle;
+}
+
+table#archive .post_date, table#archive .post_tags {color: #999;}
+
+/* END: Archive
+------------------------------------------------------------------------------*/
+
+
/* START: Footer
==============================================================================*/
@@ -257,8 +280,6 @@ footer#footer a:hover {text-decoration: underline;}
font-size: 16px !important;
}
-
-
article {margin-bottom: 48px;}
article footer {
@@ -272,9 +293,14 @@ footer#footer a:hover {text-decoration: underline;}
br {display: none;}
.entry img {max-width: 360px;}
+
+ table#archive .post_date, table#archive .post_tags {font-size: 14px;}
}
+
+
+
@media (min-width: 768px) {
.hidden-phone {display: inline-block;}
}
View
@@ -11,11 +11,11 @@
{{ post.title }}
</a>
- <a rel="permalink" href="{{ post.url }}" title="Permalink to {{ post.title }}"><span>⚓</span></a>
+ <a rel="permalink" href="{{ post.url }}" title="Permalink to '{{ post.title }}' on fxjz.org"><span>⚓</span></a>
</h2>
{% else %}
<h2>
- <a href="{{ post.url }}" title="Permalink to {{ post.title }}">
+ <a href="{{ post.url }}" title="Permalink to '{{ post.title }}' on fxjz.org">
{{ post.title }}
</a>
</h2>

0 comments on commit 2abfcc3

Please sign in to comment.