forked from amfoss/club-website-2018
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extended base.html with blogAggregator app
- Loading branch information
Showing
3 changed files
with
188 additions
and
433 deletions.
There are no files selected for viewing
228 changes: 73 additions & 155 deletions
228
BlogFeedAggregator/templates/BlogFeedAggregator/blog.html
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 |
---|---|---|
@@ -1,156 +1,74 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
{% extends 'base/base.html' %} | ||
{% load static %} | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
|
||
<title>FOSS@Amrita. Code | Share | Grow</title> | ||
|
||
<!-- Favicons --> | ||
<link rel="shortcut icon" href="{% static 'home/assets/images/favicon.png' %}"> | ||
<link rel="apple-touch-icon" href="{% static 'home/assets/images/apple-touch-icon.png' %}"> | ||
<link rel="apple-touch-icon" sizes="72x72" href="{% static 'home/assets/images/apple-touch-icon-72x72.png' %}"> | ||
<link rel="apple-touch-icon" sizes="114x114" href="{% static 'home/assets/images/apple-touch-icon-114x114.png' %}"> | ||
<!-- Fonts --> | ||
<link href='https://fonts.googleapis.com/css?family=Roboto+Condensed:400,300,400italic,700' rel='stylesheet' type='text/css'> | ||
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700' rel='stylesheet' type='text/css'> | ||
|
||
<!-- Fonts --> | ||
<link href='https://fonts.googleapis.com/css?family=Roboto+Condensed:400,300,400italic,700' rel='stylesheet' type='text/css'> | ||
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700' rel='stylesheet' type='text/css'> | ||
|
||
<!-- Bootstrap core CSS --> | ||
<link href="{% static 'home/assets/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet"> | ||
|
||
<!-- Icon Fonts --> | ||
<link href="{% static 'home/assets/css/font-awesome.min.css' %}" rel="stylesheet"> | ||
<link href="{% static 'home/assets/css/et-line-font.min.css' %}" rel="stylesheet"> | ||
|
||
<!-- Plugins --> | ||
<link href="{% static 'home/assets/css/magnific-popup.css' %}" rel="stylesheet"> | ||
<link href="{% static 'home/assets/css/owl.carousel.css' %}" rel="stylesheet"> | ||
<link href="{% static 'home/assets/css/superslides.css' %}" rel="stylesheet"> | ||
<link href="{% static 'home/assets/css/vertical.min.css' %}" rel="stylesheet"> | ||
|
||
<!-- Template core CSS --> | ||
<link href="{% static 'home/assets/css/template.css' %}" rel="stylesheet"> | ||
</head> | ||
|
||
<body> | ||
|
||
<!-- PRELOADER --> | ||
<div class="page-loader"> | ||
<div class="loader">Loading...</div> | ||
</div> | ||
<!-- /PRELOADER --> | ||
|
||
<!-- Incudes navigation bar. --> | ||
{% include 'home/../../../Home/templates/base/side-nav.html' %} | ||
|
||
<!-- WRAPPER --> | ||
<div class="wrapper"> | ||
|
||
<!-- HERO --> | ||
<section id="hero" class="module-hero bg-dark-30" data-background="{% static 'BlogFeedAggregator/assets/images/mike-giles-wallpape.jpg' %}"> | ||
|
||
<!-- HERO TEXT --> | ||
<div class="hero-caption"> | ||
<div class="hero-text"> | ||
<h1 class="hero-title font-alt">Blog posts</h1> | ||
<p class="hero-subtitle font-serif">Our latest news & articles of all the foss members</p> | ||
</div> | ||
</div> | ||
<!-- /HERO TEXT --> | ||
|
||
</section> | ||
<!-- /HERO --> | ||
|
||
<!-- BLOG --> | ||
<section class="module"> | ||
<div class="container-fluid container-custom"> | ||
<div class="row"> | ||
<div class="col-sm-8 col-sm-offset-2"> | ||
{% for article in object_list %} | ||
|
||
<!-- POST --> | ||
<article class="post"> | ||
<div class="post-header"> | ||
<h2 class="post-title font-alt"><a href="{{article.url}}"> →{{ article.title }}</a></h2> | ||
<div class="post-meta"> | ||
Published by <a href="#"> {{article.author}}</a> at {{article.publication_date}} | ||
</div> | ||
</div> | ||
<div class="post-content"> | ||
<p>{{article.description | safe}}</p> | ||
</div> | ||
</article> | ||
<!-- POST --> | ||
|
||
{% endfor %} | ||
|
||
<!-- PAGINATION --> | ||
<div align="center"> | ||
{% if is_paginated %} | ||
<ul class="pagination"> | ||
{% if page_obj.has_previous %} | ||
<li><a href="?page={{ page_obj.previous_page_number }}">«</a></li> | ||
{% else %} | ||
<li class="disabled"><span>«</span></li> | ||
{% endif %} {% for i in paginator.page_range %} {% if page_obj.number == i %} | ||
<li class="active"><span>{{ i }} <span class="sr-only">(current)</span></span> | ||
</li> | ||
{% else %} | ||
<li><a href="?page={{ i }}">{{ i }}</a></li> | ||
{% endif %} {% endfor %} {% if page_obj.has_next %} | ||
<li><a href="?page={{ page_obj.next_page_number }}">»</a></li> | ||
{% else %} | ||
<li class="disabled"><span>»</span></li> | ||
{% endif %} | ||
</ul> | ||
{% endif %} | ||
</div> | ||
<!-- /PAGINATION --> | ||
|
||
</div> | ||
<!-- .col-* --> | ||
</div> | ||
<!-- .row --> | ||
</div> | ||
</section> | ||
<!-- /BLOG --> | ||
|
||
<hr class="divider"> | ||
|
||
|
||
<!-- Footer section --> | ||
{% include 'home/../../../Home/templates/base/footer.html' %} | ||
|
||
</div> | ||
<!-- /WRAPPER --> | ||
|
||
<!-- JAVASCRIPT FILES --> | ||
<script src="{% static 'home/assets/js/jquery-2.1.4.min.js' %}"></script> | ||
<script src="{% static 'home/assets/bootstrap/js/bootstrap.min.js' %}"></script> | ||
<script src="{% static 'home/assets/js/jquery.superslides.min.js' %}"></script> | ||
<script src="{% static 'home/assets/js/jquery.mb.YTPlayer.min.js' %}"></script> | ||
<script src="{% static 'home/assets/js/imagesloaded.pkgd.js' %}"></script> | ||
<script src="{% static 'home/assets/js/isotope.pkgd.min.js' %}"></script> | ||
<script src="{% static 'home/assets/js/jquery.magnific-popup.min.js' %}"></script> | ||
<script src="{% static 'home/assets/js/owl.carousel.min.js' %}"></script> | ||
<script src="{% static 'home/assets/js/jquery.fitvids.js' %}"></script> | ||
<script src="{% static 'home/assets/js/jqBootstrapValidation.js' %}"></script> | ||
<script src="http://maps.google.com/maps/api/js?sensor=true"></script> | ||
<script src="{% static 'home/assets/js/gmap3.min.js' %}"></script> | ||
<script src="{% static 'home/assets/js/appear.js' %}"></script> | ||
<script src="{% static 'home/assets/js/smoothscroll.js' %}"></script> | ||
<script src="{% static 'home/assets/js/submenu-fix.js' %}"></script> | ||
<script src="{% static 'home/assets/js/contact.js' %}"></script> | ||
<script src="{% static 'home/assets/js/custom.js' %}"></script> | ||
|
||
</body> | ||
|
||
</html> | ||
{% block content %} | ||
<!-- HERO --> | ||
<section id="hero" class="module-hero bg-dark-30" | ||
data-background="{% static 'BlogFeedAggregator/assets/images/mike-giles-wallpape.jpg' %}"> | ||
|
||
<!-- HERO TEXT --> | ||
<div class="hero-caption"> | ||
<div class="hero-text"> | ||
<h1 class="hero-title font-alt">Blog posts</h1> | ||
<p class="hero-subtitle font-serif">Our latest news & articles of all the foss members</p> | ||
</div> | ||
</div> | ||
<!-- /HERO TEXT --> | ||
|
||
</section> | ||
<!-- /HERO --> | ||
|
||
<!-- BLOG --> | ||
<section class="module"> | ||
<div class="container-fluid container-custom"> | ||
<div class="row"> | ||
<div class="col-sm-8 col-sm-offset-2"> | ||
{% for article in object_list %} | ||
|
||
<!-- POST --> | ||
<article class="post"> | ||
<div class="post-header"> | ||
<h2 class="post-title font-alt"><a href="{{ article.url }}"> →{{ article.title }}</a> | ||
</h2> | ||
<div class="post-meta"> | ||
Published by <a href="#"> {{ article.author }}</a> at {{ article.publication_date }} | ||
</div> | ||
</div> | ||
<div class="post-content"> | ||
<p>{{ article.description | safe }}</p> | ||
</div> | ||
</article> | ||
<!-- POST --> | ||
|
||
{% endfor %} | ||
|
||
<!-- PAGINATION --> | ||
<div align="center"> | ||
{% if is_paginated %} | ||
<ul class="pagination"> | ||
{% if page_obj.has_previous %} | ||
<li><a href="?page={{ page_obj.previous_page_number }}">«</a></li> | ||
{% else %} | ||
<li class="disabled"><span>«</span></li> | ||
{% endif %} {% for i in paginator.page_range %} {% if page_obj.number == i %} | ||
<li class="active"><span>{{ i }} <span class="sr-only">(current)</span></span> | ||
</li> | ||
{% else %} | ||
<li><a href="?page={{ i }}">{{ i }}</a></li> | ||
{% endif %} {% endfor %} {% if page_obj.has_next %} | ||
<li><a href="?page={{ page_obj.next_page_number }}">»</a></li> | ||
{% else %} | ||
<li class="disabled"><span>»</span></li> | ||
{% endif %} | ||
</ul> | ||
{% endif %} | ||
</div> | ||
<!-- /PAGINATION --> | ||
|
||
</div> | ||
<!-- .col-* --> | ||
</div> | ||
<!-- .row --> | ||
</div> | ||
</section> | ||
<!-- /BLOG --> | ||
{% endblock %} |
Oops, something went wrong.