Simplify stuff
This commit is contained in:
parent
56ba8cd96c
commit
04461208e9
7 changed files with 14 additions and 23 deletions
1
.yarnrc
1
.yarnrc
|
@ -1 +0,0 @@
|
||||||
--modules-folder content/node_modules
|
|
|
@ -55,7 +55,7 @@ GEM
|
||||||
lumberjack (1.0.13)
|
lumberjack (1.0.13)
|
||||||
method_source (0.9.0)
|
method_source (0.9.0)
|
||||||
mini_portile2 (2.3.0)
|
mini_portile2 (2.3.0)
|
||||||
nanoc (4.10.0)
|
nanoc (4.10.1)
|
||||||
addressable (~> 2.5)
|
addressable (~> 2.5)
|
||||||
cri (~> 2.15)
|
cri (~> 2.15)
|
||||||
ddmemoize (~> 1.0)
|
ddmemoize (~> 1.0)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@import "includes/variables";
|
@import "includes/variables";
|
||||||
|
|
||||||
@import "../../node_modules/bulma/bulma";
|
@import "../../../node_modules/bulma/bulma";
|
||||||
@import "../../node_modules/bulma-divider/divider";
|
@import "../../../node_modules/bulma-divider/divider";
|
||||||
|
|
||||||
.nav-right {
|
.nav-right {
|
||||||
flex: none;
|
flex: none;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
91-92:
|
91-92:
|
||||||
- rol: Voorzitter
|
- rol: Voorzitter
|
||||||
naam: Willems Vincent
|
naam: Willems Vincent
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
class DataDataSource < Nanoc::DataSource
|
|
||||||
identifier :data
|
|
||||||
|
|
||||||
def items
|
|
||||||
item = new_item(
|
|
||||||
'',
|
|
||||||
# TODO: Fix creating a wrapper object
|
|
||||||
# Right now circumventing a bug which requires k,v pairs
|
|
||||||
# instead of lists. Else the associated attributes are
|
|
||||||
# indexed by an integer instead of a string/symbol
|
|
||||||
{ data: YAML.load_file('data/bestuur.yaml') },
|
|
||||||
Nanoc::Identifier.new('/data/bestuur')
|
|
||||||
)
|
|
||||||
|
|
||||||
[item]
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,5 +1,5 @@
|
||||||
module DataHelper
|
module DataHelper
|
||||||
def data_from(identifier)
|
def data_from(identifier)
|
||||||
@items["/data/#{identifier}"].attributes[:data]
|
@items["/data/#{identifier}.yaml"].attributes
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
10
nanoc.yaml
10
nanoc.yaml
|
@ -75,7 +75,15 @@ data_sources:
|
||||||
# be “legacy”, primarily used by older Nanoc sites.
|
# be “legacy”, primarily used by older Nanoc sites.
|
||||||
identifier_type: full
|
identifier_type: full
|
||||||
-
|
-
|
||||||
type: data
|
type: filesystem
|
||||||
|
items_root: /data
|
||||||
|
content_dir: data
|
||||||
|
layouts_dir: null
|
||||||
|
-
|
||||||
|
type: filesystem
|
||||||
|
items_root: /node_modules
|
||||||
|
content_dir: node_modules
|
||||||
|
layouts_dir: null
|
||||||
|
|
||||||
# Configuration for the “check” command, which run unit tests on the site.
|
# Configuration for the “check” command, which run unit tests on the site.
|
||||||
checks:
|
checks:
|
||||||
|
|
Loading…
Reference in a new issue