Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
neoascetic committed Jul 17, 2024
1 parent 3cb1661 commit ea7eeb3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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].

Expand Down
9 changes: 5 additions & 4 deletions my-jopa
Original file line number Diff line number Diff line change
Expand Up @@ -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#*-}"
Expand Down
2 changes: 1 addition & 1 deletion pages/index.jsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea7eeb3

Please sign in to comment.