Permalink
Switch branches/tags
{{ refName }}
default
Cannot retrieve contributors at this time
0965d5937b
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
News-Website-Second-Year-Project-Copy/views/homepage.handlebars
Go to file- Go to file T
-
Copy path -
Copy permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Home</title> | |
<link href="/homestyle.css" type="text/css" rel="stylesheet"> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<nav class="hotbar"> | |
<a href="/">HOME</a> | |
<section class="dropdown"> | |
<button class="dropdownBtn">CATEGORIES</button> | |
<section name="categories" class="dropdownContent"> | |
<a href="/categories/sport">Sport</a> | |
<a href="/categories/science">Science</a> | |
<a href="/categories/tech">Tech</a> | |
<a href="/categories/world">World</a> | |
<a href="/categories/politics">Politics</a> | |
</section> | |
</section> | |
{{#if loggedIn}} <a href="/upload">UPLOAD NEWS</a> {{/if}} | |
<a href="/logout" class="right">Logout</a> | |
<a href="/login" class="right">Login</a> | |
<a href="/account" class="right">Account</a> | |
<form> | |
<input type="submit" value="search" class="search-btn"> | |
<input type="text" name="q" value="{{query}}"> | |
</form> | |
</nav> | |
<section class="header"> | |
<h1>IN THE NEWS TODAY</h1> | |
</section> | |
<section class="row"> | |
<section class="leftcolumn"> | |
{{#if query}} | |
<p class="search-txt">{{num}} results for {{query}}</p> | |
{{/if}} | |
{{#each articles}} | |
<article class="card"> | |
<a href="/articles/{{this.article_id}}"><h2> {{this.title}}</h2></a> | |
<h5> {{this.summary}}</h5> | |
<a href="/articles/{{this.article_id}}"><img src = "../{{this.image_url}}" style="height:200px;"></a> | |
<h5> by {{this.author}} </h5> | |
<h6> tag: {{this.tag}} </h6> | |
<p> Average Rating: </p> | |
</article> | |
{{/each}} | |
</section> | |
<section class="footer"> | |
<p> ... </p> | |
</section> | |
</body> | |
</html> |
-
Copy lines -
Copy permalink - View git blame
- Reference in new issue