<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Sculpin on Mike Bell - Blog &amp; Stuff</title><link>https://mikebell.io/tags/sculpin/</link><description>Recent content in Sculpin on Mike Bell - Blog &amp; Stuff</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>hello@mikebell.io (Mike Bell)</managingEditor><webMaster>hello@mikebell.io (Mike Bell)</webMaster><copyright>© 2026 Mike Bell</copyright><lastBuildDate>Mon, 22 Feb 2016 00:00:00 +0000</lastBuildDate><atom:link href="https://mikebell.io/tags/sculpin/index.xml" rel="self" type="application/rss+xml"/><item><title>Sculpin to Jekyll</title><link>https://mikebell.io/posts/sculpin-to-jekyll/</link><pubDate>Mon, 22 Feb 2016 00:00:00 +0000</pubDate><author>hello@mikebell.io (Mike Bell)</author><guid>https://mikebell.io/posts/sculpin-to-jekyll/</guid><description>
&lt;p>A while ago I found Sculpin through &lt;a
href="https://twitter.com/opdavies"
target="_blank"
>@opdavies&lt;/a> it looked really great, a PHP based blogging engine. It&amp;rsquo;s pretty decent but there are a few issues with it. Namely &lt;a
href="https://github.com/sculpin/sculpin/issues/295"
target="_blank"
>this&lt;/a>, there&amp;rsquo;s already a PR for it but it&amp;rsquo;s not been merged in and doesn&amp;rsquo;t look like it will any time soon. The bug renders it all pretty useless when trying to modify things.&lt;/p>
&lt;p>I was initially learning sculpin so that I could move Mental Health Awareness week over to it, but after trying to implement the existing theme in sculpin I found it nearly impossible to get anywhere fast. Theme support in Sculpin is a bit weird.&lt;/p>
&lt;p>This is where Jekyll comes in, at Wunder our on-boarding and generally awesome &lt;a
href="http://way.wunder.io/"
target="_blank"
>docs&lt;/a> are built using gh-pages which is a wrapper for Jekyll. It makes perfect sense to move to Jekyll and get to grips with it.&lt;/p>
&lt;p>Migrating was relatively easy just nuking the slug part from each post was enough to get it parsing my old content. A quick &lt;code>sed&lt;/code> did the trick. The theme went across relatively easily I just had to tweak a few values here and there. You can see the entire process in the git history on github.&lt;/p>
&lt;p>I&amp;rsquo;ve had to rebuild my build job but that&amp;rsquo;s pretty easy using rvm on the build server.&lt;/p>
&lt;p>Pretty pleased with the results so far. Next job is to clean the sass up and then completely rewrite the html and remove any cruft that&amp;rsquo;s come over in the 2 older migrations.&lt;/p>
&lt;p>Thanks for reading via RSS!&lt;/p>
&lt;p>Send me a message on &lt;a href="https://remotelab.uk/mikebell">Mastodon&lt;/a> or &lt;a href="mailto:hello@mikebell.io">email me&lt;/a>&lt;/p></description></item><item><title>Fun with Sculpin</title><link>https://mikebell.io/posts/fun-with-sculpin/</link><pubDate>Mon, 28 Dec 2015 00:00:00 +0000</pubDate><author>hello@mikebell.io (Mike Bell)</author><guid>https://mikebell.io/posts/fun-with-sculpin/</guid><description>
&lt;p>After migrating my blog over to Sculpin I&amp;rsquo;ve slowly been tweaking things here and there. Over the past few days I&amp;rsquo;ve added the following:&lt;/p>
&lt;ul>
&lt;li>Static social media links to post titles&lt;/li>
&lt;li>Posted time ago on homepage&lt;/li>
&lt;li>Comment counts after read more link&lt;/li>
&lt;li>Gulp all the things&lt;/li>
&lt;/ul>
&lt;p>It&amp;rsquo;s been quite a lot of fun adding all these features. They all touch a wide range of services and different parts of the site.&lt;/p>
&lt;h3 class="relative group">Static social media links
&lt;div id="static-social-media-links" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#static-social-media-links" aria-label="Anchor">#&lt;/a>
&lt;/span>
&lt;/h3>
&lt;p>These are built with free icons converted into a font and then displayed in a span tag wrapped in a link to the various different social media sites.&lt;/p>
&lt;h3 class="relative group">Time ago
&lt;div id="time-ago" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#time-ago" aria-label="Anchor">#&lt;/a>
&lt;/span>
&lt;/h3>
&lt;p>This uses a jquery plugin called &lt;a
href="http://timeago.yarp.com/"
target="_blank"
>Timeago&lt;/a> which tags onto html outputted by twig, I&amp;rsquo;m slowly getting to grips with twig through examples I find around the web. For some reason I just don&amp;rsquo;t get along with Symfony documentation.&lt;/p>
&lt;h3 class="relative group">Comment counts
&lt;div id="comment-counts" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#comment-counts" aria-label="Anchor">#&lt;/a>
&lt;/span>
&lt;/h3>
&lt;p>This is just javascript taken from Disqus, pain in the ass the get it setup though. Disqus as a whole isn&amp;rsquo;t great.&lt;/p>
&lt;h3 class="relative group">Gulp
&lt;div id="gulp" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#gulp" aria-label="Anchor">#&lt;/a>
&lt;/span>
&lt;/h3>
&lt;p>There is an &lt;a
href="https://github.com/sculpin/sculpin/pull/296"
target="_blank"
>outstanding&lt;/a> pull request with Sculpin which without it makes using &lt;code>sculpin generate --watch --server&lt;/code> painful, serving a page takes over a minute. So I&amp;rsquo;ve basically recreated a lot of the toolchain with gulp. I&amp;rsquo;ve pushed all the code up to the main repo and my gulpfile.js can be found &lt;a
href="https://github.com/mikebell/mikebell.io/blob/master/source/gulpfile.js"
target="_blank"
>here&lt;/a>. Running &lt;code>gulp build&lt;/code> kicks off a series of watch tasks that check the file system for any changes and then reacts based on whats changed. I then serve all the html content through drupalVM which I have permanently running in the background. One of the things I&amp;rsquo;ll love to see from &lt;code>sculpin generate&lt;/code> is the ability to output the compiled site to a different directory outside of the main sculpin repo.&lt;/p>
&lt;p>I&amp;rsquo;ve really enjoyed playing around with all this stuff and it feels good to be learning new things again and coding for pleasure.&lt;/p>
&lt;p>Thanks for reading via RSS!&lt;/p>
&lt;p>Send me a message on &lt;a href="https://remotelab.uk/mikebell">Mastodon&lt;/a> or &lt;a href="mailto:hello@mikebell.io">email me&lt;/a>&lt;/p></description></item><item><title>New Blog-ish</title><link>https://mikebell.io/posts/new-blog-ish/</link><pubDate>Sat, 19 Dec 2015 00:00:00 +0000</pubDate><author>hello@mikebell.io (Mike Bell)</author><guid>https://mikebell.io/posts/new-blog-ish/</guid><description>
&lt;p>I&amp;rsquo;ve finally moved my blog from Ghost to Sculpin as you can probably see.&lt;/p>
&lt;p>It&amp;rsquo;s all flat file html now which is generated via jenkins. I&amp;rsquo;m glad to be working with Jenkins again since I never really got on with Bamboo. I have quite a nice setup now. When I push a markdown post to the main repo it then triggers a build in jenkins which generates the css and html before copying it all to the webroot.&lt;/p>
&lt;p>The theme is a modified version of Uno which I used on my Ghost blog. I&amp;rsquo;ve stripped out a load of stuff to make it simpler and styled it a bit, it&amp;rsquo;s not perfect but it&amp;rsquo;ll do. As part of porting the theme I&amp;rsquo;ve started using twig which has it&amp;rsquo;s pros and cons. Currently the html is a bit borked if it displays certain posts, luckily most browsers handle it ok. I&amp;rsquo;ve posted &lt;a
href="http://stackoverflow.com/questions/34364111/split-twig-content-after-html-tag"
target="_blank"
>this&lt;/a> question to see if anyone can help. I&amp;rsquo;ve also started to use Gulp to manage building the theme. I still have a long way to go with it since I need to minify the css and fix the image compression since it doesn&amp;rsquo;t appear to be working.&lt;/p>
&lt;p>The migration was done by &lt;a
href="https://packagist.org/packages/mikebell/ghosttosculpin"
target="_blank"
>ghosttosculpin&lt;/a> which I wrote using Symfony Console. I had a lot of fun writing it and it&amp;rsquo;s my first composer package.&lt;/p>
&lt;p>Huge thanks to &lt;a
href="https://twitter.com/opdavies"
target="_blank"
>Oliver Davies&lt;/a> for helping me get started and providing a good base to work off.&lt;/p>
&lt;p>Thanks for reading via RSS!&lt;/p>
&lt;p>Send me a message on &lt;a href="https://remotelab.uk/mikebell">Mastodon&lt;/a> or &lt;a href="mailto:hello@mikebell.io">email me&lt;/a>&lt;/p></description></item></channel></rss>