#Posts April 18, 2024

New Repository Initial Setup

Create a robots.txt if the repository is meant to be private

User-agent: *
Disallow: /

Create a .gitignore, especially when using macOS and ignore the .DS_Store file

.DS_Store

Create a 404.html for public repositories.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404</title>
    <link rel="stylesheet" href="https://aldrinrenzcruz.com/assets/css/bootstrap.min.css">
    <link rel="icon" href="https://aldrinrenzcruz.com/assets/favicon.svg">
  </head>

  <body>
    <div class="d-flex align-items-center justify-content-center vh-100">
      <div class="text-center">
        <h1 class="display-1 fw-bold">404</h1>
        <p class="fs-3">Page not found.</p>
        <p class="lead">It may have been moved, edited, or deleted.</p>
        <a href="https://aldrinrenzcruz.com/" class="btn btn-primary">Go Home</a>
      </div>
    </div>
  </body>
</html>

SEARCH