diff --git a/.gitmodules b/.gitmodules index 67f2634..5c73323 100644 --- a/.gitmodules +++ b/.gitmodules @@ -31,3 +31,6 @@ [submodule "vendor/github.com/imdario/mergo"] path = vendor/github.com/imdario/mergo url = https://github.com/imdario/mergo +[submodule "vendor/github.com/otiai10/copy"] + path = vendor/github.com/otiai10/copy + url = https://github.com/otiai10/copy diff --git a/example/assets/img/logo.png b/example/assets/img/logo.png new file mode 100644 index 0000000..164a187 Binary files /dev/null and b/example/assets/img/logo.png differ diff --git a/example/config.yml b/example/config.yml index 23ce083..7a9e071 100644 --- a/example/config.yml +++ b/example/config.yml @@ -2,6 +2,9 @@ Webserver: Type: "apache" # generates .htaccess Assets: - Path: "/assets" - DeployType: "symlink" # symlink, copy or move - FixTemplate: True # change path in html templates, no used + FromPath: "assets" + ToPath: "assets" + Action: "copy" # symlink, copy or move + FixTemplate: # change path in html templates, no used + Find: "\\.\\./assets/" + Replace: "" diff --git a/example/templates/index.html b/example/templates/index.html index 9a6a54c..59ba59f 100644 --- a/example/templates/index.html +++ b/example/templates/index.html @@ -14,6 +14,7 @@
+
main Level 1