Coder Social home page Coder Social logo

codesquadhud / casper-dev-blog-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sujinleeme/casper-dev-blog-theme

0.0 1.0 0.0 5.15 MB

๐Ÿ‘ป Customized ghost casper theme for developer's blog

Home Page: https://sujinlee.me/

License: Other

CSS 46.53% JavaScript 14.55% Handlebars 38.92%

casper-dev-blog-theme's Introduction

Customized ghost casper theme for developer's blog

Inspired from Hungys's CasperS

This repo is customized casper theme for my ghost dev blog. Currently, it lives on sujinlee.me.

  • Casper 3
  • Works with Ghost 3+
  • Google Analytics integration
  • Disqus integration (comments, comment count)
  • Prism-powered syntax highlight
  • KaTex
  • Social links with Simple Icons integration (TBD)
  • LightMode / DarkMode

How to install theme in your live ghost

  • Download this repo as zip file.
  • Go to your desgin panel in ghost admin page (https:///ghost/#/settings/design)
  • Click Upload a theme button and upload zip file.
  • Activate new theme.
  • Go to code injection panel. (https:///ghost/#/settings/code-injection)
  • Update google analytics variable in Site Header code block.
<script>
  var ga_id = "your_google_id"
</script>
  • Update social links and google analytics variables in Site Footer code block.
    • Social icons : facebook, flickr, github, gmail, googleplus', instagram, line, linkedin, messenger, microsoftoutlook, plurk, sinaweibo, skype, snapchat, stackoverflow, telegram, twitter, wechat, whatsapp
<script>
  var social_link = {
    linkedin: "https://www.linkedin.com/in/username",
    github: "https://github.com/username",
    medium: "https://medium.com/@userid"
  }
</script>
  • Update your disqus shortname in Site Footer.
<script>
  var disqus_shortname = "sujinlee"
</script>

Disqus configuration

Katex usage

  • Use a pair of single($)/double($$) dollar sign as formula delimiter.

katex

How to customize casper theme

  • Install ghost locally as following official setup guide doc.
  • Clone or download repo and put them in content/themes/ folder under your Ghost installation.
$ cd /[your-ghost-root-directory]
$ git clone https://github.com/sujinleeme/casper-dev-blog-theme.git content/themes/[theme-name]
  • Run ghost start.
  • Go to theme folder and install packages.
$ cd content/themes/[theme-name]
$ yarn install

casper-dev-blog-theme's People

Contributors

sujinleeme avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.