Layout für Smartphones und sehr kleine Bildschirmgrößen überarbeitet
[website] / src / main / webapp / WEB-INF / templates / html5page.jsp
index d4873da..3169c65 100644 (file)
@@ -3,38 +3,52 @@
 <%@page pageEncoding="UTF-8"%>
 <%@page session="false" %>
 <%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %>
+<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>
+<s:url var="base" value="/" />
 <html>
   <head>
     <title>juplo - <t:getAsString name="title"/></title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-    <base href="${pageContext.request.contextPath}/" />
-    <link rel="stylesheet" type="text/css" href="css/base.css"/>
+    <t:insertAttribute name="htmlhead"/>
   </head>
-  <body>
-    <header id="header">
-      <a href="/" title="Home" id="logo">juplo</a>
-      <span id="slogan"><strong>Java</strong> bits from nerds for nerds</span>
-      <hr />
-    </header>
-    <div class="content <t:getAsString name="contentclass"/> cf">
-      <section id="content" class="main">
-        <h1><t:getAsString name="title"/></h1>
-        <t:insertAttribute name="maincontent"/>
-      </section>
-      <div class="marginal">
-        <nav id="nav">
-          <a id="navigation"></a>
-          <t:insertAttribute name="navigation"/>
-        </nav>
-        <t:insertAttribute name="marginalcontent" ignore="true"/>
+  <body onload="prettyPrint()">
+    <div id="page" class="<t:getAsString name="contentclass"/> cf">
+      <header id="header">
+        <h1 id="logo"><a href="${base}index.html" title="Home" class="l">juplo</a></h1>
+        <span id="slogan"><strong>Java</strong> bits from nerds for nerds</span>
+        <hr class="h" />
+      </header>
+      <div id="breadcrumb">
+        <strong class="b title">You are here:</strong>
+        <ol class="b">
+          <t:insertAttribute name="breadcrumb"/>
+        </ol>
+        <a class="hide" href="#navigation" title="Show navigation menu">Jump to navigation</a>
+        <hr class="b" />
       </div>
+      <main class="content cf">
+        <article id="content" class="main">
+          <header><h1><t:getAsString name="title"/></h1></header>
+          <t:insertAttribute name="maincontent"/>
+        </article>
+        <div class="marginal">
+          <nav id="nav">
+            <hr class="n"/>
+            <a id="navigation"></a>
+            <t:insertAttribute name="navigation"/>
+            <hr class="n"/>
+          </nav>
+          <t:insertAttribute name="marginalcontent" ignore="true"/>
+        </div>
+      </main>
+      <footer id="footer">
+        <hr class="f" />
+        <ul id="footerlinks">
+          <li class="f" id="copyright">© <strong>mo</strong> 2013</li>
+          <li class="f"><a class="f" href="${base}contact.html">Contact</a></li>
+          <li class="f"><a class="f" href="${base}impressum.html">Impressum</a></li>
+        </ul>
+      </footer>
     </div>
-    <footer id="footer">
-      <ul id="footerlinks">
-        <li class="f" id="copyright">© <strong>mo</strong> 2013</li>
-        <li class="f"><a class="f" href="contact.jsp">Contact</a></li>
-        <li class="f"><a class="f" href="impressum.jsp">Impressum</a></li>
-      </ul>
-    </footer>
   </body>
 </html>