From 4972877f8ef0e0e3664d3dd0edd651107ddc026f Mon Sep 17 00:00:00 2001 From: mjfernez Date: Thu, 17 Jun 2021 00:25:03 -0400 Subject: .description is now rendered as html .description was previously read as a text file, but this is cumbersome and limits the user. This allows the user to embed html in their .description files by adding the "cur_path" variable to context. 'index.html' has been updated to render the template located in cur_path if a description file exists --- templates/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index 4bbad1d..714db1c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,7 +1,9 @@ {% extends 'base.html' %} {% block content %} -

{{ description }}

+{% if description %} +{% include cur_path + '/.description' %} +{% endif %} {% if dirs %}

Topics

-- cgit v1.2.3