Skip to content

Commit

Permalink
added widget changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaykundu777 committed May 16, 2021
1 parent 45e5675 commit 0155b1d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ mailchimp_form_url: https://sujaykundu.us10.list-manage.com/subscribe/post?u=50b
getform_endpoint: 83b703c3-9e47-4df4-ac55-e24d7eb02abc
formspree_email: [email protected]

# manage releases
# releases - widget can be (sidebar, modal or embed)
olvy_organization: devlopr
olvy_widget_type: sidebar

# syntax highlighter
markdown: kramdown
Expand Down
34 changes: 17 additions & 17 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,22 @@
});
}
</script>
<!-- olvy releases -->
<script>
var OlvyConfig = {
organisation: "{{site.olvy_organization}}",
target: "#olvy-target",
type: "modal",
view: {
showSearch: false,
compact: false,
showHeader: true, /* only applies when widget type is embed. you cannot hide header for modal and sidebar widgets */
showUnreadIndicator: true,
unreadIndicatorColor: "#EE6E19FF",
unreadIndicatorPosition: "top-right"
}
};
</script>
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script>
<!-- olvy releases -->
<script>
var OlvyConfig = {
organisation: "{{site.olvy_organization}}",
target: "#olvy-target",
type: "{{site.olvy_widget_type}}",
view: {
showSearch: true,
compact: true,
showHeader: true, /* only applies when widget type is embed. you cannot hide header for modal and sidebar widgets */
showUnreadIndicator: true,
unreadIndicatorColor: "#FFA13AFF",
unreadIndicatorPosition: "top-right"
}
};
</script>
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script>
</body>
</html>
10 changes: 5 additions & 5 deletions _layouts/full-width.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@
var OlvyConfig = {
organisation: "{{site.olvy_organization}}",
target: "#olvy-target",
type: "modal",
type: "{{site.olvy_widget_type}}",
view: {
showSearch: false,
compact: false,
showSearch: true,
compact: true,
showHeader: true, /* only applies when widget type is embed. you cannot hide header for modal and sidebar widgets */
showUnreadIndicator: true,
unreadIndicatorColor: "#EE6E19FF",
unreadIndicatorColor: "#FFA13AFF",
unreadIndicatorPosition: "top-right"
}
};
</script>
<script type="text/javascript" src="https://app.olvy.co/script.js" defer="defer"></script>
</body>
</body>
</html>

0 comments on commit 0155b1d

Please sign in to comment.