-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚙️ FEATURE-#23: Sidebar implementation
- Loading branch information
1 parent
5e23894
commit 08fe3bd
Showing
14 changed files
with
977 additions
and
1,455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.0.9 | ||
0.0.10 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,17 +20,15 @@ | |
<link rel="icon" type="image/x-icon" href="{{ 'assets/img/favicon.ico'|url }}"> | ||
{% endif %} | ||
|
||
{%- block libs %} | ||
{%- if config.theme.highlightjs %} | ||
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/[email protected]/styles/base16/grayscale-dark.min.css"> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script> | ||
|
||
{%- for lang in config.theme.hljs_languages %} | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/{{lang}}.min.js"></script> | ||
{%- endfor %} | ||
<script>hljs.highlightAll();</script> | ||
{%- endif %} | ||
{%- endblock %} | ||
{%- if config.theme.highlightjs %} | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/[email protected]/styles/base16/grayscale-dark.min.css"> | ||
|
||
{%- for lang in config.hljs_languages %} | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/{{lang}}.min.js"></script> | ||
{%- endfor %} | ||
<script>hljs.highlightAll();</script> | ||
{%- endif %} | ||
|
||
{%- endblock %} | ||
|
||
|
@@ -84,9 +82,27 @@ | |
{%- if 'search' in config['plugins'] %}{%- include "searchbox.html" %}{%- endif %} | ||
{%- endblock %} | ||
|
||
{%- block content %} | ||
{% include "/modules/content.html" %} | ||
{%- endblock %} | ||
{% if config.theme.sidebar %} | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-3"> | ||
{%- block sidebar %} | ||
{% include "/modules/sidebar.html" %} | ||
{%- endblock %} | ||
</div> | ||
<div class="col-9"> | ||
{%- block content_with_sidebar %} | ||
{% include "/modules/content.html" %} | ||
{%- endblock %} | ||
</div> | ||
</div> | ||
</div> | ||
{% else %} | ||
{%- block content %} | ||
{% include "/modules/content.html" %} | ||
{%- endblock %} | ||
{% endif %} | ||
|
||
</main> | ||
|
||
{% if config.theme.components and config.theme.components.preview == False %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
<!-- block preview --> | ||
{%- block next_prev %} | ||
{%- if page and (page.next_page or page.previous_page) %} | ||
<div class="row row-cols-md-3 text-center pt-md-3" id="component-preview"> | ||
<div class="col themed-grid-col"> | ||
<a rel="prev" {% if page.previous_page %}href="{{ page.previous_page.url|url }}" class="nav-link"{% else %}class="nav-link disabled"{% endif %}> | ||
<i class="fa fa-arrow-left"></i> Previous | ||
</a> | ||
</div> | ||
<div class="col themed-grid-col"></div> | ||
<div class="col themed-grid-col"> | ||
<a rel="next" {% if page.next_page %}href="{{ page.next_page.url|url }}" class="nav-link"{% else %}class="nav-link disabled"{% endif %}> | ||
Next <i class="fa fa-arrow-right"></i> | ||
</a> | ||
</div> | ||
{%- if page and (page.next_page or page.previous_page) %} | ||
<div class="preview row row-cols-md-3 text-center pt-md-3" id="component-preview"> | ||
<div class="col themed-grid-col"> | ||
<a rel="prev" {% if page.previous_page %}href="{{ page.previous_page.url|url }}" class="nav-link"{% else %}class="nav-link disabled"{% endif %}> | ||
<i class="fa fa-arrow-left"></i> Previous | ||
</a> | ||
</div> | ||
{%- endif %} | ||
{%- endblock %} | ||
<div class="col themed-grid-col"></div> | ||
<div class="col themed-grid-col"> | ||
<a rel="next" {% if page.next_page %}href="{{ page.next_page.url|url }}" class="nav-link"{% else %}class="nav-link disabled"{% endif %}> | ||
Next <i class="fa fa-arrow-right"></i> | ||
</a> | ||
</div> | ||
</div> | ||
{%- endif %} | ||
<!-- endblock --> |
Oops, something went wrong.