-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_config.yml
154 lines (143 loc) · 4.3 KB
/
_config.yml
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# Site settings.
# This is where you can put site-wide settings.
# Any values placed here are globally accessible
# from any template context via the `site` key.
site:
title: Breeze
email: [email protected]
description: > # this means to ignore newlines until "baseurl:"
Your website's description goes here.
baseurl: "" # the subpath of your site, e.g. /blog
url: "http://reptar-theme-breeze.netlify.com" # the base hostname & protocol for your site
# Where things are.
# If you have a unique layout for your site and want to
# change where Reptar looks for certain files you can change
# them here. All files are relative to where the `_config.yml`
# is found.
path:
source: ./
destination: ./_site
plugins: ./_plugins
themes: ./_themes/breeze
data: ./_data
# Individual File configuration.
file:
# What key from a File's frontmatter Reptar should use
# as the property to grab the URL of the file from.
url_key: url
# The format that your date values are formatted as.
# This is used when parsing date objects.
# This current format supports dates like 2016-2-28
# It uses moment.js under the head and its format syntax as well:
# http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
# Apply frontmatter values to a File based upon a defined scope.
# If the scope matches a File then the default values are applied if they
# are not already set.
defaults:
-
scope:
# Any file in this path will have the default values applied.
path: ./_content/_pages
values:
template: page
permalink: /:title/
-
scope:
# Any file in this path will have the default values applied.
# Because this path is more specific it will over-write the previous
# defaults.
path: ./_content/_posts
values:
template: post
permalink: /:title/
-
scope:
# Any file with this matching metadata will have the default values applied.
metadata:
draft: true
values:
template: draft
# Filter out Files.
filters:
# If any of the metadata values match then the File is filtered out.
metadata:
draft: true
# If the date is in the future then it is filtered out.
future_date:
# Customize what key we should use to pull the date value from.
key: date
# This is where you configure your collections of content.
# For more details refer to the Collections documentation.
collections:
post:
path: ./_content/_posts
template: index
page_size: 6
sort:
key: date
order: descending
permalink:
index: /
page: /page/:page/
page:
path: ./_content/_pages
tag:
metadata: tags
template: tag
page_size: 6
sort:
key: date
order: descending
permalink:
index: /tag/:metadata/
page: /tag/:metadata/:page/
# Current theme.
# What theme your Reptar site should use when building your site.
theme: 'breeze'
# If we should remove the compile destination folder before writing.
clean_destination: false
# Slug options.
# Options passed to node-slug
slug:
lower: true
# Markdown.
# This lets you customize how markdown is handled.
markdown:
# What file extensions we should recognize as a markdown file.
extensions:
- markdown
- mkdown
- mkdn
- mkd
- md
# Options given directly when creating our markdown parser.
# Documentation here:
# https://github.com/markdown-it/markdown-it#init-with-presets-and-options
options:
preset: 'commonmark'
highlight: true
# Serving.
# When running `reptar serve` what settings should be used.
server:
port: 8080
host: 127.0.0.1
baseurl: "" # does not include hostname
# Only build files that have changed.
# This is a performance improvement to the time it takes to build your site.
incremental: true
# Where files created via `reptar new` should be placed.
new_file_permalink: '/_content/_posts/:date|YYYY-:date|MM/:title.md'
# What plugins you want enabled and what configuration settings they should have.
plugins:
html-minifier:
enabled: false
options:
collapseWhitespace: true
collapseBooleanAttributes: true
removeAttributeQuotes: true
excerpt:
enabled: true
options:
textOnly: true
charLimit: 250