File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2929 %}
3030
3131 {% if include.absolute %}
32- {% assign url = site.url | append: site.base_url | append: url %}
32+ {% assign url = site.url | append: site.baseurl | append: url %}
3333 {% else %}
34- {% assign url = site.base_url | append: url %}
34+ {% assign url = site.baseurl | append: url %}
3535 {% endif %}
3636 {% endunless %}
3737{%- endif -%}
Original file line number Diff line number Diff line change @@ -151,8 +151,10 @@ branch() {
151151 fi
152152}
153153
154- # # Build a gem package
154+ # # Build a Gem package
155155build_gem () {
156+ git checkout " $PROD_BRANCH "
157+
156158 # Remove unnecessary theme settings
157159 sed -i " s/^img_cdn:.*/img_cdn:/;s/^avatar:.*/avatar:/" _config.yml
158160 rm -f ./* .gem
@@ -168,6 +170,9 @@ build_gem() {
168170
169171 # restore the dist files for future development
170172 mkdir -p " $JS_DIST " && cp " $BACKUP_PATH " /* " $JS_DIST "
173+
174+ # back to the default branch
175+ git checkout " $DEFAULT_BRANCH "
171176}
172177
173178main () {
You can’t perform that action at this time.
0 commit comments