mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 11:37:38 +00:00
New navigation structure to make way for MU changes
This commit is contained in:
parent
2dafaa257a
commit
448082bd48
@ -117,11 +117,7 @@ table { border-collapse: collapse; border-spacing: 0; }
|
||||
}
|
||||
|
||||
/* Apply these base styles to all icons */
|
||||
.icon-ghost:before,
|
||||
.icon-feed:before,
|
||||
.icon-twitter:before,
|
||||
.icon-google-plus:before,
|
||||
.icon-facebook:before {
|
||||
[class^="icon-"], [class*=" icon-"] {
|
||||
font-family: "icons";
|
||||
speak: none;
|
||||
font-style: normal;
|
||||
@ -129,7 +125,7 @@ table { border-collapse: collapse; border-spacing: 0; }
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
line-height: 1;
|
||||
text-decoration: none;
|
||||
text-decoration: none !important;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
@ -152,6 +148,10 @@ table { border-collapse: collapse; border-spacing: 0; }
|
||||
.icon-facebook:before {
|
||||
content: "\e004";
|
||||
}
|
||||
.icon-arrow-left:before {
|
||||
content: "\e005";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
@ -162,6 +162,7 @@ html {
|
||||
height: 100%;
|
||||
max-height: 100%;
|
||||
font-size: 62.5%;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
body {
|
||||
@ -194,7 +195,7 @@ h4, h5, h6 {
|
||||
-o-font-feature-settings: 'dlig' 1, 'liga' 1, 'lnum' 1, 'kern' 1;
|
||||
font-feature-settings: 'dlig' 1, 'liga' 1, 'lnum' 1, 'kern' 1;
|
||||
color: #2E2E2E;
|
||||
line-height: 1.3em;
|
||||
line-height: 1.15em;
|
||||
margin: 0 0 0.5em 0;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
}
|
||||
@ -241,6 +242,10 @@ h4 a, h5 a, h6 a {
|
||||
color: #50585D;
|
||||
}
|
||||
|
||||
.post-template .post-title {
|
||||
margin-bottom: 3.4rem;
|
||||
}
|
||||
|
||||
p, ul, ol, dl {
|
||||
-webkit-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
|
||||
-moz-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
|
||||
@ -647,6 +652,85 @@ margin on the iframe, cause it breaks stuff. */
|
||||
5. Single Post - When you click on an individual post
|
||||
========================================================================== */
|
||||
|
||||
.main-nav {
|
||||
position: relative;
|
||||
padding: 15px;
|
||||
margin: 0 0 30px 0;
|
||||
}
|
||||
|
||||
.back-button {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
float: left;
|
||||
height: 40px;
|
||||
padding: 0 15px 0 10px;
|
||||
border: transparent 1px solid;
|
||||
color: #9EABB3;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
line-height: 37px;
|
||||
border-radius: 3px;
|
||||
transition: all ease 0.3s;
|
||||
}
|
||||
.back-button:before {
|
||||
position: relative;
|
||||
bottom: -2px;
|
||||
font-size: 13px;
|
||||
line-height: 0;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.subscribe-button {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
float: right;
|
||||
height: 40px;
|
||||
padding: 0 20px;
|
||||
border: transparent 1px solid;
|
||||
color: #9EABB3;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
line-height: 37px;
|
||||
border-radius: 40px;
|
||||
transition: all ease 0.3s;
|
||||
}
|
||||
.subscribe-button:before {
|
||||
font-size: 9px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
/* Special styles when overlaid on an image*/
|
||||
.main-nav.overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.main-nav.overlay a {
|
||||
color: rgba(255,255,255,0.7);
|
||||
}
|
||||
|
||||
.main-nav.overlay a:hover {
|
||||
color: #fff;
|
||||
border-color: #fff;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* Add a border to the buttons on hover */
|
||||
.back-button:hover,
|
||||
.subscribe-button:hover {
|
||||
border-color: #bfc8cd;
|
||||
color: #9EABB3;
|
||||
}
|
||||
|
||||
/* Stop .full-img from creating horizontal scroll - slight hack due to
|
||||
imperfections with browser width % calculations and rounding */
|
||||
.post-template .content {
|
||||
@ -776,38 +860,6 @@ margin on the iframe, cause it breaks stuff. */
|
||||
}
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
6. Tag archive
|
||||
========================================================================== */
|
||||
|
||||
.tag-archive-header {
|
||||
position: relative;
|
||||
max-width: 700px;
|
||||
margin: 4rem auto;
|
||||
border-bottom: 1px solid #EBF2F6;
|
||||
padding: 20px 0;
|
||||
text-align: center;
|
||||
color: #222;
|
||||
}
|
||||
|
||||
.tag-archive-header:after {
|
||||
display: block;
|
||||
content: "";
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border: #E7EEF2 1px solid;
|
||||
position: absolute;
|
||||
bottom: -5px;
|
||||
left: 50%;
|
||||
margin-left: -5px;
|
||||
background: #FFF;
|
||||
-webkit-border-radius: 100%;
|
||||
-moz-border-radius: 100%;
|
||||
border-radius: 100%;
|
||||
box-shadow: #FFF 0 0 0 5px;
|
||||
}
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
7. Third Party Elements - Embeds from other services
|
||||
========================================================================== */
|
||||
@ -884,37 +936,33 @@ margin on the iframe, cause it breaks stuff. */
|
||||
.site-footer {
|
||||
position: relative;
|
||||
margin: 8rem 0 0 0;
|
||||
padding: 4rem 0;
|
||||
padding: 0.5rem 35px;
|
||||
border-top: #EBF2F6 1px solid;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-size: 1.3rem;
|
||||
font-size: 1rem;
|
||||
line-height: 1.7em;
|
||||
color: #BBC7CC;
|
||||
text-align: center;
|
||||
background: #F7FAFB;
|
||||
}
|
||||
|
||||
.site-footer a {
|
||||
color: #BBC7CC;
|
||||
text-decoration: underline;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.site-footer a:hover {
|
||||
color: #50585D;
|
||||
}
|
||||
|
||||
.poweredby .icon-ghost {
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
.poweredby {
|
||||
display: block;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.poweredby .icon-ghost:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.poweredby .icon-ghost:before {
|
||||
font-size: 1rem;
|
||||
margin-right: 0.2em;
|
||||
.copyright {
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* The subscribe icon on the footer */
|
||||
@ -938,7 +986,7 @@ margin on the iframe, cause it breaks stuff. */
|
||||
color: #D2DEE3;
|
||||
font-size: 10px;
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
top: 2px;
|
||||
left: 9px;
|
||||
font-weight: 700;
|
||||
transition: color 0.5s ease;
|
||||
@ -957,7 +1005,8 @@ margin on the iframe, cause it breaks stuff. */
|
||||
/* CSS tooltip saying "Subscribe!" - initially hidden */
|
||||
.tooltip {
|
||||
opacity: 0;
|
||||
display: inline-block;
|
||||
display: block;
|
||||
width: 52px;
|
||||
padding: 4px 8px 5px 8px;
|
||||
position:absolute;
|
||||
top: -23px;
|
||||
@ -1062,6 +1111,10 @@ margin on the iframe, cause it breaks stuff. */
|
||||
|
||||
@media only screen and (max-width: 900px) {
|
||||
|
||||
.main-nav {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin-left: 0;
|
||||
}
|
||||
@ -1097,6 +1150,10 @@ margin on the iframe, cause it breaks stuff. */
|
||||
padding: 40px 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 2.4em 0;
|
||||
}
|
||||
|
||||
ol, ul {
|
||||
padding-left: 2em;
|
||||
}
|
||||
@ -1126,6 +1183,10 @@ margin on the iframe, cause it breaks stuff. */
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
padding: 0.5rem 15px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1135,6 +1196,51 @@ margin on the iframe, cause it breaks stuff. */
|
||||
|
||||
@media only screen and (max-width: 500px) {
|
||||
|
||||
.site-head {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.main-nav {
|
||||
padding: 0;
|
||||
margin-bottom: 2rem;
|
||||
border-bottom: #e0e4e7 1px solid;
|
||||
}
|
||||
|
||||
.back-button,
|
||||
.subscribe-button {
|
||||
height: 44px;
|
||||
line-height: 41px;
|
||||
border-radius: 0;
|
||||
color: #2e2e2e;
|
||||
}
|
||||
.back-button:hover,
|
||||
.subscribe-button:hover {
|
||||
border-color: #ebeef0;
|
||||
color: #2e2e2e;
|
||||
background: #ebeef0;
|
||||
}
|
||||
|
||||
.back-button {
|
||||
padding: 0 15px 0 10px;
|
||||
}
|
||||
|
||||
.subscribe-button {
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.main-nav.overlay {
|
||||
color: #fff;
|
||||
background: rgba(0,0,0,0.4);
|
||||
background: -moz-linear-gradient(top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.4)), color-stop(100%,rgba(0,0,0,0)));
|
||||
background: -webkit-linear-gradient(top, rgba(0,0,0,0.4) 0%,rgba(0,0,0,0) 100%);
|
||||
background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%,rgba(0,0,0,0) 100%);
|
||||
}
|
||||
.main-nav.overlay a:hover {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.blog-logo img {
|
||||
max-height: 80px;
|
||||
}
|
||||
@ -1148,14 +1254,25 @@ margin on the iframe, cause it breaks stuff. */
|
||||
|
||||
.post {
|
||||
width: auto;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
margin-left: 16px;
|
||||
margin-right: 16px;
|
||||
padding-bottom: 2rem;
|
||||
font-size: 0.8em;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
.post-template .post-title {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 1.6em 0;
|
||||
}
|
||||
|
||||
p, ul, ol, dl {
|
||||
margin: 0 0 1.6em 0;
|
||||
margin: 0 0 2rem 0;
|
||||
}
|
||||
|
||||
.site-head {
|
||||
@ -1164,6 +1281,7 @@ margin on the iframe, cause it breaks stuff. */
|
||||
|
||||
.blog-title {
|
||||
font-size: 3rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.blog-description {
|
||||
@ -1271,8 +1389,7 @@ margin on the iframe, cause it breaks stuff. */
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
margin-top: 6rem;
|
||||
font-size: 1.1rem;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
}
|
||||
|
Binary file not shown.
@ -12,4 +12,5 @@
|
||||
<glyph unicode="" d="M1024 765.582c-37.676-16.708-78.164-28.002-120.66-33.080 43.372 26 76.686 67.17 92.372 116.23-40.596-24.078-85.556-41.56-133.41-50.98-38.32 40.83-92.922 66.34-153.346 66.34-116.022 0-210.088-94.058-210.088-210.078 0-16.466 1.858-32.5 5.44-47.878-174.6 8.764-329.402 92.4-433.018 219.506-18.084-31.028-28.446-67.116-28.446-105.618 0-72.888 37.088-137.192 93.46-174.866-34.438 1.092-66.832 10.542-95.154 26.278-0.020-0.876-0.020-1.756-0.020-2.642 0-101.788 72.418-186.696 168.522-206-17.626-4.8-36.188-7.372-55.348-7.372-13.538 0-26.698 1.32-39.528 3.772 26.736-83.46 104.32-144.206 196.252-145.896-71.9-56.35-162.486-89.934-260.916-89.934-16.958 0-33.68 0.994-50.116 2.94 92.972-59.61 203.402-94.394 322.042-94.394 386.422 0 597.736 320.124 597.736 597.744 0 9.108-0.206 18.168-0.61 27.18 41.056 29.62 76.672 66.62 104.836 108.748z" />
|
||||
<glyph unicode="" d="M0.806 90.336c-0.244 2.532-0.452 5.070-0.584 7.63 0.13-2.56 0.34-5.098 0.584-7.63zM235.908 394.852c92.010-2.738 153.734 92.698 137.862 213.198-15.894 120.48-103.396 217.168-195.408 219.922-92.026 2.73-153.74-89.482-137.852-210 15.882-120.468 103.352-220.374 195.398-223.12zM1024 704v85.31c0 93.88-76.782 170.69-170.658 170.69h-682.656c-92.276 0-168.012-74.232-170.564-165.926 58.362 51.386 139.324 94.316 222.874 94.316 89.304 0 357.244 0 357.244 0l-79.948-67.618h-113.268c75.13-28.804 115.156-116.124 115.156-205.722 0-75.248-41.81-139.954-100.888-185.968-57.644-44.902-68.572-63.708-68.572-101.878 0-32.578 61.746-88 94.032-110.788 94.382-66.538 124.916-128.312 124.916-231.456 0-16.428-2.042-32.83-6.066-48.96h307.742c93.874 0 170.656 76.75 170.656 170.69v533.308h-192v-191.998h-64v192h-191.998v64h191.998v192h64v-192h192zM185.886 194.064c21.614 0 41.422 0.59 61.936 0.59-27.146 26.334-48.626 58.6-48.626 98.38 0 23.608 7.564 46.336 18.134 66.52-10.782-0.77-21.79-0.994-33.126-0.994-74.356 0-137.506 24.076-184.204 63.854v-67.242l0.006-201.73c53.44 25.374 116.888 40.622 185.88 40.622zM3.42 72.742c-1.112 5.458-1.966 11.006-2.542 16.634 0.574-5.628 1.43-11.176 2.542-16.634zM455.45 7.154c-15.058 58.806-68.454 87.964-142.888 139.568-27.072 8.732-56.894 13.874-88.894 14.208-89.618 0.964-173.108-34.942-220.216-88.372 15.92-77.706 85.034-136.558 167.234-136.558h286.444c1.816 11.128 2.696 22.632 2.696 34.432 0 12.534-1.534 24.792-4.376 36.722z" />
|
||||
<glyph unicode="" d="M853.344 960h-682.66c-93.872 0-170.684-76.814-170.684-170.688v-682.626c0-93.938 76.812-170.686 170.684-170.686l682.66 0.002c93.876 0 170.656 76.746 170.656 170.688v682.622c0 93.874-76.782 170.688-170.656 170.688zM870.592 448h-166.592v-448h-192v448h-92.526v146.564h92.526v95.186c0 129.342 55.792 206.25 207.87 206.25h175.244v-158.57h-143.13c-42.482 0.070-47.752-22.152-47.752-63.512l-0.232-79.354h192l-25.408-146.564z" />
|
||||
<glyph unicode="" d="M737.229 68.198c13.722-13.875 13.722-36.25 0-50.125s-35.891-13.875-49.613 0l-400.896 404.838c-13.722 13.875-13.722 36.301 0 50.125l400.896 404.89c13.722 13.875 35.891 13.875 49.613 0s13.722-36.25 0-50.125l-365.568-379.802 365.568-379.802z" />
|
||||
</font></defs></svg>
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 4.1 KiB |
Binary file not shown.
Binary file not shown.
@ -26,12 +26,9 @@
|
||||
{{! Everything else gets inserted here }}
|
||||
{{{body}}}
|
||||
|
||||
<footer class="site-footer">
|
||||
<a class="subscribe icon-feed" href="{{@blog.url}}/rss/"><span class="tooltip">Subscribe!</span></a>
|
||||
<div class="inner">
|
||||
<section class="copyright">All content copyright <a href="{{@blog.url}}/">{{@blog.title}}</a> © {{date format="YYYY"}} • All rights reserved.</section>
|
||||
<section class="poweredby">Proudly published with <a class="icon-ghost" href="https://ghost.org">Ghost</a></section>
|
||||
</div>
|
||||
<footer class="site-footer clearfix">
|
||||
<section class="copyright"><a href="{{@blog.url}}">{{@blog.title}}</a> © {{date format="YYYY"}}</section>
|
||||
<section class="poweredby">Proudly published with <a href="https://ghost.org">Ghost</a></section>
|
||||
</footer>
|
||||
|
||||
{{! Ghost outputs important scripts and data with this tag }}
|
||||
|
29
page.hbs
29
page.hbs
@ -3,30 +3,23 @@
|
||||
{{! This is a page template. A page outputs content just like any other post, and has all the same
|
||||
attributes by default, but you can also customise it to behave differently if you prefer. }}
|
||||
|
||||
<nav class="main-nav clearfix">
|
||||
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
||||
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
|
||||
</nav>
|
||||
|
||||
<main class="content" role="main">
|
||||
|
||||
<article class="{{post_class}}">
|
||||
{{#post}}
|
||||
|
||||
<header class="post-header">
|
||||
<a class="blog-logo" href="{{@blog.url}}">
|
||||
{{#if @blog.logo}}
|
||||
<img src="{{@blog.logo}}" alt="Blog Logo" />
|
||||
{{else}}
|
||||
<span class="blog-title">{{@blog.title}}</span>
|
||||
{{/if}}
|
||||
</a>
|
||||
</header>
|
||||
<h1 class="post-title">{{{title}}}</h1>
|
||||
|
||||
{{#post}}
|
||||
|
||||
<h1 class="post-title">{{{title}}}</h1>
|
||||
|
||||
<section class="post-content">
|
||||
{{content}}
|
||||
</section>
|
||||
|
||||
{{/post}}
|
||||
<section class="post-content">
|
||||
{{content}}
|
||||
</section>
|
||||
|
||||
{{/post}}
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
83
post.hbs
83
post.hbs
@ -3,63 +3,54 @@
|
||||
{{! The comment above "< default" means - insert everything in this file into
|
||||
the {body} of the default.hbs template, which contains our header/footer. }}
|
||||
|
||||
<nav class="main-nav clearfix">
|
||||
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
||||
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
|
||||
</nav>
|
||||
|
||||
<main class="content" role="main">
|
||||
|
||||
<article class="{{post_class}}">
|
||||
{{! Everything inside the #post tags pulls data from the post }}
|
||||
{{#post}}
|
||||
|
||||
{{! Each post has the blog logo at the top, with a link back to the home page }}
|
||||
<header class="post-header">
|
||||
<a class="blog-logo" href="{{@blog.url}}">
|
||||
{{#if @blog.logo}}
|
||||
<img src="{{@blog.logo}}" alt="Blog Logo" />
|
||||
{{else}}
|
||||
<span class="blog-title">{{@blog.title}}</span>
|
||||
{{/if}}
|
||||
</a>
|
||||
</header>
|
||||
<h1 class="post-title">{{{title}}}</h1>
|
||||
|
||||
{{! Everything inside the #post tags pulls data from the post }}
|
||||
{{#post}}
|
||||
<section class="post-content">
|
||||
{{content}}
|
||||
</section>
|
||||
|
||||
<span class="post-meta"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time> {{tags prefix="on " separator=" | "}}</span>
|
||||
<footer class="post-footer">
|
||||
<a class="subscribe icon-feed" href="{{@blog.url}}/rss/"><span class="tooltip">Subscribe!</span></a>
|
||||
|
||||
<h1 class="post-title">{{{title}}}</h1>
|
||||
|
||||
<section class="post-content">
|
||||
{{content}}
|
||||
<section class="author">
|
||||
<h4>{{author.name}}</h4>
|
||||
<p>{{author.bio}}</p>
|
||||
<ul class="author-meta clearfix">
|
||||
{{#if author.location}}<li>{{author.location}}</li>{{/if}}
|
||||
{{#if author.website}}<li><a href="{{author.website}}">{{author.website}}</a></li>{{/if}}
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<footer class="post-footer">
|
||||
<section class="share">
|
||||
<h4>Share this post</h4>
|
||||
<a class="icon-twitter" href="https://twitter.com/share?text={{encode title}}&url={{url absolute="true"}}"
|
||||
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
|
||||
<span class="hidden">Twitter</span>
|
||||
</a>
|
||||
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}"
|
||||
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
|
||||
<span class="hidden">Facebook</span>
|
||||
</a>
|
||||
<a class="icon-google-plus" href="https://plus.google.com/share?url={{url absolute="true"}}"
|
||||
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
|
||||
<span class="hidden">Google+</span>
|
||||
</a>
|
||||
</section>
|
||||
|
||||
<section class="author">
|
||||
<h4>{{author.name}}</h4>
|
||||
<p>{{author.bio}}</p>
|
||||
<ul class="author-meta clearfix">
|
||||
{{#if author.location}}<li>{{author.location}}</li>{{/if}}
|
||||
{{#if author.website}}<li><a href="{{author.website}}">{{author.website}}</a></li>{{/if}}
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="share">
|
||||
<h4>Share this post</h4>
|
||||
<a class="icon-twitter" href="https://twitter.com/share?text={{encode title}}&url={{url absolute="true"}}"
|
||||
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
|
||||
<span class="hidden">Twitter</span>
|
||||
</a>
|
||||
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}"
|
||||
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
|
||||
<span class="hidden">Facebook</span>
|
||||
</a>
|
||||
<a class="icon-google-plus" href="https://plus.google.com/share?url={{url absolute="true"}}"
|
||||
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
|
||||
<span class="hidden">Google+</span>
|
||||
</a>
|
||||
</section>
|
||||
|
||||
</footer>
|
||||
|
||||
{{/post}}
|
||||
</footer>
|
||||
|
||||
{{/post}}
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
15
tag.hbs
15
tag.hbs
@ -5,11 +5,14 @@
|
||||
|
||||
{{! The big featured header on the homepage, with the site logo and description }}
|
||||
<header class="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
|
||||
<nav class="main-nav overlay clearfix">
|
||||
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
||||
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
|
||||
</nav>
|
||||
<div class="vertical">
|
||||
<div class="site-head-content inner">
|
||||
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
||||
<h1 class="blog-title">{{@blog.title}}</h1>
|
||||
<h2 class="blog-description">{{@blog.description}}</h2>
|
||||
<h1 class="blog-title">{{tag.name}}</h1>
|
||||
<h2 class="blog-description">A {{pagination.total}}-post collection</h2>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
@ -17,10 +20,6 @@
|
||||
{{! The main content area on the homepage }}
|
||||
<main class="content" role="main">
|
||||
|
||||
<header class="tag-archive-header">
|
||||
<h1>{{tag.name}}</h1>
|
||||
</header>
|
||||
|
||||
{{! Each post will be output using this markup }}
|
||||
{{#foreach posts}}
|
||||
|
||||
@ -37,7 +36,7 @@
|
||||
|
||||
{{/foreach}}
|
||||
|
||||
{{!! After all the posts, we have the previous/next pagination links }}
|
||||
{{! After all the posts, we have the previous/next pagination links }}
|
||||
{{pagination}}
|
||||
|
||||
</main>
|
Loading…
Reference in New Issue
Block a user