-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new page 404 whit card post and new style for related post
- Loading branch information
GodoFredo
committed
Jan 20, 2018
1 parent
d1f2eb9
commit a6834dd
Showing
22 changed files
with
6,125 additions
and
5,951 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,27 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> | ||
<title>Page not found - {{meta_title}}</title> | ||
|
||
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet" /> | ||
<link rel="stylesheet" type="text/css" href="{{asset "styles/main.css"}}" /> | ||
</head> | ||
<body> | ||
<div class="errorPage u-relative"> | ||
<div class="errorPage-title"> | ||
<a class="errorPage-link u-relative u-fontSize22 u-contentTitle u-block" href="{{@blog.url}}">{{@blog.title}}</a> | ||
</div> | ||
<div class="errorPage-wrap u-textAlignCenter"> | ||
<div id="emoji" class="errorPage-emoji" style="font-size: 150px;">(>_<)</div> | ||
<div class="errorPage-text">Unfortunately, this page doesn't exist</div> | ||
<html lang="{{lang}}"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> | ||
<title>Page not found</title> | ||
|
||
<link rel="stylesheet" type="text/css" href="{{asset "styles/main.css"}}" /> | ||
</head> | ||
<body class="u-backgroundWhite"> | ||
|
||
{{!-- Header Content --}} | ||
{{>"header"}} | ||
|
||
<main class="u-paddingBottom30 u-paddingTop30"> | ||
{{!-- Content Emojis --}} | ||
<section class="errorPage u-lineHeight1"> | ||
<div class="errorPage-wrap u-marginAuto u-maxWidth1000 u-textAlignCenter"> | ||
<div id="emoji" class="errorPage-emoji" style="font-size:100px">(>_<)</div> | ||
<div class="errorPage-text">{{t "Unfortunately, this page doesn't exist"}}</div> | ||
</div> | ||
</div> | ||
<script type="text/javascript"> | ||
var emoji = ['(·.·)', '(>_<)', '(^-^*)', '(≥o≤)', '(˚Δ˚)', '(·_·)', '(;-;)'] | ||
var emojiRandom = emoji[Math.floor(Math.random()*emoji.length)]; | ||
document.getElementById('emoji').innerHTML = emojiRandom; | ||
</script> | ||
</body> | ||
</section> | ||
|
||
{{!-- Articles style Card --}} | ||
{{#get "posts" limit="6" include="tags" as |recents| }} | ||
{{> "card-post" widgetTitle=(t "Posts") cardPosts=recents }} | ||
{{/get}} | ||
</main> | ||
|
||
{{!-- Search box --}} | ||
{{>"search"}} | ||
|
||
{{!-- Scripts --}} | ||
{{ghost_foot}} | ||
|
||
<script type="text/javascript"> | ||
var emoji = ['(·.·)', '(>_<)', '(^-^*)', '(≥o≤)', '(˚Δ˚)', '(·_·)', '(;-;)'] | ||
var emojiRandom = emoji[Math.floor(Math.random()*emoji.length)]; | ||
document.getElementById('emoji').innerHTML = emojiRandom; | ||
</script> | ||
|
||
{{!-- jQuery needs to come before `{{ghost_foot}}` so that jQuery can be used in code injection --}} | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> | ||
|
||
{{!-- The main JavaScript --}} | ||
<script type="text/javascript" src="{{asset "scripts/main.js"}}"></script> | ||
|
||
{{!-- Font Source sans Pro && roboto mono --}} | ||
<script type="text/javascript">WebFontConfig ={google:{families:['Roboto+Mono:400','Source+Sans+Pro:300,400,600,700']}};(function(){var wf=document.createElement('script');wf.src='https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js';wf.type='text/javascript';wf.async='true';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(wf,s);})();</script> | ||
</body> | ||
</html> |
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
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 was deleted.
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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<section class="cardPost u-backgroundWhite u-paddingTop30 u-paddingBottom20 u-overflowHidden"> | ||
<div class="u-marginAuto u-maxWidth1000"> | ||
<div class="row"> | ||
|
||
{{#foreach cardPosts}} | ||
<article class="col s12 m6 l4 simply-tracking" data-event-category="Article" data-event-action="Related Posts" data-event-label="{{url absolute="true"}}" data-event-non-interaction="1"> | ||
<div class="u-card u-padding0"> | ||
|
||
{{!-- Featured image cover --}} | ||
{{#if feature_image}} | ||
<div class="cardPost-image u-relative u-overflowHidden u-sizeFullWidth"> | ||
<a href="{{url}}" class="cardPost-image--link u-block u-absolute0"> | ||
<span class="u-absolute0 u-backgroundSizeCover u-backgroundColorGrayLight story-image-lazy" data-original="{{feature_image}}"></span> | ||
</a> | ||
</div> | ||
{{/if}} | ||
|
||
<div class="cardPost-body u-padding15 u-flexColumn" style="{{#unless feature_image}}height:100%;width:100%{{else}}height:135px {{/unless}}"> | ||
|
||
<div class="u-flex1"> | ||
{{!-- Primary tag --}} | ||
{{#primary_tag}} | ||
<a href="{{url}}" class="u-block postMetaInline u-lineHeight1 link--underline u-fontSize15 u-fontWeightSemibold" style="padding-bottom:7px">{{name}}</a> | ||
{{/primary_tag}} | ||
|
||
|
||
<a href="{{url}}" class="u-block"> | ||
{{!-- title --}} | ||
<h2 class="cardPost-title u-contentTitle u-fontSize22 u-fontWeightBold u-overflowHidden u-paddingBottom2">{{title}}</h2> | ||
|
||
{{!-- excerpt --}} | ||
{{#unless feature_image}} | ||
<div class="u-textColorNormal" style="margin-top:7px"> {{excerpt words="20"}} </div> | ||
{{/unless}} | ||
</a> | ||
|
||
</div> | ||
|
||
{{!-- Date time and reading time --}} | ||
<div class="u-flex0 u-flexCenter u-fontSize14 postMetaInline u-paddingTop10"> | ||
<time class="datetime" datetime="{{date format=" YYYY-MM-DD "}}">{{date published_at format="MMM DD"}}</time> | ||
<span class="points u-fontWeightBold" style="margin:0 5px;">·</span> | ||
<span class="readingTime">{{reading_time seconds=(t "< 1 min read") minute=(t "1 min read") minutes=(t "% min read")}}</span></1> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</article> | ||
{{/foreach}} | ||
|
||
</div> | ||
</div> | ||
</section> |
Oops, something went wrong.