proxy github gists and render them on posts
This commit is contained in:
18
templates/gist.html
Normal file
18
templates/gist.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Gist</title>
|
||||
</head>
|
||||
<body>
|
||||
<. for file in files {.>
|
||||
<code> <.= file.get_html_content() .> </code>
|
||||
|
||||
<.}.>
|
||||
<a href="<.= &html_url[1..html_url.len() -1] .>" target="_blank">See on GitHub</a>
|
||||
</body>
|
||||
<style>
|
||||
<. include!("./main.css"); .>
|
||||
</style>
|
||||
</html>
|
Reference in New Issue
Block a user