drawer.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <nav aria-label="Navigation">
  2. <a href="{{ with .Site.Params.repo_url }}{{ . }}{{ else }}{{ .Site.BaseURL }}{{ end }}" class="project">
  3. <div class="banner">
  4. {{ with .Site.Params.logo }}
  5. <div class="logo">
  6. <img src="{{ $.Site.BaseURL }}{{ . }}">
  7. </div>
  8. {{ end }}
  9. <!--<div class="name">-->
  10. <!--<strong>{{ .Site.Title }} {{ with .Site.Params.version }}<span class="version">{{ . }}</span>{{ end }}</strong>-->
  11. <!--{{ with .Scratch.Get "repo_id" }}-->
  12. <!--<br>-->
  13. <!--{{ . }}-->
  14. <!--{{ end }}-->
  15. <!--</div>-->
  16. </div>
  17. </a>
  18. <div class="scrollable">
  19. <div class="wrapper">
  20. {{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }}
  21. <ul class="repo">
  22. <li class="repo-download">
  23. <a href="{{ .Site.Params.repo_url }}/archive/master.zip" target="_blank" title="Download" data-action="download">
  24. <i class="icon icon-download"></i> Download
  25. </a>
  26. </li>
  27. <li class="repo-stars">
  28. <a href="{{ .Site.Params.repo_url }}/stargazers" target="_blank" title="Stargazers" data-action="star">
  29. <i class="icon icon-star"></i> Stars
  30. <span class="count">&ndash;</span>
  31. </a>
  32. </li>
  33. </ul>
  34. <hr>
  35. {{ end }}
  36. <div class="toc">
  37. {{ if gt (len .Site.Menus.main) 0 }}
  38. <ul>
  39. {{ partial "nav" . }}
  40. </ul>
  41. {{ end }}
  42. <br>
  43. <br>
  44. <div>
  45. <!-- ------------------------------------------------------------------------- -->
  46. <!-- Google Ads -->
  47. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  48. <!-- Laradock Vertical -->
  49. <ins class="adsbygoogle"
  50. style="display:inline-block;width:237px;height:600px"
  51. data-ad-client="ca-pub-9826129398689742"
  52. data-ad-slot="9891442983"></ins>
  53. <script>
  54. (adsbygoogle = window.adsbygoogle || []).push({});
  55. </script>
  56. <!-- ------------------------------------------------------------------------- -->
  57. </div>
  58. <br>
  59. <br>
  60. <!--{{ if isset .Site.Params "author" }}-->
  61. <!--<hr>-->
  62. <!--<span class="section">The author</span>-->
  63. <!---->
  64. <!--<ul>-->
  65. <!--{{ with .Site.Social.twitter }}-->
  66. <!--<li>-->
  67. <!--<a href="https://twitter.com/{{ . }}" target="_blank" title="@{{ . }} on Twitter">-->
  68. <!--@{{ . }} on Twitter-->
  69. <!--</a>-->
  70. <!--</li>-->
  71. <!--{{ end }}-->
  72. <!--{{ with .Site.Social.github }}-->
  73. <!--<li>-->
  74. <!--<a href="https://github.com/{{ . }}" target="_blank" title="@{{ . }} on GitHub">-->
  75. <!--@{{ . }} on GitHub-->
  76. <!--</a>-->
  77. <!--</li>-->
  78. <!--{{ end }}-->
  79. <!--{{ with .Site.Social.email }}-->
  80. <!--<li>-->
  81. <!--<a href="mailto:{{ . }}" title="Email of {{ . }}">-->
  82. <!--Contact via email-->
  83. <!--</a>-->
  84. <!--</li>-->
  85. <!--{{ end }}-->
  86. <!--</ul>-->
  87. <!--{{ end }}-->
  88. </div>
  89. </div>
  90. </div>
  91. </nav>