104 lines
No EOL
2.5 KiB
HTML
104 lines
No EOL
2.5 KiB
HTML
{% extends "base.html" %}
|
|
{% block head %}
|
|
{{ super() }}
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<!-- This supports light and dark mode automatically. -->
|
|
<link rel="stylesheet" href="https://esm.sh/@wooorm/starry-night@3/style/both">
|
|
<link rel="stylesheet" href="github-markdown.css">
|
|
<!-- <style>
|
|
.markdown-body {
|
|
box-sizing: border-box;
|
|
min-width: 200px;
|
|
max-width: 980px;
|
|
margin: 0 auto;
|
|
padding: 45px;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.markdown-body {
|
|
padding: 15px;
|
|
}
|
|
}
|
|
|
|
/* GitHub-style admonitions */
|
|
.markdown-alert {
|
|
padding: 0.5rem 1rem;
|
|
margin-bottom: 16px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.markdown-alert-title {
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.markdown-alert-title svg {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.markdown-alert-note {
|
|
border-left: 4px solid #0969da;
|
|
background-color: #ddf4ff;
|
|
}
|
|
|
|
.markdown-alert-tip {
|
|
border-left: 4px solid #1a7f37;
|
|
background-color: #dafbe1;
|
|
}
|
|
|
|
.markdown-alert-important {
|
|
border-left: 4px solid #9a6700;
|
|
background-color: #fff8c5;
|
|
}
|
|
|
|
.markdown-alert-warning {
|
|
border-left: 4px solid #9a6700;
|
|
background-color: #fff8c5;
|
|
}
|
|
|
|
.markdown-alert-caution {
|
|
border-left: 4px solid #cf222e;
|
|
background-color: #ffebe9;
|
|
}
|
|
|
|
/* Dark mode support */
|
|
@media (prefers-color-scheme: dark) {
|
|
.markdown-alert-note {
|
|
background-color: rgba(56, 139, 253, 0.15);
|
|
}
|
|
|
|
.markdown-alert-tip {
|
|
background-color: rgba(46, 160, 67, 0.15);
|
|
}
|
|
|
|
.markdown-alert-important,
|
|
.markdown-alert-warning {
|
|
background-color: rgba(187, 128, 9, 0.15);
|
|
}
|
|
|
|
.markdown-alert-caution {
|
|
background-color: rgba(248, 81, 73, 0.15);
|
|
}
|
|
}
|
|
</style> -->
|
|
{% endblock %}
|
|
{% block content %}
|
|
<div class="markdown-body">
|
|
<h1>{{ filename }}</h1>
|
|
<p>
|
|
<strong>Permanent Link:</strong>
|
|
<code>{{ url_for('main.view_file', uri=uri, _external=True) }}</code>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="markdown-body">
|
|
{{ content|safe }}
|
|
</div>
|
|
|
|
<div>
|
|
<button class="glass" href="{{ url_for('main.upload_file') }}">Upload Another Document</button>
|
|
<!-- <button class="glass" href="{{ url_for('main.index') }}">Home</button> -->
|
|
</div>
|
|
{% endblock %} |