Simplify stuff

This commit is contained in:
Lorin Werthen 2018-10-16 23:25:46 +02:00
parent 56ba8cd96c
commit 04461208e9
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0
7 changed files with 14 additions and 23 deletions

View file

@ -1 +0,0 @@
--modules-folder content/node_modules

View file

@ -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)

View file

@ -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;

View file

@ -1,3 +1,4 @@
---
91-92: 91-92:
- rol: Voorzitter - rol: Voorzitter
naam: Willems Vincent naam: Willems Vincent

View file

@ -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

View file

@ -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

View file

@ -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: