Styling the Front Page
<!--views/home.tpl-->
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>{{data['blogTitle']}}</title>
    <script src="/static/scripts/jQuery.js"></script>
    <script src="/static/scripts/main.js"></script>
    <link href="/static/styles/main.css" rel="stylesheet"></link>
    <link href="/static/images/site_logo.png" rel="icon" ></link>
    <link href="/static/fonts/setup.css" rel="stylesheet"></link>
  </head>
  <body>
    <div id="site">
      <header id="blog-header">
        <div class="region">
          <a href="/"><img src="/static/images/site_logo.png"/></a>
          <a id="blog-title" href="/">{{data['blogTitle']}}</a>
          <a>
            <form class="search" action="/search" method="post">
              <input type="text"  placeholder="Search.." name="query" required>
              <button type="submit">ស្វែង​រក</button>
            </form>
          </a>
          <a id="log-in" href="#">ចូលក្នុងប្រព័ន្ធ</a>
        </div><!--region-->
      </header>
      <div id="header-border"></div>
/*static/css/main.css*/
a{
  text-decoration: none;
}

a:hover{
  color: rgb(35, 118, 226);
}

.region{
  max-width: 1100px;
  margin: 0 auto;
}

body{
  margin: 0;
  padding: 0;
  font: 14px/1.5 OdorMeanChey;
  background: lightgrey;
}

#blog-header{
  background: lavender;
  margin: 0;
  padding: 0;
}

#blog-header div{
  padding: 7px;
  display: grid;
  grid-template-columns: 40px auto auto auto;
  align-items: center;
}

#blog-header #blog-title{
  font: 30px/1.5 Moul;
}

#blog-header img{
  max-height: 40px;
}

#blog-header #log-in{
  text-align: right;
}

#blog-header form.search{
  display:grid;
  grid-template-columns: 75% 25%;
}
#blog-header form.search input[type=text] {
  padding: 7px 10px;
  box-sizing: border-box;
}
#blog-header form.search button {
  cursor: pointer;
  width:100%;
  font: 14px/1.5 OdorMeanChey;
}
#blog-header form.search button:hover {
  opacity:.6;
}

#header-border{
  background: rgb(190, 189, 189);
  height: 20px;
}

#main{
  display: grid;
  grid-template-columns: 20% calc(80% - 15px);
  grid-gap: 15px;
  margin-top: 15px;
}

@media only screen and (max-width: 600px){
  #blog-header div{
    
    grid-template-columns: 100%;
    text-align: center;
  }

  #blog-header form.search{
    padding: 10px;
  }

  #blog-header #log-in{
    text-align: center;
  }

  #main{
    grid-template-columns: 100%;
  }
}
%include('./partials/header.tpl')



%include('./partials/sidebar.tpl')
content
%include('./partials/footer.tpl')



<style>
  .footer{
    min-height: 150px;
    background: lavender;
    padding: 10px;
    box-sizing: border-box;
    margin: 15px auto;
  }
</style>

      <footer class="footer region">
        footer
      </footer>
    </div><!--site-->
  </body>
</html>

GitHub: https://github.com/Sokhavuth/kwblog
Heroku: https://khmerweb-kwblog.herokuapp.com/