Table of Contents

  1.  Acknowledgments
  2.  Preface
    1. What’s in This Book
    2. What You Need
    3. Conventions
    4. Online Resources
  3. 1. Kicking the Tires
    1. Installing Hugo
    2. Creating Your Site
    3. Building the Home Page
    4. Creating Content Using Archetypes
    5. Building and Exploring Hugo’s Output
    6. Your Turn
    7. Wrapping Up
  4. 2. Building a Basic Theme
    1. Generating the Theme
    2. Using Content Blocks and Partials
    3. Styling the Theme with CSS
    4. Your Turn
    5. Wrapping Up
  5. 3. Adding Content Sections
    1. Creating a Project Archetype
    2. Creating the List Layout
    3. Creating More Specific Layouts
    4. Adding Content to List Pages
    5. Customizing the Project List
    6. Your Turn
    7. Wrapping Up
  6. 4. Working with Data
    1. Using Site Configuration Data in Your Theme
    2. Populating Page Content Using Data in Front Matter
    3. Conditionally Displaying Data
    4. Using Local Data Files
    5. Pulling Data from Remote Sources
    6. Syndicating Content with RSS
    7. Rendering Content as JSON
    8. Your Turn
    9. Wrapping Up
  7. 5. Adding a Blog
    1. Creating the Post’s Layout
    2. Organizing Content with Taxonomies
    3. Customizing the URL for Posts
    4. Customizing Blog List Pages
    5. Adding Pagination
    6. Adding Comments to Posts Using Disqus
    7. Displaying Related Content
    8. Your Turn
    9. Wrapping Up
  8. 6. Adding Search to Your Site
    1. Creating the Document Collection
    2. Creating the Search Interface
    3. Improving the Search
    4. Your Turn
    5. Wrapping Up
  9. 7. Managing Assets with Pipes
    1. Managing Stylesheets
    2. Managing Images
    3. Bundling JavaScript Files
    4. Using Webpack and npm with Hugo
    5. Your Turn
    6. Wrapping Up
  10. 8. Deploying the Site
    1. Deploying to Netlify
    2. Deploying to Cloud Storage with Hugo
    3. Deploying to a Traditional Web Server
    4. Your Turn
    5. Wrapping Up
  11. A1. Migrating to Hugo
    1. Understanding What You Have
    2. Transferring the Content
    3. Replicating the Theme
    4. Making the Switch
    5. Wrapping Up
  12.  Bibliography
Copyright © 2020, The Pragmatic Bookshelf.