Fix minor issues
- fixed indentation - moved navbars and policy popup to "partials" - fixed broken image if website icon wasn't set
This commit is contained in:
parent
3cf0c72092
commit
eefd3de659
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,3 +23,4 @@ projectFilesBackup
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
dist/
|
dist/
|
||||||
|
install.ignore
|
||||||
|
@ -9,9 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<nav class="mind-global-navbar_secondary unselectable">
|
{{!< navbar}}
|
||||||
{{navigation type="secondary"}}
|
|
||||||
</nav>
|
|
||||||
<div class="mind-content_main">
|
<div class="mind-content_main">
|
||||||
<div class="mind-tag-content_main">
|
<div class="mind-tag-content_main">
|
||||||
{{#get 'tags' limit='all' include='count.posts' order='count.posts desc'}}
|
{{#get 'tags' limit='all' include='count.posts' order='count.posts desc'}}
|
||||||
|
24
default.hbs
24
default.hbs
@ -14,12 +14,12 @@
|
|||||||
<script src="{{asset "js/arrow-fade.js"}}" async></script>
|
<script src="{{asset "js/arrow-fade.js"}}" async></script>
|
||||||
<script src="{{asset "js/scroll-navbar-color.js"}}"></script>
|
<script src="{{asset "js/scroll-navbar-color.js"}}"></script>
|
||||||
|
|
||||||
<!-- TODO: REMOVE ON PRODUCTION! -->
|
{{!-- TODO: REMOVE ON PRODUCTION! --}}
|
||||||
<script type="text/javascript" src="http://livejs.com/live.js"></script>
|
<script type="text/javascript" src="http://livejs.com/live.js"></script>
|
||||||
|
|
||||||
<!-- Scripts End -->
|
{{!-- Scripts End --}}
|
||||||
|
|
||||||
<!-- Begin Page-specific code -->
|
{{!-- Begin Page-specific code --}}
|
||||||
{{#is "post"}}
|
{{#is "post"}}
|
||||||
<script src="{{asset "js/remark42-comments.js"}}"></script>
|
<script src="{{asset "js/remark42-comments.js"}}"></script>
|
||||||
{{/is}}
|
{{/is}}
|
||||||
@ -31,7 +31,7 @@
|
|||||||
{{# is "post, page, tag"}}
|
{{# is "post, page, tag"}}
|
||||||
<title>{{meta_title}} – {{@site.title}}</title>
|
<title>{{meta_title}} – {{@site.title}}</title>
|
||||||
{{/is}}
|
{{/is}}
|
||||||
<!-- End Page-specific code -->
|
{{!-- End Page-specific code --}}
|
||||||
|
|
||||||
{{ghost_head}}
|
{{ghost_head}}
|
||||||
{{!-- Outputs important meta data and settings, should always be in <head> --}}
|
{{!-- Outputs important meta data and settings, should always be in <head> --}}
|
||||||
@ -39,21 +39,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body class="{{body_class}}" onload="openPolicyPopup()">
|
<body class="{{body_class}}" onload="openPolicyPopup()">
|
||||||
|
|
||||||
<nav id="mind-global-navbar_primary" class="mind-global-navbar_primary unselectable">
|
{{> "navbar-primary"}}
|
||||||
<a href="/">
|
|
||||||
<img src="{{img_url @site.icon size="xxs"}}" />
|
|
||||||
</a>
|
|
||||||
{{navigation}}
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<div class="mind-policy-popup" id="mind-policy-popup">
|
{{> "policy-popup"}}
|
||||||
<h4>This website uses cookies.</h4>
|
|
||||||
<p>We use cookies to ensure you the best experience.
|
|
||||||
<br>
|
|
||||||
By visiting our website, you agree with our <a href="/policy" target="_blank">Privacy Policy</a>.
|
|
||||||
</p>
|
|
||||||
<button onclick="agreePolicyPopup()">Ok, understood</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{{body}}}
|
{{{body}}}
|
||||||
{{!-- All content gets inserted here, index.hbs, post.hbs, etc --}}
|
{{!-- All content gets inserted here, index.hbs, post.hbs, etc --}}
|
||||||
|
4
home.hbs
4
home.hbs
@ -7,9 +7,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<nav class="mind-global-navbar_secondary unselectable">
|
{{> "navbar-secondary"}}
|
||||||
{{navigation type="secondary"}}
|
|
||||||
</nav>
|
|
||||||
<div class="mind-content_main">
|
<div class="mind-content_main">
|
||||||
<div class="mind-feed-content_main">
|
<div class="mind-feed-content_main">
|
||||||
|
|
||||||
|
@ -7,9 +7,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<nav class="mind-global-navbar_secondary unselectable">
|
{{> "navbar-secondary"}}
|
||||||
{{navigation type="secondary"}}
|
|
||||||
</nav>
|
|
||||||
<div class="mind-content_main">
|
<div class="mind-content_main">
|
||||||
<div class="mind-feed-content_main">
|
<div class="mind-feed-content_main">
|
||||||
|
|
||||||
|
2
page.hbs
2
page.hbs
@ -14,7 +14,7 @@
|
|||||||
{{#post}}
|
{{#post}}
|
||||||
<div class="mind-post_content">
|
<div class="mind-post_content">
|
||||||
<div class="mind-post_content-header">
|
<div class="mind-post_content-header">
|
||||||
<img class="mind-post_feature-image" src="{{img_url feature_image size="l"}}"/>
|
<img class="mind-post_feature-image" src="{{img_url feature_image size="l"}}" alt="Feature Image"/>
|
||||||
</div>
|
</div>
|
||||||
{{content}}
|
{{content}}
|
||||||
</div>
|
</div>
|
||||||
|
8
partials/navbar-primary.hbs
Normal file
8
partials/navbar-primary.hbs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<nav id="mind-global-navbar_primary" class="mind-global-navbar_primary unselectable">
|
||||||
|
<a href="/">
|
||||||
|
{{#if @site.icon}}
|
||||||
|
<img src="{{img_url @site.icon size="xxs"}}" alt="Website Logo"/>
|
||||||
|
{{/if}}
|
||||||
|
</a>
|
||||||
|
{{navigation}}
|
||||||
|
</nav>
|
3
partials/navbar-secondary.hbs
Normal file
3
partials/navbar-secondary.hbs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<nav class="mind-global-navbar_secondary unselectable">
|
||||||
|
{{navigation type="secondary"}}
|
||||||
|
</nav>
|
8
partials/policy-popup.hbs
Normal file
8
partials/policy-popup.hbs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<div class="mind-policy-popup" id="mind-policy-popup">
|
||||||
|
<h4>This website uses cookies.</h4>
|
||||||
|
<p>We use cookies to ensure you the best experience.
|
||||||
|
<br>
|
||||||
|
By visiting our website, you agree with our <a href="/policy" target="_blank">Privacy Policy</a>.
|
||||||
|
</p>
|
||||||
|
<button onclick="agreePolicyPopup()">Ok, understood</button>
|
||||||
|
</div>
|
@ -1,6 +1,6 @@
|
|||||||
<article class="{{post_class}}">
|
<article class="{{post_class}}">
|
||||||
<a class="mind-post-card-big_main" href="{{url}}">
|
<a class="mind-post-card-big_main" href="{{url}}">
|
||||||
<img class="mind-post-card-big_feature-image" src="{{img_url feature_image size="m"}}" />
|
<img class="mind-post-card-big_feature-image" src="{{img_url feature_image size="m"}}" alt="Feature Image"/>
|
||||||
<header class="mind-post-card-big_header">
|
<header class="mind-post-card-big_header">
|
||||||
<p class="mind-post-card-big_meta"><span class="mind-post-card-big_tag">{{primary_tag.name}}</span>
|
<p class="mind-post-card-big_meta"><span class="mind-post-card-big_tag">{{primary_tag.name}}</span>
|
||||||
• <time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time></p>
|
• <time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time></p>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{{#foreach related}}
|
{{#foreach related}}
|
||||||
<article class="{{post_class}}">
|
<article class="{{post_class}}">
|
||||||
<a class="mind-post-card-sidebar_main" href="{{url}}">
|
<a class="mind-post-card-sidebar_main" href="{{url}}">
|
||||||
<img class="mind-post-card-sidebar_feature-image" src="{{img_url feature_image size="s"}}" />
|
<img class="mind-post-card-sidebar_feature-image" src="{{img_url feature_image size="s"}}" alt="Feature Image"/>
|
||||||
<header class="mind-post-card-sidebar_header">
|
<header class="mind-post-card-sidebar_header">
|
||||||
<p class="mind-post-card-sidebar_meta"><span class="mind-post-card-sidebar_tag">{{primary_tag.name}}</span> • <time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time></p>
|
<p class="mind-post-card-sidebar_meta"><span class="mind-post-card-sidebar_tag">{{primary_tag.name}}</span> • <time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time></p>
|
||||||
<h5>{{title}}</h5>
|
<h5>{{title}}</h5>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<article class="{{post_class}}">
|
<article class="{{post_class}}">
|
||||||
<a class="mind-tag-card_main" href="{{url}}">
|
<a class="mind-tag-card_main" href="{{url}}">
|
||||||
<img class="mind-tag-card_feature-image" src="{{img_url feature_image size="s"}}" />
|
<img class="mind-tag-card_feature-image" src="{{img_url feature_image size="s"}}" alt="Feature Image"/>
|
||||||
<header class="mind-tag-card_header">
|
<header class="mind-tag-card_header">
|
||||||
<h4>{{name}}</h4>
|
<h4>{{name}}</h4>
|
||||||
</header>
|
</header>
|
||||||
|
2
post.hbs
2
post.hbs
@ -18,7 +18,7 @@
|
|||||||
{{#post}}
|
{{#post}}
|
||||||
<div class="mind-post_content">
|
<div class="mind-post_content">
|
||||||
<div class="mind-post_content-header">
|
<div class="mind-post_content-header">
|
||||||
<img class="mind-post_feature-image" src="{{img_url feature_image size="l"}}"/>
|
<img class="mind-post_feature-image" src="{{img_url feature_image size="l"}}" alt="Feature Image"/>
|
||||||
</div>
|
</div>
|
||||||
{{content}}
|
{{content}}
|
||||||
<hr>
|
<hr>
|
||||||
|
Loading…
Reference in New Issue
Block a user