From f42cd781e10712be72ff53e8e5a7ccf485d7e730 Mon Sep 17 00:00:00 2001 From: Alexander Feller Date: Mon, 12 Nov 2018 11:37:10 +0300 Subject: fixes --- layouts/_default/indexes.html | 22 ++++++++++++++-------- layouts/_default/list.html | 1 + layouts/_default/single.html | 12 ++++++------ layouts/_default/tag.html | 16 ++++++++++++++++ layouts/chrome/about.html | 5 ----- layouts/chrome/analytics.html | 15 --------------- layouts/chrome/disqus.html | 13 ------------- layouts/chrome/footer.html | 13 ------------- layouts/chrome/header.html | 25 ------------------------- layouts/chrome/includes.html | 5 ----- layouts/chrome/menu.html | 7 ------- layouts/chrome/meta.html | 12 ------------ layouts/index.html | 24 ++++++++++++------------ layouts/indexes/indexes.html | 14 -------------- layouts/indexes/tag.html | 16 ---------------- layouts/partials/about.html | 5 +++++ layouts/partials/analytics.html | 15 +++++++++++++++ layouts/partials/disqus.html | 13 +++++++++++++ layouts/partials/footer.html | 13 +++++++++++++ layouts/partials/header.html | 25 +++++++++++++++++++++++++ layouts/partials/includes.html | 5 +++++ layouts/partials/menu.html | 7 +++++++ layouts/partials/meta.html | 12 ++++++++++++ theme.toml | 2 +- 24 files changed, 145 insertions(+), 152 deletions(-) create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/tag.html delete mode 100644 layouts/chrome/about.html delete mode 100644 layouts/chrome/analytics.html delete mode 100644 layouts/chrome/disqus.html delete mode 100644 layouts/chrome/footer.html delete mode 100644 layouts/chrome/header.html delete mode 100644 layouts/chrome/includes.html delete mode 100644 layouts/chrome/menu.html delete mode 100644 layouts/chrome/meta.html delete mode 100644 layouts/indexes/indexes.html delete mode 100644 layouts/indexes/tag.html create mode 100644 layouts/partials/about.html create mode 100644 layouts/partials/analytics.html create mode 100644 layouts/partials/disqus.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/includes.html create mode 100644 layouts/partials/menu.html create mode 100644 layouts/partials/meta.html diff --git a/layouts/_default/indexes.html b/layouts/_default/indexes.html index de38d4d..c760b84 100644 --- a/layouts/_default/indexes.html +++ b/layouts/_default/indexes.html @@ -1,8 +1,14 @@ -
-
-

{{ .Title }}

-
    - -
-
-
\ No newline at end of file +{{ $baseurl := .Site.BaseURL }} +{{ template "partials/header.html" . }} + +
+
+

{{ .Title }}

+
    + {{ $data := .Data }} + {{ range $key,$value := .Data.Index.ByCount }} +
  • {{ $value.Name }} {{ $value.Count }}
  • + {{ end }} +
+
+
diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1 @@ + diff --git a/layouts/_default/single.html b/layouts/_default/single.html index fc84e46..5380e60 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ $baseurl := .Site.BaseURL }} - {{ template "theme/chrome/header.html" . }} + {{ template "partials/header.html" . }}
@@ -9,7 +9,7 @@
{{ range .Params.tags }} - {{ . }} + {{ . }} {{ end }}
@@ -18,9 +18,9 @@ {{ .Content }}
- {{ template "theme/chrome/about.html" . }} + {{ template "partials/about.html" . }} - {{ template "theme/chrome/footer.html" . }} + {{ template "partials/footer.html" . }} diff --git a/layouts/_default/tag.html b/layouts/_default/tag.html new file mode 100644 index 0000000..f7d8f8f --- /dev/null +++ b/layouts/_default/tag.html @@ -0,0 +1,16 @@ +{{ template "partials/header.html" . }} + +
+

+

Tag: {{ .Title }}

+

+ {{ range .Data.Pages }} +
+

{{ .Title }}

+
{{ .Date.Format "January 2 2006" }}
+
+
+ {{ end }} +
+ +{{ template "partials/footer.html" . }} diff --git a/layouts/chrome/about.html b/layouts/chrome/about.html deleted file mode 100644 index 16950dc..0000000 --- a/layouts/chrome/about.html +++ /dev/null @@ -1,5 +0,0 @@ -
-

- -

