Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use blog config struct for title / author display

  • Loading branch information...
commit 517a6bac03842a1b255706f809e19bc8e1ae5029 1 parent 173a506
Adam Wiggins adamwiggins authored
Showing with 6 additions and 6 deletions.
  1. +3 −3 views/index.erb
  2. +3 −3 views/layout.erb
6 views/index.erb
View
@@ -1,14 +1,14 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <title>a tornado of razorblades</title>
+ <title><%= Blog.title %></title>
<link href="/main.css" rel="stylesheet" type="text/css" />
<link href="/feed" rel="alternate" title="Primary Feed" type="application/atom+xml" />
</head>
<body>
<div id="header">
<div id="logo">
- <h1><a href="/">a tornado of razorblades</a></h1>
+ <h1><a href="/"><%= Blog.title %></a></h1>
<p>by adam @ heroku</p>
</div>
</div>
@@ -54,7 +54,7 @@
<div id="footer">
<p id="legal">
- Content by Adam Wiggins |
+ Content by <%= Blog.author %> |
Design adapted from <a href="http://www.freecsstemplates.org/preview/replenish">Replenish</a>
</div>
</body>
6 views/layout.erb
View
@@ -1,13 +1,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <title><%= @title || 'a tornado of razorblades' %></title>
+ <title><%= @title || Blog.title %></title>
<link href="/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<div id="logo2">
- <h1><a href="/">a tornado of razorblades</a></h1>
+ <h1><a href="/"><%= Blog.title %></a></h1>
<p>by adam @ heroku</p>
</div>
</div>
@@ -18,7 +18,7 @@
<div id="footer">
<p id="legal">
- Content by Adam Wiggins |
+ Content by <%= Blog.author %> |
Design adapted from <a href="http://www.freecsstemplates.org/preview/replenish">Replenish</a>
</div>
</body>
Please sign in to comment.
Something went wrong with that request. Please try again.