-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.scriban
More file actions
107 lines (92 loc) · 3.21 KB
/
config.scriban
File metadata and controls
107 lines (92 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Site Settings
author = "Alexandre Mutel"
title = "RetroC64"
description = "RetroC64: Modern .NET development for the Commodore 64"
basepath = ""
baseurl = baseurl ?? "https://retroc64.github.io"
# Use `base` as a default layout
layout = "base"
# Github repository
github_user = "RetroC64"
github_repo_url = "https://github.com/RetroC64/retroc64.github.io/"
# Enable search indexing
with search
enable = true
# engine = "lunr"
# worker = true
excludes.add ["/404.md", "/banner.md"]
end
# Configure OpenGraph and Twitter cards
with cards
with twitter
enable = true
card = "summary_large_image"
user = "xoofx"
image = "/img/RetroC64-Banner.png"
end
with og
enable = true
image = "/img/RetroC64-Banner.png"
end
end
# Resources bundle
with bundle
bootstrap = resource "npm:bootstrap" "5.3.8"
bootstrap_icons = resource "npm:bootstrap-icons" "1.13.1"
tocbot = resource "npm:tocbot" "4.36.4"
anchorjs = resource "npm:anchor-js" "5.0.0"
prismjs = resource "npm:prismjs" "1.30.0"
#mermaid = resource "npm:mermaid" "11.12.1"
scss.includes.add bootstrap.path + "/scss"
scss.includes.add bootstrap_icons.path + "/font"
# css files
css tocbot "/dist/tocbot.css"
css "/css/prism.css"
#css bootstrap_icons "/font/bootstrap-icons.min.css"
css "/css/main.scss"
# js files
js bootstrap "/dist/js/bootstrap.bundle.min.js"
js anchorjs "/anchor.min.js"
js tocbot "/dist/tocbot.min.js"
js prismjs "/prism.js"
js prismjs "/components/prism-shell-session.min.js"
js prismjs "/components/prism-clike.min.js"
js prismjs "/components/prism-c.min.js"
js prismjs "/components/prism-cpp.min.js"
js prismjs "/components/prism-csharp.min.js"
js prismjs "/components/prism-asm6502.min.js"
js prismjs "/components/prism-json.min.js"
js prismjs "/plugins/toolbar/prism-toolbar.min.js"
js prismjs "/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js"
#js mermaid "/dist/mermaid.min.js"
js "/js/main.js"
# copy font files
content bootstrap_icons "/font/fonts/bootstrap-icons.*" "/fonts/"
# concatenate css/js files
scss.use_dart_sass = true # Use Dart Sass for SCSS compilation
concat = true
minify = true
end
with attributes
# match "/blog/**/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]*.md" {
# url: "/:section/:year/:month/:day/:title:output_ext"
#}
end
with builtins
# render tags from a post
# func render_tags(post)
# if !post.tags; ret null; end;
# result = post.tags.size == 1 ? '<i class="bi bi-tag"></i>' : '<i class="bi bi-tags"></i>'
# for tag in post.tags
# result = result + (for.first?'':', ') + '<a href="' + site.taxonomies["tags"].terms[tag].url + '">' + tag + '</a>'
# end
# ret result
# end
end
with markdown
# Use Bootstrap img_fluid for all Markdown image links
options.css_img_attr = "img-fluid"
end
# Configure some HTML defaults
html.head.title = do; ret (page.title == "Home" ? site.title : page.title + " | " + site.title); end
html.attributes = 'data-bs-theme="dark" lang="en" itemscope itemtype="http://schema.org/WebPage"'