+
+
\ No newline at end of file
diff --git a/layouts/partials/post_meta/categories.html b/layouts/partials/post/post_meta/categories.html
similarity index 100%
rename from layouts/partials/post_meta/categories.html
rename to layouts/partials/post/post_meta/categories.html
diff --git a/layouts/partials/post_meta/created_date.html b/layouts/partials/post/post_meta/created_date.html
similarity index 100%
rename from layouts/partials/post_meta/created_date.html
rename to layouts/partials/post/post_meta/created_date.html
diff --git a/layouts/partials/post_meta/readtime.html b/layouts/partials/post/post_meta/readtime.html
similarity index 100%
rename from layouts/partials/post_meta/readtime.html
rename to layouts/partials/post/post_meta/readtime.html
diff --git a/layouts/partials/post_meta/update_date.html b/layouts/partials/post/post_meta/update_date.html
similarity index 100%
rename from layouts/partials/post_meta/update_date.html
rename to layouts/partials/post/post_meta/update_date.html
diff --git a/layouts/partials/post_meta/views.html b/layouts/partials/post/post_meta/views.html
similarity index 100%
rename from layouts/partials/post_meta/views.html
rename to layouts/partials/post/post_meta/views.html
diff --git a/layouts/partials/post_meta/words.html b/layouts/partials/post/post_meta/words.html
similarity index 100%
rename from layouts/partials/post_meta/words.html
rename to layouts/partials/post/post_meta/words.html
diff --git a/layouts/partials/post_content.html b/layouts/partials/post_content.html
new file mode 100644
index 0000000..63f338b
--- /dev/null
+++ b/layouts/partials/post_content.html
@@ -0,0 +1,10 @@
+
{{- block "main" . }}{{- end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index e69de29..4e67b7e 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -0,0 +1,4 @@
+{{- define "main_class" }}page{{- end }}
+{{- define "main" }}
+{{ partial "post_content.html" . }}
+{{- end }}
\ No newline at end of file
diff --git a/layouts/index.html b/layouts/index.html
index 6e1d7de..ba068c2 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,64 +1,10 @@
+{{- define "main_class" }}index{{- end }}
{{- define "main" }}
-{{- $lang := .Scratch.Get "lang" }}
+{{/* TODO IsHome */}}
+{{- print "Get IsHome value from scratch before paginate: " (.Scratch.Get "IsHome") }}
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
{{- range $paginator.Pages }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+{{ partial "post_content.html" . }}
{{- end }}
{{- partial "partials/pagination.html" . }}
{{- end }}
\ No newline at end of file
diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html
index 2824e3a..01bb521 100644
--- a/layouts/partials/head/meta.html
+++ b/layouts/partials/head/meta.html
@@ -14,7 +14,7 @@
{{- end }}
{{- .Scratch.Set "metaImg" $img }}
-
+
{{- if .Site.Params.darkmode }}
{{- else }}
diff --git a/layouts/partials/post/post_body.html b/layouts/partials/post/post_body.html
new file mode 100644
index 0000000..94d425d
--- /dev/null
+++ b/layouts/partials/post/post_body.html
@@ -0,0 +1,11 @@
+
- {{- if .Params.Expand }}
- {{ .Content }}
- {{- else }}
- {{ .Summary }}
- {{- end }}
-
-
-
+ {{- if not .IsHome }}
+ {{- if .Params.Expand }}
+ {{ .Content }}
+ {{- else }}
+ {{ .Summary }}
+ {{- end }}
+ {{- else }}
+ {{ .Content }}
+ {{- end }}
+
\ No newline at end of file
diff --git a/layouts/partials/post/post_footer.html b/layouts/partials/post/post_footer.html
new file mode 100644
index 0000000..574fa26
--- /dev/null
+++ b/layouts/partials/post/post_footer.html
@@ -0,0 +1,28 @@
+{{- if .Scratch.Get "IsHome" }}
+{{- if and .Site.Params.readMoreBtn (not .Params.Expand) }}
+
+{{- end }}
+
+{{- else }}
+
+
+{{- end }}
\ No newline at end of file
diff --git a/layouts/partials/post/post_header.html b/layouts/partials/post/post_header.html
new file mode 100644
index 0000000..22da400
--- /dev/null
+++ b/layouts/partials/post/post_header.html
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{- with .NextInSection }}
+
+ {{.Title}}
+
+ {{- end }}
+
+
+ {{- with .PrevInSection }}
+
+ {{.Title}}
+
+
+ {{- end }}
+
++ {{- if and (isset .Params "sticky") (gt .Params.Sticky 0) }} + + + + {{- end }} + {{- if and (isset .Params "link") (ne .Params.Link "") }} + + {{ .Title }} + + + {{- else }} + {{ .Title }} + {{- end }} +
+ {{/* TODO IsHome */}} + {{ print "Get IsHome value in pages loop: " ($.Scratch.Get "IsHome") }} +
+ {{ partial "post/post_meta/created_date.html" . }}
+ {{ partial "post/post_meta/update_date.html" . }}
+ {{ partial "post/post_meta/categories.html" . }}
+ {{- if not (.Scratch.Get "IsHome") }}
+ {{ partial "post/post_meta/words.html" . }}
+ {{ partial "post/post_meta/readtime.html" . }}
+ {{ partial "post/post_meta/views.html" . }}
+ {{ end }}
+
+
+
+ {{ partial "post/post_header.html" . }}
+
+ {{ partial "post/post_body.html" . }}
+
+
+
\ No newline at end of file