1. Adam Dutko
  2. clevelandpm

Commits

Adam M Dutko  committed 8d15f9b

Updating templates. Added header.

  • Participants
  • Parent commits ff168ca
  • Branches master

Comments (0)

Files changed (4)

File site/www/templates/index.html.ep

View file
 % layout 'default';
 % title 'Cleveland.pm.org - Cleveland Perl Mongers';
+
+%= include 'header';
+
 Welcome to the Cleveland Perl Mongers (PM)!
 <br />
 This site will start to grow as we grow.<br />

File site/www/templates/templates/default.html.ep

View file
 <!DOCTYPE html>
 <html>
   <head><title><%= title %></title></head>
-  <body><%= content %></body>
+  <body>
+      %= include 'header';
+      <%= content %>
+  </body>
 </html>

File site/www/templates/templates/header.html.ep

View file
+<nav>
+    <ul>
+        <li><a href="/">Home</a></li>
+        <li><a href="/meetings/">Meetings</a></li>
+        <li><a href="/links/">Links</a></li>
+    </ul>
+</nav>

File site/www/templates/templates/meetings.html.ep

View file
 <!DOCTYPE html>
 <html>
   <head><title><%= title %></title></head>
-  <body><%= content %></body>
+  <body>
+      %= include 'header';
+      <%= content %>
+  </body>
 </html>