Skip to content

Commit

Permalink
Merge pull request rlidwka#143 from jachstet-sea/TaglineOnWebpage
Browse files Browse the repository at this point in the history
Allow configuring a tagline that is displayed on the webpage between …
  • Loading branch information
juanpicado authored Mar 28, 2017
2 parents 4f22d6f + a00be0c commit 08864ce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions lib/GUI/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions lib/index-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 08864ce

Please sign in to comment.