base.html 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. {% if page_description %}<meta name="description" content="{{ page_description }}">{% endif %}
  8. {% if site_author %}<meta name="author" content="{{ site_author }}">{% endif %}
  9. {% if canonical_url %}<link rel="canonical" href="{{ canonical_url }}">{% endif %}
  10. {% if favicon %}<link rel="shortcut icon" href="{{ favicon }}">
  11. {% else %}<link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">{% endif %}
  12. <title>{% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}</title>
  13. <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
  14. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
  15. <link href="{{ base_url }}/css/highlight.css" rel="stylesheet">
  16. <link href="{{ base_url }}/css/base.css" rel="stylesheet">
  17. {%- for path in extra_css %}
  18. <link href="{{ path }}" rel="stylesheet">
  19. {%- endfor %}
  20. <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  21. <!--[if lt IE 9]>
  22. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  23. <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
  24. <![endif]-->
  25. </head>
  26. <body>
  27. {% include "nav.html" %}
  28. {% if current_page and current_page.is_homepage %}
  29. <div class="jumbotron bs-docs-header">
  30. <div class="container text-center">
  31. <h1>bootstrap-select</h1>
  32. <p class="lead">Bootstrap-select is a jQuery plugin that utilizes Bootstrap's dropdown.js to style and bring additional functionality to standard select elements.</p>
  33. <a class="btn btn-outline-inverse btn-lg" href="//github.com/silviomoreto/bootstrap-select/archive/v{{ config.extra.version }}.zip" role="button">
  34. <i class="fa fa-download"></i> Download (v{{ config.extra.version }})
  35. </a>
  36. <div class="carbonad">
  37. <div class="carbonad-inner">
  38. <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=silviomoretogithubiobootstrapsel" id="_carbonads_js"></script>
  39. </div>
  40. <div class="charity">Ad revenue is donated to <a href="http://www.projetocana.org/" target="_blank" rel="nofollow">Projecto Cana</a>.</div>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="container">
  45. {% include "content.html" %}
  46. </div>
  47. {% else %}
  48. <section class="jumbotron">
  49. <div class="container">
  50. <h1>{{ page_title }}</h1>
  51. </div>
  52. </section>
  53. <div class="container">
  54. <div class="col-md-3">{% include "toc.html" %}</div>
  55. <div class="col-md-9" role="main">{% include "content.html" %}</div>
  56. </div>
  57. {% endif %}
  58. <div class="footer">
  59. <div class="container text-center">
  60. <p class="text-muted">Bootstrap-select is maintained by <a href="https://github.com/caseyjhol">caseyjhol</a>,
  61. <a href="https://github.com/t0xicCode">t0xicCode</a>, and the community.</p>
  62. </div>
  63. </div>
  64. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  65. <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  66. <script src="{{ base_url }}/js/highlight.pack.js"></script>
  67. <script src="{{ base_url }}/js/base.js"></script>
  68. {%- for path in extra_javascript %}
  69. <script src="{{ path }}"></script>
  70. {%- endfor %}
  71. <script type="text/javascript">
  72. var _gaq = _gaq || [];
  73. _gaq.push(['_setAccount', 'UA-35848102-1']);
  74. _gaq.push(['_trackPageview']);
  75. (function () {
  76. var ga = document.createElement('script');
  77. ga.type = 'text/javascript';
  78. ga.async = true;
  79. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  80. var s = document.getElementsByTagName('script')[0];
  81. s.parentNode.insertBefore(ga, s);
  82. })();
  83. </script>
  84. </body>
  85. </html>