Skip to content

Commit a4923a7

Browse files
Add default layout template for SmartSubAI documentation
1 parent f6151e3 commit a4923a7

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

docs/_layouts/default.html

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>{{ page.title }} - SmartSubAI</title>
7+
<meta name="description" content="{{ page.description }}">
8+
<!-- GitHub Pages theme -->
9+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
10+
<!-- Custom styles -->
11+
<style>
12+
.navbar {
13+
margin-bottom: 20px;
14+
padding: 10px 0;
15+
border-bottom: 1px solid #eaecef;
16+
}
17+
.navbar a {
18+
margin-right: 15px;
19+
text-decoration: none;
20+
color: #0366d6;
21+
}
22+
.navbar a:hover {
23+
text-decoration: underline;
24+
}
25+
.container {
26+
max-width: 900px;
27+
margin: 0 auto;
28+
padding: 0 15px;
29+
}
30+
.footer {
31+
margin-top: 50px;
32+
padding: 20px 0;
33+
border-top: 1px solid #eaecef;
34+
font-size: 0.8em;
35+
color: #6a737d;
36+
text-align: center;
37+
}
38+
img.logo {
39+
max-width: 200px;
40+
margin: 20px 0;
41+
}
42+
.main-content h1, .main-content h2, .main-content h3 {
43+
color: #24292e;
44+
margin-top: 24px;
45+
margin-bottom: 16px;
46+
font-weight: 600;
47+
}
48+
.main-content h1 {
49+
border-bottom: 1px solid #eaecef;
50+
padding-bottom: 0.3em;
51+
}
52+
</style>
53+
</head>
54+
<body>
55+
<div class="container">
56+
<header>
57+
<img src="{{ site.baseurl }}/images/SMARTSUBAI.png" alt="SmartSubAI Logo" class="logo">
58+
<div class="navbar">
59+
<a href="{{ site.baseurl }}/">Home</a>
60+
<a href="{{ site.baseurl }}/advanced_usage">Advanced Usage</a>
61+
<a href="https://github.com/OCEANOFANYTHING/SmartSubAI" target="_blank">GitHub</a>
62+
</div>
63+
</header>
64+
65+
<div class="main-content">
66+
{{ content }}
67+
</div>
68+
69+
<footer class="footer">
70+
<p>{{ site.footer.text }}</p>
71+
<p>
72+
{% for link in site.footer.links %}
73+
<a href="{{ link.url }}" target="_blank">{{ link.text }}</a>
74+
{% if forloop.last == false %} | {% endif %}
75+
{% endfor %}
76+
</p>
77+
<p>© {{ site.time | date: '%Y' }} OCEAN OF ANYTHING - Licensed under MIT</p>
78+
</footer>
79+
</div>
80+
81+
{% if site.google_analytics %}
82+
<script>
83+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
84+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
85+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
86+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
87+
ga('create', '{{ site.google_analytics }}', 'auto');
88+
ga('send', 'pageview');
89+
</script>
90+
{% endif %}
91+
</body>
92+
</html>

0 commit comments

Comments
 (0)