<?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: Cogear.JS</title>
    <description>The latest articles on DEV Community by Cogear.JS (@codespb).</description>
    <link>https://dev.to/codespb</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%2Forganization%2Fprofile_image%2F349%2F15e20b7e-533e-4646-b583-8d66dcb9124e.png</url>
      <title>DEV Community: Cogear.JS</title>
      <link>https://dev.to/codespb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/codespb"/>
    <language>en</language>
    <item>
      <title>Creating a plugin for Cogear.JS</title>
      <dc:creator>Dmitriy Belyaev</dc:creator>
      <pubDate>Tue, 09 Oct 2018 19:31:23 +0000</pubDate>
      <link>https://dev.to/cogear/creating-a-plugin-for-cogearjs-25h4</link>
      <guid>https://dev.to/cogear/creating-a-plugin-for-cogearjs-25h4</guid>
      <description>&lt;p&gt;&lt;a href="https://cogearjs.org" rel="noopener noreferrer"&gt;Cogear.JS&lt;/a&gt; is a modern static websites generator built with &lt;a href="https://nodejs.org" rel="noopener noreferrer"&gt;Node.JS&lt;/a&gt; and based on &lt;a href="https://webpack.js.org" rel="noopener noreferrer"&gt;Webpack&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you have missed introduction to &lt;strong&gt;Cogear.JS&lt;/strong&gt; article series, you're welcome:&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag__link"&gt;
  &lt;div class="ltag__link__content"&gt;
    &lt;div class="missing"&gt;
      &lt;h2&gt;Article No Longer Available&lt;/h2&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;div class="ltag__link"&gt;
  &lt;div class="ltag__link__content"&gt;
    &lt;div class="missing"&gt;
      &lt;h2&gt;Article No Longer Available&lt;/h2&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;div class="ltag__link"&gt;
  &lt;div class="ltag__link__content"&gt;
    &lt;div class="missing"&gt;
      &lt;h2&gt;Article No Longer Available&lt;/h2&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;It's time to talk about crafting plugins.&lt;/p&gt;

&lt;p&gt;Let’s start from giving a definition to a plugin.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Plugin is a module which can hook into the system core to change its behavior.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Node.JS&lt;/strong&gt; has first-party &lt;a href="https://nodejs.org/api/events.html" rel="noopener noreferrer"&gt;EventEmitter&lt;/a&gt; – a huge API surface with synchronous event emitting, magic error event and flawed memory leak detected. &lt;strong&gt;Cogear.JS&lt;/strong&gt; uses the small library called &lt;a href="https://github.com/sindresorhus/emittery" rel="noopener noreferrer"&gt;Emittery&lt;/a&gt;, which has none of that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cogear.JS&lt;/strong&gt; core is built from modules. Take a look at &lt;a href="https://github.com/codemotion/cogear.js/blob/master/lib/cogear.js" rel="noopener noreferrer"&gt;the main script file&lt;/a&gt; in the repository and all modules it has plugged in.&lt;/p&gt;

&lt;h3&gt;
  
  
  Source of &lt;code&gt;./lib/cogear.js&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F3az9aq4mxh88vwmrzrmv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F3az9aq4mxh88vwmrzrmv.png" alt="Source of ./lib/cogear.js"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Moreover &lt;strong&gt;Cogear.JS&lt;/strong&gt; main object class is globally available and extends Emittery, so events can be called throughout the entire code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cogear.JS&lt;/strong&gt; as an inheritor of &lt;strong&gt;Emittery&lt;/strong&gt; has two methods – &lt;code&gt;on&lt;/code&gt; and &lt;code&gt;emit&lt;/code&gt;. With &lt;code&gt;on&lt;/code&gt; method you can add callback function for named event. And with &lt;code&gt;emit&lt;/code&gt; method you call this event with or without arguments. &lt;/p&gt;

&lt;p&gt;Read more at the &lt;a href="https://github.com/sindresorhus/emittery" rel="noopener noreferrer"&gt;Emittery docs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Arguments can be easily fetched from the context of globally available &lt;code&gt;cogear&lt;/code&gt; instance. Or you can pass them manually.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fyvvbjdysc24wlfz03i3g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fyvvbjdysc24wlfz03i3g.png" alt="Cogear on ane emit methods"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To look through all the events use &lt;a href="https://github.com/codemotion/cogear.js/search?utf8=%E2%9C%93&amp;amp;q=cogear.emit&amp;amp;type=" rel="noopener noreferrer"&gt;search&lt;/a&gt; on GitHub repository. It will show all the event which you can hook into.&lt;/p&gt;

&lt;p&gt;So what is a plugin in &lt;strong&gt;Cogear.JS&lt;/strong&gt; environment? It’s a simple object with only one method required – which is called &lt;code&gt;apply&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;To engage you in further learning I encourage you to see a new video from our YouTube-channel:&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/V427GA4BZHk"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;It will reveal the topic of plugin crafting.&lt;/p&gt;

&lt;p&gt;You can also dive into proper docs section:&lt;br&gt;
&lt;a href="https://cogearjs.org/docs/plugins" rel="noopener noreferrer"&gt;https://cogearjs.org/docs/plugins&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And discover plugins in awesome-cogear repository:&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/dbelyaeff" rel="noopener noreferrer"&gt;
        dbelyaeff
      &lt;/a&gt; / &lt;a href="https://github.com/dbelyaeff/awesome-cogear" rel="noopener noreferrer"&gt;
        awesome-cogear
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      List of best plugins, themes, etc.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;awesome-cogear&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;Best plugins and themes for &lt;a href="https://cogearjs.org" rel="nofollow noopener noreferrer"&gt;&lt;strong&gt;Cogear.JS&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Plugins&lt;/h1&gt;
&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Assets&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear-plugin-compressor" rel="noopener noreferrer"&gt;Compressor&lt;/a&gt; – Compress pages and assets with gzip for faster loading.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear-plugin-pages-json" rel="noopener noreferrer"&gt;Pages JSON&lt;/a&gt; – Stores pages into &lt;code&gt;pages.json&lt;/code&gt;. Can be fetched and used on site with &lt;a href="https://reactjs.org" rel="nofollow noopener noreferrer"&gt;React&lt;/a&gt;, &lt;a href="https://vuejs.org" rel="nofollow noopener noreferrer"&gt;Vue.JS&lt;/a&gt;, &lt;a href="https://angular.io" rel="nofollow noopener noreferrer"&gt;Angular&lt;/a&gt;, etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Video&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear-plugin-youtube" rel="noopener noreferrer"&gt;YouTube&lt;/a&gt; – Embed youtube videos by links.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Frontend frameworks&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear-plugin-vue" rel="noopener noreferrer"&gt;Vue&lt;/a&gt; – Brings Vue SFC import to entry points.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Blogging&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear-plugin-blog" rel="noopener noreferrer"&gt;Blog&lt;/a&gt; – Simple blog with pagination and tags.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear-plugin-blog-rss" rel="noopener noreferrer"&gt;Blog-RSS&lt;/a&gt; – Adds RSS to blog.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Themes&lt;/h1&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear-theme-default" rel="noopener noreferrer"&gt;Default&lt;/a&gt; – Default theme. To learn how to.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear-theme-blog" rel="noopener noreferrer"&gt;Blog&lt;/a&gt; – Blog theme with no framework. Clone it and edit for your needs.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/awesome-cogear" rel="noopener noreferrer"&gt;Bootstrap 4&lt;/a&gt; - Various Bootstrap 4 themes. Best used for responsive design (mobile, tablet, etc.)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/dtslvr/cogear-theme-ejs-bootstrap-blog" rel="noopener noreferrer"&gt;Bootstrap 4 in ejs&lt;/a&gt; — Bootstrap 4 theme based on EJS, provided by &lt;a href="https://github.com/dtslvr" rel="noopener noreferrer"&gt;@dtslvr&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Presets&lt;/h1&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear-preset-blog" rel="noopener noreferrer"&gt;Blog&lt;/a&gt; – Simple blog preset with responsive theme.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/dtslvr/cogear-preset-ejs-bootstrap-blog" rel="noopener noreferrer"&gt;Bootstrap 4 blog in ejs&lt;/a&gt; — Bootstrap 4 blog preset, provided by…&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/dbelyaeff/awesome-cogear" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;If you like this video, please, subscribe &lt;a href="https://www.youtube.com/channel/UCYVvgPLMfRwA2K_ledHCZcw" rel="noopener noreferrer"&gt;Cogear.JS YouTube-channel&lt;/a&gt; and giva a star to the projects repository:&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/dbelyaeff" rel="noopener noreferrer"&gt;
        dbelyaeff
      &lt;/a&gt; / &lt;a href="https://github.com/dbelyaeff/cogear.js" rel="noopener noreferrer"&gt;
        cogear.js
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Modern static websites generator (Node.JS/Webpack)
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;THE PROJECT IS DEPRECTATED&lt;/h1&gt;
&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Cogear.JS – modern static websites generator&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://github.com/dbelyaeff/cogear.js#requirements" rel="noopener noreferrer"&gt;Requirements&lt;/a&gt; | &lt;a href="https://github.com/dbelyaeff/cogear.js#installation" rel="noopener noreferrer"&gt;Installation&lt;/a&gt; | &lt;a href="https://github.com/dbelyaeff/cogear.js#usage" rel="noopener noreferrer"&gt;Usage&lt;/a&gt; | &lt;a href="https://github.com/dbelyaeff/cogear.js#options" rel="noopener noreferrer"&gt;Options&lt;/a&gt; | &lt;a href="https://cogearjs.org" rel="nofollow noopener noreferrer"&gt;Website&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;About&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Cogear.JS&lt;/strong&gt; is a static site generator built with &lt;a href="https://nodejs.org" rel="nofollow noopener noreferrer"&gt;Node.JS&lt;/a&gt; and based on &lt;a href="https://webpack.js.org" rel="nofollow noopener noreferrer"&gt;Webpack&lt;/a&gt; (v4.6).&lt;/p&gt;
&lt;p&gt;It's inspired by &lt;a href="https://jekyllrb.com" rel="nofollow noopener noreferrer"&gt;Jekyll&lt;/a&gt; and others, but built on the top of the latest frontend technologies.&lt;/p&gt;
&lt;p&gt;Providing awesome experience of on-the-fly hot reloading to instantly implementing any changes.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Introduction video&lt;/h1&gt;

&lt;/div&gt;
&lt;p&gt;&lt;a href="https://youtu.be/nDga67P6lag?list=PLBuIATAeU0NWhrpWnI--TRG76DwAgem1I" title="Introduction to Cogear.JS" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/a23706c220fa5bb8dc244aaa3515317b708a2c25abed52fa913abae6a8a163ee/68747470733a2f2f692e696d6775722e636f6d2f637437787050462e706e67" alt="Introduction to Cogear.JS"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Features&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;🖥  &lt;strong&gt;Modern stack technologies&lt;/strong&gt; Build modern static websites with bundled scripts and styles.Rapidly prototype and instantly deploy to the server.
Use &lt;strong&gt;any modern frontend stack&lt;/strong&gt; (&lt;strong&gt;webpack&lt;/strong&gt; bundled) – &lt;a href="https://vuejs.org" rel="nofollow noopener noreferrer"&gt;Vue.JS&lt;/a&gt;, &lt;a href="https://reactjs.org" rel="nofollow noopener noreferrer"&gt;React&lt;/a&gt;, &lt;a href="https://angular.io" rel="nofollow noopener noreferrer"&gt;Angular&lt;/a&gt;, &lt;a href="https://emberjs.org" rel="nofollow noopener noreferrer"&gt;Ember&lt;/a&gt;, etc.&lt;/li&gt;
&lt;li&gt;🚀  &lt;strong&gt;Blazing fast and reliable&lt;/strong&gt;
Performs nearly 1.000 pages per second (depends on the pages content and raw computer processor power).
Being online. Server can handle thousands requests per seconds to serve static files (even on tiny VPS).&lt;/li&gt;
&lt;li&gt;📦 &lt;strong&gt;For any hosting&lt;/strong&gt;
Doesn't requires &lt;strong&gt;any database&lt;/strong&gt;…&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/dbelyaeff/cogear.js" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h1&gt;
  
  
  Join the Social Impact Hacktoberfest Challenge
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fuser-images.githubusercontent.com%2F121322%2F46319645-ab50e200-c58f-11e8-8dd0-cf7a4b1a610e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fuser-images.githubusercontent.com%2F121322%2F46319645-ab50e200-c58f-11e8-8dd0-cf7a4b1a610e.png" alt="Join the Social Impact Hacktoberfest Challenge"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Learn how to win a cool t-shirt taking part in &lt;a href="https://hacktoberfest.digitalocean.com" rel="noopener noreferrer"&gt;Hacktoberfest&lt;/a&gt; via contributing to &lt;a href="https://cogearjs.org" rel="noopener noreferrer"&gt;Cogear.JS&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Right now we encourage developers to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear.js/issues/6" rel="noopener noreferrer"&gt;Create a plugin for React&lt;/a&gt; (just add a loader to Webpack).&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear.js/issues/7" rel="noopener noreferrer"&gt;Create a Bootstrap 4 theme&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>node</category>
      <category>cogearjs</category>
      <category>javascript</category>
      <category>hacktoberfest</category>
    </item>
    <item>
      <title>Deploying Cogear.JS-generated site to the Now.sh</title>
      <dc:creator>Dmitriy Belyaev</dc:creator>
      <pubDate>Fri, 05 Oct 2018 10:45:29 +0000</pubDate>
      <link>https://dev.to/cogear/deploying-cogearjs-generated-site-to-the-nowsh-367m</link>
      <guid>https://dev.to/cogear/deploying-cogearjs-generated-site-to-the-nowsh-367m</guid>
      <description>&lt;p&gt;&lt;a href="https://cogearjs.org" rel="noopener noreferrer"&gt;Cogear.JS&lt;/a&gt; is an open-sourcered static websites generator built with &lt;a href="https://nodejs.org" rel="noopener noreferrer"&gt;Node.JS&lt;/a&gt; and based on the latest &lt;a href="https://webpack.js.org" rel="noopener noreferrer"&gt;Webpack&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dev.to&lt;/strong&gt; members previously may read &lt;a href="https://dev.to/codemotion/cogearjs--modern-static-websites-generator-450a"&gt;the introduction article&lt;/a&gt; and the tutorial about &lt;a href="https://dev.to/cogear/creating-a-blog-with-cogearjs-21af"&gt;how to create a blog&lt;/a&gt; in a minutes with &lt;strong&gt;Cogear.JS&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now it's time to talk about deploy.&lt;/p&gt;

&lt;p&gt;When a site is designed in &lt;code&gt;development&lt;/code&gt; mode and built-in &lt;code&gt;production&lt;/code&gt; or &lt;code&gt;build&lt;/code&gt; mode, it's time to deploy it to the remote server.&lt;/p&gt;

&lt;p&gt;Basically &lt;strong&gt;Cogear.JS&lt;/strong&gt; can upload it via &lt;strong&gt;FTP&lt;/strong&gt; or &lt;strong&gt;SFTP&lt;/strong&gt; protocols and even use &lt;a href="https://rsync.samba.org" rel="noopener noreferrer"&gt;rsync&lt;/a&gt; (if installed).&lt;/p&gt;

&lt;p&gt;Deploy methods speed comparsion:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;    Method    &lt;/th&gt;
&lt;th&gt;     Speed    &lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;FTP&lt;/td&gt;
&lt;td&gt;slowest&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SFTP&lt;/td&gt;
&lt;td&gt;fast&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;rsync&lt;/td&gt;
&lt;td&gt;fastest&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You can read more about standard deploy ops in the docs:&lt;br&gt;
&lt;a href="https://cogearjs.org/docs/deploy" rel="noopener noreferrer"&gt;https://cogearjs.org/docs/deploy&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But now it's all about &lt;a href="https://now.sh" rel="noopener noreferrer"&gt;Now.sh&lt;/a&gt; which provides free hosting for static sites.&lt;/p&gt;
&lt;h1&gt;
  
  
  Getting Started
&lt;/h1&gt;

