Skip to content

Commit 15b8c61

Browse files
committed
add hugo theme
1 parent b111a29 commit 15b8c61

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2734
-99
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/book"]
2+
path = themes/book
3+
url = https://github.com/alex-shpak/hugo-book

config.yaml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# hugo server --minify --themesDir ... --baseURL=http://0.0.0.0:1313/theme/hugo-book/
2+
3+
baseURL: https://example.com/
4+
title: Hugo Book
5+
theme: book
6+
7+
# Book configuration
8+
disablePathToLower: true
9+
enableGitInfo: true
10+
11+
# Needed for mermaid/katex shortcodes
12+
markup:
13+
goldmark:
14+
renderer:
15+
unsafe: true
16+
tableOfContents:
17+
startLevel: 1
18+
19+
# Multi-lingual mode config
20+
# There are different options to translate files
21+
# See https://gohugo.io/content-management/multilingual/#translation-by-filename
22+
# And https://gohugo.io/content-management/multilingual/#translation-by-content-directory
23+
languages:
24+
zh:
25+
languageName: 中文
26+
contentDir: content/zh
27+
weight: 1
28+
en:
29+
languageName: English
30+
contentDir: content/en
31+
weight: 2
32+
33+
menu:
34+
# before: []
35+
after:
36+
- name: "Github"
37+
url: "https://github.com/alex-shpak/hugo-book"
38+
weight: 10
39+
- name: "Hugo Themes"
40+
url: "https://themes.gohugo.io/hugo-book/"
41+
weight: 20
42+
43+
params:
44+
# (Optional, default light) Sets color theme: light, dark or auto.
45+
# Theme 'auto' switches between dark and light modes based on browser/os preferences
46+
BookTheme: "light"
47+
48+
# (Optional, default true) Controls table of contents visibility on right side of pages.
49+
# Start and end levels can be controlled with markup.tableOfContents setting.
50+
# You can also specify this parameter per page in front matter.
51+
BookToC: true
52+
53+
# (Optional, default none) Set the path to a logo for the book. If the logo is
54+
# /static/logo.png then the path would be logo.png
55+
# BookLogo: /logo.png
56+
57+
# (Optional, default none) Set leaf bundle to render as side menu
58+
# When not specified file structure and weights will be used
59+
# BookMenuBundle: /menu
60+
61+
# (Optional, default docs) Specify root page to render child pages as menu.
62+
# Page is resoled by .GetPage function: https://gohugo.io/functions/getpage/
63+
# For backward compatibility you can set '*' to render all sections to menu. Acts same as '/'
64+
BookSection: docs
65+
66+
# Set source repository location.
67+
# Used for 'Last Modified' and 'Edit this page' links.
68+
BookRepo: https://github.com/alex-shpak/hugo-book
69+
70+
# (Optional, default 'commit') Specifies commit portion of the link to the page's last modified
71+
# commit hash for 'doc' page type.
72+
# Requires 'BookRepo' param.
73+
# Value used to construct a URL consisting of BookRepo/BookCommitPath/<commit-hash>
74+
# Github uses 'commit', Bitbucket uses 'commits'
75+
# BookCommitPath: commit
76+
77+
# Enable "Edit this page" links for 'doc' page type.
78+
# Disabled by default. Uncomment to enable. Requires 'BookRepo' param.
79+
# Edit path must point to root directory of repo.
80+
BookEditPath: edit/main/exampleSite
81+
82+
# Configure the date format used on the pages
83+
# - In git information
84+
# - In blog posts
85+
BookDateFormat: "January 2, 2006"
86+
87+
# (Optional, default true) Enables search function with flexsearch,
88+
# Index is built on fly, therefore it might slowdown your website.
89+
# Configuration for indexing can be adjusted in i18n folder per language.
90+
BookSearch: true
91+
92+
# (Optional, default true) Enables comments template on pages
93+
# By default partals/docs/comments.html includes Disqus template
94+
# See https://gohugo.io/content-management/comments/#configure-disqus
95+
# Can be overwritten by same param in page frontmatter
96+
BookComments: true
97+
98+
# /!\ This is an experimental feature, might be removed or changed at any time
99+
# (Optional, experimental, default false) Enables portable links and link checks in markdown pages.
100+
# Portable links meant to work with text editors and let you write markdown without {{< relref >}} shortcode
101+
# Theme will print warning if page referenced in markdown does not exists.
102+
BookPortableLinks: true
103+
104+
# /!\ This is an experimental feature, might be removed or changed at any time
105+
# (Optional, experimental, default false) Enables service worker that caches visited pages and resources for offline use.
106+
BookServiceWorker: true
107+
108+
# /!\ This is an experimental feature, might be removed or changed at any time
109+
# (Optional, experimental, default false) Enables a drop-down menu for translations only if a translation is present.
110+
BookTranslatedOnly: false

content/en/_index.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: Introduction
3+
type: docs
4+
---
5+
6+
# Acerbo datus maxime
7+
8+
{{< columns >}}
9+
10+
## Astris ipse furtiva
11+
12+
Est in vagis et Pittheus tu arge accipiter regia iram vocatur nurus. Omnes ut
13+
olivae sensit **arma sorori** deducit, inesset **crudus**, ego vetuere aliis,
14+
modo arsit? Utinam rapta fiducia valuere litora _adicit cursu_, ad facies
15+
16+
<--->
17+
18+
## Suis quot vota
19+
20+
Ea _furtique_ risere fratres edidit terrae magis. Colla tam mihi tenebat:
21+
miseram excita suadent es pecudes iam. Concilio _quam_ velatus posset ait quod
22+
nunc! Fragosis suae dextra geruntur functus vulgata.
23+
{{< /columns >}}
24+
25+
## Tempora nisi nunc
26+
27+
Lorem **markdownum** emicat gestu. Cannis sol pressit ducta. **Est** Idaei,
28+
tremens ausim se tutaeque, illi ulnis hausit, sed, lumina cutem. Quae avis
29+
sequens!
30+
31+
var panel = ram_design;
32+
if (backup + system) {
33+
file.readPoint = network_native;
34+
sidebar_engine_device(cell_tftp_raster,
35+
dual_login_paper.adf_vci.application_reader_design(
36+
graphicsNvramCdma, lpi_footer_snmp, integer_model));
37+
}
38+
39+
## Locis suis novi cum suoque decidit eadem
40+
41+
Idmoniae ripis, at aves, ali missa adest, ut _et autem_, et ab?

