| exampleSite/config.toml | ●●●●● patch | view | raw | blame | history | |
| exampleSite/go.mod | ●●●●● patch | view | raw | blame | history | |
| exampleSite/go.sum | ●●●●● patch | view | raw | blame | history | |
| layouts/blog/list.html | ●●●●● patch | view | raw | blame | history |
exampleSite/config.toml
@@ -3,8 +3,8 @@ enableRobotsTXT = true # this example loads the theme as hugo module # comment out line below, and uncomment the line after it if you prefer to load the theme normally theme = ["github.com/onweru/compose"] # edit this if you'ld rather use a fork of this repo # theme = "compose" # theme = ["github.com/onweru/compose"] # edit this if you'ld rather use a fork of this repo theme = "compose" enableGitInfo = true # disableKinds = ["taxonomy", "taxonomyTerm"] exampleSite/go.mod
@@ -2,4 +2,4 @@ go 1.19 require github.com/onweru/compose v0.0.0-20230729163245-27b84dc22eb8 // indirect require github.com/onweru/compose v0.0.0-20230730204557-43a58bce3d5a // indirect exampleSite/go.sum
@@ -6,3 +6,5 @@ github.com/onweru/compose v0.0.0-20230717085020-14357bb3e167/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc= github.com/onweru/compose v0.0.0-20230729163245-27b84dc22eb8 h1:aVItqjRfGwyOZHloHxVY6kEjjR+e8AQVXlpWiQtO0dw= github.com/onweru/compose v0.0.0-20230729163245-27b84dc22eb8/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc= github.com/onweru/compose v0.0.0-20230730204557-43a58bce3d5a h1:o/x7EfZKZquisgw30cKagraXVccTNydxPGQYV9LadZY= github.com/onweru/compose v0.0.0-20230730204557-43a58bce3d5a/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc= layouts/blog/list.html
@@ -19,12 +19,12 @@ {{- $bg = $image }} {{- end }} <article class="article mb-2"> <a href={{ $value.Permalink }} {{ if eq $index 0 }} class="grid-reverse" {{ end }}> <a href="{{ $value.Permalink }}" {{ if eq $index 0 }} class="grid-reverse" {{ end }}> <div class="article_thumb" style="background-image: url({{ $bg }});"></div> <div class="article_meta {{ if eq $index 0 }} center_y {{ end }}"> <time class="post_date">{{ dateFormat "January 02, 2006" $value.Date }}</time> <h3 class="article_title">{{ $value.Title }}</h3> <div class="article_excerpt {{ if eq $index 0 }} visible {{ end }}""> <div class="article_excerpt {{ if eq $index 0 }} visible {{ end }}"> <p>{{ truncate 100 $value.Summary }}</p> </div> </div>