<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Akbarsait</title>
    <description>The latest articles on DEV Community by Akbarsait (@akbarsait).</description>
    <link>https://dev.to/akbarsait</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F119394%2F539bd0d9-7b32-4539-8277-155e51b39280.jpg</url>
      <title>DEV Community: Akbarsait</title>
      <link>https://dev.to/akbarsait</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/akbarsait"/>
    <language>en</language>
    <item>
      <title>Converting BlogCFC blog to Eleventy</title>
      <dc:creator>Akbarsait</dc:creator>
      <pubDate>Wed, 17 Apr 2024 02:39:36 +0000</pubDate>
      <link>https://dev.to/akbarsait/converting-blogcfc-blog-to-eleventy-26cj</link>
      <guid>https://dev.to/akbarsait/converting-blogcfc-blog-to-eleventy-26cj</guid>
      <description>&lt;p&gt;Originally posted at &lt;a href="https://akbarsait.com/blog/2024/03/16/converting-blogcfc-to-eleventy/" rel="noopener noreferrer"&gt;akbarsait.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This post outlines the steps for migrating an existing &lt;a href="https://github.com/teamcfadvance/BlogCFC5" rel="noopener noreferrer"&gt;BlogCFC&lt;/a&gt; blog to a &lt;a href="https://jamstack.org/what-is-jamstack/" rel="noopener noreferrer"&gt;JamStack&lt;/a&gt;, with a focus on using &lt;a href="https://www.11ty.dev/" rel="noopener noreferrer"&gt;Eleventy&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blog Posts Conversion to MD Files:&lt;/strong&gt; First, convert the existing blog posts to Markdown files. Since all the BlogCFC posts are data-driven, this simplifies the process of converting them to MD files. Adrian Moreno has created a three-step script to make this even easier. Simply use the ColdFusion scripts and customize them as needed&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://adrianmoreno.com/2018/10/06/converting-blogcfc-posts-to-markdown.html" rel="noopener noreferrer"&gt;https://adrianmoreno.com/2018/10/06/converting-blogcfc-posts-to-markdown.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Comments Handling:&lt;/strong&gt; Next, I needed to migrate the comments from the blog. Initially, I used the built-in comments functionality that saved comments to the BlogCFC database. Later, I migrated to Disqus. Despite the low comment count, I followed these steps to manage them.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Comments Export from Disqus&lt;/strong&gt;: Raymond Camden outlines the steps for converting: &lt;a href="https://www.raymondcamden.com/2014/11/26/disqus-update-and-blogcfc-export-script" rel="noopener noreferrer"&gt;https://www.raymondcamden.com/2014/11/26/disqus-update-and-blogcfc-export-script&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Comments Import to Eleventy&lt;/strong&gt;: After converting the content to XML files, the next step is to create a JSON file with a name similar to the blog post’s Markdown (MD) files. Eleventy will automatically handle this JSON data within our markdown template. The process is documented through utility by Zach Leatherman. &lt;a href="https://github.com/11ty/eleventy-import-disqus" rel="noopener noreferrer"&gt;https://github.com/11ty/eleventy-import-disqus&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;coldfusion-builder-extension-appcore-creator.md
coldfusion-builder-extension-appcore-creator.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The result of the imported comments will display as follows.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://akbarsait.com/blog/2009/1/13/blogcfc-redesign/" rel="noopener noreferrer"&gt;https://akbarsait.com/blog/2009/1/13/blogcfc-redesign/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://akbarsait.com/blog/2013/11/23/getcfmljobscom-for-cfml-developers/" rel="noopener noreferrer"&gt;https://akbarsait.com/blog/2013/11/23/getcfmljobscom-for-cfml-developers/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://akbarsait.com/blog/2012/1/25/configuring-and-running-railo-powered-cfml-applications-on-jelastic-cloud/" rel="noopener noreferrer"&gt;https://akbarsait.com/blog/2012/1/25/configuring-and-running-railo-powered-cfml-applications-on-jelastic-cloud/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;&lt;strong&gt;Handling New Comments&lt;/strong&gt;: There are excellent lightweight comment utilities available for managing comments on your eleventy blog. I personally use &lt;a href="https://utteranc.es/" rel="noopener noreferrer"&gt;Utterances&lt;/a&gt;, but &lt;a href="https://giscus.app/" rel="noopener noreferrer"&gt;Giscus&lt;/a&gt; is also a great alternative.&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Redirect and Netlify:&lt;/strong&gt; If you’re hosting your blog on Netlify and intend to set up redirects for changes to your page URLs, create a new front-matter entry using the following script. This step is necessary only if you plan to alter the URL pattern from your previous blog to the new one.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://willvincent.com/2022/07/27/redirects-with-11ty-and-netlify/" rel="noopener noreferrer"&gt;https://willvincent.com/2022/07/27/redirects-with-11ty-and-netlify/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://dev.to/blog/2023/12/09/blog-poweredby-11ty/"&gt;transition&lt;/a&gt; from BlogCFC to Eleventy was smoother than anticipated, and I successfully deployed the website on &lt;a href="https://www.netlify.com/" rel="noopener noreferrer"&gt;Netlify&lt;/a&gt;. &lt;br&gt;
Thanks to Adrian Moreno, Raymond Camden and Zach Leatherman. If you have any questions, feel free to leave a comment! &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Related Post:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://akbarsait.com/blog/2023/12/09/blog-poweredby-11ty/" rel="noopener noreferrer"&gt;Blog Powered by 11ty&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://akbarsait.com/blog/2009/1/13/blogcfc-redesign/" rel="noopener noreferrer"&gt;BlogCFC Redesign&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Title Photo by &lt;a href="https://unsplash.com/@akbarsait?utm_content=creditCopyText&amp;amp;utm_medium=referral&amp;amp;utm_source=unsplash" rel="noopener noreferrer"&gt;Akbar Noormohamed&lt;/a&gt; on &lt;a href="https://unsplash.com/photos/Upr4-ZYhSAo?utm_content=creditCopyText&amp;amp;utm_medium=referral&amp;amp;utm_source=unsplash" rel="noopener noreferrer"&gt;Unsplash&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>blogcfc</category>
      <category>11ty</category>
      <category>coldfusion</category>
      <category>cfml</category>
    </item>
  </channel>
</rss>
