Skip to content

Commit 37ffaf6

Browse files
committed
add link to PDF, if availabl, to toolbar
1 parent 9a52116 commit 37ffaf6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/css/toolbar.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,21 @@
7070
width: inherit;
7171
}
7272

73+
.pdf-link,
7374
.edit-this-page {
7475
display: none;
7576
padding-right: 0.5rem;
7677
}
7778

7879
@media screen and (min-width: 1024px) {
7980
.project-link,
81+
.pdf-link,
8082
.edit-this-page {
8183
display: block;
8284
}
8385
}
8486

87+
.toolbar .pdf-link a,
8588
.toolbar .edit-this-page a {
8689
color: var(--toolbar-muted-color);
8790
}

src/partials/toolbar.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
{{/with}}
66
{{> breadcrumbs}}
77
{{> page-versions}}
8+
{{#with ./page.file.assembler.pdf}}
9+
<div class="pdf-link"><a href="{{{relativize ./file.pub.url}}}{{{./fragment}}}">PDF</a></div>
10+
{{/with}}
811
{{> edit-this-page}}
912
</div>

0 commit comments

Comments
 (0)