1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

Merge pull request #143 from jachstet-sea/TaglineOnWebpage

Allow configuring a tagline that is displayed on the webpage between …
This commit is contained in:
jotadeveloper 2017-03-28 18:18:38 +02:00 committed by GitHub
commit 08864ce302
3 changed files with 11 additions and 0 deletions

@ -20,6 +20,9 @@ web:
title: Verdaccio
# logo: logo.png
# template: custom.hbs
# tagline: "Some <b>HTML</b> enabled tagline that sits between the actual \
#header and the list of packages. You can even add <a \
#href=\"https://github.com\">links</a>!"
auth:
htpasswd:

@ -59,6 +59,13 @@
<code class="white no-bg">{{ baseUrl }}</code><br>
</header>
<header class="packages-header container">
{{#if tagline}}
<div class="row">
<div class="col-md-12">
{{{tagline}}}
</div>
</div>
{{/if}}
<div class="row">
<div class="col-md-5 hidden-xs hidden-sm">
<h2 class="title">Available Packages</h2>

@ -72,6 +72,7 @@ module.exports = function(config, auth, storage) {
next(template({
name: config.web && config.web.title ? config.web.title : 'Verdaccio',
tagline: config.web && config.web.tagline ? config.web.tagline : '',
packages: packages,
baseUrl: base,
username: req.remote_user.name,