braincoded.software

braincoded.software website static files
git clone git://bsandro.tech/braincoded.software
Log | Files | Refs

main.tmpl (3800B)


      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     <meta name="description" content="{{ SITE_TAGLINE }}">
      8     <title>{{ SITE_TITLE }}{% block entry %}{% ifdef TITLE %} - {{ TITLE }}{% endif %}{% endblock %}{% block listing_once %} - {{ SITE_TAGLINE }}{% endblock %}</title>
      9     <link href="{{ BASE_URL }}/assets/bootstrap.min.css" rel="stylesheet" type="text/css">
     10     <link href="{{ BASE_URL }}/assets/custom.css" rel="stylesheet" type="text/css">
     11   </head>
     12   <body>
     13     <div class="navbar navbar-expand-lg fixed-top navbar-dark bg-primary">
     14       <div class="container">
     15         <a class="navbar-brand" href="{{ BASE_URL }}/">{{ SITE_TITLE }}</a>
     16         <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
     17           <span class="navbar-toggler-icon"></span>
     18         </button>
     19         <div class="collapse navbar-collapse" id="navbarResponsive">
     20           <ul class="navbar-nav ml-auto">
     21             <li class="nav-item{% if MENU == "blog" %} active{% endif %}">
     22               <a class="nav-link" href="{{ BASE_URL }}/">Blog</a>
     23             </li>
     24             <li class="nav-item{% if MENU == "humans" %} active{% endif %}">
     25               <a class="nav-link" href="{{ BASE_URL }}/humans/">Humans</a>
     26             </li>
     27             <li class="nav-item{% if MENU == "about" %} active{% endif %}">
     28               <a class="nav-link" href="{{ BASE_URL }}/about/">About</a>
     29             </li>
     30           </ul>
     31         </div>
     32       </div>
     33     </div>
     34     <div class="container">
     35       <div class="row">
     36         <div class="col-md-12">
     37           {% block listing %}
     38           <article>
     39             <h3>{{ TITLE }}</h3>
     40             {{ CONTENT }}
     41             <div class="metadata card bg-light mb-4">
     42               <div class="card-body p-2">
     43                 Author: <a href="mailto:{{ AUTHOR_EMAIL }}">{{ AUTHOR_NAME }}</a><br />
     44                 {% ifdef DATE_FORMATTED %}Published on: {{ DATE_FORMATTED }}<br />{% endif %}
     45               </div>
     46             </div>
     47           </article>
     48           {% endblock %}
     49           {% block listing_once %}
     50           <ul class="pagination justify-content-center">
     51             <li class="page-item{% ifndef PREVIOUS_PAGE %} disabled{% endif %}">
     52               <a class="page-link" href="{% ifdef PREVIOUS_PAGE %}{{ BASE_URL }}/page/{{ PREVIOUS_PAGE }}/{% else %}#{% endif %}">
     53                 &larr; Newer
     54               </a>
     55             </li>
     56             <li class="page-item{% ifndef NEXT_PAGE %} disabled{% endif %}">
     57               <a class="page-link" href="{% ifdef NEXT_PAGE %}{{ BASE_URL }}/page/{{ NEXT_PAGE }}/{% else %}#{% endif %}">
     58                 Older &rarr;
     59               </a>
     60             </li>
     61           </ul>
     62           {% endblock %}
     63           {% block entry %}
     64           <article>
     65             {% ifdef TITLE %}<h3>{{ TITLE }}</h3>{% endif %}
     66             {{ CONTENT }}
     67             {% ifdef IS_POST %}
     68             <div class="metadata card bg-light mb-4">
     69               <div class="card-body p-2">
     70                 Author: <a href="mailto:{{ AUTHOR_EMAIL }}">{{ AUTHOR_NAME }}</a><br />
     71                 {% ifdef DATE_FORMATTED %}Published on: {{ DATE_FORMATTED }}<br />{% endif %}
     72               </div>
     73             </div>
     74             {% endif %}
     75           </article>
     76           {% endblock %}
     77         </div>
     78       </div>
     79     </div>
     80     <hr>
     81     <div class="container">
     82       <div class="row">
     83         <div class="col-md-12">
     84           <p class="copyright text-muted">Powered with NetBSD, made with blogc and nano.</p>
     85         </div>
     86       </div>
     87     </div>
     88   </body>
     89 </html>