mirror of
https://github.com/dwmkerr/hacker-laws.git
synced 2025-12-17 12:45:20 +01:00
feat(pages): update index.html and pages.yaml for deployment
Updated the index.html to include a full HTML structure with Bootstrap and Google tag. Modified pages.yaml to deploy from 'build/pages' branch instead of the default branch.
This commit is contained in:
29
.github/pages/index.html
vendored
29
.github/pages/index.html
vendored
@@ -1 +1,28 @@
|
||||
Testing
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
||||
|
||||
<title>Hacker Laws</title>
|
||||
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-RGJ5TDHWY9"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-RGJ5TDHWY9');
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hacker Laws</h1>
|
||||
|
||||
<!-- Bootstrap JS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
3
.github/workflows/pages.yaml
vendored
3
.github/workflows/pages.yaml
vendored
@@ -3,7 +3,8 @@ name: Deploy to Pages
|
||||
on:
|
||||
# Runs on pushes targeting the default branch (or runs manually).
|
||||
push:
|
||||
branches: [$default-branch]
|
||||
# branches: [$default-branch]
|
||||
branches: ['build/pages'] # we're deploying from a build branch for now.
|
||||
workflow_dispatch:
|
||||
|
||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||
|
||||
Reference in New Issue
Block a user