fix disqus identifier/url definition

This commit is contained in:
AJ ONeal 2015-01-13 04:26:27 -07:00
parent f023315cfc
commit e5521bbae0
1 changed files with 2 additions and 4 deletions

View File

@ -705,8 +705,6 @@
, tagline: view.entity.yml.tagline , tagline: view.entity.yml.tagline
, content: view.contents , content: view.contents
, youtube: view.entity.yml.youtube , youtube: view.entity.yml.youtube
, disqus_identifier: view.entity.disqus_identifier
, disqus_url: !view.entity.disqus_identifier && view.entity.disqus_url
, tags: view.entity.yml.tags , tags: view.entity.yml.tags
, categories: view.entity.yml.categories , categories: view.entity.yml.categories
, player_width: view.entity.yml.player_width , player_width: view.entity.yml.player_width
@ -733,8 +731,8 @@
comments: view.site.disqus_shortname && comments: view.site.disqus_shortname &&
Mustache.render(view.desi.partials.disqus, { disqus: { Mustache.render(view.desi.partials.disqus, { disqus: {
shortname: view.site.disqus_shortname shortname: view.site.disqus_shortname
, identifier: view.entity.disqus_identifier , identifier: view.entity.disqus_identifier || undefined
, url: !view.entity.disqus_identifier && view.entity.disqus_url , url: !view.entity.disqus_identifier && view.entity.disqus_url || undefined
}}) }})
, analytics: view.site.google_analytics_tracking_id && , analytics: view.site.google_analytics_tracking_id &&
Mustache.render(view.desi.partials.google_analytics, { google_analytics: { Mustache.render(view.desi.partials.google_analytics, { google_analytics: {