Skip to content

Commit 1e0b313

Browse files
committed
Mobile display fixes
1 parent fc6268e commit 1e0b313

File tree

3 files changed

+30
-24
lines changed

3 files changed

+30
-24
lines changed

_includes/head.html

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
<head>
2-
<meta charset="utf-8">
3-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4-
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
5-
<meta name="viewport" content="width=device-width">
6-
<meta name="description" content="{{ site.description }}">
7-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
5+
<meta name="viewport" content="width=device-width">
6+
<meta name="description" content="{{ site.description }}">
7+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
88

9-
<!-- Custom CSS -->
10-
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
9+
<!-- Custom CSS -->
10+
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
1111

12-
<!-- Google fonts -->
13-
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'>
12+
<!-- Google fonts -->
13+
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'>
1414

15-
<!-- Google tracking -->
16-
<script>
17-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
18-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
19-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
20-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
21-
22-
ga('create', 'UA-46895817-2', 'auto');
23-
ga('send', 'pageview');
24-
25-
</script>
15+
<!-- Google tracking -->
16+
<script>
17+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
18+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
19+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
20+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
2621

22+
ga('create', 'UA-46895817-2', 'auto');
23+
ga('send', 'pageview');
24+
</script>
2725
</head>

_layouts/default.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,13 @@
3636

3737
<!-- mathjax -->
3838
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
39+
<script type="text/x-mathjax-config">
40+
// Make responsive
41+
MathJax.Hub.Config({
42+
"HTML-CSS": { linebreaks: { automatic: true } },
43+
"SVG": { linebreaks: { automatic: true } },
44+
});
45+
</script>
46+
3947
</body>
4048
</html>

0 commit comments

Comments
 (0)