Skip to content
Snippets Groups Projects
Commit 38b281c5 authored by Xingchen Zhou's avatar Xingchen Zhou
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 173 additions and 0 deletions
blog/static/upload/small_01.jpg

963 B

blog/static/upload/small_02.jpg

963 B

blog/static/upload/small_03.jpg

963 B

blog/static/upload/small_04.jpg

963 B

blog/static/upload/small_05.jpg

963 B

blog/static/upload/small_06.jpg

963 B

blog/static/upload/small_07.jpg

963 B

blog/static/upload/small_08.jpg

963 B

blog/static/upload/small_09.jpg

963 B

blog/static/upload/theme1.jpg

74 KiB

blog/static/upload/theme2.jpg

65.7 KiB

File added
{% extends "layout.html" %}
{% block content %}
<section class="section lb m3rem">
<div class="container">
<div class="custombox clearfix">
<h4 class="small-title">About us</h4>
<div class="row">
Software Development Times, better known as SD Times, is a magazine published by D2 Emerge, in both a print version and an on-line electronic edition.
<br./>
It has been published since 2000. The first issue appeared in February 2000. The headquarters is in Melville, New York. Since 2003, it has published an annual award list, the "SD Times 100", which honors the top 100 leaders and innovators in the software development industry, as judged by SD Times' editors.
<br/>
Starting in January 2011, SD Times switched from a bi-monthly to monthly circulation. In July 2017, BZ Media sold SD Times to D2 Emerge, co-founded by then publisher David Lyman and long-time editor-in-chief David Rubenstein.
<br/>
Christina Cardoza was named SD Times' news editor in December 2017 by D2Emerge.
<br/>
<br/>
Reference: https://en.wikipedia.org/wiki/SD_Times
</div>
</div>
</div>
</section>
{% endblock content %}
{% extends'admin/master.html' %}
{% block body %}
{% if current_user.is_admin %}
Welcome to the admin panel {{ current_user.username }}!
{% else %}
Hello, please login as an admin before accessing this panel &nbsp|<a href="{{ url_for('login') }}">Login&nbsp;</a>
{% endif %}
{% endblock %}
{% extends "layout.html" %}
{% block content %}
<!-- {% for post in posts %}
<p><a href="{{ url_for('post', post_id=post.id) }}"><img src="{{ url_for('static', filename='img/' + post.image_file) }}">
"{{ post.title }}"</a>&nbsp
by {{ post.user.username }}</p>
<p>
{% autoescape false %}
{{ post.shortcontent }}...
{% endautoescape %}
</p>
{% endfor %} -->
<div class="page-title db">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<h2> Blog <small class="hidden-xs-down hidden-sm-down">Here you can find all interesting posts</small></h2>
</div><!-- end col -->
<div class="col-lg-4 col-md-4 col-sm-12 hidden-xs-down hidden-sm-down">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ url_for('home') }}">Home</a></li>
<li class="breadcrumb-item active"><a href="{{ url_for('allposts') }}" >All Posts</a></li>
</ol>
</div><!-- end col -->
</div><!-- end row -->
</div><!-- end container -->
</div><!-- end page-title -->
<section class="section lb">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h3>
All posts sort by date
<button><a href="{{ url_for('allposts',sorttype='asc', searchtext='') }}">ascending</a></button>
/
<button><a href="{{ url_for('allposts',sorttype='dsc', searchtext='') }}">descending</a></button>
</h3>
<div class="page-wrapper">
<div class="blog-custom-build">
{% for post in posts %}
<div class="blog-box wow fadeIn">
<div class="post-media">
<a href="{{ url_for('post', post_id=post.id) }}">
<img src="{{ url_for('static', filename='images/' + post.image_file) }}" class="img-fluid">
<div class="hovereffect">
<span></span>
</div>
</a>
</div>
<!-- end media -->
<div class="blog-meta big-meta text-center">
<div class="post-sharing">
<ul class="list-inline">
<li><a href="#" class="fb-button btn btn-primary"><i class="fa fa-facebook"></i> <span class="down-mobile">Share on Facebook</span></a></li>
<li><a href="#" class="tw-button btn btn-primary"><i class="fa fa-twitter"></i> <span class="down-mobile">Tweet on Twitter</span></a></li>
<li><a href="#" class="gp-button btn btn-primary"><i class="fa fa-google-plus"></i></a></li>
</ul>
</div><!-- end post-sharing -->
<h4><a href="{{ url_for('post', post_id=post.id) }}" title="">{{ post.title }}</a></h4>
<!-- <p>
{% autoescape false %}
{{ post.shortcontent }}....
{% endautoescape %}
</p> -->
<!-- <small><a href="marketing-category.html" title="">Make Money</a></small> -->
<small><a href="{{ url_for('post', post_id=post.id) }}" title="">{{post.date}}</a></small>
<small><a href="#" title="">by {{post.user.username}}</a></small>
<!-- <small><a href="#" title=""><i class="fa fa-eye"></i> 2291</a></small> -->
</div><!-- end meta -->
</div><!-- end blog-box -->
<hr class="invis">
{% endfor %}
</div>
<!-- <div class="row">
<div class="col-md-12">
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item">
<a class="page-link" href="#">Next</a>
</li>
</ul>
</nav>
</div>
</div> -->
</div><!-- end col -->
</div><!-- end row -->
</div><!-- end container -->
</section>
<!-- <div class="container">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Sort By <i class="fa fa-fw fa-sort"></i>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="{{ url_for('allposts',sorttype='asc', searchtext='') }}">ascending</a></li>
<li><a href="{{ url_for('allposts',sorttype='dsc', searchtext='') }}">descending</a></li>
</ul>
<ul class="list-group">
{% for post in posts %}
<li class="list-group-item clearfix">
<a href="{{ url_for('post', post_id=post.id) }}">
<img class="img-responsive img-rounded" src="{{ url_for('static', filename='img/' + post.image_file) }}">
<h3 class="list-group-item-heading">
{{ post.title }}
</h3>
</a>&nbsp
<i>by {{ post.user.username }} at {{post.date}}</i>
<p class="list-group-item-text lead">
{% autoescape false %}
{{ post.shortcontent }}
{% endautoescape %}
<a href="{{ url_for('post', post_id=post.id) }}"><small>Details&#8230;</small></a>
</p>
</li>
{% endfor %}
</ul>
</div> -->
{% endblock content %}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment