mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
* Stubbed out TemplateView for rendering markdown files * Added a BoostRenderer class to parse the markdown files to support the first iteration of a youtube shortcode and also a Pygments renderer for code blocks. * Added default styles for some common markup so the rendered markdown looks better. The pygments renderer is set to use Solarized Dark right now because that’s the closest I see that matches the design of the site. This can be changed in the class.
19 lines
447 B
HTML
19 lines
447 B
HTML
{% extends "base.html" %}
|
|
|
|
{% load static %}
|
|
|
|
{% block title %}{{ frontmatter.title }}{% endblock %}
|
|
{% block description %}{{ frontmatter.description }}{% endblock %}
|
|
{% block keywords %}{{ frontmatter.keywords }}{% endblock %}
|
|
{% block author %}{{ frontmatter.author }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="py-0 md:py-6 mb-3 px-3 md:px-0">
|
|
|
|
<div class="mb-6 md:mb-0">
|
|
{{ content|safe }}
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock %}
|