Testing Prism.JS on Ghost

8 months ago

Just got Ghost up and running, with a modified theme "Athena", which I've modified to be more along the lines of material design.One thing I'm checking here is that my configuration for Prism source code highlighting is working.  So here is a block of code:namespace AzureMeter { public class

Just got Ghost up and running, with a modified theme "Athena", which I've modified to be more along the lines of material design.

One thing I'm checking here is that my configuration for Prism source code highlighting is working.  So here is a block of code:

namespace AzureMeter
{
    public class MeterData
    {
        public string meteredRegion { get; set; }
        public string meteredService { get; set; }
        public string project { get; set; }
        public string meteredServiceType { get; set; }
        public string serviceInfo1 { get; set; }
    }
}

That looks pretty dang good if you ask me.

All it took was adding the following to the footer section in 'Code Injection':

<link href="~/prism.css" rel="stylesheet" />
<pscript src="~/prism.js"></script>

Comments