Skip to content

Commit

Permalink
[fix] split scripts and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
ponsfrilus committed Jan 9, 2024
1 parent 9216f2d commit ad1c5d0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/views/pages/about.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
</div>
</div>
</div>
<footer><%- include('partials/footer'); -%></footer>
<%- include('partials/footer'); -%> <%- include('partials/footer_scripts');
-%>
</body>
</html>
3 changes: 2 additions & 1 deletion src/views/pages/catalog.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<%- include('partials/head'); %>
</head>
<body>
<div class="container mt-5">
<div class="container mt-5 main-content">
<h3>catalog</h3>
<ul>
<% data.forEach(function(d) { %>
Expand All @@ -18,5 +18,6 @@
</ul>
</div>
<%- include('partials/footer'); %>
<%- include('partials/footer_scripts'); -%>
</body>
</html>
1 change: 1 addition & 0 deletions src/views/pages/help.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,6 @@
</div>
</div>
<%- include('partials/footer'); -%>
<%- include('partials/footer_scripts'); -%>
</body>
</html>
1 change: 1 addition & 0 deletions src/views/pages/home.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,6 @@
</div>
</div>
<%- include('partials/footer'); -%>
<%- include('partials/footer_scripts'); -%>
</body>
</html>
7 changes: 0 additions & 7 deletions src/views/pages/partials/footer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,3 @@
<a href="https://github.com/epfl-si/startpage" target="_blank">source</a>
</span>
</footer>

<script>
svgPath = 'https://web2018.epfl.ch/6.4.0/icons/icons.svg';
featherSvgPath = 'https://web2018.epfl.ch/6.4.0/icons/feather-sprite.svg';
</script>
<script src="https://web2018.epfl.ch/6.4.0/js/elements.min.js"></script>
<script src="/js/search.js"></script>
6 changes: 6 additions & 0 deletions src/views/pages/partials/footer_scripts.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<script>
svgPath = 'https://web2018.epfl.ch/6.4.0/icons/icons.svg';
featherSvgPath = 'https://web2018.epfl.ch/6.4.0/icons/feather-sprite.svg';
</script>
<script src="https://web2018.epfl.ch/6.4.0/js/elements.min.js"></script>
<script src="/js/search.js"></script>

0 comments on commit ad1c5d0

Please sign in to comment.