Hugo Mocktest

#### What is the command to create a new Hugo site? 1. [ ] hugo new site 2. [ ] hugo create site 3. [x] hugo new site < site_name> 4. [ ] hugo start site < site_name> #### How do you start the Hugo server with drafts enabled? 1. [ ] hugo server --include-drafts 2. [ ] hugo server --drafts 3. [x] hugo server -D 4. [ ] hugo start server --drafts #### How do you create a new post in Hugo? 1. [ ] hugo new post < post_name> 2. [x] hugo new posts/< post_name>.md 3. [ ] hugo create post < post_name> 4. [ ] hugo start post < post_name> #### How do you build your site for production in Hugo? 1. [ ] hugo build --prod 2. [ ] hugo server --build 3. [x] hugo --minify 4. [ ] hugo start --build #### How do you specify the URL of a page in Hugo? 1. [ ] In the config.toml file 2. [x] In the front matter of the page 3. [ ] In the themes directory 4. [ ] In the content directory #### What is the default content format in Hugo? 1. [ ] HTML 2. [ ] CSS 3. [x] Markdown 4. [ ] JavaScript #### How do you specify a different layout for a page in Hugo? 1. [ ] In the config.toml file 2. [x] In the front matter of the page 3. [ ] In the themes directory 4. [ ] In the content directory #### How do you create a list page in Hugo? 1. [ ] By creating a _index.md file in the content directory 2. [x] By creating a _index.md file in the content/< SECTION> directory 3. [ ] By creating a list.html file in the layouts directory 4. [ ] By creating a list.html file in the layouts/< SECTION> directory #### How do you add static files like images and CSS to a Hugo site? 1. [ ] In the content directory 2. [ ] In the layouts directory 3. [x] In the static directory 4. [ ] In the themes directory #### How do you override a theme’s layout in Hugo? 1. [ ] By modifying the theme’s files 2. [x] By creating a file with the same name in the layouts directory 3. [ ] By specifying a different layout in the config.toml file 4. [ ] By specifying a different layout in the front matter of the page #### How do you update a theme in Hugo? 1. [ ] By running hugo update theme < theme_name> 2. [x] By pulling the latest changes from the theme’s repository 3. [ ] By running hugo theme update < theme_name> 4. [ ] By running git update theme < theme_name> #### How do you specify the base URL of your Hugo site? 1. [x] In the config.toml file 2. [ ] In the front matter of the page 3. [ ] In the themes directory 4. [ ] In the content directory #### How do you add a shortcode to a Hugo site? 1. [ ] In the config.toml file 2. [ ] In the front matter of the page 3. [x] In the layouts/shortcodes directory 4. [ ] In the content directory #### How do you specify the language of your Hugo site? 1. [x] In the config.toml file 2. [ ] In the front matter of the page 3. [ ] In the themes directory 4. [ ] In the content directory #### How do you add internationalization (i18n) support to a Hugo site? 1. [ ] By adding a i18n directory in the content directory 2. [ ] By adding a i18n directory in the layouts directory 3. [x] By adding a i18n directory in the data directory 4. [ ] By adding a i18n directory in the static directory #### How do you specify the description of a page in Hugo? 1. [ ] In the config.toml file 2. [ ] In the themes directory 3. [x] In the front matter of the page 4. [ ] In the content directory #### How do you add a custom 404 page to a Hugo site? 1. [ ] By creating a 404.html file in the content directory 2. [ ] By creating a 404.html file in the static directory 3. [ ] By creating a 404.html file in the themes directory 4. [x] By creating a 404.html file in the layouts directory #### What is the purpose of the archetypes directory in a Hugo project? 1. [ ] To store static files like images and CSS 2. [x] To provide templates for new content files 3. [ ] To specify the layout of the site 4. [ ] To store the configuration of the site #### How does Hugo handle content organization? 1. [x] It uses a hierarchical structure based on the directory of the content file 2. [ ] It uses a flat structure where all content files are in the same directory 3. [ ] It uses a hierarchical structure based on the file extension 4. [ ] It uses a flat structure where all content files are in the root directory #### What is the significance of the weight parameter in Hugo? 1. [ ] It determines the order of pages in the build process 2. [x] It determines the order of pages in lists 3. [ ] It determines the size of the page in the final build 4. [ ] It has no significance; it’s an optional parameter #### What is the purpose of the themes directory in a Hugo project? 1. [ ] To store all content files 2. [ ] To specify the layout of the site 3. [x] To store themes that can be used to change the appearance of the site 4. [ ] To store configuration files for the site #### What is the purpose of shortcodes in Hugo? 1. [ ] To shorten the build process 2. [ ] To create shortcuts for common HTML tags 3. [x] To reuse common snippets of HTML 4. [ ] To create shortcuts for common markdown syntax #### How does Hugo handle taxonomies? 1. [ ] It doesn’t; taxonomies need to be handled manually 2. [x] It allows you to classify your content through tags, categories, and custom taxonomies 3. [ ] It automatically classifies your content based on the directory structure 4. [ ] It automatically classifies your content based on the front matter #### What is the purpose of the data directory in a Hugo project? 1. [ ] To store static files like images and CSS 2. [x] To store data files that can be used to populate your templates 3. [ ] To store the configuration of the site 4. [ ] To specify the layout of the site


Table of Contents