Skip to content

Instantly share code, notes, and snippets.

@simonjodet
Created September 19, 2012 11:30
Show Gist options
  • Save simonjodet/3749184 to your computer and use it in GitHub Desktop.
Save simonjodet/3749184 to your computer and use it in GitHub Desktop.
Gumdrop: Example of post layout
<!DOCTYPE html>
<html lang="en">
<head>
<title>{% if page.title != 'Home' and page.title != '' %}{{ page.title }} - {% endif %}Simon's Blog</title>
<link rel="stylesheet" href="/tools/bootstrap.min.css?cache={{ "now"|date("U") }}" type="text/css" charset="utf-8"/>
<link rel="stylesheet" href="/style/css/style.css?cache={{ "now"|date("U") }}" type="text/css" charset="utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Gumdrop">
<meta name="author" content="Simon Jodet">
<link rel="alternate" type="application/rss+xml" href="http://feeds.feedburner.com/jodet/blog"/>
<link rel="canonical" href="{{ page.location }}"/>
</head>
<body>
<div class="container">
<div class="row">
<div class="banner">
<a href="/" class="banner">
<h1>Simon's Blog
<small>Geek, developer, software architect</small>
</h1>
</a>
</div>
<div class="row">
<div class="span9">
<!--content-->
<div id="content_container">
{% block content %}{% endblock %}
</div>
<div class="well">Copyright &copy; 2012 Simon Jodet - All rights reserved</div>
</div>
<div class="span3">
<!--menu-->
<div style="padding: 8px 0;" class="well">
<ul class="nav nav-list">
<li class="nav-header" style=""><i class="icon-th-list"></i>&nbsp;Menu</li>
<li
{% if page.title != 'Categories' %} class="active"{% endif %}>
<a href="/"><i class="{% if page.title != 'Categories' %}icon-white {% endif %}icon-home"></i>&nbsp;Home</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<img src="/img/glyphicons-halflings.png?cache={{ "now"|date("U") }}" style="display: none;"/>
<img src="/img/glyphicons-halflings-white.png?cache={{ "now"|date("U") }}" style="display: none;"/>
<script src="/tools/jquery.min.js?cache={{ "now"|date("U") }}" type="text/javascript" charset="utf-8"></script>
<script src="/scripts.js?cache={{ "now"|date("U") }}" type="text/javascript" charset="utf-8"></script>
</body>
</html>
{% extends "default.twig" %}
{% block content %}
<div class="well">
<div class="page-header post-title">
<h3>
{{ page.title }}<br/>
<small>Published on {{ page.date|date("Y-m-d") }}. Tags: {{ page.tags|join(', ') }}</small>
</h3>
</div>
<div style="margin-top:5px;">
{{ content }}
</div>
</div>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment