|
4 | 4 | <!DOCTYPE html> |
5 | 5 | <html lang="{{ page.lang | default: site.lang | default: 'en' }}"> |
6 | 6 | <head> |
7 | | - <meta charset="utf-8"> |
| 7 | + <meta id="xxx" charset="utf-8"> |
8 | 8 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
9 | 9 | <meta name="referrer" content="no-referrer"> |
10 | 10 | {% if site.title and site.title == page.title %} |
|
26 | 26 |
|
27 | 27 | <link rel="canonical" href="https://www.learnlatex.org/{{ page.lang }}/"> |
28 | 28 |
|
| 29 | + {% if page.lang =="mr" or page.lang == "hi" %} |
| 30 | + {% assign editor = "cm6" %} |
| 31 | + {% else %} |
| 32 | + {% assign editor = "ace" %} |
| 33 | + {% endif %} |
| 34 | + {% if page.editor %} |
| 35 | + {% assign editor = page.editor %} |
| 36 | + {% endif %} |
| 37 | + |
| 38 | + |
| 39 | + {% if editor == "cm6" %} |
29 | 40 | <!-- script to run latex start --> |
30 | | - <script src="{{ "/assets/scripts/runlatex.js" | relative_url}}"></script> |
| 41 | + <script src="{{ "/assets/scripts/runlatex-cm6.js" | relative_url}}"></script> |
31 | 42 | <!-- script to run latex end --> |
32 | 43 |
|
33 | | - <!-- adding anchors to headings start 1/2 --> |
34 | | - <script src="{{ "/assets/scripts/anchor.min.js" | relative_url }}"></script> |
35 | | - <!-- adding anchors to headings end 1/2 --> |
| 44 | + <!-- ace editor and buttons start --> |
| 45 | + {% include cm6-editor.html %} |
| 46 | + <!-- ace editor and buttons end --> |
| 47 | + |
| 48 | + {% else %} |
| 49 | + <!-- script to run latex start --> |
| 50 | + <script src="{{ "/assets/scripts/runlatex.js" | relative_url}}"></script> |
| 51 | + <!-- script to run latex end --> |
36 | 52 |
|
37 | 53 | <!-- ace editor and buttons start --> |
38 | 54 | {% include ace-editor.html %} |
39 | 55 | <!-- ace editor and buttons end --> |
40 | 56 |
|
| 57 | + {% endif %} |
| 58 | + |
| 59 | + <!-- adding anchors to headings start 1/2 --> |
| 60 | + <script src="{{ "/assets/scripts/anchor.min.js" | relative_url }}"></script> |
| 61 | + <!-- adding anchors to headings end 1/2 --> |
| 62 | + |
41 | 63 | <script> |
42 | 64 | {% if site.title and site.title == page.title %} |
43 | 65 | function switchlang(e) { |
|
0 commit comments