mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 22:01:49 +03:00
8502ebb96a
refs: https://github.com/TryGhost/Team/issues/1631 Co-authored-by: James Morris <moreofmorris@users.noreply.github.com>
25 lines
1.2 KiB
Handlebars
25 lines
1.2 KiB
Handlebars
<section class="gh-dashboard-resource gh-dashboard-newsletter" {{did-insert this.load}}>
|
|
<article class="gh-dashboard-resource-box">
|
|
<div class="gh-dashboard-resource-title">
|
|
<h4>Latest from the newsletter</h4>
|
|
</div>
|
|
<div class="gh-dashboard-resource-body">
|
|
{{#if (not (or this.loading this.error))}}
|
|
<div class="gh-dashboard-resource-bigarticle">
|
|
{{#each this.newsletters as |entry|}}
|
|
<a class="gh-dashboard-resource-smallarticle" href={{set-query-params entry.url utm_source='admin'}} target="_blank" rel="noopener noreferrer">
|
|
<div class="gh-dashboard-resource-text">
|
|
<h3>{{entry.title}}</h3>
|
|
<p>{{entry.excerpt}}</p>
|
|
</div>
|
|
</a>
|
|
{{/each}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
<div class="gh-dashboard-resource-footer">
|
|
<a href="https://ghost.org/resources/newsletter/" target="_blank" class="gh-dashboard-subscribe-button" rel="noopener noreferrer">Subscribe <span>to the newsletter </span>→</a>
|
|
</div>
|
|
</article>
|
|
</section>
|