mirror of
https://github.com/ivabus/www
synced 2024-11-22 07:25:06 +03:00
Styling & content
This commit is contained in:
parent
fb1cae2401
commit
19f3806803
3 changed files with 107 additions and 70 deletions
|
@ -7,90 +7,115 @@
|
||||||
|
|
||||||
{{ partial "navbar.html" . }}
|
{{ partial "navbar.html" . }}
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<section class="teal-bg">
|
<section class="teal-bg">
|
||||||
<div class="container one-box">
|
<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="row">
|
||||||
<div class="col-md-9 pe-4 blog-list one-box">
|
<div class="col text-center">
|
||||||
<h2 class="mb-5">Recent Posts</h2>
|
<h1 class="black display-1">{{ .Title }}</h1>
|
||||||
<div class="row content-area">
|
<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>
|
||||||
{{ range .Pages }}
|
|
||||||
<div class="blog-col col-xl-4 col-lg-4 col-md-6 col-sm-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 small">Published: {{ .Date.Format "02/01/2006" }}</span><br>
|
|
||||||
<span class="grid-gray small">Categories: {{ range .Params.categories }}<a class="grid-gray" href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>, {{ end }}</span>
|
|
||||||
<span class="preview-content small mt-2">{{ .Content }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "sidebar" . }}
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</section>
|
||||||
<footer>
|
<hr>
|
||||||
{{- partial "footer-content.html" . -}}
|
<div class="container">
|
||||||
{{- partial "footer.html" . -}}
|
<div class="row">
|
||||||
</footer>
|
<div class="col-md-9 pe-4 blog-list one-box">
|
||||||
|
<h2 class="mb-5">Recent Posts</h2>
|
||||||
|
<div class="row content-area">
|
||||||
|
{{ range .Pages }}
|
||||||
|
<div class="blog-col col-xl-4 col-lg-4 col-md-6 col-sm-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 small">Published: {{ .Date.Format "02/01/2006" }}</span><br>
|
||||||
|
<span class="grid-gray small">Categories: {{ range .Params.categories }}<a class="grid-gray" href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>, {{ end }}</span>
|
||||||
|
<span class="preview-content small mt-2">{{ trim .Summary 5 | plainify }}</span>
|
||||||
|
<a class="read-more" href="{{ .RelPermalink }}">Read More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ partial "sidebar" . }}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<footer>
|
||||||
|
{{- partial "footer-content.html" . -}}
|
||||||
|
{{- partial "footer.html" . -}}
|
||||||
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
.preview-content{
|
.preview-content {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
-webkit-line-clamp: 3;
|
-webkit-line-clamp: 5;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
}
|
text-overflow: ellipsis;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
.featured-image {
|
.featured-image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-listing{
|
.blog-listing {
|
||||||
border: 1px solid #949494;
|
border: 1px solid #949494;
|
||||||
transition: 0.2s ease-in-out;
|
transition: 0.2s ease-in-out;
|
||||||
min-height: 400px;
|
display: flex;
|
||||||
}
|
flex-direction: column;
|
||||||
|
min-height: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
.blog-listing:hover{
|
.content-wrapper {
|
||||||
background-color: #252525 !important;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3{
|
.blog-col {
|
||||||
font-size: 28px;
|
display: flex;
|
||||||
line-height: 34px;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
p{
|
.blog-listing:hover {
|
||||||
font-size: 14px;
|
background-color: #252525 !important;
|
||||||
line-height: 22px;
|
}
|
||||||
}
|
|
||||||
|
h3 {
|
||||||
|
font-size: 28px;
|
||||||
|
line-height: 34px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.read-more {
|
||||||
|
display: block;
|
||||||
|
margin-top: 10px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #00ffd0;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.read-more:hover{
|
||||||
|
color: #e1e1e1;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
flex: 0 0 30%;
|
flex: 0 0 30%;
|
||||||
|
|
|
@ -50,4 +50,8 @@
|
||||||
img{
|
img{
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
code{
|
||||||
|
color:#ff7ba7;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -35,4 +35,12 @@
|
||||||
line-height:12px;
|
line-height:12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-list a{
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-list a:hover{
|
||||||
|
color: #00ffd0;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue