Skip to content

Commit

Permalink
run locally
Browse files Browse the repository at this point in the history
  • Loading branch information
bliotti committed Oct 2, 2023
1 parent 5c67a3d commit 31dbef8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ fmt:
prettier --write .

serve:
env=`git rev-parse HEAD` zola serve
GIT_SHA=`git rev-parse HEAD` env=dev zola serve
25 changes: 11 additions & 14 deletions templates/footer.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
<footer class="wf">
<div class="tc mt3 f6">
this site is open source and
<a
style="text-decoration: underline"
href="https://github.com/bliotti/coinguy-website"
>
lives here</a
>
<br />

{{ get_env(name="env") | truncate(length=7) }} {% if get_env(name="env",
default="dev") == "prod" %} {% set git_sha = get_env(name="GIT_SHA") %} {{
git_sha | truncate(length=7) }} {% endif %}
<br />
last updated {{ now() | date(format="%e %B %Y") }}
<br />
code for this site
<a style="text-decoration: underline" href="https://github.com/bliotti/coinguy-website">
{% if get_env(name="env", default="dev") == "prod" %}
{% set git_sha = get_env(name="GIT_SHA") %} {{ git_sha | truncate(length=7) }}
{% endif %}
{% if get_env(name="env", default="dev") == "dev" %}
{% set git_sha = get_env(name="GIT_SHA") %} {{ git_sha | truncate(length=7) }}
{% endif %}
</a>
</div>
</footer>
</footer>

0 comments on commit 31dbef8

Please sign in to comment.