Skip to content

Commit 32f35b4

Browse files
parkrjekyllbot
authored andcommitted
Add Owner#to_liquid (#161)
Merge pull request 161
1 parent cd1fb27 commit 32f35b4

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

lib/jekyll-github-metadata/owner.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def to_h
6868
end
6969
alias_method :to_hash, :to_h
7070
def_delegator :to_h, :to_json, :to_json
71+
def_delegator :to_h, :to_liquid, :to_liquid
7172

7273
def_delegator :to_h, :to_s, :to_s
7374
alias_method :to_str, :to_s

spec/test-site/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</head>
1010
<body>
1111
<div id="output"></div>
12-
<script src="{{ "renderjson.js" | absolute_url }}" type="text/javascript" charset="utf-8"></script>
12+
<script src="renderjson.js" type="text/javascript" charset="utf-8"></script>
1313
<script>
1414
var site = {{ site.github | jsonify }};
1515
document.getElementById("output").appendChild(renderjson.set_show_to_level(2)(site));

spec/test-site/subvalues.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
---
3+
4+
owner: {{ site.github.owner }}

0 commit comments

Comments
 (0)