jekyll-attendease 0.6.26d → 0.6.26e

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ebb4b439693d912cd035a3f10d35eba99fb3f7a
4
- data.tar.gz: 78bfc9b241f534fd33d79945bcca288568947a34
3
+ metadata.gz: 8514ba50f31f521220c6ce095b97e241d56d2b9d
4
+ data.tar.gz: cc969ad1eba291537c5082de46a606c17677f546
5
5
  SHA512:
6
- metadata.gz: 18ce2aa1b17a3bc4c9adb6ed8067d2ec638d977ec1ad3075d9497b6c1213a3e20dd650297a226886518d78e829cf31e792574e4fb840164a3201b98020c84c98
7
- data.tar.gz: 78d7151f7312771cc50e20974bbb4f69308e04750f8b283d33ab3853722f761f4e03c26687e65f73f62249584400465ee178986db4cbc85a41992d50c89c6b18
6
+ metadata.gz: f897a374ef09075350456a1954de9d3f3689a0a1c71fbc4d94392313b30610bb6c6b20379e7f1746a655b04c5c5eff2238c91d74f5b9e1aec912517495a365b6
7
+ data.tar.gz: 5e1d1d48dc32e200a276be4d3ccbb935c85f943c30bb30adcffd0db7ce6bcb9ab26d937761aea1d903615c35f68e90de5ec7750d749685236d13292fc0de7612
@@ -9,15 +9,42 @@ module Jekyll
9
9
  site.pages << SitePage.new(site, site.source, page)
10
10
 
11
11
  zones = {}
12
+ keys = [ 'content', 'preferences' ]
12
13
 
13
14
  if page['block_instances'].length
14
15
  # create zone buckets
15
16
  page['block_instances'].each do |i|
17
+ # go through all content
18
+ if site.config.event?
19
+ keys.each do |key|
20
+ i[key].each do |k, v|
21
+ if v.is_a?(String) && v.match(/\{\{/)
22
+ # maintain the {{ t.foo }} variables
23
+ v.gsub!(/(\{\{\s*t\.[a-z_.]+\s*\}\})/, '{% raw %}\1{% endraw %}')
24
+ i[key][k] = Liquid::Template.parse(v).render({ 'event' => site.data['event'] })
25
+ end
26
+ end
27
+ end
28
+ end
16
29
  zones[i['zone']] = [] if zones[i['zone']].nil?
17
30
  zones[i['zone']] << i
18
31
  end
19
32
 
20
- # sort each bucket by widget weight
33
+ # sort each bucket by widget weightILTO="pgib@me.com"
34
+ # ACCESS_KEY_ID="AKIAJYFM5LRNS3YG3MMA"
35
+ # SECRET_ACCESS_KEY="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"
36
+ # SLACK_WEBHOOK_URL="https://hooks.slack.com/services/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"
37
+ # QUIET="yes"
38
+ #
39
+ # #0 0 * * * /usr/local/bin/imapsync --syncinternaldates --host1 mail.me.com --user1 pgib --password1 m0bile42 --ssl1 --authmech1 LOGIN --host2 localhost --user2 pgib@me.com --password2 backup42
40
+ #
41
+ # #0 0 * * * /home/camera/garage/clean_yesterday.sh
42
+ #
43
+ # 0 1 * * * /usr/local/etc/asterisk/backup_asterisk_db.sh >/dev/null 2>/dev/null
44
+ #
45
+ # #* * * * * /home/patrick/bin/keep-my-ip.sh >/dev/null
46
+ # * * * * * /home/patrick/bin/keep-my-ip ZW8Q92H776T13 home
47
+ #
21
48
  zones.each do |k, zone|
22
49
  zone.sort! { |x, y| x['weight'] <=> y['weight'] }
23
50
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AttendeasePlugin
3
- VERSION = '0.6.26d'
3
+ VERSION = '0.6.26e'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-attendease
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.26d
4
+ version: 0.6.26e
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Wood