Skip to content

Commit

Permalink
Change to use BaseURL
Browse files Browse the repository at this point in the history
Fixes #22
  • Loading branch information
mattstratton committed Sep 25, 2016
1 parent 175dade commit 512ef14
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/footer_scripts.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/js/bootstrap.min.js"></script>
<script src="/js/bootstrap3_player.js"></script>
<script src="/js/jssocials.min.js"></script>
<script src="{{ .Site.BaseURL }}js/bootstrap.min.js"></script>
<script src="{{ .Site.BaseURL }}js/bootstrap3_player.js"></script>
<script src="{{ .Site.BaseURL }}js/jssocials.min.js"></script>
<script>
$("#share").jsSocials({
shares: ["facebook", "linkedin", "pinterest",
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head/seo/open_graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{ if (eq (slicestr . 0 4) "http") }}
<meta property="og:image" content="{{ . }}" file= {{ slicestr . 0 4 }}/>
{{ else }}
<meta property="og:image" content="{{ $.Site.Params.homepage}}{{ . }}" />
<meta property="og:image" content="{{ $.Site.BaseURL}}{{ . }}" />
{{ end }}
{{ end }}{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head/seo/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{ if (eq (slicestr . 0 4) "http") }}
<meta itemprop="image" content="{{ . }}">
{{ else }}
<meta itemprop="image" content="{{ $.Site.Params.homepage}}{{ . }}">
<meta itemprop="image" content="{{ $.Site.BaseURL}}{{ . }}">
{{ end }}
{{ end }}{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head/seo/twitter_cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{ if (eq (slicestr (index . 0) 0 4) "http") }}
<meta name="twitter:image:src" content="{{ index . 0 }}"/>
{{ else }}
<meta name="twitter:image:src" content="{{ $.Site.Params.homepage}}{{ index . 0 }}"/>
<meta name="twitter:image:src" content="{{ $.Site.BaseURL}}{{ index . 0 }}"/>
{{ end }}
{{ else }}
<meta name="twitter:card" content="summary"/>
Expand Down
12 changes: 6 additions & 6 deletions layouts/partials/head_includes.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!-- Bootstrap -->
<link href="/css/site.css" rel="stylesheet">
<link href="/css/bootstrap.css" rel="stylesheet">
<link href="/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="/css/bootstrap3_player.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/site.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/bootstrap.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/bootstrap3_player.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato|Raleway" rel="stylesheet">
<link type="text/css" href="/css/jssocials.css" rel="stylesheet" />
<link type="text/css" href="/css/jssocials-theme-plain.css" rel="stylesheet" />
<link href="{{ .Site.BaseURL }}css/jssocials.css" rel="stylesheet" type="text/css" />
<link href="{{ .Site.BaseURL }}css/jssocials-theme-plain.css" rel="stylesheet" type="text/css" />

{{ partial "google-analytics" . }}
4 changes: 2 additions & 2 deletions layouts/section/episode.rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>{{ .Site.Title }}</title>
<atom:link href="{{ .Site.Params.homepage }}/episode/index.xml" rel="self" type="application/rss+xml" />
<link>{{ .Site.Params.homepage }}</link>
<atom:link href="{{ .Site.BaseURL }}/episode/index.xml" rel="self" type="application/rss+xml" />
<link>{{ .Site.BaseURL }}</link>
<lastBuildDate>{{ dateFormat "Mon, 2 Jan 2006 15:04:05 -0700" .Date }}</lastBuildDate>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
Expand Down

0 comments on commit 512ef14

Please sign in to comment.