Skip to content

Commit

Permalink
allow to configure the document title
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph committed Aug 17, 2015
1 parent 6c0fe6a commit 6e3b407
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions config.template.yaml
Expand Up @@ -75,6 +75,9 @@ footer_links:
## Twig template (e.g. my-home.twig) in /templates/custom/
# custom_home: my-home

## If you run a white-labelled installation of Datawrapper, you might want
## to change the document title.
# custom_title: Datamapper

## HTTP AUTH (optional)
## edit and uncomment if Datawrapper is locked behind HTTP Auth
Expand Down
5 changes: 3 additions & 2 deletions templates/core.twig
Expand Up @@ -2,7 +2,8 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Datawrapper{% if title and title != 'Datawrapper' %} :: {{ title }}{% endif %}</title>
{% set project_title = config.custom_title | default('Datawrapper') %}
<title>{{ project_title }}{% if title and title != project_title %} :: {{ title }}{% endif %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Datawrapper is an open source tool helping everyone to create simple, correct and embeddable charts in minutes.">
<meta name="author" content="Mirko Lorenz, Nicolas Kayser-Bril, Gregor Aisch">
Expand All @@ -25,7 +26,7 @@

<script type="text/javascript" charset="utf-8" src="/static/vendor/d3js/3.5.5/d3.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/static/vendor/d3js/d3-jetpack.min.js"></script>

<script type="text/javascript" charset="utf-8" src="/static/vendor/require-js/require-2.1.8.min.js"></script>
<script type="text/javascript" charset="utf-8">
require.config({
Expand Down

0 comments on commit 6e3b407

Please sign in to comment.