Mi webring: hacer más simple
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

inspirado en https://j3s.sh
This commit is contained in:
Cat /dev/Nulo 2023-04-16 14:22:30 -03:00
parent 7365d9468c
commit 67dbeae4e9
2 changed files with 7 additions and 32 deletions

View file

@ -1,21 +1,20 @@
#!/usr/bin/env lua5.1
#!/usr/bin/env lua
local template = [[
<!-- License-Id: CC0-1.0 -->
<section class="webring">
<section class="articles">
<ul>
{{range .Articles}}
<div class="article">
<h4 class="title">
<a href="{{.Link}}" target="_blank" rel="noopener">{{.Title}}</a>
</h4>
<p class="summary">{{.Summary}}</p>
<li class="article">
<a href="{{.Link}}" target="_blank" rel="noopener">{{.Title}}</a>
<small class="source">
via <a href="{{.SourceLink}}">{{.SourceTitle}}</a>
</small>
<small class="date">{{.Date | datef "January 2, 2006"}}</small>
</div>
<small class="date">({{.Date | datef "January 2, 2006"}})</small>
</li>
{{end}}
</ul>
</section>
<p class="attribution">
Generado usando

View file

@ -81,30 +81,6 @@ a {
content: "↜ ";
}
.webring .articles {
display: flex;
flex-wrap: wrap;
}
.webring .title {
margin: 0;
}
.webring .article {
flex: 1 1 0;
display: flex;
flex-direction: column;
margin: 0.5rem;
padding: 0.5rem;
min-width: 10rem;
}
.webring .summary {
font-size: 0.8rem;
flex: 1 1 0;
}
.webring .attribution {
text-align: right;
font-size: 0.8rem;
}
.main-title {
color: red;
margin-top: 0;