Skip to content

Commit

Permalink
Add js scrip to each layout individually
Browse files Browse the repository at this point in the history
  • Loading branch information
lrodri29 committed May 19, 2019
1 parent 12291f6 commit b96aabf
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 10 deletions.
3 changes: 1 addition & 2 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<footer>
<p> 2019 Spacewired Design by <a href="https://github.com/lrodri29">@lrodri29</a></p>
</footer>
<script src="{{ "/assets/js/main.js" | prepend: site.baseurl }}"></script>
</footer>
4 changes: 3 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
</section>
<button onclick="topFunction()" id="topBtn" title="Go to top"><img src="https://raw.githubusercontent.com/spacewired/spacewired.github.io/master/assets/img/edu-pict-rocketship.png" width="60px"></button>
</body>
</html>
</html>

<script src="{{ "/assets/js/main.js" | prepend: site.baseurl }}"></script>
2 changes: 2 additions & 0 deletions _layouts/minimal.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@
</body>
<button onclick="topFunction()" id="topBtn" title="Go to top"><img src="https://raw.githubusercontent.com/spacewired/spacewired.github.io/master/assets/img/edu-pict-rocketship.png" width="60px"></button>
</html>

<script src="{{ "/assets/js/main.js" | prepend: site.baseurl }}"></script>
2 changes: 2 additions & 0 deletions _layouts/minimal_about_me.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@
{% include footer.html %}
<button onclick="topFunction()" id="topBtn" title="Go to top"><img src="https://raw.githubusercontent.com/spacewired/spacewired.github.io/master/assets/img/edu-pict-rocketship.png" width="60px"></button>
</html>

<script src="{{ "/assets/js/main.js" | prepend: site.baseurl }}"></script>
2 changes: 2 additions & 0 deletions _layouts/minimal_tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@
{% include footer.html %}
<button onclick="topFunction()" id="topBtn" title="Go to top"><img src="https://raw.githubusercontent.com/spacewired/spacewired.github.io/master/assets/img/edu-pict-rocketship.png" width="60px"></button>
</html>

<script src="{{ "/assets/js/main.js" | prepend: site.baseurl }}"></script>
2 changes: 2 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ <h1 class="post-title">{{ page.title }}</h1>
</article>
<button onclick="topFunction()" id="topBtn" title="Go to top"><img src="https://raw.githubusercontent.com/spacewired/spacewired.github.io/master/assets/img/edu-pict-rocketship.png" width="60px"></button>
</div>

<script src="{{ "/assets/js/main.js" | prepend: site.baseurl }}"></script>
2 changes: 2 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@
{% include footer.html %}
<button onclick="topFunction()" id="topBtn" title="Go to top"><img src="https://raw.githubusercontent.com/spacewired/spacewired.github.io/master/assets/img/edu-pict-rocketship.png" width="60px"></button>
</html>

<script src="{{ "/assets/js/main.js" | prepend: site.baseurl }}"></script>
14 changes: 7 additions & 7 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1808,13 +1808,6 @@ a.others:hover {
margin: auto;
}

@media only screen and (max-width:37.5rem) {
#container {
width: 100%;
padding-left:0
}
}

#topBtn {
position: fixed;
bottom: 20px;
Expand All @@ -1830,4 +1823,11 @@ a.others:hover {

#topBtn:hover {
background-color: #555;
}

@media only screen and (max-width:37.5rem) {
#container {
width: 100%;
padding-left:0
}
}

0 comments on commit b96aabf

Please sign in to comment.