mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05: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:
commit
08864ce302
3 changed files with 11 additions and 0 deletions
|
@ -20,6 +20,9 @@ web:
|
||||||
title: Verdaccio
|
title: Verdaccio
|
||||||
# logo: logo.png
|
# logo: logo.png
|
||||||
# template: custom.hbs
|
# 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:
|
auth:
|
||||||
htpasswd:
|
htpasswd:
|
||||||
|
|
|
@ -59,6 +59,13 @@
|
||||||
<code class="white no-bg">{{ baseUrl }}</code><br>
|
<code class="white no-bg">{{ baseUrl }}</code><br>
|
||||||
</header>
|
</header>
|
||||||
<header class="packages-header container">
|
<header class="packages-header container">
|
||||||
|
{{#if tagline}}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
{{{tagline}}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-5 hidden-xs hidden-sm">
|
<div class="col-md-5 hidden-xs hidden-sm">
|
||||||
<h2 class="title">Available Packages</h2>
|
<h2 class="title">Available Packages</h2>
|
||||||
|
|
|
@ -72,6 +72,7 @@ module.exports = function(config, auth, storage) {
|
||||||
|
|
||||||
next(template({
|
next(template({
|
||||||
name: config.web && config.web.title ? config.web.title : 'Verdaccio',
|
name: config.web && config.web.title ? config.web.title : 'Verdaccio',
|
||||||
|
tagline: config.web && config.web.tagline ? config.web.tagline : '',
|
||||||
packages: packages,
|
packages: packages,
|
||||||
baseUrl: base,
|
baseUrl: base,
|
||||||
username: req.remote_user.name,
|
username: req.remote_user.name,
|
||||||
|
|
Loading…
Reference in a new issue