Ghost theme based on the default Casper theme and inspired by GitHub and Medium for a simple design focused on readability. Good for code.
The landing page is very similar to the default one of Casper, although without the site logotype.
If you know HTML and CSS making modifications to the theme should be super simple.
Draugur is responsive with a mobile first approach.
Draugur has Syntax highlighting using Highlight.js and GitHub's syntax colors.
Draugur has comments through Disqus.
Draugur has structured data according to schema.org
The following features are currently under development:
- Featured images
- Advanced image support (Gallery, different sized such as covering full width, fit width etc)
Ghost is still a work in progress with many features not yet implemented, as Ghost gets updated new features will be added to Draugur.
- Download the theme using the link above.
- Extract using your preferred program
- Find the file called
links.hbs
in the folderpartials
- Change the links to match your own accounts. You can change the icons displayed by changing the class of the
i
tag. The complete list of icons can be found at Font Awesome. - Find the file called
footer.hbs
, also in the folderpartials
- Edit the footer information if you so please.
- Follow the installation instructions for a theme in the official Ghost Documentation
- Find the file called
comments.hbs
in thepartials
-folder and the file calledpost.hbs
inroot
. - Add the following code to those files:
SASS can be customized by modifying the file sass/custom.scss
.
git update-index --assume-unchanged sass/custom.scss
git update-index --assume-unchanged assets/css/style.css
- Edit the
custom.scss
file - Run
grunt
to compile changes intoassets/css/style.css
<section class="comments">
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'yourdisqusshortnamehere';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
</section>
...
<section class="post-content">
{{content}}
</section>
{{> comments}} <!-- Insert this line here -->
</article>
...