Skip to content

Commit

Permalink
add breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Sep 6, 2020
1 parent 9344262 commit 09cb1c9
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
5 changes: 5 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
<body>
<header class="page-header">
<h1><a href="/">/</a></h1>
<nav class="breadcrumbs">
<ul>
<li><a href="/">/</a></li>
</ul>
</nav>
</header>
<main class="page-body">
<ul>
Expand Down
11 changes: 8 additions & 3 deletions templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<body>
<header class="page-header">
<h1><a href="{{ page_url }}">{{ page_id }}</a></h1>
<nav class="breadcrumbs">
<ul>
<li><a href="/">/</a></li>
<li><a href="/pages">pages</a></li>
<li><a href="{{ page_url }}">{{ page_id }}</a></li>
</ul>
</nav>
<nav>
<ul>
<li><a href="{{ page_url }}">no obsoleted</a></li>
Expand All @@ -26,9 +33,7 @@ <h1><a href="{{ page_url }}">{{ page_id }}</a></h1>
{% endif %}
</header>
<main class="page-body">
<article>
{{ html|safe }}
</article>
<article>{{ html|safe }}</article>
</main>
<footer class="page-footer">
<aside>
Expand Down
6 changes: 6 additions & 0 deletions templates/pages.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
<body>
<header class="page-header">
<h1>{{ title }}</h1>
<nav class="breadcrumbs">
<ul>
<li><a href="/">/</a></li>
<li><a href="/pages">pages</a></li>
</ul>
</nav>
<nav>
<ul>
<li><a href="{{ title }}">no obsoleted</a></li>
Expand Down
7 changes: 7 additions & 0 deletions templates/title.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<body>
<header class="page-header">
<h1><a href="{{ title_url }}">{{ title }}</a></h1>
<nav class="breadcrumbs">
<ul>
<li><a href="/">/</a></li>
<li><a href="/titles">titles</a></li>
<li><a href="{{ title_url }}">{{ title }}</a></li>
</ul>
</nav>
<nav>
<ul>
<li><a href="{{ title }}">no obsoleted</a></li>
Expand Down
6 changes: 6 additions & 0 deletions templates/titles.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
<body>
<header class="page-header">
<h1>{{ title }}</h1>
<nav class="breadcrumbs">
<ul>
<li><a href="/">/</a></li>
<li><a href="/titles">titles</a></li>
</ul>
</nav>
<nav>
<ul>
<li><a href="{{ title }}">no obsoleted</a></li>
Expand Down

0 comments on commit 09cb1c9

Please sign in to comment.