Use Ghost site name for subscribe form instead of admin.yml one

This commit is contained in:
Hippo 2019-12-24 15:18:28 +05:30
parent 77526a77f1
commit 23cf280f36

View file

@ -32,7 +32,7 @@
<!-- Email subscribe form at the bottom of the page --> <!-- Email subscribe form at the bottom of the page -->
<section v-if="Admin.site.subscribers" class="subscribe-form"> <section v-if="Admin.site.subscribers" class="subscribe-form">
<h3 class="subscribe-form-title">Subscribe to {{ Admin.site.title }}</h3> <h3 class="subscribe-form-title">Subscribe to {{ $static.metadata.ghost.title }}</h3>
<p>Get the latest posts delivered right to your inbox</p> <p>Get the latest posts delivered right to your inbox</p>
<subscribeForm placeholder="youremail@example.com"/> <subscribeForm placeholder="youremail@example.com"/>
</section> </section>
@ -163,3 +163,14 @@ export default {
} }
} }
</page-query> </page-query>
<static-query>
query Metadata {
metadata {
ghost {
title
url
}
}
}
</static-query>