mirror of
https://git.ludikovsky.name/git/fugitive.git
synced 2024-09-28 14:25:26 +02:00
adding a nav panel at the bottom of the default template
This commit is contained in:
parent
0572553c60
commit
de27fec414
|
@ -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↑</a></li>
|
||||||
|
<li><a href="index.html">home</a></li>
|
||||||
|
<li><a href="archives.html">archives</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
<footer>
|
<footer>
|
||||||
<p>
|
<p>
|
||||||
<a href="http://www.gnu.org/copyleft/copyleft.html">copyleft</a>
|
<a href="http://www.gnu.org/copyleft/copyleft.html">copyleft</a>
|
||||||
|
|
|
@ -25,12 +25,14 @@ nav {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0.3em 1em;
|
padding: 0.3em 1em;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
border-top: 0;
|
|
||||||
background: #f2f2f2;
|
background: #f2f2f2;
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
font-size: 1.3em;
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
#topnav {
|
||||||
|
border-top-style: none;
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
nav ul { padding: 0; margin: 0; }
|
nav ul { padding: 0; margin: 0; }
|
||||||
nav ul.nav { float: right; }
|
nav ul.nav { float: right; }
|
||||||
nav ul li { display: inline; }
|
nav ul li { display: inline; }
|
||||||
|
@ -60,6 +62,7 @@ header q {
|
||||||
article {
|
article {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
margin-bottom: 3em;
|
||||||
counter-reset: code figure example section subsection;
|
counter-reset: code figure example section subsection;
|
||||||
}
|
}
|
||||||
article header {
|
article header {
|
||||||
|
@ -260,7 +263,7 @@ article > div hr {
|
||||||
}
|
}
|
||||||
footer {
|
footer {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 3em 0 0 0;
|
margin: 1em 0 0 0;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
border-top: 1px dotted #aaa;
|
border-top: 1px dotted #aaa;
|
||||||
color: #888;
|
color: #888;
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<nav>
|
<nav id="topnav">
|
||||||
<?fugitive ifset:article_file ?>
|
<?fugitive ifset:article_file ?>
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<?fugitive ifset:article_previous_file ?>
|
<?fugitive ifset:article_previous_file ?>
|
||||||
|
|
Loading…
Reference in a new issue