Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
ocots committed Aug 18, 2023
1 parent e86da79 commit 4be5d63
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 35 deletions.
16 changes: 16 additions & 0 deletions _includes/navigation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<nav id="multi-page-nav">
<a class="brand" href="https://control-toolbox.org/"><img alt="home" src="../../assets/img/ct-logo-white.svg"></a>
<a class="nav-link nav-item" href="../docs">Documentation</a>
<div class="align-right" style="
margin-top: 10px;
">
<a href="https://github.com/control-toolbox">
<svg width="35" height="35" viewBox="0 0 16 16">
<g color="#fff">
<path fill="currentcolor" fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z" style="
"></path>
</g>
</svg>
</a>
</div>
</nav>
21 changes: 4 additions & 17 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,7 @@
<body>

<!-- navigation menu -->
<nav id="multi-page-nav">
<a class="brand" href="https://control-toolbox.org/"><img alt="home" src="../../assets/img/ct-logo-white.svg"></a>
<a class="nav-link nav-item" href="../docs">Documentation</a>
<div class="align-right" style="
margin-top: 10px;
">
<a href="https://github.com/control-toolbox">
<svg width="35" height="35" viewBox="0 0 16 16">
<g color="#fff">
<path fill="currentcolor" fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z" style="
"></path>
</g>
</svg>
</a>
</div>
</nav>
{% include navigation.html %}
<!-- end navigation menu -->

<!-- title -->
Expand All @@ -61,8 +46,10 @@ <h1 id="ct-title"><img id="ct-logo-title" src="assets/img/ct-logo.svg">control-t
</div>
<!-- end content -->

<!-- footer -->
{% include footer.html %}

<!-- end footer -->

</body>

</html>
11 changes: 11 additions & 0 deletions assets/css/common.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

footer {
display: flex !important;
justify-content: center;
padding-top: 50px;
background-color: #007fa2;
color: #fff;
padding-bottom: 50px;
margin-top: 50px;
z-index: 2;
}
4 changes: 4 additions & 0 deletions assets/css/docs.css → assets/css/documentation.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
background-color: #007fa2 !important;
border-bottom: none !important;
}

nav.docs-sidebar {
z-index: 1;
}
9 changes: 0 additions & 9 deletions assets/css/nav.css

This file was deleted.

10 changes: 1 addition & 9 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@

@import "{{ site.theme }}";

footer {
display: flex !important;
justify-content: center;
padding-top: 50px;
background-color: #007fa2;
color: #fff;
padding-bottom: 50px;
margin-top: 50px;
}
@import "common.css";

/*! Logos of partners */
.markdown-body img#partner {
Expand Down
15 changes: 15 additions & 0 deletions assets/js/documentation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* from control-toolbox.org/docs/pkg-name/stable/
/* google analytics */
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-J27VDFHJW2');

/* ct favicon */
var favicon = document.createElement('link');
favicon.type = 'image/x-icon';
favicon.rel = 'icon';
favicon.href = 'https://control-toolbox.org/assets/img/ct-logo.svg';
document.head.appendChild(favicon);

0 comments on commit 4be5d63

Please sign in to comment.