Port a Gitea

This commit is contained in:
2024-03-25 23:05:37 +01:00
parent d75599d8d8
commit d0a58daf5f
17 changed files with 69 additions and 43 deletions

View File

@ -2,15 +2,11 @@
{{ .Content }}
<div class="row center-xs middle-xs">
{{ range .Pages }}
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<img src="/{{ .Params.image }}" alt="Linux Party Image">
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<p><strong>{{ .Title }}</strong></p>
<p>{{ .Description }}</p>
<p>Fecha: {{ partial "time.html" . }}</p>
<p>Lugar: {{ .Params.place }}</p>
<a class="button" href="{{ .Permalink }}">Más info</a>
<p>📅: {{ partial "time.html" . }}</p>
<a class="button" href="{{ .Permalink }}">Info</a>
</div>
</div>
{{ end }}

View File

@ -1,7 +1,7 @@
<p>&copy; 2024 Open Bokeron.</p>
<p>
Made with <span style="color: #e25555;">&#9829;</span> in
<a href="https://bitbucket.org/openbokeron/openbokeron.bitbucket.io">Bitbucket</a>
<a href="https://openbokeron.uma.es/gitea/OpenBokeron/Web">Gitea</a>
</p>
<p>

View File

@ -1,4 +1,4 @@
<img class="icon" src="/assets/logo.jpg" alt="{{ .Title }} logo">
<h1>{{ .Title }}</h1>
<img class="icon" src="/assets/logo.jpg" alt="{{ .Site.Title }} logo">
<h1>{{ .Site.Title }}</h1>
<p>{{ T "motto" }}</p>
{{ partial "nav.html" . }}

View File

@ -1,13 +0,0 @@
{{ define "main" }}
{{ .Content }}
<div class="row center-xs middle-xs">
{{- range where site.RegularPages "Type" "posts" }}
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<p><strong>{{ .Title }}</strong></p>
<p>{{ .Description }}</p>
<p>Fecha: {{ partial "time.html" . }}</p>
<a class="button" href="{{ .Permalink }}">Ver más</a>
</div>
{{- end }}
</div>
{{ end }}

View File

@ -1,5 +0,0 @@
{{ define "main" }}
<p>📅 TODO, DATE</p>
{{ .Content }}
{{ end }}

View File

@ -0,0 +1,21 @@
{{ define "main" }}
{{ .Content }}
<div class="row center-xs middle-xs">
{{ range .Pages.ByDate.Reverse }}
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
<div class="row center-xs middle-xs">
<div class="col-xs">
<img src="/{{ .Params.image }}" alt="Event image">
</div>
<div class="col-xs">
<p><strong>{{ .Title }}</strong></p>
<p>{{ .Description }}</p>
<p>📅: {{ partial "time.html" . }}</p>
<p>📍: {{ .Params.place }}</p>
<a class="button" href="{{ .Permalink }}">Info</a>
</div>
</div>
</div>
{{ end }}
</div>
{{ end }}

View File

@ -0,0 +1,11 @@
{{ define "main" }}
<p class="notice">
{{ .Description }}
<br />
<br />
📅: {{ partial "time.html" . }}
<br />
📍: {{ .Params.place }}
</p>
{{ .Content }}
{{ end }}