mirror of
https://github.com/ivabus/www
synced 2025-06-08 11:20:26 +03:00
142 lines
3.2 KiB
HTML
142 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
{{ partial "head.html" . }}
|
|
|
|
<body>
|
|
|
|
{{ partial "navbar.html" . }}
|
|
|
|
<main>
|
|
<section class="teal-bg">
|
|
<div class="container one-box">
|
|
<div class="row">
|
|
<div class="col text-center">
|
|
<h1 class="black display-1">{{ .Title }}</h1>
|
|
<p class="black lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<hr>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col">
|
|
<h2 class="mb-4">Recent Posts</h2>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container blog-list one-box">
|
|
<div class="row">
|
|
<div class="content-area">
|
|
{{ range .Pages }}
|
|
<div class="blog-col col-xl-4 col-lg-4 col-md-6 col-sm-12 col-12 mb-4">
|
|
<a href="{{ .RelPermalink }}">
|
|
<div class="blog-listing">
|
|
{{ if .Params.featured_image }}
|
|
<div class="featured-image" style="background-image: url('{{ .Params.featured_image }}');"></div>
|
|
{{ end }}
|
|
<div class="p-4 pb-5">
|
|
<a href="{{ .RelPermalink }}"><h3>{{ .Title }}</h3></a>
|
|
<span class="grid-gray">{{ .Date.Format "2006-01-02" }}</span>
|
|
<span class="preview-content small">{{ .Content }}</span>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
{{ end }}
|
|
<a href="/">Back to home</a>
|
|
</div>
|
|
<div class="sidebar">
|
|
<h2 class="mb-4">Sidebar</h2>
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
|
|
<ul>
|
|
<li>Item 1</li>
|
|
<li>Item 2</li>
|
|
<li>Item 3</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<footer>
|
|
{{- partial "footer-content.html" . -}}
|
|
{{- partial "footer.html" . -}}
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
<style>
|
|
|
|
.preview-content{
|
|
display: -webkit-box;
|
|
overflow: hidden;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
.featured-image {
|
|
width: 100%;
|
|
height: 100px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
.blog-listing{
|
|
border: 1px solid #949494;
|
|
transition: 0.2s ease-in-out;
|
|
min-height: 400px;
|
|
}
|
|
|
|
.blog-listing:hover{
|
|
background-color: #252525 !important;
|
|
}
|
|
|
|
h3{
|
|
font-size: 28px;
|
|
line-height: 34px;
|
|
}
|
|
|
|
p{
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.content-area {
|
|
flex: 0 0 80%;
|
|
max-width: 80%;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.blog-col {
|
|
flex: 0 0 calc(33.3333% - 1em);
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
|
|
.sidebar {
|
|
flex: 0 0 30%;
|
|
max-width: 20%;
|
|
padding: 1em;
|
|
border-left: 1px solid #ddd;
|
|
}
|
|
|
|
.sidebar ul {
|
|
list-style: none;
|
|
padding-left: 0;
|
|
}
|
|
|
|
.sidebar ul li {
|
|
padding: 0.5em 0;
|
|
}
|
|
</style>
|
|
|
|
</html>
|