Skip to content

Commit f659019

Browse files
committed
new blog button and template
1 parent b20f718 commit f659019

File tree

6 files changed

+40
-19
lines changed

6 files changed

+40
-19
lines changed

_layouts/blog.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: default
3+
---
4+
<main class="content" role="main">
5+
<img class="logo" src="../resources/webarkit-logo-social.jpg" alt="webarkit logo"/>
6+
<section class="main-content">
7+
{{ content }}
8+
{% include footer.html %}
9+
</section>
10+
</main>

_layouts/default.html

+1-17
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,7 @@
22
<html lang="{{ site.lang | default: "en-US" }}">
33
{% include head.html %}
44
<body>
5-
<section class="page-header">
6-
<h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1>
7-
<h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
8-
{% if site.github.is_project_page %}
9-
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
10-
{% endif %}
11-
{% if site.show_downloads %}
12-
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
13-
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
14-
{% endif %}
15-
</section>
16-
17-
<section class="main-content">
18-
<img src="resources/webarkit-logo-social.jpg" alt="webarkit logo"/>
19-
{{ content }}
20-
{% include footer.html %}
21-
</section>
5+
{{ content }}
226

237
{% if site.google_analytics %}
248
<script>

_layouts/home.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
layout: default
3+
---
4+
<main class="content" role="main">
5+
<section class="page-header">
6+
<h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1>
7+
<h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
8+
{% if site.github.is_project_page %}
9+
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
10+
{% endif %}
11+
{% if site.show_downloads %}
12+
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
13+
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
14+
{% endif %}
15+
</section>
16+
17+
<section class="main-content">
18+
<img src="../resources/webarkit-logo-social.jpg" alt="webarkit logo"/>
19+
{{ content }}
20+
<a href="/blog">Visit our blog page!</a>
21+
{% include footer.html %}
22+
</section>
23+
</main>

_sass/jekyll-theme-cayman.scss

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ a {
4343
}
4444
}
4545

46+
.logo {
47+
max-width: 50%
48+
}
49+
4650
.btn {
4751
display: inline-block;
4852
margin-bottom: 1rem;

blog/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: default
2+
layout: blog
33
title: WebARkit org Blog
44
date: 2020-09-18
55
seo:

index.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Feel free to add content and custom Front Matter to this file.
33
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
44

5-
layout: default
5+
layout: home
66
---
77
## A vision for the future for open source WebAR
88

0 commit comments

Comments
 (0)