Hugo port

This commit is contained in:
2024-02-21 17:58:07 +01:00
parent 360bfea671
commit d75599d8d8
40 changed files with 343 additions and 294 deletions

View File

@ -0,0 +1,11 @@
<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>
</p>
<p>
{{ range $.Site.Home.AllTranslations }}
<a href="{{ .RelPermalink }}">{{ .Language.LanguageName }}</a>
{{ end }}
</p>

View 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 }}

View 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" . }}

View 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>

View File

@ -0,0 +1,3 @@
<time datetime="{{ .Date }}">
{{ .Date | time.Format ":date_medium" }} {{ .Date | time.Format ":time_short" }}
</time>