mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
2c498ab193
Refs https://www.notion.so/ghost/Switch-breadcrumb-style-513a624c0e0d490ca39a2fdb97a6971a - Separating out the breadcrumbs and the title makes it easier to navigate back on multiple levels for nested pages. - Avoids very long titles, as it doesn't include breadcrumbs anymore
86 lines
4.5 KiB
Handlebars
86 lines
4.5 KiB
Handlebars
<section class="gh-canvas">
|
|
<GhCanvasHeader class="gh-canvas-header sticky">
|
|
<div class="flex flex-column">
|
|
<div class="gh-canvas-breadcrumb">
|
|
<LinkTo @route="settings">
|
|
Settings
|
|
</LinkTo>
|
|
{{svg-jar "arrow-right-small"}}
|
|
<LinkTo @route="settings.integrations" data-test-link="integrations-back">
|
|
Integrations
|
|
</LinkTo>
|
|
{{svg-jar "arrow-right-small"}} AMP
|
|
</div>
|
|
</div>
|
|
<section class="view-actions">
|
|
<GhTaskButton @task={{this.saveTask}} @class="gh-btn gh-btn-primary gh-btn-icon" data-test-save-button={{true}} />
|
|
</section>
|
|
</GhCanvasHeader>
|
|
|
|
<section class="view-container">
|
|
<section class="gh-main-section app-grid">
|
|
<div class="gh-main-section-block app-detail-heading app-grid">
|
|
<div class="app-cell">
|
|
<img class="app-icon" src="assets/img/amp.svg" />
|
|
</div>
|
|
<div class="app-cell">
|
|
<h3>AMP</h3>
|
|
<p>Accelerated Mobile Pages</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<div class="gh-main-section">
|
|
<h4 class="gh-main-section-header small bn">AMP configuration</h4>
|
|
<section class="gh-main-section-block">
|
|
<div class="gh-main-section-content grey">
|
|
<div>
|
|
<div class="gh-setting-first {{unless this.settings.amp "gh-setting-last"}}">
|
|
<div class="gh-setting-content">
|
|
<div class="gh-setting-title">Enable AMP</div>
|
|
<div class="gh-setting-desc mb0">Enable <a href="https://ampproject.org" target="_blank" rel="noopener noreferrer">Google Accelerated Mobile Pages</a> for your posts</div>
|
|
</div>
|
|
<div class="gh-setting-action">
|
|
<div class="for-checkbox">
|
|
<label for="amp" class="checkbox">
|
|
<input
|
|
type="checkbox"
|
|
checked={{this.settings.amp}}
|
|
id="amp"
|
|
name="amp"
|
|
onclick={{action "update" value="target.checked"}}
|
|
data-test-amp-checkbox
|
|
>
|
|
<span class="input-toggle-component"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{#liquid-if this.settings.amp class=""}}
|
|
<div class="gh-setting-last gh-setting-amp-liquid">
|
|
<div class="gh-setting-content gh-setting-content--no-action">
|
|
<div class="gh-setting-title">Google Analytics Tracking ID</div>
|
|
<div class="gh-setting-desc">Tracks AMP traffic in Google Analytics, find your ID <a href="https://ghost.org/help/how-to-find-your-google-analytics-tracking-id/">here</a></div>
|
|
<div class="gh-setting-content-extended">
|
|
<GhFormGroup @class="no-margin" @errors={{this.settings.errors}} @hasValidated={{this.settings.hasValidated}} @property="ampGtagId">
|
|
<GhTextInput
|
|
@placeholder="UA-XXXXXXX-X"
|
|
@name="amp_gtag_id"
|
|
@value={{this.settings.ampGtagId}}
|
|
@keyEvents={{hash
|
|
Enter=(action "save")
|
|
}}
|
|
/>
|
|
<GhErrorMessage @errors={{this.settings.errors}} @property="ampGtagId"/>
|
|
</GhFormGroup>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{/liquid-if}}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</section>
|
|
</section>
|