|
| 1 | +<%- partial('partials/secondary/sidebar_wordmark') %> |
1 | 2 | <aside id="sidebar" class="sidebar borderless-links">
|
2 | 3 | <%- partial('partials/secondary/sidebar_header', {site: site}) %>
|
3 | 4 |
|
|
17 | 18 | </div>
|
18 | 19 | </aside>
|
19 | 20 |
|
20 |
| -<div class="content content--blog copy post <% if (page.awoa && !page.awoa.projects) { %>content--awoa<% } %>"> |
21 |
| - <%- partial('partials/secondary/mobile_header') %> |
| 21 | + <div class="content content--blog copy post <% if (page.awoa && !page.awoa.projects) { %>content--awoa<% } %>"> |
| 22 | + <%- partial('partials/secondary/mobile_header') %> |
22 | 23 |
|
23 |
| - <div class="copy__wrap"> |
24 |
| - <% if (page.blog_index) { %> |
25 |
| - <h1 class="page__title"><%- config.blog_title %></h1> |
| 24 | + <div class="copy__wrap"> |
| 25 | + <% if (page.blog_index) { %> |
| 26 | + <h1 class="page__title"><%- config.blog_title %></h1> |
26 | 27 |
|
27 |
| - <%- page.content %> |
| 28 | + <%- page.content %> |
28 | 29 |
|
29 |
| - <% page.posts.each(function (post) { %> |
30 |
| - <article class="post post--listing"> |
31 |
| - <a href="<%- page_url(post.path) %>"> |
32 |
| - <h2 class="post__heading"><%- post.title %></h2> |
33 |
| - </a> |
34 |
| - <%- partial('partials/blog/metadata', {post: post}) %> |
| 30 | + <% page.posts.each(function (post) { %> |
| 31 | + <article class="post post--listing"> |
| 32 | + <a href="<%- page_url(post.path) %>"> |
| 33 | + <h2 class="post__heading"><%- post.title %></h2> |
| 34 | + </a> |
| 35 | + <%- partial('partials/blog/metadata', {post: post}) %> |
| 36 | +
|
| 37 | + <% if (post.awoa) { %> |
| 38 | + <% if (post.from) { %> |
| 39 | + <i>What's up with A-Frame, a WebVR framework for building virtual reality experiences, from <%= blog_date(post.from) %> to <%= blog_date(post.date) %>.</i> |
| 40 | + <% } else { %> |
| 41 | + <i>What's up with A-Frame, a WebVR framework for building virtual reality experiences, for the week of <%= blog_date_subtract_week(post.date) %> to <%= blog_date(post.date) %>.</i> |
| 42 | + <% } %> |
| 43 | + <%- partial('partials/blog/awoa_projects_showcase', { |
| 44 | + projects: post.awoa.projects |
| 45 | + }) %> |
| 46 | + <% } %> |
| 47 | +
|
| 48 | + <% if (post.excerpt) { %> |
| 49 | + <% if (!post.awoa) { %> |
| 50 | + <%- partial('partials/blog/image', {image: post.image, title: post.title}) %> |
| 51 | + <% } %> |
| 52 | + <div class="post__excerpt"><%- post.excerpt %></div> |
| 53 | + <% } %> |
| 54 | +
|
| 55 | + <a href="<%- page_url(post.path) %>" class="post__more">Read more …</a> |
| 56 | + </article> |
| 57 | + <% }) %> |
35 | 58 |
|
36 |
| - <% if (post.awoa) { %> |
37 |
| - <% if (post.from) { %> |
38 |
| - <i>What's up with A-Frame, a WebVR framework for building virtual reality experiences, from <%= blog_date(post.from) %> to <%= blog_date(post.date) %>.</i> |
| 59 | + <footer class="footer guide-links c"> |
| 60 | + <% var prevPost = page.prev %> |
| 61 | + <% var nextPost = page.next %> |
| 62 | + <% if (page.prev) { %> |
| 63 | + <span class="float-left"><a href="<%- page_url(prevPost.path) %>" class="guide-link guide-link-left">← <%- prevPost.title %></a></span> |
| 64 | + <% } %> |
| 65 | + <% if (page.next) { %> |
| 66 | + <span class="float-right"><a href="<%- page_url(nextPost.path) %>" class="guide-link guide-link-right"><%- nextPost.title %> →</a></span> |
| 67 | + <% } %> |
| 68 | + </footer> |
| 69 | + <% } else { %> |
| 70 | + <article class="post post-full"> |
| 71 | + <p class="page__section"> |
| 72 | + <a href="<%- url_for('blog/') %>" class="borderless-link">Blog</a> |
| 73 | + </p> |
| 74 | +
|
| 75 | + <h1 class="page__title post__heading"><%- page.title %></h1> |
| 76 | + <%- partial('partials/blog/metadata', {post: page}) %> |
| 77 | +
|
| 78 | + <% if (page.awoa) { %> |
| 79 | + <% if (page.from) { %> |
| 80 | + <i>What's up with A-Frame, a WebVR framework for building virtual reality experiences, from <%= blog_date(page.from) %> to <%= blog_date(page.date) %>.</i> |
39 | 81 | <% } else { %>
|
40 |
| - <i>What's up with A-Frame, a WebVR framework for building virtual reality experiences, for the week of <%= blog_date_subtract_week(post.date) %> to <%= blog_date(post.date) %>.</i> |
| 82 | + <i>What's up with A-Frame, a WebVR framework for building virtual reality experiences, for the week of <%= blog_date_subtract_week(page.date) %> to <%= blog_date(page.date) %>.</i> |
41 | 83 | <% } %>
|
42 | 84 | <%- partial('partials/blog/awoa_projects_showcase', {
|
43 |
| - projects: post.awoa.projects |
| 85 | + projects: page.awoa.projects |
44 | 86 | }) %>
|
45 | 87 | <% } %>
|
46 | 88 |
|
47 |
| - <% if (post.excerpt) { %> |
48 |
| - <% if (!post.awoa) { %> |
49 |
| - <%- partial('partials/blog/image', {image: post.image, title: post.title}) %> |
50 |
| - <% } %> |
51 |
| - <div class="post__excerpt"><%- post.excerpt %></div> |
| 89 | + <% if (!page.awoa) { %> |
| 90 | + <%- partial('partials/blog/image', {image: page.image, title: page.title}) %> |
52 | 91 | <% } %>
|
53 | 92 |
|
54 |
| - <a href="<%- page_url(post.path) %>" class="post__more">Read more …</a> |
| 93 | + <%- page.content %> |
| 94 | +
|
| 95 | + <% if (page.awoa) { %> |
| 96 | + <%- partial('partials/blog/awoa_projects_text', {projects: page.awoa.projects}) %> |
| 97 | + <%- partial('partials/blog/awoa_media', |
| 98 | + {media: page.awoa.media}) %> |
| 99 | + <%- partial('partials/blog/awoa_contributions', |
| 100 | + {contributions: page.awoa.contributions}) %> |
| 101 | + <% } %> |
55 | 102 | </article>
|
56 |
| - <% }) %> |
57 | 103 |
|
58 |
| - <footer class="footer guide-links c"> |
59 |
| - <% var prevPost = page.prev %> |
60 |
| - <% var nextPost = page.next %> |
61 |
| - <% if (page.prev) { %> |
62 |
| - <span class="float-left"><a href="<%- page_url(prevPost.path) %>" class="guide-link guide-link-left">← <%- prevPost.title %></a></span> |
63 |
| - <% } %> |
64 |
| - <% if (page.next) { %> |
65 |
| - <span class="float-right"><a href="<%- page_url(nextPost.path) %>" class="guide-link guide-link-right"><%- nextPost.title %> →</a></span> |
66 |
| - <% } %> |
67 |
| - </footer> |
68 |
| - <% } else { %> |
69 |
| - <article class="post post-full"> |
70 |
| - <p class="page__section"> |
71 |
| - <a href="<%- url_for('blog/') %>" class="borderless-link">Blog</a> |
72 |
| - </p> |
73 |
| -
|
74 |
| - <h1 class="page__title post__heading"><%- page.title %></h1> |
75 |
| - <%- partial('partials/blog/metadata', {post: page}) %> |
76 |
| -
|
77 |
| - <% if (page.awoa) { %> |
78 |
| - <% if (page.from) { %> |
79 |
| - <i>What's up with A-Frame, a WebVR framework for building virtual reality experiences, from <%= blog_date(page.from) %> to <%= blog_date(page.date) %>.</i> |
80 |
| - <% } else { %> |
81 |
| - <i>What's up with A-Frame, a WebVR framework for building virtual reality experiences, for the week of <%= blog_date_subtract_week(page.date) %> to <%= blog_date(page.date) %>.</i> |
| 104 | + <footer class="footer guide-links c"> |
| 105 | + <% // Yes, these are correct. %> |
| 106 | + <% var prevPost = page.next %> |
| 107 | + <% var nextPost = page.prev %> |
| 108 | + <% if (prevPost) { %> |
| 109 | + <span class="float-left"><a href="<%- page_url(prevPost.path) %>" class="guide-link guide-link-left">← <%- prevPost.title %></a></span> |
82 | 110 | <% } %>
|
83 |
| - <%- partial('partials/blog/awoa_projects_showcase', { |
84 |
| - projects: page.awoa.projects |
85 |
| - }) %> |
86 |
| - <% } %> |
| 111 | + <% if (nextPost) { %> |
| 112 | + <span class="float-right"><a href="<%- page_url(nextPost.path) %>" class="guide-link guide-link-right"><%- nextPost.title %> →</a></span> |
| 113 | + <% } %> |
| 114 | + </footer> |
| 115 | + <% } %> |
87 | 116 |
|
88 |
| - <% if (!page.awoa) { %> |
89 |
| - <%- partial('partials/blog/image', {image: page.image, title: page.title}) %> |
| 117 | + <footer class="footer footnote"> |
| 118 | + <p>Except where otherwise noted, content on this site is licensed under the <a href="https://creativecommons.org/licenses/by-sa/3.0/" rel="external">Creative Commons Attribution Share-Alike License v3.0</a> or any later version.</p> |
| 119 | + <% if (!page.blog_index) { %> |
| 120 | + <p>Found a typo or suggestion for the docs? <br><br> <a href="<%- website_github_edit_url('_posts/' + page.slug + '.md') %>" class="github-file-link" rel="external">Suggest an edit on GitHub</a></p> |
90 | 121 | <% } %>
|
91 | 122 |
|
92 |
| - <%- page.content %> |
93 |
| -
|
94 |
| - <% if (page.awoa) { %> |
95 |
| - <%- partial('partials/blog/awoa_projects_text', {projects: page.awoa.projects}) %> |
96 |
| - <%- partial('partials/blog/awoa_media', |
97 |
| - {media: page.awoa.media}) %> |
98 |
| - <%- partial('partials/blog/awoa_contributions', |
99 |
| - {contributions: page.awoa.contributions}) %> |
100 |
| - <% } %> |
101 |
| - </article> |
102 |
| -
|
103 |
| - <footer class="footer guide-links c"> |
104 |
| - <% // Yes, these are correct. %> |
105 |
| - <% var prevPost = page.next %> |
106 |
| - <% var nextPost = page.prev %> |
107 |
| - <% if (prevPost) { %> |
108 |
| - <span class="float-left"><a href="<%- page_url(prevPost.path) %>" class="guide-link guide-link-left">← <%- prevPost.title %></a></span> |
109 |
| - <% } %> |
110 |
| - <% if (nextPost) { %> |
111 |
| - <span class="float-right"><a href="<%- page_url(nextPost.path) %>" class="guide-link guide-link-right"><%- nextPost.title %> →</a></span> |
112 |
| - <% } %> |
| 123 | + <span class="sponsor" itemscope itemprop="organization" itemtype="http://schema.org/Organization"> |
| 124 | + <div class="message">Supported by</div> |
| 125 | + <span itemprop="sponsor" itemscope itemtype="http://schema.org/Organization"> |
| 126 | + <a class="mozilla-logo" itemprop="url" href="https://www.mozilla.org/" rel="external"> |
| 127 | + <span itemprop="name"></span> |
| 128 | + </a> |
| 129 | + </span> |
| 130 | + </span> |
113 | 131 | </footer>
|
114 |
| - <% } %> |
115 |
| - |
116 |
| - <footer class="footer footnote"> |
117 |
| - <p>Except where otherwise noted, content on this site is licensed under the <a href="https://creativecommons.org/licenses/by-sa/3.0/" rel="external">Creative Commons Attribution Share-Alike License v3.0</a> or any later version.</p> |
118 |
| - <% if (!page.blog_index) { %> |
119 |
| - <p>Found a typo or suggestion for the docs? <br><br> <a href="<%- website_github_edit_url('_posts/' + page.slug + '.md') %>" class="github-file-link" rel="external">Suggest an edit on GitHub</a></p> |
120 |
| - <% } %> |
| 132 | + </div> |
121 | 133 |
|
122 |
| - <span class="sponsor" itemscope itemprop="organization" itemtype="http://schema.org/Organization"> |
123 |
| - <div class="message">Supported by</div> |
124 |
| - <span itemprop="sponsor" itemscope itemtype="http://schema.org/Organization"> |
125 |
| - <a class="mozilla-logo" itemprop="url" href="https://www.mozilla.org/" rel="external"> |
126 |
| - <span itemprop="name"></span> |
127 |
| - </a> |
128 |
| - </span> |
129 |
| - </span> |
130 |
| - </footer> |
| 134 | + <% if (!page.blog_index && !page.awoa) { %> |
| 135 | + <div class="secondary-sidebar"> |
| 136 | + <%- partial('partials/toc', {page: page}) %> |
| 137 | + </div> |
| 138 | + <% } %> |
131 | 139 | </div>
|
132 |
| -
|
133 |
| - <% if (!page.blog_index && !page.awoa) { %> |
134 |
| - <div class="secondary-sidebar"> |
135 |
| - <%- partial('partials/toc', {page: page}) %> |
136 |
| - </div> |
137 |
| - <% } %> |
138 | 140 | </div>
|
0 commit comments