diff options
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/home.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/layouts/_default/home.html b/layouts/_default/home.html new file mode 100644 index 0000000..031e3b5 --- /dev/null +++ b/layouts/_default/home.html @@ -0,0 +1,24 @@ +{{- define "main" }} +<div class="homepage"> + <header class="homepage__header"> + <h1 class="homepage__header-title"> + {{ with .Title }}{{ . }}{{ else }}{{ site.Title | default "Welcome to my Blog!" }}{{ end }} + </h1> + {{- with site.Params.author.portrait }} + <img src="{{ . }}" alt="{{ . }}" class="homepage__header-image" /> + {{- end }} + {{- with .Content }} + <div class="homepage__header-content"> + {{ . }} + </div> + {{- end }} + </header> + + {{- partial "list/recent-posts.html" (dict + "count" 5 + "title" (lang.Translate "posts.recent" | default "Recent Articles") + "show_view_all" true + ) + -}} +</div> +{{- end }} |
