2017-06-28 13:42:38 +02:00
{{import "helpers/errors"}}
{{import "helpers/infos"}}
<!DOCTYPE html>
< html lang = "{{ T(" language_code " ) } } " >
2017-07-24 07:03:43 +02:00
< head >
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2017-08-21 03:00:19 +02:00
< meta name = "keywords" content = "torrents, pantsu, anime, manga, sukebei, nyaapassu, horriblesubs, nyaa{{if Sukebei()}}, hentai{{end}}, dlsite" / >
2017-07-24 07:03:43 +02:00
< 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 titleBase()}}{{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 = "{{if Sukebei()}}Sukebei{{else}}Nyaa{{end}} Pantsu" / >
< meta property = "og:title" content = "{{yield titleBase()}} - {{if Sukebei()}}Sukebei{{else}}Nyaa{{end}} Pantsu" / >
< meta property = "og:image" content = "/img/favicon.png" / >
< meta property = "og:description" content = "Nyaa Pantsu Homepage" / >
<!-- RSS Feed with Context -->
2017-09-04 00:11:16 +02:00
< link rel = "alternate" type = "application/rss+xml" title = "Nyaa Pantsu - {{block rsstitle()}}Latest torrents{{end}} RSS Feed" href = "{{ block rss_link() }}/feed/?{{ getRawQuery(URL)|raw }}{{end}}" / >
< link rel = "alternate" type = "application/rss+xml" title = "Nyaa Pantsu - {{ yield rsstitle()}} Torznab RSS Feed" href = "/feed/torznab?{{ getRawQuery(URL)|raw }}&t=search" / >
< link rel = "alternate" type = "application/rss+xml" title = "Nyaa Pantsu - {{ yield rsstitle()}} EZTV RSS Feed" href = "/feed/eztv?{{ getRawQuery(URL)|raw }}" / >
2017-07-24 07:03:43 +02:00
<!-- do NOT move -->
< link rel = "stylesheet" href = "/css/simplemde.min.css?v={{ Config.Version }}{{ Config.Build }}" / >
<!-- Base theme -->
< link rel = "stylesheet" id = "style" href = "/css/main.css?v={{ Config.Version }}{{ Config.Build }}" / >
<!-- nyaacon, custom icon set -->
< link rel = "stylesheet" href = "/css/nyacon.css?v={{ Config.Version}}{{ Config.Build }}" / >
<!-- User selected theme, if any, defaults to /g/ -->
{{if 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}}
<!-- Flags css -->
< link rel = "stylesheet" href = "/css/flags/flags.min.css" / >
<!-- 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}}
2017-08-28 15:38:37 +02:00
< / head >
2017-07-24 07:03:43 +02:00
< body { { if Sukebei ( ) } } class = "sukebei" { { end } } >
2017-09-06 12:00:48 +02:00
< nav id = "header" class = "header" >
2017-07-24 07:03:43 +02:00
{{block menu()}}{{end}}
< / nav >
2017-09-06 12:00:48 +02:00
< div id = "content" class = "{{ block contclass()}}{{end}}" >
< div class = "content container center" >
2017-07-24 07:03:43 +02:00
{{ yield infos()}}
{{ yield errors()}}
{{ block content_body_base() }}{{end}}
< / div >
{{ block mascot() }}
{{if Mascot != "hide"}}
< div id = "mascot" class = "hide-xs{{if MascotURL != " " } } custom-mascot { { end } } " onclick = "playVoice();" { { if MascotURL ! = " " } } style = "background-image: url('{{MascotURL}}');" { { end } } > < / div >
{* Only play the sounds with the default mascot *}
{{ if MascotURL == "" }}
{{ if Sukebei() }}
< audio id = "kawaii" hidden preload = "none" >
< source src = "https://a.doko.moe/spbyif.mp3" type = "audio/mpeg" >
< / audio >
{{else if Theme == "tomorrow" }}
< audio id = "explosion" hidden preload = "none" >
< source src = "https://a.doko.moe/vrlrtw.mp3" type = "audio/mpeg" >
< / audio >
{{ else if User.ID > 0}}
< audio id = "nyanpassu2" hidden preload = "none" >
< source src = "https://a.doko.moe/znadfr.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}}
2017-08-31 12:59:35 +02:00
< div class = "container pagination" >
2017-07-24 07:03:43 +02:00
{{ genNav(Navigation, URL, 15)|raw }}
< / div >
2017-09-04 13:48:47 +02:00
< center class = "container" id = "ad-container" >
{{ adId = Sukebei() ? 634159 : 634157 }}
< iframe data-aa = '{{adId}}' src = '//ad.a-ads.com/{{adId}}?size=728x90' scrolling = 'no' allowtransparency = 'true' > < / iframe >
< / center >
2017-07-24 07:03:43 +02:00
< footer id = "footer" >
< div class = "container footer center" >
< div class = "footer-opt" >
2017-08-22 02:49:43 +02:00
< p > < a href = "/settings" > {{ T("change_settings") }}< / a > < a id = "dark-toggle" href = "/dark{{ URL.String()}}" > - Toggle Dark Mode< / a > < / p >
2017-07-24 07:03:43 +02:00
< / div >
< span > < i > Powered by < a href = "#" > Nyaa Pantsu< / a > v{{ Config.Version }} - commit < a id = "commit" href = "https://github.com/NyaaPantsu/nyaa/commit/{{ Config.Build }}" > {{ Config.Build }}< / a > < / i > < / span >
< / div >
< / footer >
< / div >
2017-09-07 17:56:02 +02:00
{{ if !EUCookieLaw }}< div id = "cookie-warning" > < span id = "cookie-warning-close" class = "close" > × < / span > {{ T("cookie_warning")|raw }}< / div > {{ end }}
2017-08-29 13:15:37 +02:00
< script type = "text/javascript" charset = "utf-8" > var commitVersion = "{{ Config.Build }}" , UserID = { { User . ID } } ; < / script >
2017-08-30 13:29:52 +02:00
< script type = "text/javascript" src = "/js/query.js?v={{ Config.Version}}{{ Config.Build }}" > < / script >
2017-07-24 07:03:43 +02:00
< script type = "text/javascript" charset = "utf-8" src = "/js/main.js?v={{ Config.Version }}{{ Config.Build }}" async > < / script >
{{block footer_js()}}{{end}}
< / body >
2017-07-15 21:41:57 +02:00
< / html >