Permalink
Browse files

fixed post link bug

1 parent c048ec3 commit 5705ebd8b892ee1906130e7c6dd509e469793452 @nhoss2 committed Oct 4, 2011
View
@@ -1,7 +1,7 @@
{% if page.is_index %}{% assign content = post.content %}{% endif %}
<div class="span11 content">
<div class="page-header">
- {% if post.title %}<h3 class="title">{% if page.is_index %}<a href="{{ post.url }}">{{ post.title }}</a>{% else %}{{ post.title}}{% endif %}</h3>{% endif %}
+ {% if post.title %}<h3 class="title">{% if page.is_index %}<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>{% else %}{{ post.title}}{% endif %}</h3>{% endif %}
</div>
<div class="post_content">
{% if page.is_index %}
@@ -0,0 +1,48 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <title>This is the title - Jekyll Bootstrap</title>
+
+ <link rel="stylesheet" href="/jekyll-bootstrap/bootstrap.min.css">
+ <link rel="stylesheet" href="/jekyll-bootstrap/css.css">
+</head>
+<body>
+
+
+
+
+
+ <header>
+ <h1><a href="/jekyll-bootstrap">Jekyll Bootstrap</a></h1>
+ </header>
+
+ <div class="container">
+
+
+
+ <div class="span11 content">
+ <div class="page-header">
+ <h3 class="title">This is the title</h3>
+ </div>
+ <div class="post_content">
+
+ <p>This is the first post woohoo</p>
+
+ </div>
+ </div><!--content-->
+
+ <div class="span5 sidebar">
+ <h4>Published on 03 August 2011</h4>
+
+ <h6>first-category</h6>
+
+ <h6>second</h6>
+
+ </div>
+
+ </div><!--container-->
+
+</body>
+</html>
+
@@ -0,0 +1,76 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <title>Introducing Jekyll Bootstrap - Jekyll Bootstrap</title>
+
+ <link rel="stylesheet" href="/jekyll-bootstrap/bootstrap.min.css">
+ <link rel="stylesheet" href="/jekyll-bootstrap/css.css">
+</head>
+<body>
+
+
+
+
+
+ <header>
+ <h1><a href="/jekyll-bootstrap">Jekyll Bootstrap</a></h1>
+ </header>
+
+ <div class="container">
+
+
+
+ <div class="span11 content">
+ <div class="page-header">
+ <h3 class="title">Introducing Jekyll Bootstrap</h3>
+ </div>
+ <div class="post_content">
+
+ <p>Jekyll bootstrap is a theme for jekyll which uses the <a href='https://github.com/twitter/bootstrap'>twitter bootstrap css framework</a>. The advantage of jekyll is that it is self hosted (or hosted on github) and that you can write in markdown on a text editor and just git push new posts to a server which produces html files. The advantage of this theme is so that you can start blogging almost right away without having to worry about making a theme.</p>
+
+<h3 id='setting_up'>Setting up</h3>
+
+<p>To start you own blog, simply <code>git clone</code> the <a href='https://github.com/nhoss2/jekyll-bootstrap'>repository on github</a>. You could also press the &#8220;fork&#8221; button on github.</p>
+
+<pre><code>git clone git://github.com/nhoss2/jekyll-bootstrap.git</code></pre>
+
+<p>If you want to have your blog on github, make sure you change to the <code>gh-pages</code> branch.</p>
+
+<pre><code>git checkout gh-pages</code></pre>
+
+<p>Then you will need to edit the <code>_config.yml</code> file at the root of repository.</p>
+
+<p>To add your own posts, add a file to the <code>_posts</code> directory which has the name <code>year-month-day-title.md</code>. Note - the file does not have to markdown.</p>
+
+<p>To publish the post, just <code>git push</code> it to your own github repo and your set!</p>
+
+<h3 id='things_to_change_on_'>Things to change on <code>_config.yml</code></h3>
+
+<p>There is a config file at the root called <code>_config.yml</code>. By Default it looks like:</p>
+
+<pre><code>permalink: /:year/:title/
+paginate: 10
+exclude:
+name: Jekyll Bootstrap
+baseurl: /jekyll-bootstrap/</code></pre>
+
+<p>You will need to change the <code>name</code> and <code>baseurl</code> fields. The others are optional. The <code>baseurl</code> field is used for the css files and pagination, if you are hosting the blog on github, you will need to change it to your repository name unless your repository is the same name as your github user name, which means you will need to have no value for <code>baseurl</code>.</p>
+
+<p>For more information on Jekyll, visit their <a href='https://github.com/mojombo/jekyll/wiki'>wiki on github</a>.</p>
+
+<p>For more information on github pages: <a href='http://pages.github.com'>http://pages.github.com</a>.</p>
+
+ </div>
+ </div><!--content-->
+
+ <div class="span5 sidebar">
+ <h4>Published on 03 September 2011</h4>
+
+ </div>
+
+ </div><!--container-->
+
+</body>
+</html>
+
@@ -0,0 +1,44 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <title>Second - Jekyll Bootstrap</title>
+
+ <link rel="stylesheet" href="/jekyll-bootstrap/bootstrap.min.css">
+ <link rel="stylesheet" href="/jekyll-bootstrap/css.css">
+</head>
+<body>
+
+
+
+
+
+ <header>
+ <h1><a href="/jekyll-bootstrap">Jekyll Bootstrap</a></h1>
+ </header>
+
+ <div class="container">
+
+
+
+ <div class="span11 content">
+ <div class="page-header">
+ <h3 class="title">Second</h3>
+ </div>
+ <div class="post_content">
+
+ <p>in circuit theory, thevanin theorem for linear electrical networks states that any combination of voltage sources, current sources, and resistors with two terminals is electrically equivalent to a single voltage source v and a single series resistor r. for single frequency ac systems the theorem can also be applied to general impedances, not just resistors. the theorem was first discovered by german scientist hermann von helmholtz in 1853, but was then rediscovered in 1883 by french telegraph engineer charles Thevanin (1857.1926). This theorem states that a circuit of voltage sources and resistors can be converted into a Thevanin equivalent, which is a simplification technique used in circuit analysis. the Thevanin equivalent can be used as a good model for a power supply or battery (with the resistor representing the internal impedance and the source representing the electromotive force). the circuit consists of an ideal voltage source in series with an ideal resistor.</p>
+
+ </div>
+ </div><!--content-->
+
+ <div class="span5 sidebar">
+ <h4>Published on 01 September 2011</h4>
+
+ </div>
+
+ </div><!--container-->
+
+</body>
+</html>
+
@@ -0,0 +1,64 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <title>Testing Markdown - Jekyll Bootstrap</title>
+
+ <link rel="stylesheet" href="/jekyll-bootstrap/bootstrap.min.css">
+ <link rel="stylesheet" href="/jekyll-bootstrap/css.css">
+</head>
+<body>
+
+
+
+
+
+ <header>
+ <h1><a href="/jekyll-bootstrap">Jekyll Bootstrap</a></h1>
+ </header>
+
+ <div class="container">
+
+
+
+ <div class="span11 content">
+ <div class="page-header">
+ <h3 class="title">Testing Markdown</h3>
+ </div>
+ <div class="post_content">
+
+ <h3 id='testing_some_markdown_this_is_h3'>Testing some markdown this is h3</h3>
+
+<p>So, <em>time</em> for <strong>some</strong> <code>lists</code></p>
+
+<ul>
+<li>this</li>
+
+<li>is a</li>
+
+<li>list</li>
+</ul>
+
+<blockquote>
+<p>block quote.</p>
+
+<p>another line</p>
+</blockquote>
+
+<p>This is a <a href='#'>link</a>.</p>
+
+<pre><code>jekyll --server</code></pre>
+
+ </div>
+ </div><!--content-->
+
+ <div class="span5 sidebar">
+ <h4>Published on 02 September 2011</h4>
+
+ </div>
+
+ </div><!--container-->
+
+</body>
+</html>
+
View
@@ -0,0 +1,33 @@
+Jekyll bootstrap is a theme for jekyll which uses the [twitter bootstrap css framework](https://github.com/twitter/bootstrap).
+The advantage of jekyll is that it is self hosted (or hosted on github) and that you can write in markdown on a text editor and just git push new posts to a server which produces html files. The advantage of this theme is so that you can start blogging almost right away without having to worry about making a theme.
+
+###Setting up
+To start you own blog, simply `git clone` the [repository on github](https://github.com/ nhoss2/jekyll-bootstrap). You could also press the "fork" button on github.
+
+ git clone git://github.com/nhoss2/jekyll-bootstrap.git
+
+If you want to have your blog on github, make sure you change to the `gh-pages` branch.
+
+ git checkout gh-pages
+
+Then you will need to edit the `_config.yml` file at the root of repository.
+
+To add your own posts, add a file to the `_posts` directory which has the name `year- month-day-title.md`. Note - the file does not have to markdown.
+
+To publish the post, just `git push` it to your own github repo and your set!
+
+###Things to change on `_config.yml`
+There is a config file at the root called `_config.yml`. By Default it looks like:
+
+ permalink: /:year/:title/
+ paginate: 10
+ exclude:
+ name: Jekyll Bootstrap
+ baseurl: /jekyll-bootstrap/
+
+You will need to change the `name` and `baseurl` fields. The others are optional.
+The `baseurl` field is used for the css files and pagination, if you are hosting the blog on github, you will need to change it to your repository name unless your repository is the same name as your github user name, which means you will need to have no value for `baseurl`.
+
+For more information on Jekyll, visit their [wiki on github](https://github.com/mojombo/ jekyll/wiki).
+
+For more information on github pages: [http://pages.github.com](http://pages.github.com).
Oops, something went wrong.

0 comments on commit 5705ebd

Please sign in to comment.