enzostvs HF staff commited on
Commit
1a89f87
·
1 Parent(s): b868fde

add space header package

Browse files
Files changed (1) hide show
  1. front/views/layout.hbs +88 -70
front/views/layout.hbs CHANGED
@@ -1,72 +1,90 @@
1
- <!DOCTYPE html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>
6
- {{#if meta.title}}
7
- {{meta.title}}
8
- {{else if doc.title}}
9
- {{doc.title}}
10
- {{else}}
11
- Write With Transformer
12
- {{/if}}
13
- </title>
14
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
15
- <link rel="stylesheet" href="/front/build/style.css?v4">
16
- <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700" rel="stylesheet">
17
- {{#if meta.title}}
18
- <meta property="og:title" content="{{meta.title}}">
19
- {{else}}
20
- <meta property="og:title" content="Write With Transformer">
21
- {{/if}}
22
- <meta property="og:type" content="website">
23
- <meta property="og:url" content="https://transformer.huggingface.co{{meta.path}}">
24
- {{#if meta.thumbnail}}
25
- <meta property="og:image" content="https://transformer.huggingface.co/front/assets/{{meta.thumbnail}}.png">
26
- {{else}}
27
- <meta property="og:image" content="https://transformer.huggingface.co/front/assets/thumbnail-large.png">
28
- {{/if}}
29
- <meta property="fb:app_id" content="1321688464574422">
30
- <meta name="twitter:card" content="summary_large_image">
31
- <meta name="twitter:site" content="@huggingface">
32
- <meta name="description" content="See how a modern neural network auto-completes your text">
33
- </head>
34
- <body class="{{body_classes}}" data-editable="{{editable}}">
35
- {{{ body }}}
36
-
37
- <script src="/front/assets/github-buttons.js"></script>
38
- <script src="/front/node_modules/quill/dist/quill.js"></script>
39
- <script src="/front/build/bundle.js"></script>
40
- <script>
41
- (function() {
42
- if (window.location.hostname === 'localhost') {
43
- console.log('[livereload]', 'on');
44
- const s = document.createElement('script');
45
- s.setAttribute('src', '//localhost:35729/livereload.js');
46
- document.body.appendChild(s);
47
- }
48
- })();
49
- </script>
50
- <!-- Google analytics (legacy) -->
51
- <script>
52
- if (! ['localhost', 'huggingface.test'].includes(window.location.hostname)) {
53
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
54
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
55
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
56
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
57
- ga('create', 'UA-83738774-5', 'auto');
58
- ga('send', 'pageview');
59
- }
60
- </script>
61
- <!-- Google tag (gtag.js) -->
62
- <script async src="https://www.googletagmanager.com/gtag/js?id=G-56Y0W3EPT3"></script>
63
- <script>
64
- if (! ['localhost', 'huggingface.test'].includes(window.location.hostname)) {
65
- window.dataLayer = window.dataLayer || [];
66
- function gtag(){dataLayer.push(arguments);}
67
- gtag('js', new Date());
68
- gtag('config', 'G-56Y0W3EPT3');
69
- }
70
- </script>
71
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  </html>
 
 
1
  <html>
2
+ <head>
3
+ <meta charset="utf-8" />
4
+ <title>
5
+ {{#if meta.title}}
6
+ {{meta.title}}
7
+ {{else if doc.title}}
8
+ {{doc.title}}
9
+ {{else}}
10
+ Write With Transformer
11
+ {{/if}}
12
+ </title>
13
+ <meta
14
+ name="viewport"
15
+ content="width=device-width, initial-scale=1.0, user-scalable=no"
16
+ />
17
+ <link rel="stylesheet" href="/front/build/style.css?v4" />
18
+ <link
19
+ href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700"
20
+ rel="stylesheet"
21
+ />
22
+ {{#if meta.title}}
23
+ <meta property="og:title" content="{{meta.title}}" />
24
+ {{else}}
25
+ <meta property="og:title" content="Write With Transformer" />
26
+ {{/if}}
27
+ <meta property="og:type" content="website" />
28
+ <meta
29
+ property="og:url"
30
+ content="https://transformer.huggingface.co{{meta.path}}"
31
+ />
32
+ {{#if meta.thumbnail}}
33
+ <meta
34
+ property="og:image"
35
+ content="https://transformer.huggingface.co/front/assets/{{meta.thumbnail}}.png"
36
+ />
37
+ {{else}}
38
+ <meta
39
+ property="og:image"
40
+ content="https://transformer.huggingface.co/front/assets/thumbnail-large.png"
41
+ />
42
+ {{/if}}
43
+ <meta property="fb:app_id" content="1321688464574422" />
44
+ <meta name="twitter:card" content="summary_large_image" />
45
+ <meta name="twitter:site" content="@huggingface" />
46
+ <meta
47
+ name="description"
48
+ content="See how a modern neural network auto-completes your text"
49
+ />
50
+ </head>
51
+ <body class="{{body_classes}}" data-editable="{{editable}}">
52
+ {{{body}}}
53
+
54
+ <script src="/front/assets/github-buttons.js"></script>
55
+ <script src="/front/node_modules/quill/dist/quill.js"></script>
56
+ <script src="/front/build/bundle.js"></script>
57
+ <script>
58
+ (function() { if (window.location.hostname === 'localhost') {
59
+ console.log('[livereload]', 'on'); const s =
60
+ document.createElement('script'); s.setAttribute('src',
61
+ '//localhost:35729/livereload.js'); document.body.appendChild(s); } })();
62
+ </script>
63
+ <!-- Google analytics (legacy) -->
64
+ <script>
65
+ if (! ['localhost',
66
+ 'huggingface.test'].includes(window.location.hostname)) {
67
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
68
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
69
+ Date();a=s.createElement(o),
70
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
71
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
72
+ ga('create', 'UA-83738774-5', 'auto'); ga('send', 'pageview'); }
73
+ </script>
74
+ <!-- Google tag (gtag.js) -->
75
+ <script
76
+ async
77
+ src="https://www.googletagmanager.com/gtag/js?id=G-56Y0W3EPT3"
78
+ ></script>
79
+ <script>
80
+ if (! ['localhost',
81
+ 'huggingface.test'].includes(window.location.hostname)) { window.dataLayer
82
+ = window.dataLayer || []; function gtag(){dataLayer.push(arguments);}
83
+ gtag('js', new Date()); gtag('config', 'G-56Y0W3EPT3'); }
84
+ </script>
85
+ <script async src="https://esm.sh/@huggingface/space-header"></script>
86
+ <script>
87
+ window.init("banana-projects/transformer-autocomplete") })();
88
+ </script>
89
+ </body>
90
  </html>