starter-project/src/pug/pages/about.pug
extends ../layouts/app.pug
block variables
  - var pageTitle = " - About"
  
block content
  div
    #home
    .main-wrap
      include ../components/header/header.pug
      +header(true)
      .container-wrap.py-10.py-sm-4
        section.space-top.space-bottom
          h2.display-3.text-center.mb-4 About Us
      section.space-top
        include ../components/footer.pug
                              
                            Generate the HTML
gulp build
                            It will generate file about.html in root directory.
And watch the changes result
gulp
                            src/pug/components/hello.pug// file: /src/pug/components/hello.pug
div
  h4 Hello World
  h5.display-1.text-center Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
  p Vestibulum dignissim orci vitae eros rutrum euismod. Vestibulum tempor, sem et molestie egestas, dui tortor laoreet tellus, id rhoncus mauris neque malesuada augue. Duis tristique metus magna, lobortis aliquam risus euismod sit amet.
  p Suspendisse porttitor velit nisl, feugiat tincidunt nisl mattis ut. Nulla lobortis nunc vitae nisi semper semper. Sed mi neque, convallis at ipsum at, blandit pretium enim. Nunc quis sem quis velit tincidunt congue a sit amet ante. In hac habitasse platea dictumst.
                            src/pug/pages/about.pug. (Example page that we've made in previous section)
include ../components/hello.pug
                            
                                // file: src/pug/pages/about.pug
extends ../layouts/app.pug
block variables
  - var pageTitle = " - About"
  
block content
  div
    #home
    .main-wrap
      include ../components/header/header.pug
      +header(true)
      .container-wrap.py-10.py-sm-4
        section.space-top.space-bottom
          h2.display-3.text-center.mb-4 About Us
          // Add new component
          include ../components/footer.pug
      section.space-top
        include ../components/footer.pug
                                gulp command, the updates will change immediately. And the physical file will be updated in about.htmlsrc/api.jsonbrand": {
  "agency": {
    "name": "Agency",
    "desc": "Maestrolux Agency - HTML5 Bootstrap Landing Page Template",
    "prefix": "Maestrolux",
    "footerText": "Maestrolux Agency - All Rights Reserved 2020",
    "logoText": "Maestrolux Theme",
    "projectName": "Agency Project",
    "url": "Maestrolux.ux-maestro.com/agency",
    "img": "/images/agency-logo.png",
    "notifMsg": "Donec sit amet nulla sed arcu pulvinar ultricies commodo id ligula"
  }
},
                      gulp build it will affect in HTML ‹head› content and other branding purpose.
                      src/pug/layouts/document.pug
                        meta(
  name="description"
  content=brand.agency.desc
)
meta(property="og:url" content=brand.agency.url)
meta(property="og:title" content=brand.agency.projectName)
title #{brand.agency.name} - #{pageTitle}       
                        
                      
                    src/pug/layouts/app.pug.m-application by switch between .theme--dark or .theme--light#app.m-application.theme--dark.transition-page
                        - Light mode: 
                        #app.m-application.theme--light.transition-page
                      .m-content by change .[theme-name]-var with available theme from src/scss/utils/_color-var.scss
                        - In example joker theme color
                        #main-wrap.m-content.passion.joker-var
                      // file: src/pug/layouts/app.pug
extends ./document.pug
block variables
block layout
  #app.m-application.theme--dark.transition-page
    .loading
    #main-wrap.m-content.passion.joker-var
      block content-
    
                      If you change the palette variable, don't forget to update this following files as well
** Crytpo Theme:crypto-theme/src/pug/components/gradient-deco.pugsaas-theme/src/pug/components/testimonials.pughosting-theme/src/js/banner-animation.jsMake sure the stop-color has same value as in src/scss/utils/_color-var.scss
src/pug/layouts/base.pugdoc_dir to RTL or LTR. And you need to adjust the language variable doc_lang as well.// file: src/pug/layouts/base.pug
- var env = 'dev'
//- HTML attribute
- var doc_lang = 'ar'
- var doc_dir = 'rtl'
//- Assets Path
- var multilang = '../../assets'
- var prod = '../assets'
- var dev = './assets'
//- Use assets path
- var assets = dev
    
                      This template us Youtube API To use this feature we recommend to use https in production. If not there will be some warnings in browser console related cookies and security.
                  You can disable this feature by open src/api.json in "youtube" object then set set use: false.
                
"youtube": {
    "use": true
  }
              
                    gulpfile.jsview() change the locales to any locale json filelocales: 'src/locales/pt.json'
                          function views() {
  var options = {
    i18n: {
      dest: './',
      namespace: '$t',
      localeExtension: true,
      locales: 'src/locales/pt.json'
    },
    data: JSON.parse(fs.readFileSync('./src/api.json'))
  };
  return (
    gulp.src('src/pug/pages/*.pug')
    .pipe(plumber())
    .pipe(pugI18n(options))
    .pipe(prettyHtml({ indent_size: 2 }))
    .pipe(ext_replace('.html', '.en.html'))
    .pipe(gulp.dest(options.i18n.dest))
    .pipe(connect.reload())
  )
}
                          src/locales/[localeCode].json
                            
└── src
    └── locales
        ├── en.json
        ├── de.json
        └── pt.json
                          In src/locales/pt.json
"movie_landing": {
    "header_login": "Conecte-se",
    "header_register": "registro"
}
                      /componens/header/header.pugh4.use-text-title2 #{$t.movie_landing.header_login}
h4.use-text-title2 #{$t.movie_landing.header_register}
                              gulp build if it's for default language. The translated result will in root directory.assets in src/pug/layouts/base.pug
                            
//- Available env: dev, prod, and node_modules
- var env = 'dev'
//- HTML attribute
- var doc_lang = 'en'
- var doc_dir = 'ltr'
//- Assets Path
- var multilang = '../../assets'
- var prod = '../assets'
- var dev = './assets'
//- Use assets path
- var assets = multilang // Change this
                        
                            
                                Then please run gulp translate command in console. The translated result will available in multilang/pt/*.html