Skip to content

Commit b750335

Browse files
committed
add document navbar
1 parent b0ef8d5 commit b750335

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

docs/_layouts/default.html

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!DOCTYPE html>
2+
<html lang="en-us">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>{{ page.title | default: site.title }}</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<meta name="theme-color" content="#157878">
8+
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
9+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
10+
<style>
11+
#nav > span > a {
12+
color: #dddddd;
13+
}
14+
#nav > span:not(:last-child)::after {
15+
content: ' |';
16+
}
17+
</style>
18+
</head>
19+
<body>
20+
<section class="page-header">
21+
<h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1>
22+
<h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
23+
<a class="btn" href="https://github.com/UniSharp/laravel-filemanager-example-5.3" target="_blank">Demo</a>
24+
{% if site.github.is_project_page %}
25+
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
26+
{% endif %}
27+
{% if site.show_downloads %}
28+
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
29+
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
30+
{% endif %}
31+
<nav id="nav">
32+
<span><a href="/">Home</a></span>
33+
<span><a href="installation">Installation</a></span>
34+
<span><a href="integration">Integration</a></span>
35+
<span><a href="config">Config</a></span>
36+
<span><a href="customization">Customization</a></span>
37+
<span><a href="events">Events</a></span>
38+
<span><a href="upgrade">Upgrade</a></span>
39+
</nav>
40+
</section>
41+
42+
<section class="main-content">
43+
{{ content }}
44+
45+
<footer class="site-footer">
46+
{% if site.github.is_project_page %}
47+
<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>
48+
{% endif %}
49+
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
50+
</footer>
51+
</section>
52+
53+
{% if site.google_analytics %}
54+
<script type="text/javascript">
55+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
56+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
57+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
58+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
59+
60+
ga('create', '{{ site.google_analytics }}', 'auto');
61+
ga('send', 'pageview');
62+
</script>
63+
{% endif %}
64+
</body>
65+
</html>

0 commit comments

Comments
 (0)