diff options
author | mjfernez <mjfernez@gmail.com> | 2021-06-17 00:25:03 -0400 |
---|---|---|
committer | mjfernez <mjfernez@gmail.com> | 2021-06-17 00:28:18 -0400 |
commit | 4972877f8ef0e0e3664d3dd0edd651107ddc026f (patch) | |
tree | 2add06d4cd1e8479c7632c7e82f69bc7e5058068 /templates | |
parent | 03e3f1d478866c68be79adb5d555d8d0d77a312b (diff) | |
download | ezcms-4972877f8ef0e0e3664d3dd0edd651107ddc026f.tar.gz |
.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
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 4 | ||||
-rw-r--r-- | templates/site/thoughts/rants/.description | 1 |
2 files changed, 4 insertions, 1 deletions
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 %} -<p>{{ description }}</p> +{% if description %} +{% include cur_path + '/.description' %} +{% endif %} {% if dirs %} <h3>Topics</h3> diff --git a/templates/site/thoughts/rants/.description b/templates/site/thoughts/rants/.description new file mode 100644 index 0000000..33f8ee8 --- /dev/null +++ b/templates/site/thoughts/rants/.description @@ -0,0 +1 @@ +<img src="https://www.pngfind.com/pngs/m/436-4365661_disapproval-guy-text-face-astonished-what-man-disapproval.png" /> |