mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-22 08:35:38 +01:00
Initial commit.
This commit is contained in:
parent
45cc89e3af
commit
2bc248dd03
0
layouts/404.html
Normal file
0
layouts/404.html
Normal file
53
layouts/_default/baseof.html
Executable file
53
layouts/_default/baseof.html
Executable file
@ -0,0 +1,53 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{ .Site.Params.languageCode | default " en-us " }}">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
|
||||||
|
<meta name="theme-color" content="#404040">
|
||||||
|
<meta property="og:title" content="{{ if ne .URL " / " }}{{ .Title }} · {{ end }}{{ .Site.Title }}" />
|
||||||
|
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
||||||
|
<meta property="og:url" content="{{ .Permalink }}" /> {{- if eq .IsPage true }} {{ .Render "meta" }} {{- end }} {{ .Hugo.Generator }}
|
||||||
|
|
||||||
|
<link rel="icon" href="{{ .Site.BaseURL }}/favicon.ico" />
|
||||||
|
<link rel="shortcut icon" href="{{ .Site.BaseURL }}/favicon.ico" type="image/x-icon" />
|
||||||
|
<link rel="canonical" href="{{ .Permalink }}"> {{ if .RSSLink }}
|
||||||
|
<link href="{{ .Site.BaseURL }}/index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||||
|
<link href="{{ .Site.BaseURL }}/index.xml" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end }}
|
||||||
|
|
||||||
|
<title>{{- if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{- else }}{{ .Site.Title }} - {{ .Site.Params.Tagline }}{{- end}}</title>
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Ubuntu|Dosis" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
|
||||||
|
|
||||||
|
{{ if eq (getenv "HUGO_ENV") "PRD" }}
|
||||||
|
<meta name="robots" content="noindex,nofollow" />
|
||||||
|
{{ else }}
|
||||||
|
<meta name="robots" content="noindex,nofollow" />
|
||||||
|
{{ end }}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
{{- if not .IsHome }}
|
||||||
|
{{ partial "menu" . }}
|
||||||
|
{{- else }}
|
||||||
|
{{ partial "header_homepage" . }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{ block "main" . }}{{ end }}
|
||||||
|
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content has-text-centered">
|
||||||
|
Copyright © {{ now.Format "2006" }} Yuzu Emulator
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script src="{{ .Site.BaseURL }}/js/script.js"></script>
|
||||||
|
|
||||||
|
<script defer src="https://use.fontawesome.com/releases/v5.0.2/js/all.js"></script>
|
||||||
|
{{- block "scripts" . }}{{- end }}
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
9
layouts/_default/list.html
Normal file
9
layouts/_default/list.html
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
{{ $paginator := .Paginate .Data.Pages }}
|
||||||
|
|
||||||
|
{{ range $paginator.Pages }}
|
||||||
|
{{ .Render "summary" }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ partial "pagination" . }}
|
||||||
|
{{ end }}
|
3
layouts/_default/meta.html
Normal file
3
layouts/_default/meta.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}" />
|
||||||
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}" />
|
||||||
|
<meta property="og:type" content="website" />
|
3
layouts/_default/single.html
Normal file
3
layouts/_default/single.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
{{ .Content }}
|
||||||
|
{{ end }}
|
14
layouts/index.html
Normal file
14
layouts/index.html
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{{- define "main" }}
|
||||||
|
<section class="hero is-info">
|
||||||
|
<div class="hero-body">
|
||||||
|
<div class="container">
|
||||||
|
<p class="title">
|
||||||
|
Upcoming news...
|
||||||
|
</p>
|
||||||
|
<p class="subtitle">
|
||||||
|
We'll have more information available soon!
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{{- end }}
|
25
layouts/partials/header_homepage.html
Normal file
25
layouts/partials/header_homepage.html
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<div class="container is-mobile">
|
||||||
|
<nav class="navbar" role="navigation" aria-label="main navigation">
|
||||||
|
<div class="container">
|
||||||
|
<div class="navbar-brand">
|
||||||
|
<a class="navbar-item" href="{{ .Site.BaseURL }}">
|
||||||
|
<img src="{{ .Site.BaseURL }}/images/menu.png" alt="{{ .Site.Title }} {{ .Site.Params.Tagline }}" width="112" height="28">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section class="hero is-primary">
|
||||||
|
<div class="hero-body">
|
||||||
|
<div class="container">
|
||||||
|
<h1 class="title">{{ .Site.Title }}</h1>
|
||||||
|
<h2 class="subtitle">{{ .Site.Params.Tagline }}</h2>
|
||||||
|
<a class="button is-primary is-inverted" href="{{ .Site.Params.GithubURL }}">
|
||||||
|
<span class="icon">
|
||||||
|
<i class="fab fa-github"></i>
|
||||||
|
</span>
|
||||||
|
<span>Source Code</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
21
layouts/partials/pagination.html
Executable file
21
layouts/partials/pagination.html
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||||
|
<nav aria-label="...">
|
||||||
|
<ul class="pager">
|
||||||
|
|
||||||
|
{{ if .Paginator.HasPrev }}
|
||||||
|
<li class="previous">
|
||||||
|
<a rel="previous" href="{{.Paginator.Prev.URL | absURL}}"><span aria-hidden="true">←</span> Previous</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{ if .Paginator.HasNext }}
|
||||||
|
<li class="next">
|
||||||
|
<a rel="next" href="{{.Paginator.Next.URL | absURL}}"><span aria-hidden="true">→</span> Next</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
{{ end }}
|
11
theme.toml
Normal file
11
theme.toml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
name = "Shared Bulma Theme"
|
||||||
|
license = "AGPLv3"
|
||||||
|
licenselink = ""
|
||||||
|
description = "Shared Bulma Theme"
|
||||||
|
homepage = "https://citra-emu.org/"
|
||||||
|
tags = []
|
||||||
|
features = ["", ""]
|
||||||
|
min_version = 0.16
|
||||||
|
|
||||||
|
[author]
|
||||||
|
name = "flamesage"
|
Loading…
Reference in New Issue
Block a user