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

View file

@ -81,30 +81,6 @@ a {
content: "↜ "; 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 { .main-title {
color: red; color: red;
margin-top: 0; margin-top: 0;