Skip to content
Permalink
Browse files
  • Loading branch information
ahgittin committed Jan 7, 2022
2 parents 3d44106 + c8a8782 commit 7d0c88ed1f3693f83287aafc390aa52f4977d796
Showing 2 changed files with 12 additions and 2 deletions.
@@ -187,12 +187,15 @@ def generate(site)
# (but note, in the context hash map 'data' on pages is promoted, so you access it like {{ page.menu }})
end

@@unique_path_id = 1001

# processes liquid tags, e.g. in a link or path object
def render_liquid_with_page(site, page, content, path=nil)
return content unless page
if (!path)
# path must be unique to the content ... ideally use a hash, but for now just:
path = "random-#{rand(1000000)}"
# path must be unique to the content and page ... ideally use a hash, but for now just:
this_id = @@unique_path_id+=1
path = "one-off-path-#{this_id}"
end
info = { :filters => [Jekyll::Filters], :registers => { :site => site, :page => page } }
page.render_liquid(content, site.site_payload, info, path)
@@ -61,3 +61,10 @@ org.ops4j.pax.web.ssl.clientauthneeded=false
replacing the passwords with appropriate values, and restart the server. Note the keystore location is relative to
the installation root, but a fully qualified path can also be given, if it is desired to use some separate pre-existing
store.

To enable HTTPS _only_, i.e. to disable HTTP, add the following line to this file:

{% highlight properties %}
org.osgi.service.http.enabled=false
{% endhighlight %}

0 comments on commit 7d0c88e

Please sign in to comment.