diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 69f514d..0e889c9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,11 +1,11 @@ - {{- partial "head.html" . -}} - - {{- partial "header.html" . -}} -
- {{- block "main" . }}{{- end }} -
- {{- partial "footer.html" . -}} - +{{ partial "head.html" . }} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 333e5f3..9c84d0f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,21 +1,21 @@ - - - {{ .Title }} | {{ .Site.Title }} - - {{- partial "metadata.html" . -}} - {{ if .Site.IsServer }} - {{ $options := (dict "targetPath" "styles.css" "enableSourceMap" true) }} - {{ $styles := resources.Get "scss/main.scss" | toCSS $options }} - - {{ else }} - {{ $options := (dict "targetPath" "styles.css") }} - {{ $styles := resources.Get "scss/main.scss" | toCSS $options | minify }} - + + + {{ .Title }} - {{ .Site.Title }} + + {{- if .Site.IsServer -}} + {{- $options := (dict "targetPath" "styles.css" "enableSourceMap" true) -}} + {{- $styles := resources.Get "scss/main.scss" | toCSS $options }} + + {{- else -}} + {{- $options := (dict "targetPath" "styles.css") -}} + {{- $styles := resources.Get "scss/main.scss" | toCSS $options | minify -}} + + {{- end }} + {{ range .AlternativeOutputFormats }} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end }} - {{ range .AlternativeOutputFormats -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} - {{ end -}} + {{ partial "metadata.html" . -}} diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index 68e44e7..5990b3a 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -1,35 +1,57 @@ - - - - - - -{{ if .IsNode }} - -{{ end }} -{{ if .IsPage }} + + + + + {{ if .Params.postimage -}} + + {{- else if .Site.Params.Image -}} + + {{- else -}} + + {{ end }} + {{ if .Params.postimagedescription -}} + + {{- else if .Site.Params.ImageDescription -}} + + {{- else -}} + + {{ end }} + + {{- if .IsNode }} + + {{- else }} + + {{ end -}} + + + + + + + + {{- if .IsNode }} + + {{ end }} + {{- if .IsPage }} - - - {{ if (and (isset .Params "lastmod") (gt (dateFormat "2016-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }} - - {{ end }} - - {{ if (and (isset .Params "lastmod") (gt (dateFormat "2016-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }} - - {{ end }} - {{ with .Params.categories }} - {{ range . }} - - {{ end }} - {{ end }} - {{ with .Params.tags }} - {{ range . }} - - {{ end }} - {{ end }} -{{ end }} + + + {{- if (and (isset .Params "lastmod") (gt (dateFormat "2016-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }} + + {{ end -}} + + {{- if (and (isset .Params "lastmod") (gt (dateFormat "2016-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }} + + {{ end -}} + {{- with .Params.categories }} + {{- range . -}} + + {{- end -}} + {{ end -}} + {{- with .Params.tags }} + {{- range . -}} + + {{ end -}} + {{ end -}} + {{ end -}} diff --git a/static/images/site.jpg b/static/images/site.jpg new file mode 100644 index 0000000..4c4ba48 Binary files /dev/null and b/static/images/site.jpg differ diff --git a/static/site.webmanifest b/static/site.webmanifest index de65106..b9dfa4e 100644 --- a/static/site.webmanifest +++ b/static/site.webmanifest @@ -1,6 +1,6 @@ { - "name": "", - "short_name": "", + "name": "iGor milhit", + "short_name": "iG", "icons": [ { "src": "/android-chrome-192x192.png",