Add device scale meta to md directory listing pages.
This commit is contained in:
parent
c782831a6e
commit
21cd407070
1 changed files with 12 additions and 1 deletions
|
@ -635,7 +635,18 @@ def markdown_flask(core_filename, port, *args, **kwargs):
|
||||||
print(relative)
|
print(relative)
|
||||||
a = f'<p><a href="/{relative}">{child.basename}</a></p>'
|
a = f'<p><a href="/{relative}">{child.basename}</a></p>'
|
||||||
atags.append(a)
|
atags.append(a)
|
||||||
page = '\n'.join(atags)
|
atags = '\n'.join(atags)
|
||||||
|
page = f'''
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{atags}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
'''.strip()
|
||||||
return page
|
return page
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue