<h1 class="nav">Navigation</h1>
<h2 class="nav menu">Section-Menu</h2>
<ul id="menu" class="cf">
- <li class="m blog" th:each="entry : ${sections}" th:class="'m ' + ${entry.value.key}">
- <a href="../blog.html" th:href="@{${entry.key}}" class="m" th:class="${entry.key == section.uri} ? 'm selected' : 'm'" th:text="${entry.value.name}">Blog</a>
+ <li class="m blog" th:each="entry : ${sections}" th:class="'m ' + ${entry.key}">
+ <a href="../blog.html" th:href="@{${entry.value}}" class="m" th:class="${entry.value == section.uri} ? 'm selected' : 'm'" th:text="${pages.get(entry.value).name}">Blog</a>
</li>
<!--/*-->
<li class="m projects"><a href="../projects" class="m selected">Projects</a></li>
{
"sections": {
- "/blog.html": { "name": "Blog", "key": "blog" },
- "/projects.html": { "name": "Projects", "key": "projects" },
- "/about.html": { "name": "About", "key": "about" }
+ "blog": "/blog.html",
+ "projects": "/projects.html",
+ "about": "/about.html"
},
"pages": {
"/index.html": { "name": "Home" },