diff --git a/README.md b/README.md index fc580bb..db435ba 100644 --- a/README.md +++ b/README.md @@ -44,3 +44,12 @@ The alternative: from theme_153957 import theme theme = theme.get_path() plugins = ['theme_153957.full_menu', …] + + +### Wrapping album + +Use the settings `head`, `body_prefix`, and `body_suffix` to add additional +code to the templates. The value of `head` is appended to the `head` element, +the `body` settings are placed just after the body opening tag (`prefix`) and +just before the closing body tag (`suffix`). This allows embedding the album +in your own website. diff --git a/theme_153957/templates/base.html b/theme_153957/templates/base.html index d305913..f9edcd4 100644 --- a/theme_153957/templates/base.html +++ b/theme_153957/templates/base.html @@ -11,8 +11,10 @@ + {{ settings.head|default('') }} + {{ settings.body_prefix|default('') }}
{% if album.gallery.full_tree %} + {{ settings.body_suffix|default('') }}