nicely render project links on section page
This commit is contained in:
parent
323b9e2e3c
commit
4374c7f280
8 changed files with 56 additions and 1 deletions
|
|
@ -21,6 +21,15 @@ header#banner nav ul li a {
|
|||
color: #cccccc;
|
||||
}
|
||||
|
||||
header#links a {
|
||||
color: #e0e0e0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
header#links nav ul li a {
|
||||
color: #00b1ed;
|
||||
}
|
||||
|
||||
main#content a {
|
||||
color: #00b1ed;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -279,3 +279,29 @@ footer#footer {
|
|||
color: #b3b3b3;
|
||||
margin: 40px 0;
|
||||
}
|
||||
|
||||
header#links {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
header#links nav {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
header#links nav ul {
|
||||
list-style-type: none;
|
||||
font-size: 1.05em;
|
||||
text-transform: lowercase;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
header#links nav ul li {
|
||||
display: inline;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
header#links nav ul li a {
|
||||
color: #007dfa;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,11 @@
|
|||
<article>
|
||||
<header id="post-header">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{- if compare.Ne .Parent.Title "Home" -}}
|
||||
<div>
|
||||
Part of the <a href="{{ .Parent.Permalink }}">{{ .Parent.Title }}</a> series
|
||||
</br>
|
||||
{{- end -}}
|
||||
{{- if isset .Params "date" -}}
|
||||
{{ if eq .Lastmod .Date }}
|
||||
<time>{{ .Date | time.Format (i18n "post.created") }}</time>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{{ define "main" }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
<header id="links">
|
||||
<nav>
|
||||
<ul>
|
||||
{{ range .Page.Params.links -}}
|
||||
|
|
@ -9,6 +10,7 @@
|
|||
{{- end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue