<?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: Enamul Haque</title>
    <description>The latest articles on DEV Community by Enamul Haque (@enamul_haque).</description>
    <link>https://dev.to/enamul_haque</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%2F1613757%2F21a85245-cc53-4d26-840e-5ae3eac04a00.jpg</url>
      <title>DEV Community: Enamul Haque</title>
      <link>https://dev.to/enamul_haque</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/enamul_haque"/>
    <language>en</language>
    <item>
      <title>How to Add Reading Time in Ghost CMS Blog Posts</title>
      <dc:creator>Enamul Haque</dc:creator>
      <pubDate>Sat, 29 Jun 2024 05:43:21 +0000</pubDate>
      <link>https://dev.to/enamul_haque/how-to-add-reading-time-in-ghost-cms-blog-posts-3ome</link>
      <guid>https://dev.to/enamul_haque/how-to-add-reading-time-in-ghost-cms-blog-posts-3ome</guid>
      <description>&lt;p&gt;In this Blog, we'll walk you through the process of adding reading time to your Ghost blog posts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Add Reading Time?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;User-Friendly Experience: Readers appreciate knowing how much time they need to invest in an article before they start reading. It helps them manage their time effectively.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Improved Engagement: Clear expectations about the reading time can encourage visitors to explore longer articles, increasing overall engagement on your blog.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Content Planning: As a content creator, knowing the average reading time of your posts can assist in planning and structuring future content. Now, let's dive into the steps to add reading time to your Ghost blog posts.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  1. Display Reading Time on Your Post Page
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1y7lrf8tnqr9ln4doxfd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1y7lrf8tnqr9ln4doxfd.png" alt="Image description" width="800" height="457"&gt;&lt;/a&gt;&lt;br&gt;
Now follow the steps below to add reading time to your post.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step-1:&lt;/strong&gt; First, download your desired theme file then open it with the code editor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step-2:&lt;/strong&gt; Open the file responsible for rendering your post content &lt;code&gt;(post.hbs)&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step-3:&lt;/strong&gt; Wherever you want the reading time displayed, insert the magical words &lt;code&gt;{{reading_time}}&lt;/code&gt;. Typically, this is near the post metadata.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step-4:&lt;/strong&gt; Add the following code to display the reading time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{#if}}
    &amp;lt;span class="reading-time"&amp;gt;
    &amp;lt;span&amp;gt;&amp;amp;bull;&amp;lt;/span&amp;gt; 
    {{reading_time minute="1 minute" minutes="% min read"}}
    &amp;lt;/span&amp;gt;
{{/if}}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fci3oe0fmjaanynqy0unc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fci3oe0fmjaanynqy0unc.png" alt="Image description" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This script initializes the reading time calculation and updates the specified element with the calculated time.&lt;/p&gt;

&lt;p&gt;Customize your message (optional): Want to add a personalized touch? The &lt;code&gt;reading_time&lt;/code&gt; helper takes two optional arguments:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;minute:&lt;/code&gt;Specify the text for a 1 minute read (e.g., "1 min read").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;minutes&lt;/code&gt;: Customize the text for longer reads (e.g., "% min read").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;Example&lt;/code&gt;: &lt;code&gt;{{reading_time minute="1 minute read " minutes="% minutes read"}}&lt;/code&gt; This would display "&lt;code&gt;1 minute read&lt;/code&gt;" for posts under 2 minutes and "&lt;code&gt;% minutes read&lt;/code&gt;" for longer ones.&lt;br&gt;
&lt;strong&gt;Step-5:&lt;/strong&gt; Save the changes and upload the theme again. Now visit your blog post you should now see the estimated reading time displayed near the post metadata. Congratulations! You've successfully added reading time to your Ghost blog posts.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Style the Reading Time Display
&lt;/h2&gt;

&lt;p&gt;If your theme doesn't automatically style the reading time display, you may want to add some CSS to make it visually appealing. Edit your theme's &lt;code&gt;screen.css&lt;/code&gt; file and add styles for the &lt;code&gt;.reading-time&lt;/code&gt; class.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/*CSS Code for styling your reading time */
.reading-time {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7t6lo3zdmcr9xa4b81dr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7t6lo3zdmcr9xa4b81dr.png" alt="Image description" width="800" height="465"&gt;&lt;/a&gt;&lt;br&gt;
Feel free to customize the styles according to your theme's design.&lt;/p&gt;

&lt;p&gt;You can also add this code in the site header using Code injection from the ghost dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7o7iq6dtwo1py9ooeldm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7o7iq6dtwo1py9ooeldm.png" alt="Image description" width="800" height="416"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  3. Translate Your Reading Time
&lt;/h2&gt;

&lt;p&gt;If you want to use your website in multilingual then you need to translate your website.&lt;/p&gt;

&lt;p&gt;Translating your reading time in other languages in Ghost CMS requires a bit of extra effort, but there are several ways to achieve it now I will show you how to use the &lt;code&gt;t&lt;/code&gt; helper:&lt;/p&gt;
&lt;h2&gt;
  
  
  Using the &lt;code&gt;t&lt;/code&gt; Helper:
&lt;/h2&gt;

&lt;p&gt;Ghost provides a built-in helper called t for translating text. You can use this to translate the reading time output into your desired language. Here's how:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In your theme's post template:&lt;/strong&gt; Wrap the &lt;code&gt;reading_time&lt;/code&gt; helper output in a &lt;code&gt;t&lt;/code&gt; helper call with the appropriate translation key. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{reading_time minute=(t '1 min read') minutes=(t '% mins read')}}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;You need to define translation keys for "reading time" and other relevant phrases in your theme's languages directory. These keys should correspond to the translations in your chosen language.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In conclusion, Adding reading time to your Ghost blog posts is a simple yet powerful way to improve user experience and engagement. It sets expectations, builds trust, and helps readers make informed choices about how to dive into your content.&lt;/p&gt;

</description>
      <category>ghostcms</category>
      <category>blogwebsite</category>
      <category>readingtime</category>
      <category>blogpost</category>
    </item>
    <item>
      <title>How to Use Webflow Templates: Beginner's Guide</title>
      <dc:creator>Enamul Haque</dc:creator>
      <pubDate>Sat, 22 Jun 2024 08:02:33 +0000</pubDate>
      <link>https://dev.to/enamul_haque/how-to-use-webflow-templates-beginners-guide-4706</link>
      <guid>https://dev.to/enamul_haque/how-to-use-webflow-templates-beginners-guide-4706</guid>
      <description>&lt;p&gt;Are you looking to create a stunning website without the hassle of coding? Don’t worry you are coming to the right place Webflow is the best choice for you. Webflow is a powerful tool for creating stunning websites without needing to write a single line of code. But for those just starting out, the blank canvas of a new project can be daunting. That's where Webflow templates come in!&lt;/p&gt;

&lt;h2&gt;
  
  
  How To Use Webflow Templates
&lt;/h2&gt;

&lt;p&gt;Using Webflow templates is easy, even if you have no prior experience with web design. Here's a step-by-step guide to help you get started:&lt;/p&gt;

&lt;h3&gt;
  
  
  Step-1: Finding the Perfect Template
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fem6jilkh6tgshisicggs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fem6jilkh6tgshisicggs.png" alt="Image description" width="800" height="466"&gt;&lt;/a&gt;&lt;br&gt;
Webflow offers a user-friendly template marketplace where you can browse through a variety of options. You can filter by category, features, and price (free or premium) to find a template that aligns with your vision.&lt;/p&gt;

&lt;p&gt;You'll find templates for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Business websites&lt;/li&gt;
&lt;li&gt;E-commerce stores&lt;/li&gt;
&lt;li&gt;Blog websites&lt;/li&gt;
&lt;li&gt;Landing pages&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once you've found a few potential templates, take some time to explore them in the Webflow Designer. This will give you a better sense of the layout, structure, and customization options.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step-2:  Using a Webflow Template
&lt;/h3&gt;

&lt;p&gt;When you find the perfect template, using it is as simple as clicking a button. To use the Webflow template you need to log in to your Webflow dashboard.&lt;/p&gt;

&lt;p&gt;To use the Webflow template you need to create a new site, Click on the “&lt;strong&gt;new site&lt;/strong&gt;” button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpa86bmfk26njqm2eelo3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpa86bmfk26njqm2eelo3.png" alt="Image description" width="800" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now click on the “template” option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy08rab3jrgz2dbanuebh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy08rab3jrgz2dbanuebh.png" alt="Image description" width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will see the template collections. There are both free and premium templates. Select the template of your choice give a name and open it with the webflow designer interface.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step-3:  Customizing Your Template
&lt;/h3&gt;

&lt;p&gt;Now you can start to customize your Webflow template. You're not stuck with the original design; you can make it your own! After completing importing a template, it's time to customize the design to fit your brand. Webflow's visual editor makes it easy to customize every aspect of your website, from colors and fonts to layout and content. Simply click on an element to edit it, or drag and drop new elements onto the page. You can also add custom animations and interactions to make your website stand out.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjt8wjppgoz8cn8a6yevv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjt8wjppgoz8cn8a6yevv.png" alt="Image description" width="800" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here are some ways to personalize your template:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Replace Text and Images: Change all content with your own text, images, and logos.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Edit Styles: Fine-tune the fonts, colors, and spacing to create a unique visual identity.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add or Remove Elements: Feel free to add new sections or remove elements that don't suit your needs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CMS Content Management: If your template uses a CMS, you can easily add, edit, and publish website content.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Webflow's intuitive visual interface makes customization a breeze. You can drag, drop, and edit elements directly on the canvas, giving you complete control over your website's look and feel.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step-4: Preview and Publish
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F99he856ar9irinrpcym8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F99he856ar9irinrpcym8.png" alt="Image description" width="800" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before you publish your website, preview it to make sure everything looks and works well. Webflow allows you to preview your website in real-time, so you can see exactly how it will look on desktop, tablet, and mobile devices. Once you're happy with the design, simply click the publish button to make your website live.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step-5: Domain Setup
&lt;/h3&gt;

&lt;p&gt;Free plans offer subdomains (e.g., yoursite.webflow.io). For a custom domain (yourbrand.com), you'll need a paid Site plan. These plans provide secure hosting and advanced SEO controls to get your site noticed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing Your Plan
&lt;/h2&gt;

&lt;p&gt;Webflow offers tiered plans for both websites and e-commerce stores. The best plan depends on your needs. If you're starting with a simple website, a Basic Site plan might suffice. For e-commerce or feature-rich websites, consider higher tiers that offer more CMS items, form submissions, and advanced functionalities.&lt;/p&gt;

&lt;h3&gt;
  
  
  Using Webflow E-Commerce Functionality
&lt;/h3&gt;

&lt;p&gt;Learn how to enable e-commerce options, add products, configure payment and shipping options, and optimize your store for a seamless shopping experience.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Enabling E-Commerce:
&lt;/h3&gt;

&lt;p&gt;To enable e-commerce on your Webflow site, go to the Project Settings, select the 'E-Commerce' tab, and follow the prompts to set up your store. Choose a suitable plan that supports e-commerce. Webflow offers various plans depending on the size and needs of your store.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8wp9wmzjcsxsirqxc4dm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8wp9wmzjcsxsirqxc4dm.png" alt="Image description" width="800" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Adding Products:
&lt;/h3&gt;

&lt;p&gt;Navigate to the E-Commerce panel within the Designer. Click on 'Products' and then 'Add New Product'.&lt;br&gt;
Fill in the product details, including name, description, price, images, and variants (such as sizes or colors).&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Design Your Store Pages:
&lt;/h3&gt;

&lt;p&gt;Use the template's pre-built product pages as a starting point. Customize layouts to showcase product information, add variations (sizes, colors), and integrate eye-catching "Add to Cart" buttons.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpbla1rssevxb3clq5sr6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpbla1rssevxb3clq5sr6.png" alt="Image description" width="800" height="437"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Checkout Flow:
&lt;/h3&gt;

&lt;p&gt;Webflow allows you to design a smooth checkout process. This might involve customizing the shopping cart page, designing the checkout form, and integrating a payment gateway (like Stripe or PayPal) to securely accept payments.&lt;/p&gt;

&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;p&gt;Webflow templates are a powerful tool for getting your website up and running quickly and efficiently. By following these steps and leveraging the intuitive Webflow interface, you can create a professional and customized website without needing to code. So dive into the Webflow template marketplace, find a template that inspires you, and get creative.&lt;/p&gt;

</description>
      <category>webflow</category>
      <category>webflowtemplate</category>
      <category>webflowtutorial</category>
      <category>webflowdeveloper</category>
    </item>
  </channel>
</rss>
