clean up
This commit is contained in:
		@@ -1,7 +0,0 @@
 | 
			
		||||
{{ partial "header.html" . }}
 | 
			
		||||
 | 
			
		||||
<header><h1>404: Page not found</h1></header>
 | 
			
		||||
 | 
			
		||||
{{ .Content }}
 | 
			
		||||
 | 
			
		||||
{{ partial "footer.html" . }}
 | 
			
		||||
@@ -1,10 +0,0 @@
 | 
			
		||||
{{ define "main" }}
 | 
			
		||||
{{ .Content }}
 | 
			
		||||
 | 
			
		||||
{{range.Site.RegularPages}}
 | 
			
		||||
<li><a href="{{.Permalink}}">{{.Title}}</a></li>
 | 
			
		||||
{{end}}
 | 
			
		||||
 | 
			
		||||
{{ partial "tagcloud.html" . }}
 | 
			
		||||
 | 
			
		||||
{{ end }}
 | 
			
		||||
@@ -13,7 +13,7 @@
 | 
			
		||||
        {{- end -}}
 | 
			
		||||
</main>
 | 
			
		||||
<footer>
 | 
			
		||||
	<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a></br>
 | 
			
		||||
	<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br>
 | 
			
		||||
	{{ if .Site.Params.showrss }}<a href="/index.xml"><img src="/pix/rss.svg" style="max-height:.9em;display:inline" alt=""> Subscribe via RSS for Updates.</a>{{ end }}
 | 
			
		||||
</footer>
 | 
			
		||||
</body>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,18 +1,20 @@
 | 
			
		||||
<!-- image -->
 | 
			
		||||
<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>
 | 
			
		||||
    {{ with .Get "link"}}<a href="{{.}}">{{ end }}
 | 
			
		||||
        <img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }}{{ with .Get "mouse"}}title="{{.}}"{{end}}/>
 | 
			
		||||
    {{ if .Get "link"}}</a>{{ end }}
 | 
			
		||||
    {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
 | 
			
		||||
    <figcaption>{{ if isset .Params "title" }}
 | 
			
		||||
        <h4>{{ .Get "title" }}</h4>{{ end }}
 | 
			
		||||
        {{ if or (.Get "caption") (.Get "attr")}}<p>
 | 
			
		||||
        {{ .Get "caption" }}
 | 
			
		||||
        {{ with .Get "attrlink"}}<a href="{{.}}">{{ end }}
 | 
			
		||||
            {{ .Get "attr" }}
 | 
			
		||||
        {{ if .Get "attrlink"}}</a>{{ end }}
 | 
			
		||||
        </p>{{ end }}
 | 
			
		||||
    </figcaption>
 | 
			
		||||
    {{ end }}
 | 
			
		||||
<!--
 | 
			
		||||
	class: class of the figure
 | 
			
		||||
	link: url the image directs to
 | 
			
		||||
	alt: alternative text
 | 
			
		||||
	caption: caption
 | 
			
		||||
	mouse: what the image says when moused over ("title" in HTML)
 | 
			
		||||
-->
 | 
			
		||||
<figure {{ with .Get "class" }}class="{{.}}"{{ end -}}>
 | 
			
		||||
	{{- with .Get "link"}}<a href="{{.}}">{{ end -}}
 | 
			
		||||
	<img src="{{ .Get "src" }}"
 | 
			
		||||
	     {{- with .Get "mouse" }} title="{{.}}"{{ end -}}
 | 
			
		||||
	     {{- with .Get "alt" }} alt="{{.}}"{{ end -}}
 | 
			
		||||
	>
 | 
			
		||||
	{{- if .Get "link"}}</a>{{ end -}}
 | 
			
		||||
	{{- with .Get "caption" -}}
 | 
			
		||||
	<figcaption>
 | 
			
		||||
	{{- . -}}
 | 
			
		||||
	</figcaption>
 | 
			
		||||
	{{- end -}}
 | 
			
		||||
</figure>
 | 
			
		||||
<!-- image -->
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user