Compare commits

..

3 Commits

Author SHA1 Message Date
8a862c65e6 Add date 2025-06-13 15:13:04 -06:00
fb9f237845 Fix license bug 2025-06-13 15:05:19 -06:00
0b36579a36 Homepage improvements 2025-06-13 14:50:10 -06:00
4 changed files with 57 additions and 8 deletions

View File

@@ -128,12 +128,29 @@ section
color: $text-subtle color: $text-subtle
text-align: center text-align: center
#tool-cards
display: flex
flex-wrap: wrap
gap: $spacing-unit
// justify-content: space-between
> article
flex: 1 1 48%
min-width: 300px
max-width: 48%
box-sizing: border-box
@media (max-width: 900px)
> article
flex-basis: 100%
max-width: 100%
article article
background: $surface background: $surface
border-radius: 8px border-radius: 8px
padding: $spacing-unit padding: 1rem 1.5rem
margin: $spacing-unit 0 // margin: $spacing-unit 0
position: relative // position: relative
transition: background 0.5s ease-in-out transition: background 0.5s ease-in-out
&:hover, &:focus &:hover, &:focus
background: $primary-dark background: $primary-dark

View File

@@ -15,6 +15,7 @@
<section> <section>
<h2>Try Something New</h2> <h2>Try Something New</h2>
<p>This list shows a selection of 20 random tools, refreshed every time this site is updated.</p> <p>This list shows a selection of 20 random tools, refreshed every time this site is updated.</p>
<div id="tool-cards">
{{ range $pages }} {{ range $pages }}
<article class="tool-card"> <article class="tool-card">
<h3> <h3>
@@ -23,9 +24,28 @@
<span class="subtitle">{{ .Params.subtitle }}</span> <span class="subtitle">{{ .Params.subtitle }}</span>
{{ end }} {{ end }}
</h3> </h3>
<p>{{ .Content | plainify | truncate 125 }}</p> <p>{{ .Content | plainify | truncate 100 }}</p>
<a href="{{ .RelPermalink }}" style="position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;text-indent:-9999px;overflow:hidden;">{{ .Title }}</a> <a href="{{ .RelPermalink }}" style="position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;text-indent:-9999px;overflow:hidden;">{{ .Title }}</a>
</article> </article>
{{ end }} {{ end }}
</div>
</section> </section>
<div class="time" style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;">
<div class="footer-links" style="text-align: left;">
Help improve this page!<br/>
Submit an
<a href="https://gitmoss.fyi/fmtools/content/issues/new?template=.gitea%2fissue_template%2ffix_tool.md&title=[FIX]%20{{ .Title | urlquery }}" target="_blank">issue</a> or
<a href="https://gitmoss.fyi/fmtools/content/fork" target="_blank">pull request</a>.
</div>
{{ if now }}
<div class="footer-date" style="text-align: right;">
{{ $dateMachine := now | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := now | time.Format "2 January 2006" }}
Made with &#9829; using <a href="https://gohugo.io" target="_blank">Hugo</a> <br/>
Built <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
</div>
{{ end }}
</div>
{{ end }} {{ end }}

View File

@@ -23,10 +23,20 @@
{{ .Content }} {{ .Content }}
</section> </section>
<div class="time" style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;">
<div class="footer-links" style="text-align: left;">
Help improve this page!<br/>
Submit an
<a href="https://gitmoss.fyi/fmtools/content/issues/new?&title=[FIX]%20{{ .Title | urlquery }}" target="_blank">issue</a> or
<a href="https://gitmoss.fyi/fmtools/content/fork" target="_blank">pull request</a>.
</div>
{{ if .Date }} {{ if .Date }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} <div class="footer-date" style="text-align: right;">
{{ $dateHuman := .Date | time.Format ":date_long" }} {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
<p class="time">Updated <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></p> {{ $dateHuman := .Date | time.Format "2 January 2006" }}
Updated <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
</div>
{{ end }} {{ end }}
</div>
{{ end }} {{ end }}

View File

@@ -60,7 +60,9 @@
{{ else }} {{ else }}
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }} {{ end }}
{{ end }} {{ else }}
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
</td> </td>
<td> <td>
{{ $sep := "" }} {{ $sep := "" }}