From 98fa3e03b6e29f0bc27aa09221545e4da8aab420 Mon Sep 17 00:00:00 2001 From: MaximilianKohler Date: Tue, 23 Jan 2024 20:46:15 -0800 Subject: [PATCH] Update templating.md with command to fetch templates from repo (#1677) --- docs/docs/content/templating.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/docs/content/templating.md b/docs/docs/content/templating.md index 184d49a4a..3b5c45e5e 100644 --- a/docs/docs/content/templating.md +++ b/docs/docs/content/templating.md @@ -133,7 +133,12 @@ Here is a link for you to click that will be tracked. The above example uses an `if` condition to show one of two messages depending on the value of a subscriber attribute. Many such dynamic expressions are possible with Go templating expressions. ## System templates -System templates are used for rendering public user facing pages such as the subscription management page, and in automatically generated system e-mails such as the opt-in confirmation e-mail. These are bundled into listmonk but can be customized by copying the [static directory](https://github.com/knadh/listmonk/tree/master/static) locally, and passing its path to listmonk with the `./listmonk --static-dir=your/custom/path` flag. +System templates are used for rendering public user-facing pages such as the subscription management page, and in automatically generated system e-mails such as the opt-in confirmation e-mail. These are bundled into listmonk but can be customized by copying the [static directory](https://github.com/knadh/listmonk/tree/master/static) locally, and passing its path to listmonk with the `./listmonk --static-dir=your/custom/path` flag. + +You can fetch the static files with:
+`mkdir -p /home/ubuntu/listmonk/static ; wget -O - https://github.com/knadh/listmonk/archive/master.tar.gz | tar xz -C /home/ubuntu/listmonk/static --strip=2 "listmonk-master/static"` + +[Docker example](https://yasoob.me/posts/setting-up-listmonk-opensource-newsletter-mailing/#custom-static-files), [binary example](https://github.com/knadh/listmonk/blob/master/listmonk-simple.service). ### Public pages