Skip to content

Commit be898f6

Browse files
authored
Merge pull request creativecommons#41 from sanjana11147/back_to_top
Back to top button takes to top of the page.
2 parents 07c6d72 + a313f51 commit be898f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/layout.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div class="container-fluid">
1717
<div class="row justify-content-md-center">
1818
<div class="col-9">
19-
<nav class="navbar navbar-expand-xl navbar-dark">
19+
<nav class="navbar navbar-expand-xl navbar-dark" name="top">
2020
{% set cc_logo = site.get('/').attachments.get('cclogo.svg') %}
2121
<a class="navbar-brand" href="{{ '/'|url }}">
2222
<img src="{{ cc_logo|url }}">
@@ -74,7 +74,6 @@
7474
<div class="row justify-content-md-center">
7575
<div class="col-9 content-wrap">
7676
<div class="page py-3">
77-
<a name="top"></a>
7877
<h1 class="page-title pb-3 mb-4">{% block header %}{{ this.title }}{% endblock %}</h1>
7978
{% block body %}{% endblock %}
8079
<a id="back-to-top" href="#top" class="btn btn-dark btn-sm" role="button">Back to top</a>

0 commit comments

Comments
 (0)