forked from sxswdemo/github-book
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split nav metadata into head and body components
- Loading branch information
1 parent
f1187d9
commit 30a292b
Showing
3 changed files
with
40 additions
and
31 deletions.
There are no files selected for viewing
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,5 @@ | ||
<h1 itemprop="name">{{ title }}</h1> | ||
{{#if authors }}<span class="authors">By: {{#each authors }}{{#if @index }}, {{/if}}<span itemprop="author">{{ this }}</span>{{/each}}</span>{{/if}} | ||
{{#if publishers }}<span class="publisher">Published By: {{#each publishers }}{{#if @index }}, {{/if}}<span itemprop="publisher">{{ this }}</span>{{/each}}</span>{{/if}} | ||
{{#if description }}<p itemprop="description">{{ description }}</p>{{/if}} | ||
<h1>Table of Contents</h1> |
30 changes: 12 additions & 18 deletions
30
templates/gh-book/nav-metadata.html → templates/gh-book/nav-head-metadata.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
<title>{{ title }}</title> | ||
{{#if language }}<meta itemprop="inLanguage" content="{{ language }}" />{{/if}} | ||
{{#if rights }}<meta property="dc:license" content="{{ rights }}" />{{/if}} | ||
{{#if rightsUrl }}<meta property="lrmi:useRightsUrl" content="{{ rightsUrl }}" />{{/if}} | ||
{{#if dateModified }}<meta itemprop="dateModified" content="{{ dateModified }}" />{{/if}} | ||
{{#if datePublished }}<meta itemprop="dateCreated" content="{{ datePublished }}" />{{/if}} | ||
{{#each subject}}<meta itemprop="about" content="{{ this }}" /> | ||
{{#if language }}<meta itemprop="inLanguage" content="{{ language }}"></meta>{{/if}} | ||
{{#if rights }}<meta property="dc:license" content="{{ rights }}"></meta>{{/if}} | ||
{{#if rightsUrl }}<meta property="lrmi:useRightsUrl" content="{{ rightsUrl }}"></meta>{{/if}} | ||
{{#if dateModified }}<meta itemprop="dateModified" content="{{ dateModified }}"></meta>{{/if}} | ||
{{#if datePublished }}<meta itemprop="dateCreated" content="{{ datePublished }}"></meta>{{/if}} | ||
{{#each subject}}<meta itemprop="about" content="{{ this }}"></meta> | ||
{{/each}} | ||
{{#each keywords}}<meta itemprop="keywords" content="{{ this }}" /> | ||
{{#each keywords}}<meta itemprop="keywords" content="{{ this }}"></meta> | ||
{{/each}} | ||
{{#each rightsHolders}}<meta itemprop="copyrightHolder" content="{{ this }}" /> | ||
{{#each rightsHolders}}<meta itemprop="copyrightHolder" content="{{ this }}"></meta> | ||
{{/each}} | ||
{{#each editors }}<meta itemprop="editor" content="{{ this }}" /> | ||
{{#each editors }}<meta itemprop="editor" content="{{ this }}"></meta> | ||
{{/each}} | ||
{{#each translators }}<meta id="translator{{@key }}" itemprop="contributor" content="{{ this }}"/> | ||
<meta refines="#translator{{@key }}" property="role" scheme="marc:relators" content="trl" /> | ||
{{#each translators }}<meta id="translator{{@key }}" itemprop="contributor" content="{{ this }}"></meta> | ||
<meta refines="#translator{{@key }}" property="role" scheme="marc:relators" content="trl"></meta> | ||
{{/each}} | ||
{{#each illustrators }}<meta itemprop="illustrator" content="{{ this }}" /> | ||
{{#each illustrators }}<meta itemprop="illustrator" content="{{ this }}"></meta> | ||
{{/each}} | ||
|
||
<h1 itemprop="name">{{ title }}</h1> | ||
{{#if authors }}<span class="authors">By: {{#each authors }}{{#if @index }}, {{/if}}<span itemprop="author">{{ this }}</span>{{/each}}</span>{{/if}} | ||
{{#if publishers }}<span class="publisher">Published By: {{#each publishers }}{{#if @index }}, {{/if}}<span itemprop="publisher">{{ this }}</span>{{/each}}</span>{{/if}} | ||
{{#if description }}<p itemprop="description">{{ description }}</p>{{/if}} | ||
<h1>Table of Contents</h1> |