-
\ No newline at end of file diff --git a/layouts/chrome/analytics.html b/layouts/chrome/analytics.html deleted file mode 100644 index 69ad7fe..0000000 --- a/layouts/chrome/analytics.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/layouts/chrome/disqus.html b/layouts/chrome/disqus.html deleted file mode 100644 index 06d42af..0000000 --- a/layouts/chrome/disqus.html +++ /dev/null @@ -1,13 +0,0 @@ -
-
-
- - - - blog comments powered by Disqus -
-
- \ No newline at end of file diff --git a/layouts/chrome/footer.html b/layouts/chrome/footer.html deleted file mode 100644 index a306358..0000000 --- a/layouts/chrome/footer.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - -{{ template "theme/chrome/analytics.html" }} - diff --git a/layouts/chrome/header.html b/layouts/chrome/header.html deleted file mode 100644 index 8fd8141..0000000 --- a/layouts/chrome/header.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - ALEXFINN - {{ .Title }} - - - - {{ template "theme/chrome/includes.html" . }} - - - - - - - - - - {{ template "theme/chrome/menu.html" }} - -
-
-
-
-
- diff --git a/layouts/chrome/includes.html b/layouts/chrome/includes.html deleted file mode 100644 index 63c9724..0000000 --- a/layouts/chrome/includes.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/layouts/chrome/menu.html b/layouts/chrome/menu.html deleted file mode 100644 index ed9a3a0..0000000 --- a/layouts/chrome/menu.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/layouts/chrome/meta.html b/layouts/chrome/meta.html deleted file mode 100644 index e9b62cf..0000000 --- a/layouts/chrome/meta.html +++ /dev/null @@ -1,12 +0,0 @@ - - ALEXFINN - - - - - - - - diff --git a/layouts/index.html b/layouts/index.html index fbb6439..cbf1fc2 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,17 +1,17 @@ - {{ template "theme/chrome/meta.html" . }} - {{ template "theme/chrome/includes.html" . }} - + {{ template "partials/meta.html" . }} + {{ template "partials/includes.html" . }} + - + - - {{ template "theme/chrome/menu.html" }} + + {{ template "partials/menu.html" }} {{ $baseurl := .Site.BaseURL }} @@ -22,9 +22,9 @@
- {{ range .Data.Pages }} + {{ range .Data.Pages }}
- +

{{ .Title }}

{{ .Date.Format "January 2 2006" }}, {{ .FuzzyWordCount }} Words
@@ -33,15 +33,15 @@
{{ range .Params.tags }} - {{ . }} + {{ . }} {{ end }}
{{ end }}
- -
+ +
-{{ template "theme/chrome/footer.html" }} +{{ template "partials/footer.html" }} diff --git a/layouts/indexes/indexes.html b/layouts/indexes/indexes.html deleted file mode 100644 index 2168b06..0000000 --- a/layouts/indexes/indexes.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ $baseurl := .Site.BaseURL }} -{{ template "theme/chrome/header.html" . }} - -
-
-

{{ .Title }}

-
    - {{ $data := .Data }} - {{ range $key,$value := .Data.Index.ByCount }} -
  • {{ $value.Name }} {{ $value.Count }}
  • - {{ end }} -
-
-
diff --git a/layouts/indexes/tag.html b/layouts/indexes/tag.html deleted file mode 100644 index 42beea2..0000000 --- a/layouts/indexes/tag.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ template "theme/chrome/header.html" . }} - -
-

-

Tag: {{ .Title }}

-

- {{ range .Data.Pages }} -
-

{{ .Title }}

-
{{ .Date.Format "January 2 2006" }}
-
-
- {{ end }} -
- -{{ template "theme/chrome/footer.html" . }} diff --git a/layouts/partials/about.html b/layouts/partials/about.html new file mode 100644 index 0000000..16950dc --- /dev/null +++ b/layouts/partials/about.html @@ -0,0 +1,5 @@ +
+

+ +

+
\ No newline at end of file diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html new file mode 100644 index 0000000..69ad7fe --- /dev/null +++ b/layouts/partials/analytics.html @@ -0,0 +1,15 @@ + + + + diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html new file mode 100644 index 0000000..06d42af --- /dev/null +++ b/layouts/partials/disqus.html @@ -0,0 +1,13 @@ +
+
+
+ + + + blog comments powered by Disqus +
+
+ \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..ff3c180 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,13 @@ + +
+ Built with Hugo +

© Alexander Feller 2018

+
+
+
+
+ + + +{{ template "partials/analytics.html" }} + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..883310b --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,25 @@ + + + + ALEXFINN - {{ .Title }} + + + + {{ template "partials/includes.html" . }} + + + + + + + + + + {{ template "partials/menu.html" }} + +
+
+
+
+
+ diff --git a/layouts/partials/includes.html b/layouts/partials/includes.html new file mode 100644 index 0000000..63c9724 --- /dev/null +++ b/layouts/partials/includes.html @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html new file mode 100644 index 0000000..9bc158b --- /dev/null +++ b/layouts/partials/menu.html @@ -0,0 +1,7 @@ + diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html new file mode 100644 index 0000000..3b1bb33 --- /dev/null +++ b/layouts/partials/meta.html @@ -0,0 +1,12 @@ + + ALEXFINN + + + + + + + + diff --git a/theme.toml b/theme.toml index 0d29ad7..3b23440 100644 --- a/theme.toml +++ b/theme.toml @@ -9,5 +9,5 @@ features = ["blog", ] [author] name = "AlexFinn" - homepage = "http://ru.alexfinn.eu/" + homepage = "http://ru.alxschwarz.com/" source_repo = "https://github.com/AlexFinn/simple-a" -- cgit v1.2.3