diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-09 13:55:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-09 13:55:34 -0700 |
commit | 50308831b3e33526a2e672c26765bb02856a3e92 (patch) | |
tree | 017113f3429be00e031562fe9f920388aa15c21a /_layouts/default.html | |
parent | fad41577c854ba6f8c4b27aebf734180307cf6c6 (diff) | |
download | kau-50308831b3e33526a2e672c26765bb02856a3e92.tar.gz kau-50308831b3e33526a2e672c26765bb02856a3e92.tar.bz2 kau-50308831b3e33526a2e672c26765bb02856a3e92.zip |
Dynamic Module Link (#3)
* Add default
* Link base url
* Test variables
* View base url
* Test relative
* G
* Indicator
* G
* P
* Test sub
* T
* Fix tag
* S
* SS
* 5
* 6
* RC
* RC1
* RC2
* RC3
* RC4
* RC5
* RC6
* RC7
* RC8
Diffstat (limited to '_layouts/default.html')
-rw-r--r-- | _layouts/default.html | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..1290f63 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,76 @@ +<!doctype html> +<!--https://help.github.com/articles/repository-metadata-on-github-pages/#available-repository-metadata--> +<html> +<head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="chrome=1"> + <title>{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }}</title> + + <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}"> + <meta name="viewport" content="width=device-width"> + <!--[if lt IE 9]> + <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> +</head> +<body> +<div class="wrapper"> + <header> + <h1><a href="{{ site.github.url }}">{{ site.title | default: site.github.repository_name }}</a></h1> + <p>{{ site.description | default: site.github.project_tagline }}</p> + + {% if page.url == '/core/' or + page.url == '/core-ui/' or + page.url == '/core-ui/' or + page.url == '/about/' or + page.url == '/adapter/' or + page.url == '/colorpicker/' or + page.url == '/imagepicker/' or + page.url == '/kpref-activity/' or + page.url == '/searchview/' %} + + {% assign size = page.url | size | minus: 2 %} + {% assign submodule = page.url | slice: 1, size %} + {% assign submodule_url = site.github.repository_url | append: '/tree/master' | append: page.url %} + <p class="view"><a href="{{ submodule_url }}" target="_blank">View {{ submodule }} on GitHub <small>{{ github_name }}</small></a></p> + {% else %} + <p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p> + {% endif %} + + {% if site.github.is_user_page %} + <p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p> + {% endif %} + + <ul> + <li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li> + <li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li> + <li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li> + </ul> + </header> + <section> + + {{ content }} + + </section> + <footer> + {% if site.github.is_project_page %} + <p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p> + {% endif %} + <p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p> + </footer> +</div> +<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script> + + +{% if site.google_analytics %} +<script> + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); + + ga('create', '{{ site.google_analytics }}', 'auto'); + ga('send', 'pageview'); + </script> +{% endif %} +</body> +</html>
\ No newline at end of file |