&lt;p&gt;You need to &lt;a href="https://zeit.co/download" rel="noopener noreferrer"&gt;download&lt;/a&gt; and install desktop &lt;strong&gt;Now.sh app&lt;/strong&gt;. It will provide command line utility called &lt;code&gt;now&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;When it has been installed deploy procedure becomes incredibly easy.&lt;/p&gt;

&lt;p&gt;Just compile your site (build it):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/Sites/site

&lt;span class="nv"&gt;$ &lt;/span&gt;cogear build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It will be compiled to the &lt;code&gt;output&lt;/code&gt; folder which is &lt;code&gt;./public&lt;/code&gt; by default.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fjktv0tu9imsd48rllb5r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fjktv0tu9imsd48rllb5r.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now you are ready to deploy.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;now &lt;span class="nt"&gt;--public&lt;/span&gt; public
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You send the command to &lt;strong&gt;Now&lt;/strong&gt; to upload the folder &lt;code&gt;./public&lt;/code&gt;  in &lt;code&gt;--public&lt;/code&gt; mode (it's required for non-paid accounts).&lt;/p&gt;

&lt;p&gt;Within a few seconds, your site is online!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F1b7kou3t2xp7f9o6u6lx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F1b7kou3t2xp7f9o6u6lx.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Site address has been copied to the clipboard.&lt;/p&gt;

&lt;p&gt;You may choose an appropriate domain with &lt;code&gt;now alias&lt;/code&gt; command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;now &lt;span class="nb"&gt;alias &lt;/span&gt;https://public-psuaoefsus.now.sh cogear.now.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Done!&lt;/p&gt;

&lt;p&gt;You can even use custom domain via DNS management. &lt;/p&gt;

&lt;p&gt;Like I do:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;now &lt;span class="nb"&gt;alias &lt;/span&gt;https://public-psuaoefsus.now.sh cogearjs.org
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://zeit.co/dns#get-started" rel="noopener noreferrer"&gt;Read more&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://cogearjs.org" rel="noopener noreferrer"&gt;Cogear.JS official site&lt;/a&gt; is hosted at &lt;a href="https://now.sh" rel="noopener noreferrer"&gt;Now.sh&lt;/a&gt; absolutely for free.&lt;/p&gt;

</description>
      <category>node</category>
      <category>cogearjs</category>
      <category>bash</category>
      <category>devops</category>
    </item>
    <item>
      <title>Build a blog with Cogear.JS</title>
      <dc:creator>Dmitriy Belyaev</dc:creator>
      <pubDate>Fri, 28 Sep 2018 09:50:15 +0000</pubDate>
      <link>https://dev.to/cogear/creating-a-blog-with-cogearjs-21af</link>
      <guid>https://dev.to/cogear/creating-a-blog-with-cogearjs-21af</guid>
      <description>&lt;p&gt;Recently in comments to &lt;a href="https://dev.to/codemotion/cogearjs--modern-static-websites-generator-450a"&gt;Cogear.JS introduction post&lt;/a&gt; I've been asked about difference between it and &lt;a href="https://gatsbyjs.org" rel="noopener noreferrer"&gt;Gatsby&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Today I've read the post &lt;a href="https://dev.to/saigowthamr/build-a-blog-using-gatsbyjs--react--2lo"&gt;Build a blog using Gatsby.js &amp;amp; React&lt;/a&gt; at &lt;strong&gt;Dev.to&lt;/strong&gt;. I wanna to compare them via doing the same task.&lt;/p&gt;

&lt;p&gt;Let's build a blog with &lt;a href="https://cogearjs.org" rel="noopener noreferrer"&gt;Cogear.JS&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;First of all you can look at real working example:&lt;br&gt;
&lt;a href="https://cogearjs.org/blog" rel="noopener noreferrer"&gt;https://cogearjs.org/blog&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  Installation
&lt;/h1&gt;

&lt;p&gt;Make sure to fit &lt;a href="https://cogearjs.org/docs#requirements" rel="noopener noreferrer"&gt;the requirements&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;To install &lt;strong&gt;Cogear.JS&lt;/strong&gt; do next:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; cogear
&lt;span class="c"&gt;# or&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;yarn global add cogear
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/UwWsSnFS0g0"&gt;
&lt;/iframe&gt;
&lt;/p&gt;
&lt;h1&gt;
  
  
  Blog crafting
&lt;/h1&gt;

&lt;p&gt;We need to transform default site into blog.&lt;/p&gt;

&lt;p&gt;It requires two things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear-plugin-blog" rel="noopener noreferrer"&gt;Blog plugin&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/codemotion/cogear-theme-blog" rel="noopener noreferrer"&gt;Blog theme&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There is a standard way via built in generator:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/Sites
&lt;span class="nv"&gt;$ &lt;/span&gt;cogear new blog
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/fweOYQ-_FU0"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;But I've prepared a preset for you which includes both plugin and theme.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/dbelyaeff" rel="noopener noreferrer"&gt;
        dbelyaeff
      &lt;/a&gt; / &lt;a href="https://github.com/dbelyaeff/cogear-preset-blog" rel="noopener noreferrer"&gt;
        cogear-preset-blog
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Blog preset for Cogear.JS
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Cogear.JS preset &lt;code&gt;blog&lt;/code&gt;
&lt;/h1&gt;

&lt;/div&gt;

&lt;p&gt;Ready to use site preset. Just clone repository, install dependencies and run &lt;code&gt;cogear&lt;/code&gt; in project directory from command line.&lt;/p&gt;

&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/codemotion/cogear-theme-blog/raw/master/screenshot.jpg"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fcodemotion%2Fcogear-theme-blog%2Fraw%2Fmaster%2Fscreenshot.jpg" alt="screenshot"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Installation&lt;/h1&gt;

&lt;/div&gt;

&lt;p&gt;Make sure that &lt;a href="https://cogearjs.org" rel="nofollow noopener noreferrer"&gt;Cogear.JS&lt;/a&gt; is installed. &lt;a href="https://cogearjs.org/docs/" rel="nofollow noopener noreferrer"&gt;How to install&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Clone this repo to the target local directory:&lt;/p&gt;

&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-k"&gt;&amp;gt;&lt;/span&gt; &lt;span class="pl-c1"&gt;cd&lt;/span&gt; &lt;span class="pl-k"&gt;~&lt;/span&gt;/Sites/
&lt;span class="pl-k"&gt;&amp;gt;&lt;/span&gt; git clone --recurse-submodules https://github.com/codemotion/cogear-preset-blog blog&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Pay attention to &lt;code&gt;--recurse-submodules&lt;/code&gt; option. It's required, because &lt;a href="https://github.com/codemotion/cogear-theme-blog" rel="noopener noreferrer"&gt;&lt;code&gt;cogear-theme-blog&lt;/code&gt;&lt;/a&gt; is presented as git &lt;a href="https://git-scm.com/book/en/v2/Git-Tools-Submodules" rel="nofollow noopener noreferrer"&gt;submodule&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Install dependencies:&lt;/p&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-k"&gt;&amp;gt;&lt;/span&gt; &lt;span class="pl-c1"&gt;cd&lt;/span&gt; &lt;span class="pl-k"&gt;~&lt;/span&gt;/Sites/blog
&lt;span class="pl-k"&gt;&amp;gt;&lt;/span&gt; npm install
or
&lt;span class="pl-k"&gt;&amp;gt;&lt;/span&gt; yarn install&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;You're ready to go! Fire up &lt;strong&gt;Cogear.JS&lt;/strong&gt; in &lt;code&gt;dev&lt;/code&gt; mode, your new blog will be opened in browser automatically!&lt;/p&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-k"&gt;&amp;gt;&lt;/span&gt; cogear &lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt; development mode by default&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Read the docs&lt;/h1&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://cogearjs.org/docs" rel="nofollow noopener noreferrer"&gt;https://cogearjs.org/docs&lt;/a&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
  &lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/dbelyaeff/cogear-preset-blog" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;p&gt;Let's install blog with preset.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;git clone &lt;span class="nt"&gt;--recurse-submodules&lt;/span&gt; https://github.com/codemotion/cogear-preset-blog blog
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you need to install the dependencies:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/Sites/blog
&lt;span class="nv"&gt;$ &lt;/span&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;span class="c"&gt;# of&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;yarn &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Done
&lt;/h1&gt;

&lt;p&gt;Really, that was all you have to do.&lt;/p&gt;

&lt;p&gt;Now fire up &lt;strong&gt;Cogear.JS&lt;/strong&gt; in the development mode.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;cogear
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You blog is ready:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fcodemotion%2Fcogear-theme-blog%2Fraw%2Fmaster%2Fscreenshot.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fcodemotion%2Fcogear-theme-blog%2Fraw%2Fmaster%2Fscreenshot.jpg" alt="Cogear.JS blog"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I've uploaded the result to:&lt;br&gt;
&lt;a href="https://cogear-blog.now.sh" rel="noopener noreferrer"&gt;https://cogear-blog.now.sh&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check it out.&lt;/p&gt;

&lt;p&gt;It's time to create first post.&lt;/p&gt;

&lt;p&gt;Create &lt;code&gt;./src/pages/p/first-post.md&lt;/code&gt; file with the following content:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;First post&lt;/span&gt;
&lt;span class="na"&gt;tags&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;news&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="gh"&gt;# This is my first post!&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Well done. Save it and browser page will be reloaded automatically.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fcg6z5a9fzdqqerakxowh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fcg6z5a9fzdqqerakxowh.png" alt="Cogear.JS blog with post"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The result is also available by link:&lt;br&gt;
&lt;a href="https://cogear-blog-with-post.now.sh" rel="noopener noreferrer"&gt;https://cogear-blog-with-post.now.sh&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;P.S. Why &lt;code&gt;p&lt;/code&gt; folder has been chosen for blog? &lt;/p&gt;

&lt;p&gt;It's easy to customize this behaviour. &lt;/p&gt;

&lt;p&gt;Edit &lt;code&gt;./config.yaml&lt;/code&gt; file from this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Blog | Cogear.JS – modern static websites generator&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
&lt;span class="na"&gt;keywords&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
&lt;span class="na"&gt;theme&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;blog&lt;/span&gt;
&lt;span class="na"&gt;blog&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;index&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;
  &lt;span class="na"&gt;regex&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;^p/"&lt;/span&gt;
  &lt;span class="na"&gt;tagUri&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;tag'&lt;/span&gt;
  &lt;span class="na"&gt;perPage&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;5&lt;/span&gt;
&lt;span class="na"&gt;pages&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;^p/&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;layout&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;post&lt;/span&gt;
    &lt;span class="na"&gt;author&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;login&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Dmitriy Beliaev&lt;/span&gt;
      &lt;span class="na"&gt;avatar&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;https://www.gravatar.com/avatar/400caf343d3bab57ab93f63e21a12be7?s=24'&lt;/span&gt;
      &lt;span class="na"&gt;link&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://cogearjs.org&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to that&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Blog | Cogear.JS – modern static websites generator&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
&lt;span class="na"&gt;keywords&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
&lt;span class="na"&gt;theme&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;blog&lt;/span&gt;
&lt;span class="na"&gt;blog&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;index&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;
  &lt;span class="na"&gt;regex&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;^blog/"&lt;/span&gt;
  &lt;span class="na"&gt;tagUri&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;tag'&lt;/span&gt;
  &lt;span class="na"&gt;perPage&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;5&lt;/span&gt;
&lt;span class="na"&gt;pages&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;^blog/&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;layout&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;post&lt;/span&gt;
    &lt;span class="na"&gt;author&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;login&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Dmitriy Beliaev&lt;/span&gt;
      &lt;span class="na"&gt;avatar&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;https://www.gravatar.com/avatar/400caf343d3bab57ab93f63e21a12be7?s=24'&lt;/span&gt;
      &lt;span class="na"&gt;link&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://cogearjs.org&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And rename folder &lt;code&gt;./src/pages/p&lt;/code&gt; to &lt;code&gt;./src/pages/blog&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;More about config file in the following video:&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/hEUgZcoFKWM"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;You questions are welcome!&lt;/p&gt;

</description>
      <category>node</category>
      <category>cogearjs</category>
      <category>webpack</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
