Skip to content

Commit 86bad6c

Browse files
deploy: a171200
1 parent 28728c8 commit 86bad6c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

blog/blog-in-gleam/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
`)">copy</button><pre><code data-lang="shell">$ gleam new blog
1414
$ cd blog
1515
$ gleam add lustre simplifile filepath
16-
</code></pre></div><p>Since we&#39;re building a static website, our Gleam code only gets run at build time.
16+
</code></pre></div><p><strong>Note</strong>: You can also use <a href="https://hexdocs.pm/lustre_ssg" target="_blank"><code>lustre_ssg</code></a> for
17+
this, as I did when I started out. I ended up switching to a custom build
18+
system as it gave me more flexibility, and it&#39;s about the same amount of code so
19+
I decided to show that here instead.</p><p>Since we&#39;re building a static website, our Gleam code only gets run at build time.
1720
Once we&#39;re viewing it in browser, it&#39;s just static HTML, CSS and other files.</p><p><code>blog.gleam</code> will be our entrypoint, and that&#39;s where we&#39;ll implement our build
1821
script. Let&#39;s start off with a baseline:</p><div class="codeblock"><button class="copy-button" onclick="navigator.clipboard.writeText(`import filepath
1922
import gleam/io

0 commit comments

Comments
 (0)