add description meta tag

This commit is contained in:
Mystikfluu
2022-12-01 13:55:48 +01:00
parent 819e97a97d
commit b2995e9939
13 changed files with 45 additions and 9 deletions
+5
View File
@@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>User | IPost</title>
<% if(user.username === undefined) { %>
<meta name="description" content="<%-unauthorized_description%>">
<% } else { %>
<meta name="description" content="view your own user page">
<% } %>
<% if(user.username === undefined) { %>
<script> document.location.href = '/no_login?r='+encodeURIComponent(document.location.pathname) </script>
<% } %>