Fix styling of blog, photos, term, ruby
So many fixes!
This commit is contained in:
parent
b7070ccfd5
commit
a9cfddec80
21 changed files with 212 additions and 149 deletions
|
@ -3,29 +3,26 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<header class="page">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</header>
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
</header>
|
||||
|
||||
{{ partial "table_of_contents.html" . }}
|
||||
{{ partial "ruby_controls.html" . }}
|
||||
{{ partial "ruby_controls.html" . }}
|
||||
|
||||
{{- $hasContent := false -}}
|
||||
{{ with .Content }}
|
||||
{{- $hasContent = true -}}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.posts | default true }}
|
||||
{{ if and $hasContent }}
|
||||
<h2>Posts</h2>
|
||||
{{- $hasContent := false -}}
|
||||
{{ with .Content }}
|
||||
{{- $hasContent = true -}}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<ul>
|
||||
{{- range .Pages -}}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
{{ if .Params.posts | default true }}
|
||||
{{ if $hasContent }}
|
||||
<h2>Posts</h2>
|
||||
{{ end }}
|
||||
|
||||
{{- range .Pages -}}
|
||||
{{ .Render "li_grid_with_date" }}
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue