1
0
Fork 0
mirror of https://git.ludikovsky.name/git/fugitive.git synced 2024-05-18 22:45:31 +02:00

adding a nav panel at the bottom of the default template

This commit is contained in:
p4bl0 2010-07-29 01:33:38 +02:00
parent 0572553c60
commit de27fec414
3 changed files with 28 additions and 4 deletions

View file

@ -1,3 +1,24 @@
<nav>
<?fugitive ifset:article_file ?>
<ul class="nav">
<?fugitive ifset:article_previous_file ?>
<li>
<a href="<?fugitive article_previous_file ?>.html">« previous</a>
</li>
<?fugitive endifset:article_previous_file ?>
<?fugitive ifset:article_next_file ?>
<li>
<a href="<?fugitive article_next_file ?>.html">next »</a>
</li>
<?fugitive endifset:article_next_file ?>
</ul>
<?fugitive endifset:article_file ?>
<ul>
<li><a href="#topnav">top&uarr;</a></li>
<li><a href="index.html">home</a></li>
<li><a href="archives.html">archives</a></li>
</ul>
</nav>
<footer>
<p>
<a href="http://www.gnu.org/copyleft/copyleft.html">copyleft</a>

View file

@ -25,12 +25,14 @@ nav {
margin: 0;
padding: 0.3em 1em;
border: 1px solid #ccc;
border-top: 0;
background: #f2f2f2;
color: #aaa;
font-size: 1.3em;
text-align: left;
}
#topnav {
border-top-style: none;
font-size: 1.3em;
}
nav ul { padding: 0; margin: 0; }
nav ul.nav { float: right; }
nav ul li { display: inline; }
@ -60,6 +62,7 @@ header q {
article {
display: block;
text-align: left;
margin-bottom: 3em;
counter-reset: code figure example section subsection;
}
article header {
@ -260,7 +263,7 @@ article > div hr {
}
footer {
display: block;
margin: 3em 0 0 0;
margin: 1em 0 0 0;
padding: 1em;
border-top: 1px dotted #aaa;
color: #888;

View file

@ -22,7 +22,7 @@
</head>
<body>
<div id="container">
<nav>
<nav id="topnav">
<?fugitive ifset:article_file ?>
<ul class="nav">
<?fugitive ifset:article_previous_file ?>