pub const TEMPLATE_MARKDOWN: &str = "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <title>{{ title }}</title>\n <style>\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n }\n body {\n font-family:\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n \"Segoe UI\",\n sans-serif;\n background: #f5efe4;\n color: #2e2416;\n line-height: 1.6;\n }\n main {\n max-width: 860px;\n margin: 2.5rem auto;\n padding: 0 1.5rem 4rem;\n background: #fdfaf5;\n border: 1px solid #c9baa8;\n border-radius: 6px;\n }\n main h1,\n main h2,\n main h3,\n main h4,\n main h5,\n main h6 {\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n line-height: 1.3;\n color: #2e2416;\n }\n main h1 {\n font-size: 1.9rem;\n border-bottom: 2px solid #c9baa8;\n padding: 1rem 1.5rem 0.4rem;\n margin-left: -1.5rem;\n margin-right: -1.5rem;\n }\n main h2 {\n font-size: 1.4rem;\n border-bottom: 1px solid #ddd4c4;\n padding-bottom: 0.3rem;\n }\n main h3 {\n font-size: 1.15rem;\n }\n main p {\n margin-bottom: 1em;\n }\n main a {\n color: #7a4429;\n }\n main a:hover {\n color: #a05a3a;\n }\n main img {\n max-width: 100%;\n height: auto;\n }\n main pre {\n background: #eae2d4;\n border: 1px solid #c9baa8;\n border-radius: 5px;\n padding: 1em 1.25em;\n overflow-x: auto;\n margin-bottom: 1em;\n font-size: 0.875em;\n }\n main code {\n font-family:\n \"SFMono-Regular\", Consolas, \"Liberation Mono\", Menlo,\n monospace;\n background: #eae2d4;\n padding: 0.15em 0.4em;\n border-radius: 3px;\n font-size: 0.875em;\n }\n main pre code {\n background: none;\n padding: 0;\n font-size: inherit;\n }\n main ul,\n main ol {\n padding-left: 1.5em;\n margin-bottom: 1em;\n }\n main li {\n margin-bottom: 0.2em;\n }\n main table {\n border-collapse: collapse;\n margin-bottom: 1em;\n width: 100%;\n }\n main th,\n main td {\n border: 1px solid #c9baa8;\n padding: 0.4em 0.75em;\n text-align: left;\n }\n main th {\n background: #ede5d8;\n font-weight: 600;\n }\n main blockquote {\n border-left: 4px solid #c9baa8;\n padding: 0.5em 1em;\n margin: 0 0 1em;\n color: #7a6855;\n font-style: italic;\n }\n .content {\n padding: 1.5rem;\n }\n </style>\n </head>\n <body>\n <main>\n <div class=\"content\">\n {{ content | safe }}\n </div>\n </main>\n </body>\n</html>\n";Expand description
The default Tera template used to wrap rendered Markdown content in a
complete HTML5 document. Exposed as a pub const so that abbaye dump-theme can write it to .abbaye/theme/markdown.html.j2.
Template variables:
{{ title }}— plain-text page title (auto-escaped by Tera).{{ content | safe }}— the rendered HTML body fragment.