diff options
author | fabrixxm <fabrix.xm@gmail.com> | 2020-11-24 19:06:04 +0100 |
---|---|---|
committer | fabrixxm <fabrix.xm@gmail.com> | 2020-11-24 19:06:04 +0100 |
commit | c51824906fb2e012de9f2085a8bcde1f0586a04c (patch) | |
tree | c9080d86de2d6ca13229945e727f5eec2670f8b0 | |
parent | e25e873fadbc6f8ea76baea678b2dacbe91d90aa (diff) |
Aggiunge il template 'about.html'
e semplifica leggermente gli altri template
-rw-r--r-- | templates/web/about.html | 13 | ||||
-rw-r--r-- | templates/web/base.html | 2 | ||||
-rw-r--r-- | templates/web/entry.html | 2 | ||||
-rw-r--r-- | templates/web/index.html | 2 |
4 files changed, 14 insertions, 5 deletions
diff --git a/templates/web/about.html b/templates/web/about.html new file mode 100644 index 0000000..cfccb50 --- /dev/null +++ b/templates/web/about.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + + +{% block content %} +<article> + {% if readme %} + {{ readme | safe }} + {% else %} + This collection doesn't have a README.rst or README.txt file: + maybe add one? + {% endif %} +</article> +{% endblock %} diff --git a/templates/web/base.html b/templates/web/base.html index f0b7615..ecf8f06 100644 --- a/templates/web/base.html +++ b/templates/web/base.html @@ -6,7 +6,7 @@ <!-- <link rel="stylesheet" type="text/css" href="links.css"> --> <link rel="shortcut icon" href="favicon.ico"> <link rel="alternate" type="application/rss+xml" title="RSS" href="/rss"> - <title>{% block title %}{% endblock %}</title> + <title>{% block title %}Linkopedia{% endblock %}</title> <style> html { width: 100%; } body { diff --git a/templates/web/entry.html b/templates/web/entry.html index 852f5c8..9c3015d 100644 --- a/templates/web/entry.html +++ b/templates/web/entry.html @@ -1,7 +1,5 @@ {% extends "base.html" %} -{% block title %}Linkopedia{% endblock %} - {% block content %} <article> <header> diff --git a/templates/web/index.html b/templates/web/index.html index e63c185..9683ddb 100644 --- a/templates/web/index.html +++ b/templates/web/index.html @@ -1,7 +1,5 @@ {% extends "base.html" %} -{% block title %}Linkopedia{% endblock %} - {% block content %} <section> {% if q %}<h2>Cerca: '{{ q }}'</h2>{% endif %} |