discourse-legacysite-perl/site/common/templates/include_global_head.html
2024-06-17 22:24:05 +10:00

65 lines
3.1 KiB
HTML

<meta http-equiv="content-type" content="text/html; charset=<%config.header_charset || 'utf-8'%>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="<%site_description || ''%>" />
<meta name="keywords" content="<%site_keywords || ''%>" />
<meta name="author" content="Slowtwitch.com" />
<meta name="facebook-domain-verification" content="bjsr7t1emgzf0nk5gxqumecuu2oxbr" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="/images/slowtwitch_apple.png" />
<link rel="alternate" type="application/rss+xml" title="Slowtwitch.com - RSS" href="https://www.slowtwitch.com/rss" />
<%~-- FIXME download google fonts --%>
<link href='https://fonts.googleapis.com/css?family=Open+Sans|Oswald|Roboto+Slab' rel='stylesheet' type='text/css'>
<%~set mini_version = '41'%>
<%~if not minify%><%set mini_version = 0%><%endif%>
<%~if not mini_version%>
<link type="text/css" rel="stylesheet" href="<%static_url%>/css/jquery-ui.min.css" />
<link type="text/css" rel="stylesheet" href="<%static_url%>/css/lightbox.min.css" />
<link type="text/css" rel="stylesheet" href="<%static_url%>/css/core.css" />
<%~endif%>
<%~if slowtwitch_forum%>
<%~if mini_version%>
<link type="text/css" rel="stylesheet" href="<%static_url%>/r<%mini_version%>/css/forum.min.css" />
<link type="text/css" rel="stylesheet" href="<%static_url%>/css/style.css" />
<%~if page_id ne 'category_list'%>
<script type="text/javascript" src="<%static_url%>/r<%mini_version%>/js/gforum.min.js"></script>
<%~endif%>
<%~else%>
<link type="text/css" rel="stylesheet" href="<%static_url%>/css/forum.css" />
<link type="text/css" rel="stylesheet" href="<%static_url%>/css/style.css" />
<script type="text/javascript" src="<%static_url%>/js/gforum.js"></script>
<script type="text/javascript" src="<%static_url%>/js/utils.js"></script>
<%~endif%>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<%~else%>
<%~if mini_version%>
<link type="text/css" rel="stylesheet" href="<%static_url%>/r<%mini_version%>/css/style.min.css" />
<%~else%>
<link type="text/css" rel="stylesheet" href="<%static_url%>/css/style.css" />
<link rel="stylesheet" href="<%static_url%>/css/swiper.min.css">
<%~endif%>
<%~endif%>
<script type="text/javascript">
var winWidth = window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;
<%~if slowtwitch_forum and $page_id ne 'category_list'%>
GForum.staticUrl = '<%config.static_url%>';
GForum.imageUrl = '<%config.image_url%>';
GForum.gforum_url = '<%GForum::SEO::url()%>';
GForum.hiddenUrl = '<%hidden_url%>';
<%~if forum_image_max_x or forum_image_max_y or config.post_image_max_x or config.post_image_max_y%>
<%~if forum_image_max_x or config.post_image_max_x%>
GForum.image_max_width = '<%forum_image_max_x || $config.post_image_max_x%>';
<%~endif%>
<%~if forum_image_max_y or config.post_image_max_y%>
GForum.image_max_height = '<%forum_image_max_y || $config.post_image_max_y%>';
<%~endif%>
<%~endif%>
<%~endif%>
</script>