site/themes/hugo-theme-console/layouts/index.html

43 lines
1.3 KiB
HTML
Raw Normal View History

2024-01-21 21:56:08 +00:00
{{ define "main" }}
<h1>About</h1>
<p>
2024-01-29 21:07:17 +00:00
This site's main purpose is to document my projects, coding, things i learn and overall my journey in the world of software development. One day, with enough knowledge, patiente and hard work (or, most likely, by pure chance) these contents will prove to be useful to someone. <a href="about/">(more)</a>
2024-01-21 21:56:08 +00:00
</p>
<br/>
<h1>Latest posts</h1>
<div class="posts-list">
{{ with .Site.GetPage "/posts" }}
2024-01-29 21:07:17 +00:00
{{ range first 4 (sort .Data.Pages "Date" "desc" (where .Pages ".Params.private" "!=" true))}}
2024-01-21 21:56:08 +00:00
<div class="post">
<p>
<div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div>
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
{{ .Summary }}
</p>
</div>
{{ end }}
{{ end }}
</div>
<!--<h1>Latest photos</h1>
<div class="image-grid">
{{ with .Site.GetPage "/photos" }}
{{ range first 3 (sort .Data.Pages "Date" "desc")}}
<a href="{{ .Permalink }}" title="{{ .Title }}">
{{ $image := .Page.Resources.GetMatch .Params.image }}
{{ with $image }}
{{ $thumb := .Resize "400x" }}
<img src="{{ $thumb.RelPermalink }}" alt="{{ .Title }}" class="img-responsive">
{{end}}
</a>
{{ end }}
{{ end }}
</div>-->
{{ end }}