Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/templates/index.html
kilo 95c858076e Make latest commit hash at the bottom clickeable
More convenient for contributors
2017-06-23 12:45:48 +02:00

112 lignes
5,7 Kio
HTML
Fichier exécutable

<!DOCTYPE html>
<html lang="{{ call $.T "language_code" }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="torrents, pantsu, anime, manga, sukebei, nyaapassu, horriblesubs, nyaa, hentai, dlsite">
<meta name="description" content='The leading open-source community-based nyaa.se successor, suitable for all anime and manga needs. にゃんぱす~!'>
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>{{if Sukebei}}Sukebei{{else}}Nyaa{{end}} Pantsu - {{block "title" .}}{{ call $.T "error_404" }}{{end}}</title>
<!-- Flavicons and icons -->
<link rel="icon" type="image/png" href="/img/favicon.png" />
<link rel="shortcut icon" type="image/png" href="/img/favicon.png">
<!-- SMO -->
<meta property="og:site_name" content="Nyaa Pantsu">
<meta property="og:site_name" content="{{if Sukebei}}Sukebei{{else}}Nyaa{{end}} Pantsu - {{template "title" .}}{{ call $.T "error_404" }}">
<meta property="og:image" content="/img/favicon.png">
<meta property="og:description" content="Nyaa Pantsu Homepage">
<!-- RSS Feed with Context -->
<link rel="alternate" type="application/rss+xml" title="Nyaa Pantsu - {{block "rsstitle" .}}Last torrents{{end}} RSS Feed" href="{{ block "rss_link" . }}{{ genRouteWithQuery "feed" .URL }}{{end}}" />
<!-- do NOT move -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<!-- Base theme -->
<link rel="stylesheet" id="style" href="{{.URL.Parse "/css/main.css"}}?v={{ .Config.Version }}{{ .Config.Build }}">
<!-- nyaacon, custom icon set -->
<link rel="stylesheet" href="{{.URL.Parse "/css/nyacon.css"}}?v={{ .Config.Version}}{{ .Config.Build }}">
<!-- User selected theme, if any, defaults to /g/ -->
{{if eq $.Theme ""}}
<link rel="stylesheet" id="theme" href="/css/g.css?v={{ .Config.Version }}{{ .Config.Build }}">
{{else}}
<link rel="stylesheet" id="theme" href="/css/{{$.Theme}}.css?v={{ .Config.Version }}{{ .Config.Build }}">
{{end}}
<!-- Search Box for Google -->
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","url":"{{.Config.WebAddress.Nyaa}}/","potentialAction":{"@type":"SearchAction","target":"{{.Config.WebAddress.Nyaa}}/search?q={search_term_string}","query-input":"required name=search_term_string"}}</script>
{{ block "additional_header" .}}{{end}}
</head>
<body {{if Sukebei}}class="sukebei"{{end}}>
<nav id="header" class="header">
<div class="container">
<div class="h-left">
<div class="h-logo">
<a href="{{.URL.Parse "/"}}"><img class="hide-md" src="/img/{{if Sukebei}}sukebei_logo.png{{else}}logo.png{{end}}" alt="Nyaa Pantsu"><img class="visible-md" src="/img/logo_s.png"/></a>
</div>
<div class="h-nav">
<a href="{{.URL.Parse "/upload"}}" class="nav-btn"><div class="icon-upload visible-md"></div><span class="hide-md">{{ call $.T "upload" }}</span></a>
<a href="{{ template "rss_link" . }}" class="nav-btn"><div class="icon-rss-squared visible-md"></div><span class="hide-md">RSS</span></a>
<a href="{{.URL.Parse "/faq"}}" class="nav-btn"><div class="icon-help-circled visible-md"></div><span class="hide-md">{{ call $.T "faq" }}</span></a>
{{if Sukebei}}
<a href="{{.Config.WebAddress.Nyaa}}" class="nav-btn"><div class="icon-heart visible-md"></div><span class="hide-md">{{ call $.T "fun" }}</span></a>
{{else}}
<a href="{{.Config.WebAddress.Sukebei}}" class="nav-btn"><div class="icon-heart visible-md"></div><span class="hide-md">{{ call $.T "fap" }}</span></a>
{{end}}
</div>
</div>
<div class="h-right">
{{block "badge_user" .}}{{end}}
<div class="h-search">
<form role="search" action="/search" method="get">
{{block "search_common" .}}{{end}}
{{block "search_button" .}}{{end}}
</form>
</div>
</div>
</div>
</nav>
<div id="content" class="{{ block "contclass" . }}{{end}}">
<div class="content container center">
{{block "content" .}}{{call $.T "nothing_here"}}{{end}}
</div>
{{ block "mascot" .}}
{{if ne .Mascot "hide"}}
<div id="mascot" class="hide-xs{{if ne .MascotURL ""}} custom-mascot{{end}}" onclick="playVoice();" {{if ne .MascotURL ""}}style="background-image: url('{{.MascotURL}}');"{{end}}></div>
{{/* Only play the sounds with the default mascot */}}
{{ if eq .MascotURL "" }}
{{ if Sukebei }}
<audio id="kawaii" hidden preload="none">
<source src="https://a.doko.moe/spbyif.mp3" type="audio/mpeg">
</audio>
{{else}}
{{ if eq .Theme "tomorrow" }}
<audio id="explosion" hidden preload="none">
<source src="https://a.doko.moe/vrlrtw.mp3" type="audio/mpeg">
</audio>
{{ else }}
<audio id="nyanpassu" hidden preload="none">
<source src="https://a.doko.moe/sewang.mp3" type="audio/mpeg">
</audio>
{{end}}
{{end}}
{{end}}
{{end}}
{{end}}
<div class="pagination">
{{ genNav .Navigation .URL 15 }}
</div>
<footer id="footer">
<div class="container footer center">
<div class="footer-opt">
<p><a href="/settings">{{ call $.T "change_settings" }}</a></p>
</div>
<span><i>Powered by <a href="#">Nyaa Pantsu</a> v{{ .Config.Version }} - commit <a href="https://github.com/NyaaPantsu/nyaa/commit/{{ .Config.Build }}">{{ .Config.Build }}</a></i></span>
</div>
</footer>
</div>
<script type="text/javascript" charset="utf-8" src="{{.URL.Parse "/js/main.js"}}?v={{ .Config.Version }}{{ .Config.Build }}" async></script>
{{ block "footer_js" .}}{{end}}
</body>
</html>