diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 3 | ||||
-rw-r--r-- | layouts/_default/home.html | 8 | ||||
-rw-r--r-- | layouts/_default/section.html | 7 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 |
4 files changed, 19 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6d931cb..359e544 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,7 +2,10 @@ <html> <head> <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title> + {{ $style := resources.Get "style.css" | resources.Minify | resources.Fingerprint }} + <link rel="stylesheet" href="{{ $style.RelPermalink }}" /> </head> <body> {{ block "main" . }} diff --git a/layouts/_default/home.html b/layouts/_default/home.html index 872513f..8bcf1b4 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -4,4 +4,12 @@ {{ define "main" }} <h1>{{ .Site.Title }}</h1> {{ .Content }} + <h2>Projects</h2> + <ul> + {{ range .Sections }} + <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> + {{ end }} + </li> + </ul> {{ end }} + diff --git a/layouts/_default/section.html b/layouts/_default/section.html new file mode 100644 index 0000000..480b8f5 --- /dev/null +++ b/layouts/_default/section.html @@ -0,0 +1,7 @@ +{{ define "title" }} + {{ .Title }} +{{ end }} +{{ define "main" }} + <h1>{{ .Title }}</h1> + {{ .Content }} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ba2e421..480b8f5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ define "title" }} - {{ .Title }} – {{ .Site.Title }} + {{ .Title }} {{ end }} {{ define "main" }} <h1>{{ .Title }}</h1> |