141 lines
6.2 KiB
Handlebars
141 lines
6.2 KiB
Handlebars
<!DOCTYPE html>
|
|
<html lang="{{@site.locale}}">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="{{asset "built/screen.css"}}">
|
|
|
|
{{#is "post"}}
|
|
{{#post}}
|
|
{{#has tag="#private-ops"}}
|
|
{{#if access}}
|
|
<title>{{meta_title page=(t " (Page %)")}}</title>
|
|
{{ghost_head}}
|
|
{{else}}
|
|
<title>No encontrado</title>
|
|
<meta name="robots" content="noindex,nofollow">
|
|
{{/if}}
|
|
{{else}}
|
|
<title>{{meta_title page=(t " (Page %)")}}</title>
|
|
{{ghost_head}}
|
|
{{/has}}
|
|
{{/post}}
|
|
{{else}}
|
|
<title>{{meta_title page=(t " (Page %)")}}</title>
|
|
{{ghost_head}}
|
|
{{/is}}
|
|
</head>
|
|
|
|
<body class="{{body_class}}{{{block "body_class"}}} is-head-{{#match @custom.navigation_layout "Logo on the left"}}left-logo{{else match @custom.navigation_layout "Logo in the middle"}}middle-logo{{else}}stacked{{/match}}{{#match @custom.title_font "=" "Elegant serif"}} has-serif-title{{/match}}{{#match @custom.body_font "=" "Elegant serif"}} has-serif-body{{/match}}{{#is "tag"}}{{#if tag.feature_image}} is-head-transparent{{/if}}{{/is}}{{#match @custom.header_style "Accent color"}} is-head-brand{{/match}}{{#match @custom.header_style "Dark"}} is-head-dark{{/match}}">
|
|
<div class="gh-site">
|
|
|
|
<header id="gh-head" class="gh-head gh-outer">
|
|
<div class="gh-head-inner gh-inner">
|
|
<div class="gh-head-brand">
|
|
<div class="gh-head-brand-wrapper">
|
|
{{#is "home"}}<h1 class="gh-head-logo">{{/is}}
|
|
<a {{^is "home"}}class="gh-head-logo"{{/is}} href="{{@site.url}}">
|
|
{{#if @site.logo}}
|
|
<img src="{{@site.logo}}" alt="{{@site.title}}">
|
|
{{#if @custom.white_publication_logo_for_transparent_header}}
|
|
<img src="{{@custom.white_publication_logo_for_transparent_header}}" alt="{{@site.title}}">
|
|
{{/if}}
|
|
{{else}}
|
|
{{@site.title}}
|
|
{{/if}}
|
|
</a>
|
|
{{#is "home"}}</h1>{{/is}}
|
|
</div>
|
|
<button class="gh-search gh-icon-btn" aria-label="{{t "Search this site"}}" data-ghost-search>{{> "icons/search"}}</button>
|
|
<button class="gh-burger" aria-label="{{t "Toggle menu"}}"></button>
|
|
</div>
|
|
|
|
<nav class="gh-head-menu">
|
|
{{navigation}}
|
|
{{#unless @site.members_enabled}}
|
|
{{#match @custom.navigation_layout "Stacked"}}
|
|
<button class="gh-search gh-icon-btn" aria-label="{{t "Search this site"}}" data-ghost-search>{{> "icons/search"}}</button>
|
|
{{/match}}
|
|
{{/unless}}
|
|
</nav>
|
|
|
|
<div class="gh-head-actions">
|
|
{{#unless @site.members_enabled}}
|
|
{{^match @custom.navigation_layout "Stacked"}}
|
|
<button class="gh-search gh-icon-btn" aria-label="{{t "Search this site"}}" data-ghost-search>{{> "icons/search"}}</button>
|
|
{{/match}}
|
|
{{else}}
|
|
<button class="gh-search gh-icon-btn" aria-label="{{t "Search this site"}}" data-ghost-search>{{> "icons/search"}}</button>
|
|
<div class="gh-head-members">
|
|
{{#unless @member}}
|
|
{{#unless @site.members_invite_only}}
|
|
<a class="gh-head-link" href="#/portal/signin" data-portal="signin">{{t "Sign in"}}</a>
|
|
<a class="gh-head-btn gh-btn gh-primary-btn" href="#/portal/signup" data-portal="signup">{{t "Subscribe"}}</a>
|
|
{{else}}
|
|
<a class="gh-head-btn gh-btn gh-primary-btn" href="#/portal/signin" data-portal="signin">{{t "Sign in"}}</a>
|
|
{{/unless}}
|
|
{{else}}
|
|
<a class="gh-head-btn gh-btn gh-primary-btn" href="#/portal/account" data-portal="account">{{t "Account"}}</a>
|
|
{{/unless}}
|
|
</div>
|
|
{{/unless}}
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
{{{body}}}
|
|
|
|
<footer class="gh-foot gh-outer">
|
|
<div class="gh-foot-inner gh-inner">
|
|
{{#if @site.members_enabled}}
|
|
{{#unless @member}}
|
|
<section class="gh-subscribe">
|
|
<h3 class="gh-subscribe-title">{{t "Subscribe to {sitetitle}" sitetitle=@site.title}}</h3>
|
|
{{#if @custom.email_signup_text}}
|
|
<div class="gh-subscribe-description">{{@custom.email_signup_text}}</div>
|
|
{{/if}}
|
|
<button class="gh-subscribe-btn gh-btn" data-portal="signup">{{> "icons/email"}} {{t "Subscribe now"}}</button>
|
|
</section>
|
|
{{/unless}}
|
|
{{/if}}
|
|
|
|
<nav class="gh-foot-menu">
|
|
{{navigation type="secondary"}}
|
|
</nav>
|
|
|
|
<div class="gh-social-links">
|
|
{{#social_accounts @site}}
|
|
<a href="{{href}}" target="_blank" rel="noopener" aria-label="{{name}}">
|
|
{{#> (concat "icons/" type)}}
|
|
{{!-- Fallback when no per-platform icon partial exists --}}
|
|
<span>{{name}}</span>
|
|
{{/undefined}}
|
|
</a>
|
|
{{/social_accounts}}
|
|
</div>
|
|
|
|
<div class="gh-copyright">
|
|
{{#unless @custom.footer_text}}
|
|
{{@site.title}} © {{date format="YYYY"}}. {{{t "Powered by {ghostlink}" ghostlink="<a href=\"https://ghost.org/\" target=\"_blank\" rel=\"noopener\">Ghost</a>"}}}
|
|
{{else}}
|
|
{{@custom.footer_text}}
|
|
{{/unless}}
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
{{#is "post, page"}}
|
|
{{> "pswp"}}
|
|
{{/is}}
|
|
|
|
<script src="{{asset "built/main.min.js"}}"></script>
|
|
|
|
{{ghost_foot}}
|
|
|
|
</body>
|
|
|
|
</html>
|