Skip to content

Commit 1cbb5c0

Browse files
committed
Books page added
1 parent b738eae commit 1cbb5c0

File tree

5 files changed

+54
-1
lines changed

5 files changed

+54
-1
lines changed

_data/doc-nav-header.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- title: Language Spec
2525
url: http://google.com
2626
- title: Books
27-
url: http://google.com
27+
url: "/books.html"
2828
- title: Style Guide
2929
url: https://index.scala-lang.org
3030
- title: Cheatsheet

_includes/books.html

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<section class="books">
2+
<div class="wrap">
3+
4+
<div class="inner-box">
5+
<div class="books-list">
6+
{% for book in site.books %}
7+
<div class="book-item">
8+
<div class="book-item-header">
9+
<a href="{{book.link}}">
10+
<div class="content-img-boook">
11+
<img src="{{book.image}}" alt="{{book.title}}">
12+
</div>
13+
<h3>{{book.title}}</h3>
14+
</a>
15+
</div>
16+
<div class="book-item-main">
17+
<p><b>{{book.status}}</b></p>
18+
<p class="author">{{site.data.common.texts.booksBy}} {{book.authors | join: ", "}}</p>
19+
<p class="published">{{site.data.common.texts.booksPublishedBy}} <a href="{{book.publisherLink}}">{{book.publisher}}</a></p>
20+
<p class="description">{{book.content}}</p>
21+
</div>
22+
</div>
23+
{% endfor %}
24+
</div>
25+
</div>
26+
27+
</div>
28+
</section>

_layouts/inner-page.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: inner-page-parent
3+
---
4+
5+
<section class="full-width">
6+
<div class="wrap">
7+
<div class="content-primary">
8+
<div class="inner-box">
9+
{{content}}
10+
</div>
11+
</div>
12+
</div>
13+
</section>

_sass/layout/type-md.scss

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//------------------------------------------------
33
//------------------------------------------------
44

5+
.full-width,
56
.books,
67
.content-primary,
78
.content-primary-blog,

books.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Books
3+
layout: inner-page
4+
redirect_from:
5+
- /documentation/books.html
6+
---
7+
8+
More and more books being published about Scala every year. Here, you can find
9+
just a small selection of the many available titles.
10+
11+
{% include books.html %}

0 commit comments

Comments
 (0)