diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2024-04-23 01:19:27 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2024-04-23 01:19:27 +0700 |
commit | 40f57ed72a601d8489a180f3bd9acd5e6c20d323 (patch) | |
tree | 6dd84fffd42e809f5123333deb8bb1a366a97cfc /layouts/index.html | |
parent | 2cff39c15ffb512f87ed5f8a2f71603e9ff2d4c7 (diff) | |
download | blog-40f57ed72a601d8489a180f3bd9acd5e6c20d323.tar.gz |
Update theme
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..c1da783 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,14 @@ +{{ define "main" }} + <div class="homepage-content"> + {{ .Content }} + </div> + {{ with .Site.GetPage "section" "posts" }} + {{ range first 1 .Pages }} + <article class="embedded"> + <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1> + {{ .Content | truncate 1000 }} + </article> + {{ end }} + {{ end }} + +{{ end }} |