-
Notifications
You must be signed in to change notification settings - Fork 16
up to Blades CSS v2.4.3, syntax highlighting via PrismJS, and other visual improvements #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
91af3eb
7d2da3d
d8f6cb7
bb323e3
21776bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not correct, the block here is "pycon" meaning "python console". |
||
| >>> from markupsafe import Markup, escape | ||
|
|
||
| >>> # escape replaces special characters and wraps in Markup | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,22 @@ | ||
| {% extends "layout.html" %} | ||
|
|
||
| {% block extra_head %} | ||
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1/themes/prism-okaidia.min.css" /> | ||
| <script src="https://cdn.jsdelivr.net/npm/prismjs@1/components/prism-core.min.js" defer></script> | ||
| <script src="https://cdn.jsdelivr.net/npm/prismjs@1/plugins/autoloader/prism-autoloader.min.js" defer></script> | ||
| {% endblock %} | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not want to add prism.js. This is a Flask and Jinja app, it's possible to use pygments to style these blocks I just never got around to it. Syntax highlighting for small examples isn't a big priority for me right now. |
||
| {% block page %} | ||
| <section style="text-align: center;"> | ||
| <h1 class="title-replace">{{ page.name }}</h1> | ||
| <img style="height: 6em;" src="/static/content/projects/{{ page.logo }}"> | ||
| <img src="/static/content/projects/{{ page.logo }}" style="height: 6em; background: white; padding-right: 1em; border-radius: 0.6em;"> | ||
| </section> | ||
| <nav> | ||
| <span></span> | ||
| <nav style="justify-content: center;"> | ||
| <ul> | ||
| <li><a href="{{ page.docs }}">Documentation</a></li> | ||
| <li><a href="{{ page.pypi }}">Releases on PyPI</a></li> | ||
| <li><a href="{{ page.github }}">Source on GitHub</a></li> | ||
| </ul> | ||
| <span></span> | ||
| </nav> | ||
| <section> | ||
| {{ page.content_html | safe }} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't matter.