Hugo port
This commit is contained in:
20
layouts/_default/baseof.html
Normal file
20
layouts/_default/baseof.html
Normal file
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
|
||||
|
||||
<head>
|
||||
{{ partial "head.html" . -}}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
{{ partial "header.html" . -}}
|
||||
</header>
|
||||
<main>
|
||||
{{- block "main" . }}{{- end -}}
|
||||
</main>
|
||||
<footer>
|
||||
{{ partial "footer.html" . -}}
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
3
layouts/_default/index.html
Normal file
3
layouts/_default/index.html
Normal file
@ -0,0 +1,3 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
17
layouts/_default/list.html
Normal file
17
layouts/_default/list.html
Normal file
@ -0,0 +1,17 @@
|
||||
{{ define "main" }}
|
||||
{{ .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>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
3
layouts/_default/single.html
Normal file
3
layouts/_default/single.html
Normal file
@ -0,0 +1,3 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
11
layouts/partials/footer.html
Normal file
11
layouts/partials/footer.html
Normal file
@ -0,0 +1,11 @@
|
||||
<p>© 2024 Open Bokeron.</p>
|
||||
<p>
|
||||
Made with <span style="color: #e25555;">♥</span> in
|
||||
<a href="https://bitbucket.org/openbokeron/openbokeron.bitbucket.io">Bitbucket</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{ range $.Site.Home.AllTranslations }}
|
||||
<a href="{{ .RelPermalink }}">{{ .Language.LanguageName }}</a>
|
||||
{{ end }}
|
||||
</p>
|
17
layouts/partials/head.html
Normal file
17
layouts/partials/head.html
Normal file
@ -0,0 +1,17 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ .Title }} | {{ .Site.Title }}</title>
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flexboxgrid/6.3.1/flexboxgrid.min.css" type="text/css">
|
||||
|
||||
{{- with resources.Get "css/main.css" }}
|
||||
{{- if eq hugo.Environment "development" }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||
{{- else }}
|
||||
{{- with . | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
4
layouts/partials/header.html
Normal file
4
layouts/partials/header.html
Normal file
@ -0,0 +1,4 @@
|
||||
<img class="icon" src="/assets/logo.jpg" alt="{{ .Title }} logo">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p>{{ T "motto" }}</p>
|
||||
{{ partial "nav.html" . }}
|
8
layouts/partials/nav.html
Normal file
8
layouts/partials/nav.html
Normal file
@ -0,0 +1,8 @@
|
||||
<nav>
|
||||
<!-- TODO: Add active attribute when being visited -->
|
||||
<ul>
|
||||
{{ range .Site.Menus.main.ByWeight -}}
|
||||
{{ .Pre }}<li><a href="{{ .URL }}" title="{{ .Title }}">{{- .Name -}}</a></li>{{ .Post }}
|
||||
{{- end }}
|
||||
</ul>
|
||||
</nav>
|
3
layouts/partials/time.html
Normal file
3
layouts/partials/time.html
Normal file
@ -0,0 +1,3 @@
|
||||
<time datetime="{{ .Date }}">
|
||||
{{ .Date | time.Format ":date_medium" }} {{ .Date | time.Format ":time_short" }}
|
||||
</time>
|
13
layouts/posts/list.html
Normal file
13
layouts/posts/list.html
Normal file
@ -0,0 +1,13 @@
|
||||
{{ 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 }}
|
5
layouts/posts/single.html
Normal file
5
layouts/posts/single.html
Normal file
@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<p>📅 TODO, DATE</p>
|
||||
|
||||
{{ .Content }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user