beautify portfolio
This commit is contained in:
parent
387009ead3
commit
bc2a8990be
|
@ -28,6 +28,7 @@
|
||||||
.page-link {
|
.page-link {
|
||||||
line-height: $ascii-line-height-mobile;
|
line-height: $ascii-line-height-mobile;
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
|
||||||
}
|
}
|
||||||
.page-list{
|
.page-list{
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
---
|
|
||||||
title: "Blog"
|
|
||||||
date: 2021-06-06
|
|
||||||
---
|
|
|
@ -5,7 +5,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<ul class="recent-list">
|
<ul class="recent-list">
|
||||||
{{ range first 5 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
|
{{ range first 5 (where .Site.Pages "Type" "post") }}
|
||||||
<li class="recent-block recent-block--right">
|
<li class="recent-block recent-block--right">
|
||||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a> <br>
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a> <br>
|
||||||
<time class="recent-block__time">{{ .Date.Format "02.01.2006" }}</time>
|
<time class="recent-block__time">{{ .Date.Format "02.01.2006" }}</time>
|
||||||
|
|
|
@ -21,10 +21,10 @@
|
||||||
|
|
||||||
{{ partial "header" . }}
|
{{ partial "header" . }}
|
||||||
<main id="main">
|
<main id="main">
|
||||||
<div>
|
<ul class="portfolio">
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
{{ .Render "summary"}}
|
{{ .Render "summary"}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</ul>
|
||||||
</main>
|
</main>
|
||||||
{{ partial "footer" . }}
|
{{ partial "footer" . }}
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
<article class="recent-block recent-block--right">
|
<li class="project">
|
||||||
<div>
|
<h2>
|
||||||
<a class="article__link" href="{{ .Permalink }}">{{ .Title }}</a>
|
<a class="project-name" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
</div>
|
</h2>
|
||||||
|
<p class="project-description">{{.Description}}</p>
|
||||||
<time class="recent-block__time">{{ .Date.Format "02.01.2006 15:04" }}</time>
|
<time class="recent-block__time">{{ .Date.Format "02.01.2006 15:04" }}</time>
|
||||||
|
|
||||||
{{ range .Params.tags }}
|
{{ range .Params.tags }}
|
||||||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</li>
|
||||||
|
|
|
@ -133,7 +133,8 @@ p code, quote code, q code {
|
||||||
@media screen and (max-width: 420px) {
|
@media screen and (max-width: 420px) {
|
||||||
.page-link {
|
.page-link {
|
||||||
line-height: 1.112em;
|
line-height: 1.112em;
|
||||||
white-space: pre-line; }
|
white-space: pre-line;
|
||||||
|
margin-bottom: 5px; }
|
||||||
.page-list {
|
.page-list {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
Loading…
Reference in a new issue