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,20 +3,38 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<header class="page">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</header>
|
||||
<header class="page">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</header>
|
||||
<article>
|
||||
{{ .Content }}
|
||||
|
||||
{{ .Content }}
|
||||
{{- range .Data.Terms.Alphabetical -}}
|
||||
<h2>{{ .Name | title }}</h2>
|
||||
|
||||
{{- range .Data.Terms.Alphabetical -}}
|
||||
<h2>{{ .Name | title }}</h2>
|
||||
<ul>
|
||||
{{- range .WeightedPages -}}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
{{- end -}}
|
||||
{{- range .WeightedPages -}}
|
||||
<article class="post">
|
||||
<header>
|
||||
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "Jan 2, 2006" }}</time>
|
||||
<h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
</header>
|
||||
|
||||
{{ if .Description }}
|
||||
<p>{{ .Description }}</p>
|
||||
{{ else if lt .WordCount 110 }}
|
||||
{{ .Content }}
|
||||
{{ else }}
|
||||
{{ warnf "Post \"%s\" doesn't have a description or content suitable for the blog list" .Title }}
|
||||
<p>{{ .WordCount }} words</p>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "footer_tags.html" . }}
|
||||
|
||||
{{ partial "development/draft_tag.html" . }}
|
||||
</article>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue