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)
|
||||
method_source (0.9.0)
|
||||
mini_portile2 (2.3.0)
|
||||
nanoc (4.10.0)
|
||||
nanoc (4.10.1)
|
||||
addressable (~> 2.5)
|
||||
cri (~> 2.15)
|
||||
ddmemoize (~> 1.0)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@import "includes/variables";
|
||||
|
||||
@import "../../node_modules/bulma/bulma";
|
||||
@import "../../node_modules/bulma-divider/divider";
|
||||
@import "../../../node_modules/bulma/bulma";
|
||||
@import "../../../node_modules/bulma-divider/divider";
|
||||
|
||||
.nav-right {
|
||||
flex: none;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
91-92:
|
||||
- rol: Voorzitter
|
||||
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
|
||||
def data_from(identifier)
|
||||
@items["/data/#{identifier}"].attributes[:data]
|
||||
@items["/data/#{identifier}.yaml"].attributes
|
||||
end
|
||||
end
|
||||
|
|
10
nanoc.yaml
10
nanoc.yaml
|
@ -75,7 +75,15 @@ data_sources:
|
|||
# be “legacy”, primarily used by older Nanoc sites.
|
||||
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.
|
||||
checks:
|
||||
|
|
Loading…
Reference in a new issue