diff --git a/src/css/toolbar.css b/src/css/toolbar.css index b66e158..dcc97ad 100644 --- a/src/css/toolbar.css +++ b/src/css/toolbar.css @@ -53,6 +53,23 @@ background-image: url(../img/octicons-24.svg#view-home-fill); } +.project-link { + display: block; + filter: var(--toolbar-primary-icon-filter); + margin-right: 1ch; +} + +.project-link .icon { + display: inherit; + height: 1rem; + width: 1rem; +} + +.project-link .icon img { + height: inherit; + width: inherit; +} + .edit-this-page { display: none; padding-right: 0.5rem; diff --git a/src/partials/edit-this-page.hbs b/src/partials/edit-this-page.hbs index 27946f4..06db950 100644 --- a/src/partials/edit-this-page.hbs +++ b/src/partials/edit-this-page.hbs @@ -1,3 +1,6 @@ +{{#if page.attributes.project-url}} + +{{/if}} {{#if (and page.fileUri (not env.CI))}}
Edit this Page
{{else if (and page.editUrl (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}}