content/en/docs/example/_index.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
weight: 1
3+
bookFlatSection: true
4+
title: "Example Site"
5+
---
6+
7+
# Introduction
8+
9+
## Ferre hinnitibus erat accipitrem dixi Troiae tollens
10+
11+
Lorem markdownum, a quoque nutu est *quodcumque mandasset* veluti. Passim
12+
inportuna totidemque nympha fert; repetens pendent, poenarum guttura sed vacet
13+
non, mortali undas. Omnis pharetramque gramen portentificisque membris servatum
14+
novabis fallit de nubibus atque silvas mihi. **Dixit repetitaque Quid**; verrit
15+
longa; sententia [mandat](http://pastor-ad.io/questussilvas) quascumque nescio
16+
solebat [litore](http://lacrimas-ab.net/); noctes. *Hostem haerentem* circuit
17+
[plenaque tamen](http://www.sine.io/in).
18+
19+
- Pedum ne indigenae finire invergens carpebat
20+
- Velit posses summoque
21+
- De fumos illa foret
22+
23+
## Est simul fameque tauri qua ad
24+
25+
Locum nullus nisi vomentes. Ab Persea sermone vela, miratur aratro; eandem
26+
Argolicas gener.
27+
28+
## Me sol
29+
30+
Nec dis certa fuit socer, Nonacria **dies** manet tacitaque sibi? Sucis est
31+
iactata Castrumque iudex, et iactato quoque terraeque es tandem et maternos
32+
vittis. Lumina litus bene poenamque animos callem ne tuas in leones illam dea
33+
cadunt genus, et pleno nunc in quod. Anumque crescentesque sanguinis
34+
[progenies](http://www.late.net/alimentavirides) nuribus rustica tinguet. Pater
35+
omnes liquido creditis noctem.
36+
37+
if (mirrored(icmp_dvd_pim, 3, smbMirroredHard) != lion(clickImportQueue,
38+
viralItunesBalancing, bankruptcy_file_pptp)) {
39+
file += ip_cybercrime_suffix;
40+
}
41+
if (runtimeSmartRom == netMarketingWord) {
42+
virusBalancingWin *= scriptPromptBespoke + raster(post_drive,
43+
windowsSli);
44+
cd = address_hertz_trojan;
45+
soap_ccd.pcbServerGigahertz(asp_hardware_isa, offlinePeopleware, nui);
46+
} else {
47+
megabyte.api = modem_flowchart - web + syntaxHalftoneAddress;
48+
}
49+
if (3 < mebibyteNetworkAnimated) {
50+
pharming_regular_error *= jsp_ribbon + algorithm * recycleMediaKindle(
51+
dvrSyntax, cdma);
52+
adf_sla *= hoverCropDrive;
53+
templateNtfs = -1 - vertical;
54+
} else {
55+
expressionCompressionVariable.bootMulti = white_eup_javascript(
56+
table_suffix);
57+
guidPpiPram.tracerouteLinux += rtfTerabyteQuicktime(1,
58+
managementRosetta(webcamActivex), 740874);
59+
}
60+
var virusTweetSsl = nullGigo;
61+
62+
## Trepident sitimque
63+
64+
Sentiet et ferali errorem fessam, coercet superbus, Ascaniumque in pennis
65+
mediis; dolor? Vidit imi **Aeacon** perfida propositos adde, tua Somni Fluctibus
66+
errante lustrat non.
67+
68+
Tamen inde, vos videt e flammis Scythica parantem rupisque pectora umbras. Haec
69+
ficta canistris repercusso simul ego aris Dixit! Esse Fama trepidare hunc
70+
crescendo vigor ululasse vertice *exspatiantur* celer tepidique petita aversata
71+
oculis iussa est me ferro.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# 4th Level of Menu
2+
3+
## Caesorum illa tu sentit micat vestes papyriferi
4+
5+
Inde aderam facti; Theseus vis de tauri illa peream. Oculos **uberaque** non
6+
regisque vobis cursuque, opus venit quam vulnera. Et maiora necemque, lege modo;
7+
gestanda nitidi, vero? Dum ne pectoraque testantur.
8+
9+
Venasque repulsa Samos qui, exspectatum eram animosque hinc, [aut
10+
manes](http://www.creveratnon.net/apricaaetheriis), Assyrii. Cupiens auctoribus
11+
pariter rubet, profana magni super nocens. Vos ius sibilat inpar turba visae
12+
iusto! Sedes ante dum superest **extrema**.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# 3rd Level of Menu
2+
3+
Nefas discordemque domino montes numen tum humili nexilibusque exit, Iove. Quae
4+
miror esse, scelerisque Melaneus viribus. Miseri laurus. Hoc est proposita me
5+
ante aliquid, aura inponere candidioribus quidque accendit bella, sumpta.
6+
Intravit quam erat figentem hunc, motus de fontes parvo tempestate.
7+
8+
iscsi_virus = pitch(json_in_on(eupViral),
9+
northbridge_services_troubleshooting, personal(
10+
firmware_rw.trash_rw_crm.device(interactive_gopher_personal,
11+
software, -1), megabit, ergonomicsSoftware(cmyk_usb_panel,
12+
mips_whitelist_duplex, cpa)));
13+
if (5) {
14+
managementNetwork += dma - boolean;
15+
kilohertz_token = 2;
16+
honeypot_affiliate_ergonomics = fiber;
17+
}
18+
mouseNorthbridge = byte(nybble_xmp_modem.horse_subnet(
19+
analogThroughputService * graphicPoint, drop(daw_bit, dnsIntranet),
20+
gateway_ospf), repository.domain_key.mouse(serverData(fileNetwork,
21+
trim_duplex_file), cellTapeDirect, token_tooltip_mashup(
22+
ripcordingMashup)));
23+
module_it = honeypot_driver(client_cold_dvr(593902, ripping_frequency) +
24+
coreLog.joystick(componentUdpLink), windows_expansion_touchscreen);
25+
bashGigabit.external.reality(2, server_hardware_codec.flops.ebookSampling(
26+
ciscNavigationBacklink, table + cleanDriver), indexProtocolIsp);
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
bookCollapseSection: true
3+
weight: 20
4+
---

content/en/docs/example/hidden.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
bookHidden: true
3+
---
4+
5+
# This page is hidden in menu
6+
7+
# Quondam non pater est dignior ille Eurotas
8+
9+
## Latent te facies
10+
11+
Lorem markdownum arma ignoscas vocavit quoque ille texit mandata mentis ultimus,
12+
frementes, qui in vel. Hippotades Peleus [pennas
13+
conscia](http://gratia.net/tot-qua.php) cuiquam Caeneus quas.
14+
15+
- Pater demittere evincitque reddunt
16+
- Maxime adhuc pressit huc Danaas quid freta
17+
- Soror ego
18+
- Luctus linguam saxa ultroque prior Tatiumque inquit
19+
- Saepe liquitur subita superata dederat Anius sudor
20+
21+
## Cum honorum Latona
22+
23+
O fallor [in sustinui
24+
iussorum](http://www.spectataharundine.org/aquas-relinquit.html) equidem.
25+
Nymphae operi oris alii fronde parens dumque, in auro ait mox ingenti proxima
26+
iamdudum maius?
27+
28+
reality(burnDocking(apache_nanometer),
29+
pad.property_data_programming.sectorBrowserPpga(dataMask, 37,
30+
recycleRup));
31+
intellectualVaporwareUser += -5 * 4;
32+
traceroute_key_upnp /= lag_optical(android.smb(thyristorTftp));
33+
surge_host_golden = mca_compact_device(dual_dpi_opengl, 33,
34+
commerce_add_ppc);
35+
if (lun_ipv) {
36+
verticalExtranet(1, thumbnail_ttl, 3);
37+
bar_graphics_jpeg(chipset - sector_xmp_beta);
38+
}
39+
40+
## Fronde cetera dextrae sequens pennis voce muneris
41+
42+
Acta cretus diem restet utque; move integer, oscula non inspirat, noctisque
43+
scelus! Nantemque in suas vobis quamvis, et labori!
44+
45+
var runtimeDiskCompiler = home - array_ad_software;
46+
if (internic > disk) {
47+
emoticonLockCron += 37 + bps - 4;
48+
wan_ansi_honeypot.cardGigaflops = artificialStorageCgi;
49+
simplex -= downloadAccess;
50+
}
51+
var volumeHardeningAndroid = pixel + tftp + onProcessorUnmount;
52+
sector(memory(firewire + interlaced, wired));

0 commit comments

Comments
 (0)