Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

disqus.html 3.2 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
  1. <!--
  2. Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to
  5. deal in the Software without restriction, including without limitation the
  6. rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  7. sell copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in
  10. all copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  16. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  17. IN THE SOFTWARE.
  18. -->
  19. <!-- Link to previous and/or next page -->
  20. {% if page.previous_page or page.next_page %}
  21. <nav class="md-after-content md-grid"
  22. aria-label="{{ lang.t('footer.title') }}"
  23. >
  24. <!-- Link to previous page -->
  25. {% if page.previous_page %}
  26. <a href="{{ page.previous_page.url | url }}"
  27. class="md-after-content__link md-after-content__link--prev"
  28. rel="prev"
  29. >
  30. <div class="md-after-content__button md-icon">
  31. {% include ".icons/fontawesome/solid/arrow-left.svg" %}
  32. </div>
  33. <div class="md-after-content__title">
  34. <div class="md-ellipsis">
  35. <div class="md-after-content__page-name">
  36. {{ page.previous_page.title }}
  37. </div>
  38. </div>
  39. </div>
  40. </a>
  41. {% endif %}
  42. <!-- Link to next page -->
  43. {% if page.next_page %}
  44. <a href="{{ page.next_page.url | url }}"
  45. class="md-after-content__link md-after-content__link--next"
  46. rel="next"
  47. >
  48. <div class="md-after-content__title">
  49. <div class="md-ellipsis">
  50. <div class="md-after-content__page-name">
  51. {{ page.next_page.title }}
  52. </div>
  53. </div>
  54. </div>
  55. <div class="md-after-content__button md-icon">
  56. {% include ".icons/fontawesome/solid/arrow-right.svg" %}
  57. </div>
  58. </a>
  59. {% endif %}
  60. </nav>
  61. {% endif %}
  62. <!-- Set from config but allow override -->
  63. {% set disqus = config.extra.disqus %}
  64. {% if page and page.meta and page.meta.disqus is string %}
  65. {% set disqus = page.meta.disqus %}
  66. {% endif %}
  67. <!-- Disqus integration -->
  68. {% if not page.is_homepage and disqus %}
  69. <h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
  70. <div id="disqus_thread"></div>
  71. <script type="application/javascript">
  72. var disqus_config = function () {
  73. this.page.url = "{{ page.canonical_url }}";
  74. this.page.identifier =
  75. "{{ page.canonical_url | replace(config.site_url, '') }}";
  76. };
  77. window.addEventListener("load", function() {
  78. var d = document, s = d.createElement("script");
  79. s.src = "//{{ disqus }}.disqus.com/embed.js";
  80. s.setAttribute("data-timestamp", +new Date());
  81. (d.head || d.body).appendChild(s);
  82. })
  83. </script>
  84. {% endif %}
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...