Skip to content

Commit

Permalink
change template path
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanychu90 authored Mar 21, 2024
1 parent 520199b commit 0c415ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portfolio/portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def index(
sites.append(Site(output_dir=site_output_dir, name=name, **yaml.safe_load(f)))

for template in ["index.html", "_redirects"]:
fname = f"./portfolio/index/{template}"
fname = f"./portfolio/{template}"
with open(fname, "w") as f:
typer.echo(f"writing out to {fname}")
f.write(env.get_template(template).render(sites=sites, google_analytics_id=GOOGLE_ANALYTICS_TAG_ID))
Expand Down

0 comments on commit 0c415ce

Please sign in to comment.