0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-03-18 02:22:46 -05:00

Allow configuring a tagline that is displayed on the webpage between the header and the list of packages.

This commit is contained in:
Jannis Achstetter 2017-03-28 16:48:16 +02:00
parent 4f22d6fec6
commit a00be0c20d
3 changed files with 11 additions and 0 deletions

View file

@ -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:

View file

@ -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>

View file

@ -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,