Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vantagedesign/ace-documentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian <jhjflapper@gmail.com>2020-03-11 13:33:15 +0300
committerJulian <jhjflapper@gmail.com>2020-03-11 13:33:15 +0300
commit55e58786e60766b06abc14892cd62c836b82cf3b (patch)
treef7d086d2cec1c86808b30465596598c5e390f9a3
parent6d067e6ad6f6b05f29e6da782b7ba749b43ee304 (diff)
Fixed navbar collapse1.0.0
-rw-r--r--README.md2
-rw-r--r--assets/css/ace.scss8
-rw-r--r--exampleSite/config.toml5
-rw-r--r--exampleSite/content/getting-started/installation.md2
-rw-r--r--layouts/partials/header.html30
5 files changed, 34 insertions, 13 deletions
diff --git a/README.md b/README.md
index 4bdc27e..bfb32d8 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ The documentation for Ace was, of course, built with Ace. Therefore, the documen
- [Demo](https://docs.vantage-design.com/ace)
- [Documentation](https://docs.vantage-design.com/ace)
- [Issues](https://github.com/vantagedesign/ace-documentation/issues)
-- [License](https://github.com/vantagedesign/ace-documentation/glob/master/LICENSE)
+- [License](https://github.com/vantagedesign/ace-documentation/blob/master/LICENSE)
## Reporting Issues
diff --git a/assets/css/ace.scss b/assets/css/ace.scss
index 0244feb..097e3eb 100644
--- a/assets/css/ace.scss
+++ b/assets/css/ace.scss
@@ -1,3 +1,11 @@
+/* -------------------------------------------------------------------------
+* ACE DOCUMENTATION
+* Stylesheet
+* @author Vantage Design
+* @version 1.0.0
+* @license https://github.com/vantagedesign/ace-documentation/blob/master/LICENSE
+* ------------------------------------------------------------------------ */
+
$primary: #007bff;
$secondary: #6610f2;
$success: #28a745;
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 541e1c7..7723201 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -30,6 +30,11 @@ menushortcutsnewtab = true # set true to open shortcuts links to a new tab/windo
home = [ "HTML", "RSS", "JSON"]
[[menu.shortcuts]]
+name = "More from us"
+url = "https://vantage-design.com"
+weight = 1
+
+[[menu.shortcuts]]
name = "<i class='fab fa-github'></i>"
url = "https://github.com/vantagedesign/ace-documentation"
weight = 10
diff --git a/exampleSite/content/getting-started/installation.md b/exampleSite/content/getting-started/installation.md
index 87cc285..a945dcb 100644
--- a/exampleSite/content/getting-started/installation.md
+++ b/exampleSite/content/getting-started/installation.md
@@ -10,6 +10,7 @@ Installing Ace is easy. Just install the Hugo binary, create a new site and inst
## Installing Hugo
In order to run this theme, you need to install Hugo on your system.
+This theme requires Hugo's extended version to support SCSS compilation, so make please sure you install the extended version.
For more detailed information and other methods of installation you can visit the <a href="https://gohugo.io/getting-started/installing/" target="_blank">Hugo installation guide.</a>
There may be other ways to install Hugo that are more applicable for your project. For example, you can use the NPM package <a href="https://www.npmjs.com/package/hugo-bin" target="_blank">hugo-bin</a> to include Hugo in a project that already uses NPM packages.
@@ -19,6 +20,7 @@ Run the following command in your terminal to check if Hugo is installed.
{{< code lang="bash" >}}
hugo version
{{< /code >}}
+Make sure the version name mentions <i>extended</i>, to indicate you've installed the extended version of Hugo, which is required for this theme.
## Creating a site
Create a new site *docs* (you may choose any name you want). In your projects root folder, run the following command:
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 5d0170e..25c9c01 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,20 +1,26 @@
-<nav class="navbar navbar-expand navbar-dark bg-primary shadow sticky-top">
+<nav class="navbar navbar-expand-lg navbar-dark bg-primary shadow sticky-top" id="navbarMain">
<div class="container">
<div>
<a class="navbar-brand" href="{{ .Site.BaseURL | relLangURL }}">
{{ .Site.Title }}
</a>
</div>
- <ul class="navbar-nav ml-auto">
- {{- with .Site.Menus.shortcuts}}
- {{- range sort . "Weight"}}
- <li class="nav-item">
- <a class="nav-link" href="{{.URL}}" {{if eq $.Site.Params.menushortcutsnewtab true}}target="_blank"{{end}}>
- {{safeHTML .Name}}
- </a>
- </li>
- {{- end}}
- {{- end}}
- </ul>
+ <button class="navbar-toggler navbar-toggler-right collapsed" type="button" data-toggle="collapse" data-target="#navbarMainCollapse" aria-controls="navbarMainCollapse" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+
+ <div class="collapse navbar-collapse" id="navbarMainCollapse">
+ <ul class="navbar-nav ml-auto">
+ {{- with .Site.Menus.shortcuts}}
+ {{- range sort . "Weight"}}
+ <li class="nav-item">
+ <a class="nav-link" href="{{.URL}}" {{if eq $.Site.Params.menushortcutsnewtab true}}target="_blank"{{end}}>
+ {{safeHTML .Name}}
+ </a>
+ </li>
+ {{- end}}
+ {{- end}}
+ </ul>
+ </div>
</div>
</nav>