mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Merge pull request #4582 from jaswilli/ci-adjust
Match labels with element ids.
This commit is contained in:
commit
299b06e705
3 changed files with 3 additions and 7 deletions
|
@ -16,15 +16,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="blog-header">Blog Header</label>
|
<label for="ghost-head">Blog Header</label>
|
||||||
<p>Code here will be injected to the \{{ghost_head}} helper at the top of your page</p>
|
<p>Code here will be injected to the \{{ghost_head}} helper at the top of your page</p>
|
||||||
{{textarea id="ghost-head" name="codeInjection[ghost_head]" type="text" value=ghost_head}}
|
{{textarea id="ghost-head" name="codeInjection[ghost_head]" type="text" value=ghost_head}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="blog-header">Blog Footer</label>
|
<label for="ghost-foot">Blog Footer</label>
|
||||||
<p>Code here will be injected to the \{{ghost_foot}} helper at the bottom of your page</p>
|
<p>Code here will be injected to the \{{ghost_foot}} helper at the bottom of your page</p>
|
||||||
{{textarea id="blog-foot" name="codeInjection[ghost_foot]" type="text" value=ghost_foot}}
|
{{textarea id="ghost-foot" name="codeInjection[ghost_foot]" type="text" value=ghost_foot}}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -26,8 +26,6 @@ ghost_foot = function (options) {
|
||||||
|
|
||||||
return api.settings.read({key: 'ghost_foot'}).then(function (response) {
|
return api.settings.read({key: 'ghost_foot'}).then(function (response) {
|
||||||
foot.push(response.settings[0].value);
|
foot.push(response.settings[0].value);
|
||||||
return foot;
|
|
||||||
}).then(function (foot) {
|
|
||||||
return filters.doFilter('ghost_foot', foot);
|
return filters.doFilter('ghost_foot', foot);
|
||||||
}).then(function (foot) {
|
}).then(function (foot) {
|
||||||
var footString = _.reduce(foot, function (memo, item) { return memo + ' ' + item; }, '');
|
var footString = _.reduce(foot, function (memo, item) { return memo + ' ' + item; }, '');
|
||||||
|
|
|
@ -162,8 +162,6 @@ ghost_head = function (options) {
|
||||||
return api.settings.read({key: 'ghost_head'});
|
return api.settings.read({key: 'ghost_head'});
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
head.push(response.settings[0].value);
|
head.push(response.settings[0].value);
|
||||||
return head;
|
|
||||||
}).then(function (head) {
|
|
||||||
return filters.doFilter('ghost_head', head);
|
return filters.doFilter('ghost_head', head);
|
||||||
}).then(function (head) {
|
}).then(function (head) {
|
||||||
var headString = _.reduce(head, function (memo, item) { return memo + '\n ' + item; }, '');
|
var headString = _.reduce(head, function (memo, item) { return memo + '\n ' + item; }, '');
|
||||||
|
|
Loading…
Add table
Reference in a new issue