Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!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">
- <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
- <meta name="description" content="">
- <meta name="author" content="">
- <link rel="icon" href="../../favicon.ico">
- <title>My Blog</title>
- <!-- Bootstrap core CSS -->
- <link href="/static/css/bootstrap.min.css" rel="stylesheet">
- <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
- <link href="/static/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
- <!-- Custom styles for this template -->
- <link href="/static/css/blog.css" rel="stylesheet">
- <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
- <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
- <script src="/static/js/ie-emulation-modes-warning.js"></script>
- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <![endif]-->
- </head>
- <body>
- <div class="blog-masthead">
- <div class="container">
- {% block navbarAtas %}
- <nav class="blog-nav">
- <a class="blog-nav-item active" href="#">Home</a>
- <a class="blog-nav-item" href="article/category/">Category</a>
- <a class="blog-nav-item" href="#">New features</a>
- <a class="blog-nav-item" href="#">Press</a>
- <a class="blog-nav-item" href="#">New hires</a>
- <a class="blog-nav-item" href="#">About</a>
- <a class="blog-nav-item" href="/registrasi/">Sign Up</a>
- {% if request.user.is_authenticated %}
- <a class="blog-nav-item" href="/logout/">Logout</a>
- {% else %}
- <a class="blog-nav-item" href="/login/">Login</a>
- {% endif %}
- </nav>
- {% endblock %}
- </div>
- </div>
- <div class="container">
- <div class="blog-header">
- <h1 class="blog-title">My Blog</h1>
- <p class="lead blog-description">My First Django</p>
- </div>
- <div class="row">
- <div class="col-sm-8 blog-main">
- <div class="blog-post">
- {% block mainContent %}
- {% for posting in post %}
- <h2 class="blog-post-title"><a href="article/{{posting.slug}}">{{posting.title}}</a></h2>
- <p class="blog-post-meta">{{posting.created_on}}, Category <a href="#">{{posting.category}}</a></p>
- {{posting.content | safe}}
- {% endfor %}
- {% endblock %}
- </div><!-- /.blog-post -->
- <nav>
- {% block konten %}
- <ul class="pager">
- <li><a href="#">Previous</a></li>
- <li><a href="#">Next</a></li>
- </ul>
- {% endblock %}
- </nav>
- </div><!-- /.blog-main -->
- <div class="col-sm-3 col-sm-offset-1 blog-sidebar">
- {% block about %}
- {% if request.user.is_authenticated %}
- <div class="sidebar-module sidebar-module-inset">
- <h4>About {{request.user}}</h4>
- <p>I'am noob <em>i have a big dream</em> you know, what can i do to get my dream comes true ?. Yes, alright, i have to do what i think and keep spirit to do it, because dreaming is nothing without doing :v. MasrayUndefined</p>
- </div>
- {% endif %}
- {% endblock %}
- <div class="sidebar-module">
- <h4>Category</h4>
- {% block CategoryListSide %}
- <ol class="list-unstyled">
- {% for cat in categori %}
- <li><a href="#">{{cat.name}}</a></li>
- {% endfor %}
- </ol>
- {% endblock %}
- </div>
- <div class="sidebar-module">
- <h4>Elsewhere</h4>
- <ol class="list-unstyled">
- <li><a href="#">GitHub</a></li>
- <li><a href="#">Twitter</a></li>
- <li><a href="#">Facebook</a></li>
- </ol>
- </div>
- </div><!-- /.blog-sidebar -->
- </div><!-- /.row -->
- </div><!-- /.container -->
- <footer class="blog-footer">
- <p>Blog template built for <a href="http://getbootstrap.com">Bootstrap</a> by <a href="https://twitter.com/mdo">@mdo</a>.</p>
- <p>
- {% block backToTop %}
- <a href="#">Back to top</a>
- {% endblock %}
- </p>
- </footer>
- <!-- Bootstrap core JavaScript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
- <script>window.jQuery || document.write('<script src="/static/js/vendor/jquery.min.js"><\/script>')</script>
- <script src="/static/js/bootstrap.min.js"></script>
- <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
- <script src="/static/js/ie10-viewport-bug-workaround.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement