summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreatradish <[email protected]>2023-04-06 14:46:21 +0800
committereatradish <[email protected]>2023-04-06 14:46:21 +0800
commit797487a55f33a37080809398309f59dfa648e694 (patch)
treef605054643e289ab77efaff922a494c3022896ef
parent3426d73c865761918886381b34c2f6bfe0cc95fd (diff)
downloadSeje2-797487a55f33a37080809398309f59dfa648e694.tar.gz
Seje2-797487a55f33a37080809398309f59dfa648e694.tar.bz2
Seje2-797487a55f33a37080809398309f59dfa648e694.zip
feat: move license field to extra field
-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>