Code for lab website.
Note: use dev branch
-
Install Jekyll
-
Serve website locally:
bundle exec jekyll serve -
Edit
-
See updates
-
Repeat steps 4 and 5 until satisfied and push changes
Note: use gh-pages branch
-
To build and generate files for hosting on Github pages:
bundle exec jekyll build -
Add Google Fonts to every HTML page's header:
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
<style> @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap'); </style>- Add Google Analytics to every HTML page's header:
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ZBTHQG17YC"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-ZBTHQG17YC');
</script>-
Move the files in
_siteindevbranch into main/top level ofgh-pagesbranch. -
Git add, commit, push
-
Check live!