-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tips views: Adding navbar and category filter
- Loading branch information
Showing
5 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{% extends "base.html" %} {%load static%} {%block content%} | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>HTML 5 Boilerplate</title> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<script src="index.js"></script> | ||
{% for tip in category_filtered_tips %} | ||
<article class="post vt-post"> | ||
<div class="row"> | ||
<div class="col-xs-12 col-sm-5 col-md-5 col-lg-4"> | ||
<div class="post-type post-img"> | ||
<a href="#"><img src="https://bootdey.com/img/Content/avatar/avatar1.png" class="img-responsive" alt="image post"></a> | ||
</div> | ||
<div class="author-info author-info-2"> | ||
<ul class="list-inline"> | ||
<li> | ||
<div class="info"> | ||
<p>Posted on:</p> | ||
<strong>{{ tip.date}}</strong></div> | ||
</li> | ||
<li> | ||
<div class="info"> | ||
<p>Category:</p> | ||
<strong>{{ tip.category }}</strong></div> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="col-xs-12 col-sm-7 col-md-7 col-lg-8"> | ||
<div class="caption"> | ||
<h3 class="md-heading"><a href="#">{{ tip.author }}</a></h3> | ||
<p> {{ tip.text }}</p> | ||
<a class="btn btn-default" href="#" role="button">Read More</a> </div> | ||
</div> | ||
</div> | ||
</article> | ||
{% endfor %} | ||
</body> | ||
</html> | ||
{% endblock %} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -645,4 +645,9 @@ blockquote { | |
|
||
.pagination { | ||
margin: 0px; | ||
} | ||
|
||
a.nav-link{ | ||
display: flex; | ||
color: rgba(255,255,255,.55); | ||
} |
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
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