diff --git a/content/projects/jinja.md b/content/projects/jinja.md index 41c0530..22728ae 100644 --- a/content/projects/jinja.md +++ b/content/projects/jinja.md @@ -27,7 +27,7 @@ Jinja's philosophy is that while application logic belongs in Python if possible, it shouldn't make the template designer's job difficult by restricting functionality too much. -```jinja +```jinja2 {% extends "base.html" %} {% block title %}Members{% endblock %} {% block content %} diff --git a/content/projects/markupsafe.md b/content/projects/markupsafe.md index 3e68c1a..b0303a6 100644 --- a/content/projects/markupsafe.md +++ b/content/projects/markupsafe.md @@ -8,7 +8,7 @@ to use in HTML and XML. Characters that have special meanings are replaced so that they display as the actual characters. This mitigates injection attacks, meaning untrusted user input can safely be displayed on a page. -```pycon +```python >>> from markupsafe import Markup, escape >>> # escape replaces special characters and wraps in Markup diff --git a/content/projects/quart.md b/content/projects/quart.md index 497e031..7ff3ff6 100644 --- a/content/projects/quart.md +++ b/content/projects/quart.md @@ -22,7 +22,7 @@ async def greet(): return 'Hello, World!' ``` -``` -$ export QUART_APP=hello:app -$ quart run +```sh +export QUART_APP=hello:app +quart run ``` diff --git a/src/pallets/static/style.css b/src/pallets/static/style.css index 307f211..ab67483 100644 --- a/src/pallets/static/style.css +++ b/src/pallets/static/style.css @@ -28,14 +28,6 @@ footer { align-items: start; } -footer ul { - display: grid; -} - -footer ul li { - list-style-type: none; -} - .title-replace { position: absolute; width: 1px; diff --git a/src/pallets/templates/index.html b/src/pallets/templates/index.html index 3637d2a..c4365a3 100644 --- a/src/pallets/templates/index.html +++ b/src/pallets/templates/index.html @@ -4,13 +4,13 @@
{{ page.content_html | safe }}
-
+
{% for title in ("Flask", "Quart", "Jinja", "Click", "Werkzeug", "ItsDangerous", "MarkupSafe") %} {% set name = title.lower() %} -

- - {{ title }} -

+ + + {{ title }} + {% endfor %}
{% endblock %} diff --git a/src/pallets/templates/layout.html b/src/pallets/templates/layout.html index b42ba8c..838c42f 100644 --- a/src/pallets/templates/layout.html +++ b/src/pallets/templates/layout.html @@ -6,7 +6,7 @@ Pallets - + {% block extra_head %}{% endblock %} @@ -29,7 +29,7 @@
{% block page %}{% endblock %}
-