You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marvin.apache.org by yi...@apache.org on 2018/11/28 18:26:14 UTC

[incubator-marvin-website] 31/31: Correct theme for Jekyll v3.1

This is an automated email from the ASF dual-hosted git repository.

yifeizhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-marvin-website.git

commit 571c62c18af983e1c22a948389d450df804aef39
Author: Stian Soiland-Reyes <st...@apache.org>
AuthorDate: Wed Oct 5 15:05:24 2016 +0100

    Correct theme for Jekyll v3.1
    
    > You are currently using the Jekyll Bootstrap framework
    which has a known incompatibility with Jekyll v3.1. To fix this
    incompatibility, change `page.theme.name` in `_includes/JB/setup`
    to `layout.theme.name`. Your site may not build properly until this
    change has been applied.
    
    For more information, see http://jekyllrb.com/docs/upgrading/2-to-3/#layout-metadata.
    
    Closes #8
    Fixes #7
---
 site/_includes/JB/setup | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/site/_includes/JB/setup b/site/_includes/JB/setup
index efcd84b..03d0966 100644
--- a/site/_includes/JB/setup
+++ b/site/_includes/JB/setup
@@ -16,7 +16,7 @@
     {% if site.JB.ASSET_PATH %}
       {% assign ASSET_PATH = site.JB.ASSET_PATH %}
     {% else %}
-      {% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ page.theme.name }}{% endcapture %}
+      {% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ layout.theme.name }}{% endcapture %}
     {% endif %}  
   {% endif %}
-{% endcapture %}{% assign jbcache = nil %}
\ No newline at end of file
+{% endcapture %}{% assign jbcache = nil %}