diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/barepost.html | 5 | ||||
-rw-r--r-- | templates/blog.html | 26 | ||||
-rw-r--r-- | templates/default.html | 26 | ||||
-rw-r--r-- | templates/microblog.html | 24 | ||||
-rw-r--r-- | templates/micropost.html | 4 | ||||
-rw-r--r-- | templates/oldpost.html | 27 | ||||
-rw-r--r-- | templates/post.html | 27 | ||||
-rw-r--r-- | templates/postlist.html | 30 | ||||
-rw-r--r-- | templates/postlistitem.html | 3 |
9 files changed, 172 insertions, 0 deletions
diff --git a/templates/barepost.html b/templates/barepost.html new file mode 100644 index 0000000..4a7e2a3 --- /dev/null +++ b/templates/barepost.html @@ -0,0 +1,5 @@ +<div class="bodyitem"> + <a href="$url$"><h2> $title$ </h2></a> + <p>Posted on $date$</p> + $body$ +</div> diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..442b5c1 --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,26 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Yuchen's Blog</title> + <link rel="stylesheet" href="../assets/css/default.css" /> + <script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script> + </head> + <body> + <header> + <span class="logo"> + <a href="blog.html">Yuchen's Blog</a> + </span> + <nav> + <a href="postlist.html">All posts</a><a href="index.html">About</a><a href="blog-feed.xml">Feed</a> + </nav> + </header> + + <div class="main"> + $body$ + <div class="bodyitem"> + <p><a href="postlist.html">older posts</a></p> + </div> + </div> + </body> +</html> diff --git a/templates/default.html b/templates/default.html new file mode 100644 index 0000000..7cd66f1 --- /dev/null +++ b/templates/default.html @@ -0,0 +1,26 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>$title$</title> + <link rel="stylesheet" href="../assets/css/default.css" /> + <script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script> + </head> + <body> + <header> + <span class="logo"> + <a href="index.html">Yuchen Pei</a> + </span> + <nav> + <a href="blog.html">Blog</a><a href="microblog.html">Microblog</a><a href="links.html">Links</a> + </nav> + </header> + + <div class="main"> + <div class="bodyitem"> + $body$ + </div> + </div> + + </body> +</html> diff --git a/templates/microblog.html b/templates/microblog.html new file mode 100644 index 0000000..66ef130 --- /dev/null +++ b/templates/microblog.html @@ -0,0 +1,24 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Yuchen's Microblog</title> + <link rel="stylesheet" href="../assets/css/default.css" /> + <script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script> + </head> + <body> + <header> + <span class="logo"> + <a href="microblog.html">Yuchen's Microblog</a> + </span> + <nav> + <a href="index.html">About</a><a href="microblog-feed.xml">Feed</a> + </nav> + </header> + + <div class="main"> + $body$ + </div> + + </body> +</html> diff --git a/templates/micropost.html b/templates/micropost.html new file mode 100644 index 0000000..0b60430 --- /dev/null +++ b/templates/micropost.html @@ -0,0 +1,4 @@ +<div class="bodyitem"> + <p>$date$</p> + $body$ +</div> diff --git a/templates/oldpost.html b/templates/oldpost.html new file mode 100644 index 0000000..92216fb --- /dev/null +++ b/templates/oldpost.html @@ -0,0 +1,27 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>$title$</title> + <link rel="stylesheet" href="../assets/css/default.css" /> + <script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script> + </head> + <body> + <header> + <span class="logo"> + <a href="../blog.html">Blog</a> + </span> + <nav> + <a href="../index.html">About</a><a href="../postlist.html">All posts</a><a href="../blog-feed.xml">Feed</a> + </nav> + </header> + + <div class="main"> + <div class="bodyitem"> + <h2> $title$ </h2> + <p>Posted on $date$</p> + $body$ + </div> + </div> + </body> +</html> diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..92216fb --- /dev/null +++ b/templates/post.html @@ -0,0 +1,27 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>$title$</title> + <link rel="stylesheet" href="../assets/css/default.css" /> + <script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script> + </head> + <body> + <header> + <span class="logo"> + <a href="../blog.html">Blog</a> + </span> + <nav> + <a href="../index.html">About</a><a href="../postlist.html">All posts</a><a href="../blog-feed.xml">Feed</a> + </nav> + </header> + + <div class="main"> + <div class="bodyitem"> + <h2> $title$ </h2> + <p>Posted on $date$</p> + $body$ + </div> + </div> + </body> +</html> diff --git a/templates/postlist.html b/templates/postlist.html new file mode 100644 index 0000000..52a019b --- /dev/null +++ b/templates/postlist.html @@ -0,0 +1,30 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>All posts</title> + <link rel="stylesheet" href="../assets/css/default.css" /> + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css" integrity="sha384-TEMocfGvRuD1rIAacqrknm5BQZ7W7uWitoih+jMNFXQIbNl16bO8OZmylH/Vi/Ei" crossorigin="anonymous"> + <script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.js" integrity="sha384-jmxIlussZWB7qCuB+PgKG1uLjjxbVVIayPJwi6cG6Zb4YKq0JIw+OMnkkEC7kYCq" crossorigin="anonymous"></script> + <script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/contrib/auto-render.min.js" integrity="sha384-IiI65aU9ZYub2MY9zhtKd1H2ps7xxf+eb2YFG9lX6uRqpXCvBTOidPRCXCrQ++Uc" crossorigin="anonymous"></script> + <script> document.addEventListener("DOMContentLoaded", function() { renderMathInElement(document.body); }); </script> + </head> + <body> + <header> + <span class="logo"> + <a href="blog.html">Yuchen's Blog</a> + </span> + <nav> + <a>All posts</a><a href="index.html">About</a><a href="blog-feed.xml">Feed</a> + </nav> + </header> + + <div class="main"> + <div class="bodyitem"> + <ul class="postlist"> + $body$ + </ul> + </div> + </div> + </body> +</html> diff --git a/templates/postlistitem.html b/templates/postlistitem.html new file mode 100644 index 0000000..eb8cb5f --- /dev/null +++ b/templates/postlistitem.html @@ -0,0 +1,3 @@ +<li class="postlistitem"> + <a href="$url$">$title$</a> - $date$ +</li> |