Beispiel #1
0
 def _get_head_content(self):
     site_name = core_settings.get('site_title')
     meta = render_template('events/meta.html',
                            event=self.event,
                            site_name=site_name,
                            json_ld=serialize_event_for_json_ld(self.event,
                                                                full=True))
     return WPDecorated._get_head_content(self) + meta
Beispiel #2
0
 def _get_head_content(self):
     head_content = WPDecorated._get_head_content(self)
     if self.atom_feed_url:
         title = self.atom_feed_title or _("Indico Atom feed")
         head_content += ('<link rel="alternate" type="application/atom+xml" title="{}" href="{}">'
                          .format(escape(title), self.atom_feed_url))
     if self._mathjax:
         head_content += MathjaxMixin._get_head_content(self)
     return head_content
Beispiel #3
0
 def _get_head_content(self):
     head_content = WPDecorated._get_head_content(self)
     if self.atom_feed_url:
         title = self.atom_feed_title or _("Indico Atom feed")
         head_content += ('<link rel="alternate" type="application/atom+xml" title="{}" href="{}">'
                          .format(escape(title), self.atom_feed_url))
     if self._mathjax:
         head_content += MathjaxMixin._get_head_content(self)
     return head_content
Beispiel #4
0
 def _get_head_content(self):
     site_name = core_settings.get('site_title')
     meta = render_template('events/meta.html', event=self.event, site_name=site_name,
                            json_ld=serialize_event_for_json_ld(self.event, full=True))
     return WPDecorated._get_head_content(self) + meta