From ea7eeb3a8b71a0c3d6447fcc2ef139938e7588a1 Mon Sep 17 00:00:00 2001 From: Pavel Puchkin Date: Wed, 17 Jul 2024 11:56:51 +0200 Subject: [PATCH] Typo --- README.md | 2 +- my-jopa | 9 +++++---- pages/index.jsh | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 454a0ea..205a60d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Jopa **Jopa** `[ˈʐopə]` is a very small, but powerful static website -generator writtent in bash. It uses a couple of conventions to +generator written in bash. It uses a couple of conventions to make writing stuff fun and easy. Read more on the [documentation website][docs]. diff --git a/my-jopa b/my-jopa index e4ca893..0dfe7f1 100755 --- a/my-jopa +++ b/my-jopa @@ -2,14 +2,15 @@ source jopa -# drop N- prefix from target names used to keep order save_function() { - local orig_func=$(declare -f $1) - local newname_func="$2${orig_func#$1}" - eval "$newname_func" + local orig_func=$(declare -f $1) + local newname_func="$2${orig_func#$1}" + eval "$newname_func" } save_function read_page _read_page + +# drop N- prefix from target names used to keep order read_page() { _read_page $1 target="${target#*-}" diff --git a/pages/index.jsh b/pages/index.jsh index 5473ca0..64b1ffe 100644 --- a/pages/index.jsh +++ b/pages/index.jsh @@ -3,7 +3,7 @@ title="Documentation" multiline markdown prefix << 'JOPA' **Jopa** `[ˈʐopə]` is a very small, but powerful static website -generator writtent in bash. It uses a couple of conventions to make +generator written in bash. It uses a couple of conventions to make writing stuff fun and easy. The main idea is to [ab]use env variables to do both configuration of a