Skip to content

Commit

Permalink
Fix #2619 — promote Nikola in a meta generator tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Jan 8, 2017
1 parent 7207adc commit 986f4f5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -24,6 +24,8 @@ Bugfixes
Features
--------

* Add meta generator tag to default templates to promote Nikola
(Issue #2619)
* Add ``nikola new_post -d`` and ``NEW_POST_DATE_PATH`` to allow
automatic creation of year/month/day (date-based) directory
structures (Issue #2513)
Expand Down
3 changes: 2 additions & 1 deletion nikola/data/themes/base/templates/base_helper.tmpl
Expand Up @@ -35,7 +35,8 @@ lang="${lang}">
%endif

${html_stylesheets()}
<meta content="${theme_color}" name="theme-color">
<meta name="theme-color" content="${theme_color}">
<meta name="generator" content="Nikola https://getnikola.com/">
${html_feedlinks()}
<link rel="canonical" href="${abs_link(permalink)}">

Expand Down
3 changes: 2 additions & 1 deletion nikola/data/themes/bootstrap3/templates/base_helper.tmpl
Expand Up @@ -40,7 +40,8 @@ lang="${lang}">
%endif

${html_stylesheets()}
<meta content="${theme_color}" name="theme-color">
<meta name="theme-color" content="${theme_color}">
<meta name="generator" content="Nikola https://getnikola.com/">
${html_feedlinks()}
<link rel="canonical" href="${abs_link(permalink)}">

Expand Down
2 changes: 1 addition & 1 deletion nikola/nikola.py
Expand Up @@ -1642,7 +1642,7 @@ def generic_rss_renderer(self, lang, title, link, description, timeline, output_
link=utils.encodelink(link),
description=description,
lastBuildDate=datetime.datetime.utcnow(),
generator='https://getnikola.com/',
generator='Nikola https://getnikola.com/',
language=lang
)

Expand Down

0 comments on commit 986f4f5

Please sign in to comment.