diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/index.ejs | 7 | ||||
-rw-r--r-- | views/tags.ejs | 25 |
2 files changed, 30 insertions, 2 deletions
diff --git a/views/index.ejs b/views/index.ejs index 606cdbb..9619339 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -16,8 +16,11 @@ <hr/> <br/> <a class="left-footer">Keywords: </a> - <%- data.keywords %> - <%- data.lastUpdated %> + <% data.keywords.forEach(function(keyword){ %> + <ul> + <li><a href=<%= "/tags/"+ keyword %> target="_self" rel="noreferrer noopener" type="text/html"><%= keyword %></a></li> + </ul> + <% }) %> <br/> <br/> <hr/> diff --git a/views/tags.ejs b/views/tags.ejs new file mode 100644 index 0000000..eeb81fb --- /dev/null +++ b/views/tags.ejs @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width"> + <title>Tag</title> + <link rel="stylesheet" href="/master.css" type="text/css" media="screen" title="no title" charset="utf-8"> + <link rel="alternate" type="application/rss+xml" title="RSS" href="/rss/feed"> + </head> + <body> + <!-- <script>0</script> --> + <br/> + <hr/> + <br/> + <% data.blogPosts.forEach(function(blogPost){ %> + <ul> + <li><a href=<%= "/posts/"+ blogPost.slug %> target="_self" rel="noreferrer noopener" type="text/html"><%= blogPost.slug %></a></li> + </ul> + <% }) %> + <br/> + <br/> + <hr/> + <br/> + </body> +</html> |