私は現在、W3Schools スクリプトを利用する Github Pages の Github でレポを作成しています。私の index.html コードは次のようになります。
<!DOCTYPE html>
<html>
<head>
<title>[my name] Witness Project</title>
<script src="http://w3schools.com/lib/w3data.js"></script>
</head>
<body>
<div w3-include-html="common.html"></div>
<div id="main">
<h1 style="display:block">This will be my Witness Project soon!</h1>
</div>
</body>
<script>
w3IncludeHTML();
</script>
</html>
common.html には、ヘッダーとフッターのコードがあります。
<link rel="stylesheet" href="common.css">
<div id="header">
<nav>
<button type="button"><a href="index.html">Home</a></button>
<button type="button"><a href="#">Coming Soon</a></button>
<button type="button"><a href="#">Coming Soon</a></button>
<button type="button"><a href="#">Coming Soon</a></button>
<button type="button"><a href="#">Coming Soon</a></button>
</nav>
</div>
<div id="footer">
Created as part of <i>The Witness Project</i> at The Key School<br>
<i>Content of website © 2016 by [my name]</i>
</div>
ここで説明するスクリプトを使用して、他の HTML ファイルをインポートできるようにしています。CSSは関係ないと思います。しかし、Github Pages ページを読み込むと、index.html の要素しか表示されません。ただし、ローカル ファイルからページを読み込むと、期待どおりに表示されるため、これは私のせいではありません。