mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Added category to Dashboard Explore section title
no refs. - category name with a link to a prefiltered Ghost Explore page on the Dashboard's Explore section helps users get a direct link to more sites from with the same topic
This commit is contained in:
parent
2deb8f4595
commit
d330c91555
3 changed files with 16 additions and 2 deletions
|
@ -1,7 +1,11 @@
|
|||
<section class="gh-dashboard-section gh-dashboard-explore-feed" {{did-insert this.load}}>
|
||||
<article class="gh-dashboard-box">
|
||||
<div class="gh-dashboard-resource-title">
|
||||
<h4>Featured publications</h4>
|
||||
<h4>Featured publications
|
||||
{{#if this.meta.category_url}}
|
||||
in <a class="gh-dasboard-explore-title-link" href={{this.meta.category_url}}>{{this.meta.category}}</a>
|
||||
{{/if}}
|
||||
</h4>
|
||||
<div>
|
||||
<a href="https://ghost.org/explore/" target="_blank" rel="noopener noreferrer">Browse all</a>
|
||||
<LinkTo @route="explore" class="gh-dashboard-explore-add">Add your site to Explore</LinkTo>
|
||||
|
|
|
@ -10,6 +10,7 @@ export default class ExploreFeed extends Component {
|
|||
@tracked loading = null;
|
||||
@tracked error = null;
|
||||
@tracked sites = null;
|
||||
@tracked meta = null;
|
||||
|
||||
@action
|
||||
load() {
|
||||
|
@ -34,5 +35,6 @@ export default class ExploreFeed extends Component {
|
|||
|
||||
const result = yield response.json();
|
||||
this.sites = result.sites || [];
|
||||
this.meta = result.meta || [];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1575,12 +1575,20 @@ Dashboard Resource */
|
|||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.3px;
|
||||
color: var(--middarkgrey);
|
||||
color: var(--midgrey);
|
||||
margin: 0 0 8px;
|
||||
padding: 0;
|
||||
transition: color .3s;
|
||||
}
|
||||
|
||||
.gh-dashboard-resource-title:not(.is-large) h4 a {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700 !important;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.3px;
|
||||
color: var(--black) !important;
|
||||
}
|
||||
|
||||
.gh-dashboard-resource-title.is-large h4 {
|
||||
align-items: center;
|
||||
font-size: 1.55rem;
|
||||
|
|
Loading…
Add table
Reference in a new issue