<!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="#FF8E03">
    {{ .Hugo.Generator }}

    <link rel="icon" href="{{ .Site.BaseURL }}favicon.ico" />
    <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 }}

    <meta property="og:title" content="{{ if ne .URL "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}" />
   	<meta property="og:site_name" content="{{ .Site.Title }}" />
    <meta property="og:url" content="{{ .Permalink }}" />
    
    {{ if (eq .Section "entry") | or (eq .Section "wiki") }}
      <meta property="og:type" content="article" />
      <meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
      {{ range .Params.tags }}
        <meta property="og:article:tag" content="{{ . }}" />
      {{ end }}
    {{ else }}
      <meta property="og:type" content="website" />
    {{ end }}

    {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}

    <title>{{ if .IsHome }}Homepage{{ else }}{{ .Title }}{{ end }} | {{ .Site.Title }} | Nintendo 3DS Emulator</title>

    {{ if eq (getenv "GULP") "true" }}
      <link rel="stylesheet" href="/css/main.css"/>
    {{ else }}
      <link rel="stylesheet" href="/css/imports/tagcloud.css"/>
      <link rel="stylesheet" href="/css/imports/bootstrap.css"/>
      <link rel="stylesheet" href="/css/imports/bootstrap-theme.css"/>
      <link rel="stylesheet" href="/css/style.css"/>
      <link rel="stylesheet" href="/css/media.css"/>
    {{ end }}

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

    {{ if eq (getenv "HUGO_ENV") "PRD" }}
      <meta name="robots" content="noindex,nofollow"/>

      {{ with .Site.Params.googleAnalytics }}
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

          ga('create', '{{ .Site.Params.googleAnalytics }}', 'auto');
          ga('send', 'pageview');
        </script>
      {{ end }}
    {{ else }}
      <meta name="robots" content="noindex,nofollow"/>
    {{ end }}
  </head>

  <body>
    {{ partial "menu" . }}

    <div id="mainContainer" class="container" {{ if .IsHome }}style="padding-top: 15px;"{{ end }}>
      <div class="row">
        {{ block "top" . }}{{ end }}
      </div>

      <div class="row row-fluid">
        <div id="content" class="col-xs-12 col-sm-12 col-md-9 col-lg-9 pull-right">
          {{ block "main" . }}{{ end }}
        </div>
        <div id="sidebar" class="col-xs-12 col-sm-12 col-md-3 col-lg-3 pull-left">
          {{ partial "sidebar" . }}
        </div>
      </div>
    </div>

		<div id="footer" class="container">
		    <div class="row">

		        <div class="col-md-2">
		            <h1>Citra</h1>
		            <a href="/">Blog</a>
		            <a href="/download/">Downloads</a>
		            <a href="/screenshots/">Screenshots</a>
		            <a href="/donate/">Donate</a>
		        </div>

		        <div class="col-md-2">
		            <h1>Documentation</h1>
		            <a href="/wiki/Home/">Wiki</a>
		            <a href="/wiki/FAQ/">FAQ</a>
		        </div>

		        <div class="col-md-2">
		            <h1>Blog</h1>
		            <a href="/">News &amp; Articles</a>
		            <a href="{{ .Site.BaseURL }}index.xml">RSS 2.0</a>
		        </div>

		        <div class="col-md-2">
		            <h1>Social</h1>
		            <a href="https://www.youtube.com/channel/UC_dcdgzuapBtAY4ol3x-90Q">YouTube</a>
		            <a href="https://www.facebook.com/citra.emu">Facebook</a>
		            <a href="https://twitter.com/citraemu">Twitter</a>
		            <a href="https://community.citra-emu.org/">Forums</a>
		            <a href="https://discord.gg/eSPxgzW">Discord</a>
		            <a href="/chat">IRC</a>
		            </ul>
		        </div>

		        <div class="col-md-2">
		            <h1>Get Involved</h1>
		            <a href="https://github.com/citra-emu/citra">GitHub / Source</a>
		            <a href="https://github.com/citra-emu/citra/issues">Issues</a>
		            <a href="https://github.com/citra-emu/citra/pulls">Pull Requests</a>
		        </div>

		    </div>
		    <div id="footer-bottom">
		        <div id="footer-brand"></div>
		        <div id="footer-legal">Copyright © {{ .Now.Format "2006" }} Citra Emulator Project</div>
		    </div>
		</div>

    {{ block "scripts" . }}{{ end }}
  </body>

  </html>
