示例#1
0
文件: views.py 项目: zilehuda/indico
 def _getHeadContent(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._getHeadContent(self) + meta
示例#2
0
文件: views.py 项目: bkolobara/indico
 def _getHeadContent(self):
     head_content = WPDecorated._getHeadContent(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._getHeadContent(self)
     return head_content
示例#3
0
文件: views.py 项目: zilehuda/indico
 def _getHeadContent(self):
     head_content = WPDecorated._getHeadContent(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._getHeadContent(self)
     return head_content
示例#4
0
文件: views.py 项目: koufounak/indico
 def _getHeadContent(self):
     site_name = core_settings.get('site_title')
     meta = render_template('events/meta.html',
                            event=self.event,
                            site_name=site_name)
     return WPDecorated._getHeadContent(self) + meta
示例#5
0
文件: views.py 项目: bkolobara/indico
 def _getHeadContent(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._getHeadContent(self) + meta
示例#6
0
文件: views.py 项目: nop33/indico
 def _getHeadContent(self):
     site_name = core_settings.get('site_title')
     meta = render_template('events/meta.html', event=self.event, site_name=site_name)
     return WPDecorated._getHeadContent(self) + meta