Skip to content

Instantly share code, notes, and snippets.

@tonyday567
Created December 19, 2012 01:02
Show Gist options
  • Save tonyday567/4333546 to your computer and use it in GitHub Desktop.
Save tonyday567/4333546 to your computer and use it in GitHub Desktop.

starter-template

title

<!DOCTYPE html>
<html lang="<lisp>(ob:blog-language BLOG)</lisp>">
  <head>
    <meta charset="utf-8">
    <title><lisp>(if (boundp 'POST) (ob:post-title POST) (ob:blog-title BLOG))</lisp></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="<lisp>(ob:blog-description BLOG)</lisp>">
    <meta name="author" content="<lisp>(ob:get-header "AUTHOR")</lisp>">

style (exact bootstrap)

<!-- Le styles -->
<link href="<lisp>(ob:path-to-root)</lisp>/style/bootstrap/css/bootstrap.css" rel="stylesheet">
<style>
  body {
  padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
  }
</style>
<link href="<lisp>(ob:path-to-root)</lisp>/style/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">

style

<!-- Le styles -->
<link rel="stylesheet" type="text/less" href="<lisp>(ob:path-to-root)</lisp>/style/less/oblog-min.less"/>
<style>
  body {
  padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
  }
</style>

le shim

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

le fav

<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">

xhtml-scripts

<lisp>(when (boundp 'org-export-xhtml-scripts) org-export-xhtml-scripts)</lisp>

head->body

</head>

<body>

navbar

<div class="navbar navbar-inverse navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </a>
      <a class="brand" href="<lisp>(ob:path-to-root)</lisp>/index.html"><lisp>(ob:blog-title BLOG)</lisp></a>
      <div class="nav-collapse collapse">
        <lisp>(ob:post-content-html (ob:get-snippet "Navigation"))</lisp>
      </div>
    </div>
  </div>
</div>

page content

<article>
  <div class="article-content">
    <lisp>
      (ob:post-content-html POST)
    </lisp>
  </div>
</article>

le js

<script src="<lisp>(ob:path-to-root)</lisp>/style/js/less-1.3.0.min.js" type="text/javascript"></script>
  <script src="<lisp>(ob:path-to-root)</lisp>/style/js/jquery-1.7.1.min.js" type="text/javascript"></script>
  <script src="<lisp>(ob:path-to-root)</lisp>/style/bootstrap/js/bootstrap-modal.js" type="text/javascript"></script>
  <script src="<lisp>(ob:path-to-root)</lisp>/style/bootstrap/js/bootstrap-transition.js" type="text/javascript"></script>
  <script src="<lisp>(ob:path-to-root)</lisp>/style/bootstrap/js/bootstrap-dropdown.js" type="text/javascript"></script>
  <script src="<lisp>(ob:path-to-root)</lisp>/style/bootstrap/js/bootstrap-collapse.js" type="text/javascript"></script>
  <script src="<lisp>(ob:path-to-root)</lisp>/style/js/prettify.js" type="text/javascript"></script>
  <script src="<lisp>(ob:path-to-root)</lisp>/style/js/o-blog.linenumber.js" type="text/javascript"></script>
  <script src="<lisp>(ob:path-to-root)</lisp>/style/js/o-blog-fix.js" type="text/javascript"></script>

end

</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment