mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Move viewport tag to its own overridable template function.
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
<meta name="keywords" content="${self.keywords()}" />
|
||||
<meta name="description" content="${getattr(thing, 'short_description', None) or g.short_description}" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="viewport" content="width=1024" />
|
||||
${self.viewport()}
|
||||
${self.robots()}
|
||||
${self.pagemeta()}
|
||||
${self.stylesheet()}
|
||||
@@ -69,6 +69,10 @@ ${c.site.title}
|
||||
reddit, reddit.com, vote, comment, submit
|
||||
</%def>
|
||||
|
||||
<%def name="viewport()">
|
||||
<meta name="viewport" content="width=1024">
|
||||
</%def>
|
||||
|
||||
<%def name="robots()">
|
||||
%if hasattr(thing, 'robots') and thing.robots:
|
||||
<meta name="robots" content="${thing.robots}" />
|
||||
|
||||
Reference in New Issue
Block a user