diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 16 | ||||
-rw-r--r-- | templates/topic.html | 30 |
2 files changed, 46 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..7f7c2cf --- /dev/null +++ b/templates/index.html @@ -0,0 +1,16 @@ +<html lang="en"> +<title>arXiv randomizer</title> +<style> +@media (prefers-color-scheme: dark) { + body { background-color: #121212; color: #d4d4d4; } + a { color: #7878ff; } + a:visited { color: #6464fa; } +} +</style> +<pre> +all possible categories <a href="https://arxiv.org/category_taxonomy">here</a> +examples: +{% for i in taxonomy %} + <a href='/{{ i }}'>{{ i }}</a> +{% endfor %} +</html> diff --git a/templates/topic.html b/templates/topic.html new file mode 100644 index 0000000..b8c9d2c --- /dev/null +++ b/templates/topic.html @@ -0,0 +1,30 @@ +<html lang="en"> +<head> +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width"> +<title>arXiv randomizer</title> +<style> +@media (prefers-color-scheme: dark) { + body { background-color: #121212; color: #d4d4d4; } + a { color: #7878ff; } + a:visited { color: #6464fa; } +} +</style> +<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> +<script> +MathJax = { + tex: { + inlineMath: [['$', '$'], ['\\(', '\\)']] + } +}; +</script> +<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> +</head> + +<body> + <h1>{{title}}</h1> + <h2>{{description}}</h2> + <a href="{{link}}">{{link}}</a> +</body> +</html> + |