Hugo port
This commit is contained in:
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>
|
Reference in New Issue
Block a user