mirror of
https://github.com/ivabus/www
synced 2024-11-25 03:05:07 +03:00
More styling, line clamp
This commit is contained in:
parent
841cbf6946
commit
3692f9f380
2 changed files with 14 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: "Blog"
|
||||
title: "tea leaves"
|
||||
description: "A collection of my thoughts, insights, and experiences."
|
||||
date: 2023-03-27
|
||||
menu: "main"
|
||||
|
|
|
@ -25,8 +25,9 @@
|
|||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li class="blog-listing">
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
<a class="display-6" href="{{ .RelPermalink }}">{{ .Title }}</a><br>
|
||||
<span>{{ .Date.Format "2006-01-02" }}</span>
|
||||
<span class="preview-content">{{ .Content }}</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
@ -42,4 +43,15 @@
|
|||
|
||||
</body>
|
||||
|
||||
<style>
|
||||
|
||||
.preview-content{
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue