diff --git a/layouts/index.html b/layouts/index.html index 59be48f..2d11aef 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,10 +4,12 @@ {{ partial "counter.html" . }} +{{ partial "blog.html" . }} + {{ partial "portfolio.html" . }} {{ partial "testimonial.html" . }} {{ partial "call-to-action.html" . }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/partials/blog.html b/layouts/partials/blog.html new file mode 100644 index 0000000..c21d5c2 --- /dev/null +++ b/layouts/partials/blog.html @@ -0,0 +1,33 @@ +{{ with .Site.Params.Blog }} + {{ if .enable }} + + + + + + {{ .title }} + {{ .subtitle }} + + + {{ range first 4 (where $.Site.RegularPages "Type" "blog") }} + + + + + + + {{ delimit .Params.category ", " }} + {{ .Title }} + {{ .Site.Params.blog.view_entry }} + + + + {{ end }} + + {{ .Site.Params.blog.read_more }} + + + + + {{ end }} +{{ end }}
{{ .subtitle }}