Skip to content

Instantly share code, notes, and snippets.

@theodesp
Created January 14, 2019 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/9d4b038a9393c1022d7745ce0a5e0995 to your computer and use it in GitHub Desktop.
Save theodesp/9d4b038a9393c1022d7745ce0a5e0995 to your computer and use it in GitHub Desktop.
{{ if eq $.Site.Params.phraseAppEnabled true }}
<script>
window.PHRASEAPP_CONFIG = {
projectId: "<projectId>"
};
(function() {
var phraseapp = document.createElement('script'); phraseapp.type = 'text/javascript'; phraseapp.async = true;
phraseapp.src = ['https://', 'phraseapp.com/assets/in-context-editor/2.0/app.js?', new Date().getTime()].join('');
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(phraseapp, s);
})();
</script>
{{ end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment