Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  8. <meta name="description" content="">
  9. <meta name="author" content="">
  10. <link rel="icon" href="../../favicon.ico">
  11.  
  12. <title>My Blog</title>
  13.  
  14. <!-- Bootstrap core CSS -->
  15. <link href="/static/css/bootstrap.min.css" rel="stylesheet">
  16.  
  17. <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  18. <link href="/static/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
  19.  
  20. <!-- Custom styles for this template -->
  21. <link href="/static/css/blog.css" rel="stylesheet">
  22.  
  23. <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
  24. <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
  25. <script src="/static/js/ie-emulation-modes-warning.js"></script>
  26.  
  27. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  28. <!--[if lt IE 9]>
  29. <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  30. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  31. <![endif]-->
  32. </head>
  33.  
  34. <body>
  35.  
  36. <div class="blog-masthead">
  37. <div class="container">
  38. {% block navbarAtas %}
  39. <nav class="blog-nav">
  40. <a class="blog-nav-item active" href="#">Home</a>
  41. <a class="blog-nav-item" href="article/category/">Category</a>
  42. <a class="blog-nav-item" href="#">New features</a>
  43. <a class="blog-nav-item" href="#">Press</a>
  44. <a class="blog-nav-item" href="#">New hires</a>
  45. <a class="blog-nav-item" href="#">About</a>
  46. <a class="blog-nav-item" href="/registrasi/">Sign Up</a>
  47. {% if request.user.is_authenticated %}
  48. <a class="blog-nav-item" href="/logout/">Logout</a>
  49. {% else %}
  50. <a class="blog-nav-item" href="/login/">Login</a>
  51. {% endif %}
  52. </nav>
  53. {% endblock %}
  54. </div>
  55. </div>
  56.  
  57. <div class="container">
  58.  
  59. <div class="blog-header">
  60. <h1 class="blog-title">My Blog</h1>
  61. <p class="lead blog-description">My First Django</p>
  62. </div>
  63.  
  64. <div class="row">
  65.  
  66. <div class="col-sm-8 blog-main">
  67.  
  68. <div class="blog-post">
  69. {% block mainContent %}
  70. {% for posting in post %}
  71. <h2 class="blog-post-title"><a href="article/{{posting.slug}}">{{posting.title}}</a></h2>
  72. <p class="blog-post-meta">{{posting.created_on}}, Category <a href="#">{{posting.category}}</a></p>
  73.  
  74. {{posting.content | safe}}
  75. {% endfor %}
  76. {% endblock %}
  77. </div><!-- /.blog-post -->
  78.  
  79. <nav>
  80. {% block konten %}
  81. <ul class="pager">
  82. <li><a href="#">Previous</a></li>
  83. <li><a href="#">Next</a></li>
  84. </ul>
  85. {% endblock %}
  86. </nav>
  87.  
  88. </div><!-- /.blog-main -->
  89.  
  90. <div class="col-sm-3 col-sm-offset-1 blog-sidebar">
  91. {% block about %}
  92. {% if request.user.is_authenticated %}
  93. <div class="sidebar-module sidebar-module-inset">
  94. <h4>About {{request.user}}</h4>
  95. <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>
  96. </div>
  97. {% endif %}
  98. {% endblock %}
  99. <div class="sidebar-module">
  100. <h4>Category</h4>
  101. {% block CategoryListSide %}
  102. <ol class="list-unstyled">
  103. {% for cat in categori %}
  104. <li><a href="#">{{cat.name}}</a></li>
  105.  
  106. {% endfor %}
  107.  
  108. </ol>
  109. {% endblock %}
  110. </div>
  111.  
  112. <div class="sidebar-module">
  113. <h4>Elsewhere</h4>
  114. <ol class="list-unstyled">
  115. <li><a href="#">GitHub</a></li>
  116. <li><a href="#">Twitter</a></li>
  117. <li><a href="#">Facebook</a></li>
  118. </ol>
  119. </div>
  120. </div><!-- /.blog-sidebar -->
  121.  
  122. </div><!-- /.row -->
  123.  
  124. </div><!-- /.container -->
  125.  
  126. <footer class="blog-footer">
  127. <p>Blog template built for <a href="http://getbootstrap.com">Bootstrap</a> by <a href="https://twitter.com/mdo">@mdo</a>.</p>
  128. <p>
  129. {% block backToTop %}
  130. <a href="#">Back to top</a>
  131. {% endblock %}
  132. </p>
  133. </footer>
  134.  
  135.  
  136. <!-- Bootstrap core JavaScript
  137. ================================================== -->
  138. <!-- Placed at the end of the document so the pages load faster -->
  139. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  140. <script>window.jQuery || document.write('<script src="/static/js/vendor/jquery.min.js"><\/script>')</script>
  141. <script src="/static/js/bootstrap.min.js"></script>
  142. <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  143. <script src="/static/js/ie10-viewport-bug-workaround.js"></script>
  144. </body>
  145. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement