mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
fda94fedab
no issue - https://github.com/ember-cli/eslint-plugin-ember/blob/HEAD/docs/rules/alias-model-in-controller.md - replace `model` with a meaningful property name everywhere possible - refactor `design` and `general` settings controllers to use a directly injected settings service rather than passing it in as a "model" to be more explicit
38 lines
1.9 KiB
Handlebars
38 lines
1.9 KiB
Handlebars
<section class="gh-canvas">
|
|
<header class="gh-canvas-header">
|
|
<h2 class="gh-canvas-title" data-test-screen-title>Code injection</h2>
|
|
<section class="view-actions">
|
|
{{gh-task-button task=save class="gh-btn gh-btn-blue gh-btn-icon" data-test-save-button=true}}
|
|
</section>
|
|
</header>
|
|
|
|
{{#if showLeaveSettingsModal}}
|
|
{{gh-fullscreen-modal "leave-settings"
|
|
confirm=(action "leaveSettings")
|
|
close=(action "toggleLeaveSettingsModal")
|
|
modifier="action wide"}}
|
|
{{/if}}
|
|
|
|
<section class="view-continer">
|
|
<form id="settings-code" novalidate="novalidate">
|
|
<fieldset>
|
|
<p>
|
|
Ghost allows you to inject code into the top and bottom of your theme files without editing them. This allows for quick modifications to insert useful things like tracking codes and meta tags.
|
|
</p>
|
|
|
|
<div class="form-group settings-code">
|
|
<label for="ghost-head">Blog Header</label>
|
|
<p>Code here will be injected into the <code>\{{ghost_head}}</code> tag on every page of your blog</p>
|
|
{{gh-cm-editor settings.ghostHead id="ghost-head" class="gh-input settings-code-editor" name="codeInjection[ghost_head]" type="text" update=(action (mut settings.ghostHead))}}
|
|
</div>
|
|
|
|
<div class="form-group settings-code">
|
|
<label for="ghost-foot">Blog Footer</label>
|
|
<p>Code here will be injected into the <code>\{{ghost_foot}}</code> tag on every page of your blog</p>
|
|
{{gh-cm-editor settings.ghostFoot id="ghost-foot" class="gh-input settings-code-editor" name="codeInjection[ghost_foot]" type="text" update=(action (mut settings.ghostFoot))}}
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
</section>
|
|
</section>
|