There exists a baseof.html file that serves as a single place to import common resources/components like CSS files, the header and the footer. These do not need to be done in every single HTML file. So, make all HTML files to extend the base HTML file using Hugo blocks.
This task involves changing multiple HTML files.
Files required to be changed
[ ] layouts/index.html
[ ] layouts/blog/list.html
[ ] layouts/blog/single.html
[ ] layouts/careers/list.html
[ ] layouts/events/list.html
[ ] layouts/projects/list.html
[ ] layouts/team/single.html
Changes required in each file
Remove the <!DOCTYPE html> declaration
Remove the <html /> tag
Remove the head.html, header.html, and footer.html partials
Remove the <body /> tag
Wrap the remaining HTML that is specific to the page with the block definition
{{ define "main" }}
<!-- html goes here -->
{{ end }}
There exists a
baseof.html
file that serves as a single place to import common resources/components like CSS files, the header and the footer. These do not need to be done in every single HTML file. So, make all HTML files to extend the base HTML file using Hugoblock
s.This task involves changing multiple HTML files.
Files required to be changed
layouts/index.html
layouts/blog/list.html
layouts/blog/single.html
layouts/careers/list.html
layouts/events/list.html
layouts/projects/list.html
layouts/team/single.html
Changes required in each file
<!DOCTYPE html>
declaration<html />
taghead.html
,header.html
, andfooter.html
partials<body />
tagResources
block
documentation