Example of use cat + EOF heredoc
cat > ./docs/index.html << EOF
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="./style.css">
<link rel="alternate" type="application/atom+xml" title="nerdypepper's micro musings" href="./index.xml">
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1">
<meta content="#ffffff" name="theme-color">
<meta name="HandheldFriendly" content="true">
<meta property="og:title" content="nerdypepper">
<meta property="og:type" content="website">
<meta property="og:description" content="nerdypepper's micro musings">
<meta property="og:url" content="https://peppe.rs">
<link rel="icon" type="image/x-icon" href="/favicon.png">
<title>peppe.rs</title>
<body>
<h1 class="heading">n</h1>
<h4 class="subheading">nerdypepper's μsings</h4>
<div class="posts">
<div class="post">
EOF
cat << EOF
The current working directory is: $PWD
You are logged in as: $(whoami)
EOF