Skip to content

Commit 110912d

Browse files
committed
link to sections
1 parent e0712cd commit 110912d

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

web/css/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,9 @@ body {
2525

2626
table {
2727
font-family: monospace;
28+
}
29+
30+
section {
31+
padding-top: 60px;
32+
margin-top: -60px;
2833
}

web/t_index.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<link href="css/bootstrap-reboot.min.css" rel="stylesheet">
3939
<link href="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.1.1/ekko-lightbox.min.css" rel="stylesheet">
4040
<link href="https://cdnjs.cloudflare.com/ajax/libs/bigfoot/2.1.4/bigfoot-default.min.css" rel="stylesheet">
41+
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
4142

4243
<!-- Custom styles for this template -->
4344
<link href="css/pygments-native.css" rel="stylesheet">
@@ -111,9 +112,10 @@ <h5>{{ name }}</h5>
111112
<hr>
112113
<div class="row mt-4" id="examples"><div class="col-xs-12 col-md-10 offset-md-1">
113114
{% for (name, slug), items in plots.items() %}
114-
<div class="card mb-4" id="{{ slug }}">
115+
<section id="{{ slug }}">
116+
<div class="card mb-4">
115117
<div class="card-header">
116-
<h3 class="card-title mb-1">{{ name }}</h3>
118+
<h3 class="card-title mb-1"><a href="#{{ slug }}"><i class="fa fa-link" aria-hidden="true"></i></a> {{ name }}</h3>
117119
<ul class="nav nav-tabs card-header-tabs">
118120
{% for plot in items %}
119121
<li class="nav-item">
@@ -155,9 +157,10 @@ <h6 class="text-muted">Note:</h6>
155157
</div>
156158
</div>
157159
</div>
160+
</section>
158161
{% endfor %}
159-
160-
</div></div>
162+
</div>
163+
</div>
161164

162165
<div class="row">
163166
<div class="col-3">© 2017 <a href="http://tdhopper.com">Tim Hopper</a></div>

0 commit comments

Comments
 (0)