Skip to content

Commit

Permalink
Disable <base> tag by default (#2471)
Browse files Browse the repository at this point in the history
* Ask users to enable GitHub Pages in deployment tutorial

* Disable <base> tag by default

* Changelog for #2471
  • Loading branch information
Kwpolska authored and ralsina committed Aug 24, 2016
1 parent 8d52ca1 commit 1591e27
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -18,6 +18,8 @@ Features
Bugfixes
--------

* Remove the (useless) ``<base>`` tag by default; change conf.py to
opt in (Issue #2471)
* Show tag descriptions when TAG_PAGES_ARE_INDEXES is True (Issue #2444)
* Record template dependencies for post-list shortcut (Issue #2451)
* Default to English for docutils messages if no translations exist
Expand Down
9 changes: 6 additions & 3 deletions nikola/conf.py.in
Expand Up @@ -434,9 +434,12 @@ FRONT_INDEX_HEADER = {
# If USE_BASE_TAG is True, then all HTML files will include
# something like <base href=http://foo.var.com/baz/bat> to help
# the browser resolve relative links.
# In some rare cases, this will be a problem, and you can
# disable it by setting USE_BASE_TAG to False.
# USE_BASE_TAG = True
# Most people don’t need this tag; major websites don’t use it. Use
# only if you know what you’re doing. If this is True, your website
# will not be fully usable by manually opening .html files in your web
# browser (`nikola serve` or `nikola auto` is mandatory). Also, if you
# have mirrors of your site, they will point to SITE_URL everywhere.
USE_BASE_TAG = False

# Final location for the blog main RSS feed is:
# output / TRANSLATION[lang] / RSS_PATH / rss.xml
Expand Down
2 changes: 1 addition & 1 deletion nikola/nikola.py
Expand Up @@ -561,7 +561,7 @@ def __init__(self, **config):
'THUMBNAIL_SIZE': 180,
'UNSLUGIFY_TITLES': False, # WARNING: conf.py.in overrides this with True for backwards compatibility
'URL_TYPE': 'rel_path',
'USE_BASE_TAG': True,
'USE_BASE_TAG': False,
'USE_BUNDLES': True,
'USE_CDN': False,
'USE_CDN_WARNING': True,
Expand Down

0 comments on commit 1591e27

Please sign in to comment.