Better handling footer without secondary navigation

refs https://github.com/TryGhost/Themes/issues/225
This commit is contained in:
Sodbileg Gansukh
2023-06-19 16:15:28 +08:00
parent 2e91ee9bb5
commit 9498b1393a
3 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -84,16 +84,16 @@
{{/unless}}
{{/if}}
<footer class="gh-foot gh-outer">
<footer class="gh-foot{{#unless @site.secondary_navigation}} no-menu{{/unless}} gh-outer">
<div class="gh-foot-inner gh-inner">
<div class="gh-copyright">
{{@site.title}} © {{date format="YYYY"}}
</div>
<nav class="gh-foot-menu">
{{navigation type="secondary"}}
</nav>
{{#if @site.secondary_navigation}}
<nav class="gh-foot-menu">
{{navigation type="secondary"}}
</nav>
{{/if}}
<div class="gh-powered-by">
<a href="https://ghost.org/" target="_blank" rel="noopener">Powered by Ghost</a>
</div>