Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed May 25, 2020
1 parent a98125d commit 9f6dafe
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 159 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes/hugo-book"]
path = themes/hugo-book
url = https://github.com/alex-shpak/hugo-book.git
99 changes: 0 additions & 99 deletions config.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions config.toml → config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,38 +56,3 @@ enableGitInfo = true
# Page is resoled by .GetPage function: https://gohugo.io/functions/getpage/
# For backward compatibility you can set '*' to render all sections to menu. Acts same as '/'
BookSection = 'docs'

# Set source repository location.
# Used for 'Last Modified' and 'Edit this page' links.
BookRepo = 'https://github.com/alex-shpak/hugo-book'

# Enable "Edit this page" links for 'doc' page type.
# Disabled by default. Uncomment to enable. Requires 'BookRepo' param.
# Edit path must point to root directory of repo.
BookEditPath = 'edit/master/'

# Configure the date format used on the pages
# - In git information
# - In blog posts
BookDateFormat = 'January 2, 2006'

# (Optional, default true) Enables search function with flexsearch,
# Index is built on fly, therefore it might slowdown your website.
# Configuration for indexing can be adjusted in i18n folder per language.
BookSearch = true

# (Optional, default true) Enables comments template on pages
# By default partals/docs/comments.html includes Disqus template
# See https://gohugo.io/content-management/comments/#configure-disqus
# Can be overwritten by same param in page frontmatter
BookComments = true

# /!\ This is an experimental feature, might be removed or changed at any time
# (Optional, experimental, default false) Enables portable links and link checks in markdown pages.
# Portable links meant to work with text editors and let you write markdown without {{< relref >}} shortcode
# Theme will print warning if page referenced in markdown does not exists.
BookPortableLinks = true

# /!\ This is an experimental feature, might be removed or changed at any time
# (Optional, experimental, default false) Enables service worker that caches visited pages and resources for offline use.
BookServiceWorker = true
2 changes: 2 additions & 0 deletions config/pdf/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
layoutDir = 'layouts-pdf'
title = 'PDF'
35 changes: 35 additions & 0 deletions config/website/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

# Set source repository location.
# Used for 'Last Modified' and 'Edit this page' links.
BookRepo = 'https://github.com/alex-shpak/hugo-book'

# Enable "Edit this page" links for 'doc' page type.
# Disabled by default. Uncomment to enable. Requires 'BookRepo' param.
# Edit path must point to root directory of repo.
BookEditPath = 'edit/master/'

# Configure the date format used on the pages
# - In git information
# - In blog posts
BookDateFormat = 'January 2, 2006'

# (Optional, default true) Enables search function with flexsearch,
# Index is built on fly, therefore it might slowdown your website.
# Configuration for indexing can be adjusted in i18n folder per language.
BookSearch = true

# (Optional, default true) Enables comments template on pages
# By default partals/docs/comments.html includes Disqus template
# See https://gohugo.io/content-management/comments/#configure-disqus
# Can be overwritten by same param in page frontmatter
BookComments = true

# /!\ This is an experimental feature, might be removed or changed at any time
# (Optional, experimental, default false) Enables portable links and link checks in markdown pages.
# Portable links meant to work with text editors and let you write markdown without {{< relref >}} shortcode
# Theme will print warning if page referenced in markdown does not exists.
BookPortableLinks = true

# /!\ This is an experimental feature, might be removed or changed at any time
# (Optional, experimental, default false) Enables service worker that caches visited pages and resources for offline use.
BookServiceWorker = true
36 changes: 11 additions & 25 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,25 @@ title: Introduction
type: docs
---

# Acerbo datus maxime
# Writing a book with Hugo hugo-book and Paged.js

{{< columns >}}
## Astris ipse furtiva
## Hugo

Est in vagis et Pittheus tu arge accipiter regia iram vocatur nurus. Omnes ut
olivae sensit **arma sorori** deducit, inesset **crudus**, ego vetuere aliis,
modo arsit? Utinam rapta fiducia valuere litora _adicit cursu_, ad facies
Such a cool framework!

<--->

## Suis quot vota
Using the [hugo-book theme](https://github.com/alex-shpak/hugo-book).

Ea _furtique_ risere fratres edidit terrae magis. Colla tam mihi tenebat:
miseram excita suadent es pecudes iam. Concilio _quam_ velatus posset ait quod
nunc! Fragosis suae dextra geruntur functus vulgata.
{{< /columns >}}
Markdown files could be generated from R Markdown files.

<--->

## Tempora nisi nunc
## paged.js

Lorem **markdownum** emicat gestu. Cannis sol pressit ducta. **Est** Idaei,
tremens ausim se tutaeque, illi ulnis hausit, sed, lumina cutem. Quae avis
sequens!
Paged content, thus PDF, without LaTeX!
{{< /columns >}}

var panel = ram_design;
if (backup + system) {
file.readPoint = network_native;
sidebar_engine_device(cell_tftp_raster,
dual_login_paper.adf_vci.application_reader_design(
graphicsNvramCdma, lpi_footer_snmp, integer_model));
}

## Locis suis novi cum suoque decidit eadem
## Beware

Idmoniae ripis, at aves, ali missa adest, ut _et autem_, et ab?
This is a conceptual thing.
3 changes: 3 additions & 0 deletions content/all/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: See PDF
---
13 changes: 13 additions & 0 deletions layouts-pdf/all/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<html>
<body>
<article>
<h1>Book</h1>
{{ .Site.Taxonomies }}
{{ $taxonomies := index .Site.Taxonomies .Page.Type }}
{{ range $taxonomies }}
<div><a href="{{ .Page.Permalink }}">{{ .Page.Title }} <sup>{{ .Count }}</sup></a></div>
{{ end }}
</article>

</body>
</html>
1 change: 1 addition & 0 deletions themes/hugo-book
Submodule hugo-book added at d198d9

0 comments on commit 9f6dafe

Please sign in to comment.