default.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!DOCTYPE html>
  2. <html lang="{{ site.lang | default: "en-US" }}">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>{{ page.title | default: site.title }}</title>
  6. <meta name="description" content="{{ page.description | default: site.description | default: site.github.project_tagline }}"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <meta name="theme-color" content="#157878">
  9. <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
  10. <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
  11. </head>
  12. <body>
  13. <section class="page-header">
  14. <h1 class="project-name">
  15. <a href="{{ site.github.url }}">{{ site.title | default: site.github.repository_name }}</a>
  16. </h1>
  17. <h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
  18. {% if site.github.is_project_page %}
  19. <a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
  20. {% endif %}
  21. {% if site.show_downloads %}
  22. <a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
  23. <a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
  24. {% endif %}
  25. </section>
  26. <section class="main-content">
  27. {{ content }}
  28. <footer class="site-footer">
  29. {% if site.github.is_project_page %}
  30. <span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span>
  31. {% endif %}
  32. <span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
  33. </footer>
  34. </section>
  35. {% if site.google_analytics %}
  36. <script type="text/javascript">
  37. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  38. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  39. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  40. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  41. ga('create', '{{ site.google_analytics }}', 'auto');
  42. ga('send', 'pageview');
  43. </script>
  44. {% endif %}
  45. </body>
  46. </html>