diff options
| author | Bobby <[email protected]> | 2022-06-26 22:02:17 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-06-26 22:02:17 +0530 |
| commit | 82e67e49f4e15c3e543c49450ab12111723f09c9 (patch) | |
| tree | 51abca59c1516a720a4aa3c3cc4ccb7d98406689 /views | |
| parent | d70a2c9397d25296021871ac088a28054923e970 (diff) | |
| download | thatcomputerscientist-82e67e49f4e15c3e543c49450ab12111723f09c9.tar.xz thatcomputerscientist-82e67e49f4e15c3e543c49450ab12111723f09c9.zip | |
fix domain based URLs
Diffstat (limited to 'views')
| -rw-r--r-- | views/errors/page_error.ejs | 34 | ||||
| -rw-r--r-- | views/partials/header.ejs | 2 | ||||
| -rw-r--r-- | views/partials/sidebar.ejs | 8 |
3 files changed, 14 insertions, 30 deletions
diff --git a/views/errors/page_error.ejs b/views/errors/page_error.ejs index baa97f98..594c1bb7 100644 --- a/views/errors/page_error.ejs +++ b/views/errors/page_error.ejs @@ -1,26 +1,10 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <meta charset="UTF-8" /> - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta - name="description" - content="Welcome to the home of That Computer Scientist. I am Kumar Priyansh. This is my personal website where I share all of my thoughts, ideas, and experiences." - /> - <title>That Computer Scientist - <%= title %></title> - <!-- <link rel="stylesheet" href="css/fonts.css"> --> - <link preload rel="stylesheet" href="../css/main.css" /> - </head> - <body> - <div class="main"> - <div class="errorbox"> - <h1 class="error">Whoops! Encountered an error!</h1> - <p><%= error %></p> - <p>Please click <a href="/">here</a> to go back to the home page.</p> - </div> - </div> +<%- include('../partials/header.ejs') %> <%- include('../partials/sidebar.ejs') %> +<div class="main"> + <div class="errorbox"> + <h1 class="error">Whoops! Encountered an error!</h1> + <p><%= error %></p> + <p>Please click <a href="/">here</a> to go back to the home page.</p> + </div> +</div> - <%- include('../partials/footer.ejs') %> - </body> -</html> +<%- include('../partials/footer.ejs') %> diff --git a/views/partials/header.ejs b/views/partials/header.ejs index dd0817ca..45e44f1b 100644 --- a/views/partials/header.ejs +++ b/views/partials/header.ejs @@ -7,6 +7,6 @@ <meta name="description" content="Welcome to the home of That Computer Scientist. I am Kumar Priyansh. This is my personal website where I share all of my thoughts, ideas, and experiences."> <title>That Computer Scientist - <%= title %></title> <!-- <link rel="stylesheet" href="css/fonts.css"> --> - <link preload rel="stylesheet" href="css/main.css"> + <link preload rel="stylesheet" href="<%= domain %>/css/main.css"> </head> <body>
\ No newline at end of file diff --git a/views/partials/sidebar.ejs b/views/partials/sidebar.ejs index 3c583c6b..0cd27160 100644 --- a/views/partials/sidebar.ejs +++ b/views/partials/sidebar.ejs @@ -1,15 +1,15 @@ <div class="sidebar"> <a href="/" class="title"> - <img src="images/logo.png" alt="That Computer Scientist Logo" width="10rem" height="3.23rem"> + <img src="<%= domain %>/images/logo.png" alt="That Computer Scientist Logo" width="10rem" height="3.23rem"> <!-- Login Box --> </a> <% if (locals.username) { %> <div class="login-box"> <p>Welcome, <%= username %>!</p> - <a href="/auth/logout">Logout</a> + <a href="<%= domain %>/auth/logout">Logout</a> </div> <% } else { %> - <form method="post" action="/auth/login"> + <form method="post" action="<%= domain %>/auth/login"> <fieldset> <legend>Login Area</legend> <label for="username">Username</label> @@ -35,7 +35,7 @@ <% if (locals.username) { %> <li><a href="/account">My Account</a></li> <% } else { %> - <li><a href="/auth/register">Register</a></li> + <li><a href="/register">Register</a></li> <% } %> </ul> </nav> |
