mirror of
				https://github.com/ZetaKebab/kesper.git
				synced 2025-11-04 08:09:49 +00:00 
			
		
		
		
	Migrated from @blog -> @site
no issue
- This rename is due to new {{@site}} alias introduced in Ghost (dd1cf5ffc7) as {{@blog}} variable is deprecated now, and will be removed in v3
			
			
This commit is contained in:
		
							
								
								
									
										14
									
								
								default.hbs
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								default.hbs
									
									
									
									
									
								
							@@ -28,11 +28,11 @@
 | 
				
			|||||||
        {{!-- The footer at the very bottom of the screen --}}
 | 
					        {{!-- The footer at the very bottom of the screen --}}
 | 
				
			||||||
        <footer class="site-footer outer">
 | 
					        <footer class="site-footer outer">
 | 
				
			||||||
            <div class="site-footer-content inner">
 | 
					            <div class="site-footer-content inner">
 | 
				
			||||||
                <section class="copyright"><a href="{{@blog.url}}">{{@blog.title}}</a> © {{date format="YYYY"}}</section>
 | 
					                <section class="copyright"><a href="{{@site.url}}">{{@site.title}}</a> © {{date format="YYYY"}}</section>
 | 
				
			||||||
                <nav class="site-footer-nav">
 | 
					                <nav class="site-footer-nav">
 | 
				
			||||||
                    <a href="{{@blog.url}}">Latest Posts</a>
 | 
					                    <a href="{{@site.url}}">Latest Posts</a>
 | 
				
			||||||
                    {{#if @blog.facebook}}<a href="{{facebook_url @blog.facebook}}" target="_blank" rel="noopener">Facebook</a>{{/if}}
 | 
					                    {{#if @site.facebook}}<a href="{{facebook_url @site.facebook}}" target="_blank" rel="noopener">Facebook</a>{{/if}}
 | 
				
			||||||
                    {{#if @blog.twitter}}<a href="{{twitter_url @blog.twitter}}" target="_blank" rel="noopener">Twitter</a>{{/if}}
 | 
					                    {{#if @site.twitter}}<a href="{{twitter_url @site.twitter}}" target="_blank" rel="noopener">Twitter</a>{{/if}}
 | 
				
			||||||
                    <a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a>
 | 
					                    <a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a>
 | 
				
			||||||
                </nav>
 | 
					                </nav>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
@@ -45,10 +45,10 @@
 | 
				
			|||||||
    <div id="subscribe" class="subscribe-overlay">
 | 
					    <div id="subscribe" class="subscribe-overlay">
 | 
				
			||||||
        <a class="subscribe-overlay-close" href="#"></a>
 | 
					        <a class="subscribe-overlay-close" href="#"></a>
 | 
				
			||||||
        <div class="subscribe-overlay-content">
 | 
					        <div class="subscribe-overlay-content">
 | 
				
			||||||
            {{#if @blog.logo}}
 | 
					            {{#if @site.logo}}
 | 
				
			||||||
                <img class="subscribe-overlay-logo" src="{{@blog.logo}}" alt="{{@blog.title}}" />
 | 
					                <img class="subscribe-overlay-logo" src="{{@site.logo}}" alt="{{@site.title}}" />
 | 
				
			||||||
            {{/if}}
 | 
					            {{/if}}
 | 
				
			||||||
            <h1 class="subscribe-overlay-title">Subscribe to {{@blog.title}}</h1>
 | 
					            <h1 class="subscribe-overlay-title">Subscribe to {{@site.title}}</h1>
 | 
				
			||||||
            <p class="subscribe-overlay-description">Stay up to date! Get all the latest & greatest posts delivered straight to your inbox</p>
 | 
					            <p class="subscribe-overlay-description">Stay up to date! Get all the latest & greatest posts delivered straight to your inbox</p>
 | 
				
			||||||
            {{subscribe_form placeholder="youremail@example.com"}}
 | 
					            {{subscribe_form placeholder="youremail@example.com"}}
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,10 +19,10 @@ It's a good idea to keep this template as minimal as possible in terms of both f
 | 
				
			|||||||
        <header class="site-header outer {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}">
 | 
					        <header class="site-header outer {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}">
 | 
				
			||||||
            <div class="inner">
 | 
					            <div class="inner">
 | 
				
			||||||
                <nav class="site-nav-center">
 | 
					                <nav class="site-nav-center">
 | 
				
			||||||
                    {{#if @blog.logo}}
 | 
					                    {{#if @site.logo}}
 | 
				
			||||||
                        <a class="site-nav-logo" href="{{@blog.url}}"><img src="{{img_url @blog.logo size="xs"}}" alt="{{@blog.title}}" /></a>
 | 
					                        <a class="site-nav-logo" href="{{@site.url}}"><img src="{{img_url @site.logo size="xs"}}" alt="{{@site.title}}" /></a>
 | 
				
			||||||
                    {{else}}
 | 
					                    {{else}}
 | 
				
			||||||
                        <a class="site-nav-logo" href="{{@blog.url}}">{{@blog.title}}</a>
 | 
					                        <a class="site-nav-logo" href="{{@site.url}}">{{@site.title}}</a>
 | 
				
			||||||
                    {{/if}}
 | 
					                    {{/if}}
 | 
				
			||||||
                </nav>
 | 
					                </nav>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
@@ -34,7 +34,7 @@ It's a good idea to keep this template as minimal as possible in terms of both f
 | 
				
			|||||||
                <section class="error-message">
 | 
					                <section class="error-message">
 | 
				
			||||||
                    <h1 class="error-code">{{code}}</h1>
 | 
					                    <h1 class="error-code">{{code}}</h1>
 | 
				
			||||||
                    <p class="error-description">{{message}}</p>
 | 
					                    <p class="error-description">{{message}}</p>
 | 
				
			||||||
                    <a class="error-link" href="{{@blog.url}}">Go to the front page →</a>
 | 
					                    <a class="error-link" href="{{@site.url}}">Go to the front page →</a>
 | 
				
			||||||
                </section>
 | 
					                </section>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </main>
 | 
					        </main>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,10 +20,10 @@ You'll notice that we *don't* use any JavsScript, or ghost_head / ghost_foot in
 | 
				
			|||||||
        <header class="site-header outer {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}">
 | 
					        <header class="site-header outer {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}">
 | 
				
			||||||
            <div class="inner">
 | 
					            <div class="inner">
 | 
				
			||||||
                <nav class="site-nav-center">
 | 
					                <nav class="site-nav-center">
 | 
				
			||||||
                    {{#if @blog.logo}}
 | 
					                    {{#if @site.logo}}
 | 
				
			||||||
                        <a class="site-nav-logo" href="{{@blog.url}}"><img src="{{img_url @blog.logo size="xs"}}" alt="{{@blog.title}}" /></a>
 | 
					                        <a class="site-nav-logo" href="{{@site.url}}"><img src="{{img_url @site.logo size="xs"}}" alt="{{@site.title}}" /></a>
 | 
				
			||||||
                    {{else}}
 | 
					                    {{else}}
 | 
				
			||||||
                        <a class="site-nav-logo" href="{{@blog.url}}">{{@blog.title}}</a>
 | 
					                        <a class="site-nav-logo" href="{{@site.url}}">{{@site.title}}</a>
 | 
				
			||||||
                    {{/if}}
 | 
					                    {{/if}}
 | 
				
			||||||
                </nav>
 | 
					                </nav>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
@@ -35,7 +35,7 @@ You'll notice that we *don't* use any JavsScript, or ghost_head / ghost_foot in
 | 
				
			|||||||
                <section class="error-message">
 | 
					                <section class="error-message">
 | 
				
			||||||
                    <h1 class="error-code">{{code}}</h1>
 | 
					                    <h1 class="error-code">{{code}}</h1>
 | 
				
			||||||
                    <p class="error-description">{{message}}</p>
 | 
					                    <p class="error-description">{{message}}</p>
 | 
				
			||||||
                    <a class="error-link" href="{{@blog.url}}">Go to the front page →</a>
 | 
					                    <a class="error-link" href="{{@site.url}}">Go to the front page →</a>
 | 
				
			||||||
                </section>
 | 
					                </section>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                {{#if errorDetails}}
 | 
					                {{#if errorDetails}}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								index.hbs
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								index.hbs
									
									
									
									
									
								
							@@ -2,17 +2,17 @@
 | 
				
			|||||||
{{!-- The tag above means: insert everything in this file
 | 
					{{!-- The tag above means: insert everything in this file
 | 
				
			||||||
into the {body} of the default.hbs template --}}
 | 
					into the {body} of the default.hbs template --}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{> header background=@blog.cover_image}} {{!--Special header.hbs partial to generate the <header> tag--}}
 | 
					{{> header background=@site.cover_image}} {{!--Special header.hbs partial to generate the <header> tag--}}
 | 
				
			||||||
    <div class="inner">
 | 
					    <div class="inner">
 | 
				
			||||||
        <div class="site-header-content">
 | 
					        <div class="site-header-content">
 | 
				
			||||||
            <h1 class="site-title">
 | 
					            <h1 class="site-title">
 | 
				
			||||||
                {{#if @blog.logo}}
 | 
					                {{#if @site.logo}}
 | 
				
			||||||
                    <img class="site-logo" src="{{img_url @blog.logo size="s"}}" alt="{{@blog.title}}" />
 | 
					                    <img class="site-logo" src="{{img_url @site.logo size="s"}}" alt="{{@site.title}}" />
 | 
				
			||||||
                {{else}}
 | 
					                {{else}}
 | 
				
			||||||
                    {{@blog.title}}
 | 
					                    {{@site.title}}
 | 
				
			||||||
                {{/if}}
 | 
					                {{/if}}
 | 
				
			||||||
            </h1>
 | 
					            </h1>
 | 
				
			||||||
            <h2 class="site-description">{{@blog.description}}</h2>
 | 
					            <h2 class="site-description">{{@site.description}}</h2>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
        {{> "site-nav"}}
 | 
					        {{> "site-nav"}}
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,10 @@
 | 
				
			|||||||
<div class="floating-header">
 | 
					<div class="floating-header">
 | 
				
			||||||
    <div class="floating-header-logo">
 | 
					    <div class="floating-header-logo">
 | 
				
			||||||
        <a href="{{@blog.url}}">
 | 
					        <a href="{{@site.url}}">
 | 
				
			||||||
            {{#if @blog.icon}}
 | 
					            {{#if @site.icon}}
 | 
				
			||||||
                <img src="{{img_url @blog.icon size="xxs"}}" alt="{{@blog.title}} icon" />
 | 
					                <img src="{{img_url @site.icon size="xxs"}}" alt="{{@site.title}} icon" />
 | 
				
			||||||
            {{/if}}
 | 
					            {{/if}}
 | 
				
			||||||
            <span>{{@blog.title}}</span>
 | 
					            <span>{{@site.title}}</span>
 | 
				
			||||||
        </a>
 | 
					        </a>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <span class="floating-header-divider">—</span>
 | 
					    <span class="floating-header-divider">—</span>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,29 +1,29 @@
 | 
				
			|||||||
<nav class="site-nav">
 | 
					<nav class="site-nav">
 | 
				
			||||||
    <div class="site-nav-left">
 | 
					    <div class="site-nav-left">
 | 
				
			||||||
        {{^is "home"}}
 | 
					        {{^is "home"}}
 | 
				
			||||||
            {{#if @blog.logo}}
 | 
					            {{#if @site.logo}}
 | 
				
			||||||
                <a class="site-nav-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>
 | 
					                <a class="site-nav-logo" href="{{@site.url}}"><img src="{{@site.logo}}" alt="{{@site.title}}" /></a>
 | 
				
			||||||
            {{else}}
 | 
					            {{else}}
 | 
				
			||||||
                <a class="site-nav-logo" href="{{@blog.url}}">{{@blog.title}}</a>
 | 
					                <a class="site-nav-logo" href="{{@site.url}}">{{@site.title}}</a>
 | 
				
			||||||
            {{/if}}
 | 
					            {{/if}}
 | 
				
			||||||
        {{/is}}
 | 
					        {{/is}}
 | 
				
			||||||
        {{#if @blog.navigation}}
 | 
					        {{#if @site.navigation}}
 | 
				
			||||||
            {{navigation}}
 | 
					            {{navigation}}
 | 
				
			||||||
        {{/if}}
 | 
					        {{/if}}
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div class="site-nav-right">
 | 
					    <div class="site-nav-right">
 | 
				
			||||||
        <div class="social-links">
 | 
					        <div class="social-links">
 | 
				
			||||||
            {{#if @blog.facebook}}
 | 
					            {{#if @site.facebook}}
 | 
				
			||||||
                <a class="social-link social-link-fb" href="{{facebook_url @blog.facebook}}" title="Facebook" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
 | 
					                <a class="social-link social-link-fb" href="{{facebook_url @site.facebook}}" title="Facebook" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
 | 
				
			||||||
            {{/if}}
 | 
					            {{/if}}
 | 
				
			||||||
            {{#if @blog.twitter}}
 | 
					            {{#if @site.twitter}}
 | 
				
			||||||
                <a class="social-link social-link-tw" href="{{twitter_url @blog.twitter}}" title="Twitter" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
 | 
					                <a class="social-link social-link-tw" href="{{twitter_url @site.twitter}}" title="Twitter" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
 | 
				
			||||||
            {{/if}}
 | 
					            {{/if}}
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
        {{#if @labs.subscribers}}
 | 
					        {{#if @labs.subscribers}}
 | 
				
			||||||
            <a class="subscribe-button" href="#subscribe">Subscribe</a>
 | 
					            <a class="subscribe-button" href="#subscribe">Subscribe</a>
 | 
				
			||||||
        {{else}}
 | 
					        {{else}}
 | 
				
			||||||
            <a class="rss-button" href="https://feedly.com/i/subscription/feed/{{@blog.url}}/rss/" title="RSS" target="_blank" rel="noopener">{{> "icons/rss"}}</a>
 | 
					            <a class="rss-button" href="https://feedly.com/i/subscription/feed/{{@site.url}}/rss/" title="RSS" target="_blank" rel="noopener">{{> "icons/rss"}}</a>
 | 
				
			||||||
        {{/if}}
 | 
					        {{/if}}
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
</nav>
 | 
					</nav>
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								post.hbs
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								post.hbs
									
									
									
									
									
								
							@@ -54,7 +54,7 @@ into the {body} of the default.hbs template --}}
 | 
				
			|||||||
            {{!-- Email subscribe form at the bottom of the page --}}
 | 
					            {{!-- Email subscribe form at the bottom of the page --}}
 | 
				
			||||||
            {{#if @labs.subscribers}}
 | 
					            {{#if @labs.subscribers}}
 | 
				
			||||||
            <section class="subscribe-form">
 | 
					            <section class="subscribe-form">
 | 
				
			||||||
                <h3 class="subscribe-form-title">Subscribe to {{@blog.title}}</h3>
 | 
					                <h3 class="subscribe-form-title">Subscribe to {{@site.title}}</h3>
 | 
				
			||||||
                <p>Get the latest posts delivered right to your inbox</p>
 | 
					                <p>Get the latest posts delivered right to your inbox</p>
 | 
				
			||||||
                {{subscribe_form placeholder="youremail@example.com"}}
 | 
					                {{subscribe_form placeholder="youremail@example.com"}}
 | 
				
			||||||
            </section>
 | 
					            </section>
 | 
				
			||||||
@@ -97,12 +97,12 @@ into the {body} of the default.hbs template --}}
 | 
				
			|||||||
                    {{#if ../primary_tag.feature_image}}
 | 
					                    {{#if ../primary_tag.feature_image}}
 | 
				
			||||||
                        style="background-image: url({{img_url ../primary_tag.feature_image size="m"}})"
 | 
					                        style="background-image: url({{img_url ../primary_tag.feature_image size="m"}})"
 | 
				
			||||||
                    {{else}}
 | 
					                    {{else}}
 | 
				
			||||||
                        {{#if @blog.cover_image}}
 | 
					                        {{#if @site.cover_image}}
 | 
				
			||||||
                            style="background-image: url({{img_url @blog.cover_image size="m"}})"{{/if}}
 | 
					                            style="background-image: url({{img_url @site.cover_image size="m"}})"{{/if}}
 | 
				
			||||||
                    {{/if}}
 | 
					                    {{/if}}
 | 
				
			||||||
                >
 | 
					                >
 | 
				
			||||||
                    <header class="read-next-card-header">
 | 
					                    <header class="read-next-card-header">
 | 
				
			||||||
                        <small class="read-next-card-header-sitetitle">— {{@blog.title}} —</small>
 | 
					                        <small class="read-next-card-header-sitetitle">— {{@site.title}} —</small>
 | 
				
			||||||
                        {{#../primary_tag}}
 | 
					                        {{#../primary_tag}}
 | 
				
			||||||
                        <h3 class="read-next-card-header-title"><a href="{{url}}">{{name}}</a></h3>
 | 
					                        <h3 class="read-next-card-header-title"><a href="{{url}}">{{name}}</a></h3>
 | 
				
			||||||
                        {{/../primary_tag}}
 | 
					                        {{/../primary_tag}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user