Skip to content

Website for and source code accompanying Hugo In Action

License

Notifications You must be signed in to change notification settings

durdekm/hugoinaction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Hugo In Action

Code Sections

The branches in this repository correspond to the sections of Hugo In Action. Each chapter also has a branch with all the resource files that can used to build the Acme Corporation website following the steps as discussed in the book.

Branch / Code Section Book Section Changes URL Delta
Chapter 2 Resources
ch02-1 2.1 Create Website skeleton N/A N/A
ch02-2 2.2 Added theme - Eclectic https://ch02-2.hugoinaction.com ch02-1..ch02-2
ch02-3 2.3.1 Add configuration to the website https://ch02-3.hugoinaction.com ch02-2..ch02-3
ch02-4 2.3.3 Added content - index, about, contact, privacy and terms of use page for the website. https://ch02-4.hugoinaction.com ch02-3..ch02-4
ch02-5 2.6 Update to theme universal. https://ch02-5.hugoinaction.com ch02-4..ch02-5
Chapter 3 Resources
ch03-1 3.1.2 Added block formatting (and first version of markdown.md) https://ch03-1.hugoinaction.com ch02-5..ch03-1
ch03-2 3.1.3 Added inline formatting & updates to the privacy policy pag https://ch03-2.hugoinaction.com ch03-1..ch03-2
ch03-3 3.2 Added HTML characters, tables, task lists, code blocks and definition lists https://ch03-3.hugoinaction.com ch03-2..ch03-3
ch03-4 3.6.1 Add YAML metadata. https://ch03-4.hugoinaction.com ch03-3..ch03-4
ch03-5 3.6.2 Add data-driven example. https://ch03-5.hugoinaction.com ch03-4..ch03-5
ch03-6 3.7 Test out Universal. https://ch03-6.hugoinaction.com ch03-5..ch03-6
Chapter 4 Resources
ch04-1 4.1 Split config file. https://ch04-1.hugoinaction.com ch03-6..ch04-1
ch04-2 4.2.1 Added blog entries. https://ch04-2.hugoinaction.com ch04-1..ch04-2
ch04-3 4.2.2 Adding menu entries. https://ch04-3.hugoinaction.com ch04-2..ch04-3
ch04-4 4.3.1 Adding page bundles. https://ch04-4.hugoinaction.com ch04-3..ch04-4
ch04-5 4.3.2 Adding branch bundles. https://ch04-5.hugoinaction.com ch04-4..ch04-5
ch04-6 4.4 Adding tags and categories to various blog posts. https://ch04-6.hugoinaction.com ch04-5..ch04-6
ch04-7 4.4 Add index page for categories and for the design category. https://ch04-7.hugoinaction.com ch04-6..ch04-7
ch04-8 4.4 Update taxonomy and convert manufacturing process to a series. https://ch04-8.hugoinaction.com ch04-7..ch04-8
ch04-9 4.5 Add youtube video https://ch04-9.hugoinaction.com ch04-8..ch04-9
ch04-10 4.6.1 Add divider shortcode https://ch04-10.hugoinaction.com ch04-9..ch04-10
ch04-11 4.6.2 Use shared shortcode productInfo. https://ch04-11.hugoinaction.com ch04-10..ch04-11
Chapter 5 Resources
ch05-1 5.1.1 Using variables to access content. https://ch05-1.hugoinaction.com ch04-11..ch05-1
ch05-2 5.1.2 Use 'if' checks for existence. https://ch05-2.hugoinaction.com ch05-1..ch05-2
ch05-3 5.1.3 Falling back to the website title. https://ch05-3.hugoinaction.com ch05-2..ch05-3
ch05-4 5.1.4 Using variables. https://ch05-4.hugoinaction.com ch05-3..ch05-4
ch05-5 5.1.5 Using defaults and $.Param. https://ch05-5.hugoinaction.com ch05-4..ch05-5
ch05-6 5.1.6 Using the 'with' conditional. Add footer https://ch05-6.hugoinaction.com ch05-5..ch05-6
ch05-7 5.1.7 Use humanize and markdownify functions https://ch05-7.hugoinaction.com ch05-6..ch05-7
ch05-8 5.1.8 Adding markdown content to the index page. https://ch05-8.hugoinaction.com ch05-7..ch05-8
ch05-9 5.2.1 Replace hard coded links with the home menu. https://ch05-9.hugoinaction.com ch05-8..ch05-9
ch05-10 5.2.2 Added a list of recent blog posts to the home page. https://ch05-10.hugoinaction.com ch05-9..ch05-10
ch05-11 5.3.1 Added testimonials based on Front Matter. https://ch05-11.hugoinaction.com ch05-10..ch05-11
ch05-12 5.3.2 Rendering and allowing data from tables. https://ch05-12.hugoinaction.com ch05-11..ch05-12
ch05-13 5.4.1 Added price shortcode. https://ch05-13.hugoinaction.com ch05-12..ch05-13
ch05-14 5.4.2 Added repeat shortcode. https://ch05-14.hugoinaction.com ch05-13..ch05-14
ch05-15 5.4.3 Added archetypes https://ch05-15.hugoinaction.com ch05-14..ch05-15
Chapter 6 Resources
ch06-1 6.1.1 New Content type - Acme. https://ch06-1.hugoinaction.com ch05-15..ch06-1
ch06-2 6.1.3 Add baseof.html and split out the base template with default implementation. https://ch06-2.hugoinaction.com ch06-1..ch06-2
ch06-3 6.1.4 Moving terms of use to acme type. https://ch06-3.hugoinaction.com ch06-2..ch06-3
ch06-4 6.1.4 Moving the footer/main menu to the base template. https://ch06-4.hugoinaction.com ch06-3..ch06-4
ch06-5 6.2.1 Render main menu and header using partials. https://ch06-5.hugoinaction.com ch06-4..ch06-5
ch06-6 6.2.2 Reuse the partial for the footer menu. https://ch06-6.hugoinaction.com ch06-5..ch06-6
ch06-7 6.2.3 Render submenus. https://ch06-7.hugoinaction.com ch06-6..ch06-7
ch06-8 6.2.4 Move the privacy policy to acme. https://ch06-8.hugoinaction.com ch06-7..ch06-8
ch06-9 6.2.4 Enable partialCached with excessive caching(broken). https://ch06-9.hugoinaction.com ch06-8..ch06-9
ch06-10 6.2.4 Add additional arguments to fix partialCached. https://ch06-10.hugoinaction.com ch06-9..ch06-10
ch06-11 6.2.5 Move shortcode to partialCached to speed up. https://ch06-11.hugoinaction.com ch06-10..ch06-11
ch06-12 6.3.1 Move index.css to the assets folder. https://ch06-12.hugoinaction.com ch06-11..ch06-12
ch06-13 6.3.1 Use SCSS compilation for index.(s)css. https://ch06-13.hugoinaction.com ch06-12..ch06-13
ch06-14 6.3.1 Using color from the parameters. https://ch06-14.hugoinaction.com ch06-13..ch06-14
ch06-15 6.3.1 Changing the theme color. https://ch06-15.hugoinaction.com ch06-14..ch06-15
ch06-16 6.3.1 Use resources.concat to merge multiple resources. https://ch06-16.hugoinaction.com ch06-15..ch06-16
ch06-17 6.3.2 Add hero image https://ch06-17.hugoinaction.com ch06-16..ch06-17
ch06-18 6.3.2 Convert hero image to JPG. https://ch06-18.hugoinaction.com ch06-17..ch06-18
ch06-19 6.3.2 Image Resizing for optimized loading https://ch06-19.hugoinaction.com ch06-18..ch06-19
ch06-20 6.4.0 Add metadata via internal templates. https://ch06-20.hugoinaction.com ch06-19..ch06-20
ch06-21 6.4.0 Using '.TableOfContents' method to fill table of contents. https://ch06-21.hugoinaction.com ch06-20..ch06-21
Chapter 7 Resources
ch07-1 7.1.2 Change the CSS class of the news section using the path check. https://ch07-1.hugoinaction.com ch06-21..ch07-1
ch07-2 7.1.4 Adding blog layout and overriding the blog section with this new layout. https://ch07-2.hugoinaction.com ch07-1..ch07-2
ch07-3 7.1.5 Added configuration for related pages provided by Hugo. https://ch07-3.hugoinaction.com ch07-2..ch07-3
ch07-4 7.2.1 Provide the index page template 'list.html' to blog/community pages. https://ch07-4.hugoinaction.com ch07-3..ch07-4
ch07-5 7.2.2 Support Pagination in the index/list pages https://ch07-5.hugoinaction.com ch07-4..ch07-5
ch07-6 7.2.2 Use content and metadata variables in the list page https://ch07-6.hugoinaction.com ch07-5..ch07-6
ch07-7 7.2.4 Listing subsection content on the index page https://ch07-7.hugoinaction.com ch07-6..ch07-7
ch07-8 7.2.4 Switch the index to list layout by removing the index template https://ch07-8.hugoinaction.com ch07-7..ch07-8
ch07-9 7.3 Move category taxonomy to content type Acme. https://ch07-9.hugoinaction.com ch07-8..ch07-9
ch07-10 7.3.1 Added terms.html. https://ch07-10.hugoinaction.com ch07-9..ch07-10
ch07-11 7.3.2 Added the taxonomy layout https://ch07-11.hugoinaction.com ch07-10..ch07-11
ch07-12 7.4.1 Moving all pages to content type Acme. https://ch07-12.hugoinaction.com ch07-11..ch07-12
ch07-13 7.4.1 Creating a new theme named Acme https://ch07-13.hugoinaction.com ch07-12..ch07-13
ch07-14 7.4.2 Change the content type to default. https://ch07-14.hugoinaction.com ch07-13..ch07-14
ch07-15 7.4.2 Cleanup the theme and move blogs from layouts to a new content type. https://ch07-15.hugoinaction.com ch07-14..ch07-15
ch07-16 7.4.2 Migrate news to its own content type. https://ch07-16.hugoinaction.com ch07-15..ch07-16
ch07-17 7.4.3 Provide placeholder resources for the theme to become independent. https://ch07-17.hugoinaction.com ch07-16..ch07-17
ch07-18 7.4.3 Testing the theme with chapter 4 content https://ch07-18.hugoinaction.com ch07-17..ch07-18
ch07-19 7.4.3 Revert the chapter 4 content test. https://ch07-19.hugoinaction.com ch07-18..ch07-19
Chapter 8 Resources
ch08-1 8.3 Added theme Eclectic via Hugo Modules. https://ch08-1.hugoinaction.com ch07-19..ch08-1
ch08-2 8.4 Move shortcodes into website for theme portability and enable theme Universal. https://ch08-2.hugoinaction.com ch08-1..ch08-2
ch08-3 8.5 Using a specific version of a module (and moving to theme Acme) https://ch08-3.hugoinaction.com ch08-2..ch08-3
ch08-4 8.6 Creating a vendor folder. https://ch08-4.hugoinaction.com ch08-3..ch08-4
ch08-5 8.7 Using the replace directive for local development. https://ch08-5.hugoinaction.com ch08-4..ch08-5
ch08-6 8.8 Add a dependency on the resources repository. https://ch08-6.hugoinaction.com ch08-5..ch08-6
ch08-7 8.9 Using hugo debug utils plugin. https://ch08-7.hugoinaction.com ch08-6..ch08-7
ch08-8 8.10 Moving shared code between the theme and the website to AcmeShared https://ch08-8.hugoinaction.com ch08-7..ch08-8
ch08-9 8.11 Using hugo modules for terms of use and privacy policy pages as content plugins. https://ch08-9.hugoinaction.com ch08-8..ch08-9
ch08-10 8.12 Running hugo mod tidy https://ch08-10.hugoinaction.com ch08-9..ch08-10
Chapter 9 Resources
ch09-1 9.2.3 Embedding tweet using the twitter OEmbed API and getJSON in Hugo https://ch09-1.hugoinaction.com ch08-10..ch09-1
ch09-2 9.2.4 Providing cache lifetime to the tweet. https://ch09-2.hugoinaction.com ch09-1..ch09-2
ch09-3 9.3.1 Creating a HTML form for the contact us page. https://ch09-3.hugoinaction.com ch09-2..ch09-3
ch09-4 9.4.3 Enable Netlify forms https://ch09-4.hugoinaction.com ch09-3..ch09-4
ch09-5 9.4.3 Use Formspree for contact us forms https://ch09-5.hugoinaction.com ch09-4..ch09-5
ch09-6 9.5 Create dynamic surveys in Hugo https://ch09-6.hugoinaction.com ch09-5..ch09-6
ch09-7 9.5 Use Formspree for surveys https://ch09-7.hugoinaction.com ch09-6..ch09-7
ch09-8 9.6.1 Creating a comment form with support for disabling commenting. https://ch09-8.hugoinaction.com ch09-7..ch09-8
ch09-9 9.6.2 Rendering past comments by fetching them from the forms service. https://ch09-9.hugoinaction.com ch09-8..ch09-9
ch09-10 9.7 Generating Pseudo APIs via custom output formats in Hugo. https://ch09-10.hugoinaction.com ch09-9..ch09-10
Chapter 10 Resources
ch10-1 10.2 Doing form submission via JavaScript. https://ch10-1.hugoinaction.com ch09-10..ch10-1
ch10-2 10.4.1 Controlling the content shown via the JS code within the HTML template. https://ch10-2.hugoinaction.com ch10-1..ch10-2
ch10-3 10.4.2 Splitting the JavaScript code into multiple modules https://ch10-3.hugoinaction.com ch10-2..ch10-3
ch10-4 10.4.3 Compile time variables to control flow of the program https://ch10-4.hugoinaction.com ch10-3..ch10-4
ch10-5 10.5.3 Showing a search button and loading website data using JavaScript https://ch10-5.hugoinaction.com ch10-4..ch10-5
ch10-6 10.5.6 Installing and using Fuse.js for fuzzy search. https://ch10-6.hugoinaction.com ch10-5..ch10-6
ch10-7 10.5.7 Properly showing search results. https://ch10-7.hugoinaction.com ch10-6..ch10-7
ch10-8 10.6 Embedding EasyLogic Editor into the website. https://ch10-8.hugoinaction.com ch10-7..ch10-8
Chapter 11 Resources
ch11-1 11.2.4 Creating a function for LaTeX to SVG conversion https://ch11-1.hugoinaction.com ch10-8..ch11-1
ch11-2 11.2.7 Render LaTeX based equation during compilation on the Acme Corporation website. https://ch11-2.hugoinaction.com ch11-1..ch11-2
ch11-3 11.3.2 Creating a function to trigger Netlify rebuilds on comment submission. https://ch11-3.hugoinaction.com ch11-2..ch11-3
ch11-4 11.3.6 Triggering automatic rebuilds from Netlify forms and Formspree comment submissions https://ch11-4.hugoinaction.com ch11-3..ch11-4
ch11-5 11.3.7 Using JavaScript to show the comment submission inline to make the perceived performance instantaneous. https://ch11-5.hugoinaction.com ch11-4..ch11-5
Chapter 12 Resources
ch12-1 12.1.1 Creating a single product information page in the Acme Store. https://ch12-1.hugoinaction.com ch11-5..ch12-1
ch12-2 12.1.2 Added list page to list all products. https://ch12-2.hugoinaction.com ch12-1..ch12-2
ch12-3 12.1.3 Add taxonomy for the store section. https://ch12-3.hugoinaction.com ch12-2..ch12-3
ch12-4 12.2 Added shopping cart via JavaScript. https://ch12-4.hugoinaction.com ch12-3..ch12-4
ch12-5 12.3.2 Added checkout support. https://ch12-5.hugoinaction.com ch12-4..ch12-5
ch12-6 12.3.4 Enable success screen and buy now. https://ch12-6.hugoinaction.com ch12-5..ch12-6
ch12-7 12.4 Enable email based fulfillment https://ch12-7.hugoinaction.com ch12-6..ch12-7
Chapter 13 Resources
ch13-1 13.1.1 Adding another language to our website. https://ch13-1.hugoinaction.com ch12-7..ch13-1
ch13-2 13.1.1 Adding a different image for localized content. https://ch13-2.hugoinaction.com ch13-1..ch13-2
ch13-3 13.1.1 Moving french content to a different directory. https://ch13-3.hugoinaction.com ch13-2..ch13-3
ch13-4 13.1.1 Added string translation and linking to translate pages in the footer. https://ch13-4.hugoinaction.com ch13-3..ch13-4
ch13-5 13.1.2 Add sitemap.xml and robots.txt(disabled) templates. https://ch13-5.hugoinaction.com ch13-4..ch13-5
ch13-6 13.1.3 Adding a minimally styled plain format for the website. https://ch13-6.hugoinaction.com ch13-5..ch13-6
ch13-7 13.2.1 Support going offline by creating a progressive web app. https://ch13-7.hugoinaction.com ch13-6..ch13-7
ch13-8 13.2.2 Added instant page to prefetch links. https://ch13-8.hugoinaction.com ch13-7..ch13-8
ch13-9 13.2.3 Added TurboLinks to make better page transitions. https://ch13-9.hugoinaction.com ch13-8..ch13-9

Hugo In Action Website

Netlify Status

The website https://hugoinaction.com is hosted from this repository via the hugoinaction.com branch.

About

Website for and source code accompanying Hugo In Action

Resources

License

Stars

Watchers

Forks

Packages

No packages published