stuff
This commit is contained in:
parent
dd78002586
commit
e5645601a6
@ -7,7 +7,7 @@
|
|||||||
{{ range.Pages }}
|
{{ range.Pages }}
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 2" }}</time> –
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> –
|
||||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
10
layouts/_default/tag.html
Normal file
10
layouts/_default/tag.html
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
|
<header><h1>{{ .Title | title }}</h1></header>
|
||||||
|
|
||||||
|
{{ .Content }}
|
||||||
|
<ul class=tagartlist>
|
||||||
|
{{ range.Pages }}<li><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> – <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||||
|
{{ end }}</ul>
|
||||||
|
|
||||||
|
{{ partial "footer.html" . }}
|
@ -1,7 +0,0 @@
|
|||||||
{{ partial "header.html" . }}
|
|
||||||
|
|
||||||
<header><h1>{{ .Title }}</h1></header>
|
|
||||||
|
|
||||||
{{ .Content }}
|
|
||||||
|
|
||||||
{{ partial "footer.html" . }}
|
|
@ -1,9 +1,7 @@
|
|||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
<header><h1>{{ .Site.Title }}</h1></header>
|
<header><h1>{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}</h1></header>
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
{{ partial "tagcloud.html" . }}
|
|
||||||
|
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
See related:</br>
|
See related:</br>
|
||||||
{{ range $k, $v := .Params.tags }}
|
{{ range $k, $v := .Params.tags }}
|
||||||
{{ $url := printf "tags/%s" (. | urlize | lower) }}
|
{{ $url := printf "tags/%s" (. | urlize | lower) }}
|
||||||
<a href="{{ $url | absURL }}">{{ . }}</a>
|
<a href="{{ $url | absURL }}">{{ . | title }}</a>
|
||||||
{{ if lt $k (sub $tagsLen 1) }}·{{ end }}
|
{{ if lt $k (sub $tagsLen 1) }}·{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .Site.Language }}">
|
<html lang="{{ .Site.Language }}">
|
||||||
<head>
|
<head>
|
||||||
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
|
<title>{{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}</title>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||||
<link rel='stylesheet' type='text/css' href='/style.css'>
|
<link rel='stylesheet' type='text/css' href='/style.css'>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>{{ $sec := .Page.Section }}{{ $file := .File.TranslationBaseName }}
|
||||||
{{ range.Site.Menus.main }}
|
{{ range.Site.Menus.main }}{{ $base := path.Base .URL }}
|
||||||
<a href="{{ .URL }}"><li>{{ .Pre }}{{ .Name }}</li></a>
|
<a {{ if or ( eq $sec $base ) ( eq $file $base ) ( and (eq $sec "") ( eq $file "_index") (eq $base "/") ) }}class="menuactive" {{ end }}href="{{ .URL }}"><li><span class=pre>{{ .Pre }}</span><span class=menuname>{{ .Name }}</span></li></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
{{ if isset .Site.Taxonomies "tags" }}
|
|
||||||
{{ if not (eq (len .Site.Taxonomies.tags) 0) }}
|
|
||||||
<div class="tagcloud">
|
|
||||||
{{ range $name, $items := .Site.Taxonomies.tags }}
|
|
||||||
{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}
|
|
||||||
<a href="{{ $url | absURL }}">{{ $name }}</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
@ -4,6 +4,7 @@
|
|||||||
loading="lazy"
|
loading="lazy"
|
||||||
sandbox="allow-same-origin allow-scripts allow-popups"
|
sandbox="allow-same-origin allow-scripts allow-popups"
|
||||||
allowfullscreen frameborder="0"
|
allowfullscreen frameborder="0"
|
||||||
|
class="embvid"
|
||||||
title="Embedded Video">
|
title="Embedded Video">
|
||||||
</iframe>
|
</iframe>
|
||||||
</details>
|
</details>
|
||||||
|
18
layouts/shortcodes/img.html
Normal file
18
layouts/shortcodes/img.html
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<!-- 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 }}
|
||||||
|
</figure>
|
||||||
|
<!-- image -->
|
3
layouts/shortcodes/tagcloud.html
Normal file
3
layouts/shortcodes/tagcloud.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }} <div id="tagcloud">
|
||||||
|
{{ range $name, $items := .Site.Taxonomies.tags }}{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}<a href="{{ $url | absURL }}" id="tag_{{ $name }}">{{ $name | title }}</a>
|
||||||
|
{{ end }}</div>{{ end }}{{ end }}
|
@ -4,6 +4,14 @@ body {
|
|||||||
color: #ddd ;
|
color: #ddd ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lw, p img, li img, h1 img, h2 img, h3 img, h4 img, dt img, td img {
|
||||||
|
max-height: 1em;
|
||||||
|
max-width: 1em;
|
||||||
|
vertical-align: middle ;
|
||||||
|
}
|
||||||
|
|
||||||
|
img { max-width: 100% ; }
|
||||||
|
|
||||||
main {
|
main {
|
||||||
max-width: 800px ;
|
max-width: 800px ;
|
||||||
margin: auto ;
|
margin: auto ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user