Ghost
Based off the official Ghost docker.
Dark Mode
To permanently set dark mode without JS, edit:
/_data/themes/attila-master/src/sass/_colors.scss
:root {
--color-background-main: #222426;
--color-background-secondary: #1D1F20;
--color-background-contrast: #3B3D40;
--color-background-overlay: rgba(9,10,13,0.9);
--color-content-lead: #FFF;
--color-content-main: #E1E3E6;
--color-content-secondary: #909499;
}
.theme-dark:root {
--color-background-main: #222426;
--color-background-secondary: #1D1F20;
--color-background-contrast: #3B3D40;
--color-background-overlay: rgba(9,10,13,0.9);
--color-content-lead: #FFF;
--color-content-main: #E1E3E6;
--color-content-secondary: #909499;
}
@media (prefers-color-scheme: dark) {
html:not(.theme-light):root {
--color-background-main: #222426;
--color-background-secondary: #1D1F20;
--color-background-contrast: #3B3D40;
--color-background-overlay: rgba(9,10,13,0.9);
--color-content-lead: #FFF;
--color-content-main: #E1E3E6;
--color-content-secondary: #909499;
}
}
Header
To remove the Article tag from post header, edit:
/_data/themes/attila-master/post.hbs
Remove <span class="post-type">{{t "Article"}}</span> from post-info span in header.
To remove the 1 minute read, remove {{reading_time minute=(t "1 min read") minutes=(t "% min read")}} from post-meta div in header.
Footer
Change or remove the footer by editing:
/_data/themes/attila-master/default.hbs
<div class="nav-footer">
<nav class="nav-wrapper" aria-label="{{t "Footer"}}">
<span class="nav-copy">{{@site.title}} © {{date format='YYYY'}} <a class="nav-rss" title="RSS" href="{{@site.url}}/rss/" target="_blank"><i class="icon icon-rss">
{{#if @site.secondary_navigation}}
{{navigation type="secondary"}}
{{/if}}
<span class="nav-credits">{{t "Published with"}} <a href="https://ghost.org">Ghost</a> • {{t "Theme" }} <a href="https://github.com/zutrinken/attila">Attila</a> &>
</nav>
</div>
Socials
To remove social share links and Disqus, edit:
/_data/themes/attila-master/post.hbs
And remove the following sections:
<div class="post-share">
<span class="post-info-label">{{t "Share"}}</span>
<a title="Twitter" aria-label="Twitter" class="twitter" href="https://twitter.com/share?text={{title}}&url={{url absolute="true"}}" onclick="window.open(this.hre>
<i class="icon icon-twitter" aria-hidden="true"></i>
</a>
<a title="Facebook" aria-label="Facebook" class="facebook" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}" onclick="window.open(this.>
<i class="icon icon-facebook" aria-hidden="true"></i>
</a>
<a title="LinkedIn" aria-label="LinkedIn" class="linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url={{url absolute="true"}}/&title={{tit>
<i class="icon icon-linkedin" aria-hidden="true"></i>
</a>
<a title="Email" aria-label="Email" class="email" href="mailto:?subject={{title}}&body={{url absolute="true"}}">
<i class="icon icon-mail" aria-hidden="true"></i>
</a>
</div>
And:
<section class="post-comments">
<a id="show-disqus" class="post-comments-activate">{{t "Show Comments"}}</a>
<div id="disqus_thread"></div>
</section>