summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md8
-rw-r--r--templates/base.html2
2 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4b52ded..c6a7de4 100644
--- a/README.md
+++ b/README.md
@@ -61,3 +61,11 @@ year = 2019
month = 11
day = 03
```
+
+### License
+
+Set a field in `extra` with a key of `license`:
+
+```toml
+license = "@ 宇宙眼睛人"
+```
diff --git a/templates/base.html b/templates/base.html
index 31623a7..793efad 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -65,7 +65,7 @@
{% endblock %}
</main>
{% block footer %}
- <p class="license">{{ config.license | default(value='') }}</p>
+ <p class="license">{{ config.extra.license | default(value='') }}</p>
{% endblock %}
</body>
</html>