Skip to content

Commit

Permalink
Merge remote-tracking branch 'sachin10101998/FLUID-5590'
Browse files Browse the repository at this point in the history
* sachin10101998/FLUID-5590:
  FLUID-5590: updated post layout with original scripts partial and styles partial names
  FLUID-5590: fixed UIO when site deployed through non root url using docpad partials plugin
  FLUID-5590: fixed style and script links in non root folder
  • Loading branch information
jobara committed Mar 12, 2020
2 parents a5bf590 + e0c088d commit 96771c3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/layouts/post.html.hb.eco
@@ -1,8 +1,8 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%- @partial('scripts') %>
<%- @partial('styles') %>
<%- @partial('scripts', {nonrooturl:'../'}) %>
<%- @partial('styles', {nonrooturl:'../'}) %>

<title><%= @document.title %> | fluid</title>

Expand Down
2 changes: 0 additions & 2 deletions src/partials/scripts.html

This file was deleted.

2 changes: 2 additions & 0 deletions src/partials/scripts.html.eco
@@ -0,0 +1,2 @@
<script src="<%=@nonrooturl or ''%>lib/infusion/infusion-all.js"></script>
<script src="<%=@nonrooturl or ''%>js/uio.js"></script>
9 changes: 0 additions & 9 deletions src/partials/styles.html

This file was deleted.

9 changes: 9 additions & 0 deletions src/partials/styles.html.eco
@@ -0,0 +1,9 @@
<link href="<%=@nonrooturl or ''%>lib/infusion/src/framework/preferences/css/Enactors.css" rel="stylesheet">
<link href="<%=@nonrooturl or ''%>lib/infusion/src/framework/preferences/css/PrefsEditor.css" rel="stylesheet">
<link href="<%=@nonrooturl or ''%>lib/infusion/src/framework/preferences/css/SeparatedPanelPrefsEditor.css" rel="stylesheet">
<link href="<%=@nonrooturl or ''%>lib/foundation/css/foundation.css" rel="stylesheet">
<link href="<%=@nonrooturl or ''%>css/style.css" rel="stylesheet">
<link href="<%=@nonrooturl or ''%>css/contrast.css" rel="stylesheet">

<link href="https://fonts.googleapis.com/css?family=Roboto+Slab:400,300,700,100" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet">

0 comments on commit 96771c3

Please sign in to comment.