forked from TonTon/tonton-web
[ First commit ]
This commit is contained in:
commit
851303e97b
6 changed files with 167 additions and 0 deletions
25
views/layout.erb
Normal file
25
views/layout.erb
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>TonTon</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<a href="/home">Home</a>
|
||||
|
||||
<a href="/wiki">Wiki</a>
|
||||
|
||||
<a href="/git">Git</a>
|
||||
</nav>
|
||||
<header>
|
||||
|
||||
<%= yield %>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
const title = document.querySelector('title');
|
||||
|
||||
title.textContent = document.querySelector('h1').textContent;
|
||||
</script>
|
||||
</html>
|
||||
Reference in a new issue