diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-01-28 14:29:56 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-01-28 14:30:54 -0500 |
| commit | 109323842b24f9a046fceb48fa13006c017cc384 (patch) | |
| tree | fad410c95abb98e9485a50fba6bdd41b710e2ff7 /internal | |
| parent | ffa0b82a3faae9a531432f59fbf57976ba8e9116 (diff) | |
| download | xesite-109323842b24f9a046fceb48fa13006c017cc384.tar.xz xesite-109323842b24f9a046fceb48fa13006c017cc384.zip | |
lume: update to Lume 2
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/lume/lume.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/lume/lume.go b/internal/lume/lume.go index 47fd497..d4139c0 100644 --- a/internal/lume/lume.go +++ b/internal/lume/lume.go @@ -293,7 +293,7 @@ func (f *FS) build(ctx context.Context, siteCommit string) error { return err } - cmd := exec.CommandContext(ctx, denoLocation, "task", "build", "--location", f.opt.URL, "--quiet") + cmd := exec.CommandContext(ctx, denoLocation, "task", "build", "--location", f.opt.URL) cmd.Dir = filepath.Join(f.repoDir, f.opt.StaticSiteDir) cmd.Stdout = os.Stdout @@ -446,11 +446,11 @@ export default ({ search }, { date }) => { <ul class="list-disc ml-4 mb-4"> {search.pages("series={{.Series}}", "order date=desc").map((post) => { - const url = post.data.redirect_to ? post.data.redirect_to : post.data.url; + const url = post.redirect_to ? post.redirect_to : post.url; return ( <li> - <time datetime={date(post.data.date)} className="font-mono">{date(post.data.date, "DATE_US")}</time> -{" "} - <a href={url}>{post.data.title}</a> + <time datetime={date(post.date)} className="font-mono">{date(post.date, "DATE_US")}</time> -{" "} + <a href={url}>{post.title}</a> </li> ); })} |
