Skip to content

Commit

Permalink
Merge pull request kakawait#28 from kakawait/enhancement/remove-swiftype
Browse files Browse the repository at this point in the history
Remove switfype from code
  • Loading branch information
kakawait authored Nov 13, 2016
2 parents c05bb02 + a1453f7 commit db8bee6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ canonifyurls = true
# The link at the right of the header is customizable
# You can add a link (as an icon) at the right of the header instead of the author's gravatar image or author's picture.
# By default, author's gravatar or author's picture is displayed.
# E.g to display a shortcut to open swiftype search window :
# url: /#search
# icon: search
# class: st-search-show-outputs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ categories:
tags:
- hexo theme
- responsive
- swiftype
- gravatar
- disqus
- google analytics
Expand Down
9 changes: 0 additions & 9 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,13 @@

{{ with .Params.thumbnailImage }}
<meta property="og:image" content="{{ . | absURL }}">
{{ if $.Site.Params.swiftype_install_key }}
<meta class="swiftype" name="image" data-type="enum" content="{{ . | absURL }}">
{{ end }}
{{ end }}
{{ with .Params.coverImage }}
<meta property="og:image" content="{{ . | absURL }}">
{{ if $.Site.Params.swiftype_install_key }}
<meta class="swiftype" name="image" data-type="enum" content="{{ . | absURL }}">
{{ end }}
{{ end }}
{{ with .Params.gallery }}
{{ range . }}
<meta property="og:image" content="{{ range first 1 (split . " ") }}{{ . | absURL }}{{ end }}">
{{ if $.Site.Params.swiftype_install_key }}
<meta class="swiftype" name="image" data-type="enum" content="{{ range first 1 (split . " ") }}{{ . | absURL }}{{ end }}">
{{ end }}
{{ end }}
{{ end }}

Expand Down
10 changes: 0 additions & 10 deletions layouts/partials/script.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,6 @@
{{ end }}
{{ end }}
{{ end }}
{{ if $.Site.Params.swiftype_install_key }}
<script type="text/javascript">
(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');

_st('install','{{ $.Site.Params.swiftype_install_key }}','2.0.0');
</script>
{{ end }}
{{ with .Site.Params.algolia }}
{{ if (isset . "appId") | and (isset . "apiKey") | and (isset . "indexName") }}
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.1/moment-with-locales.min.js"></script>
Expand Down

0 comments on commit db8bee6

Please sign in to comment.