-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/mattstratton/castanet
- Loading branch information
Showing
9 changed files
with
83 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ dist | |
.DS_Store | ||
.Ulysses-Group.plist | ||
public/ | ||
.hugo_build.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,65 @@ | ||
<script src='{{ "js/castanet-min.js" | absURL }}'></script> | ||
<script> | ||
$("#share").jsSocials({ | ||
shares: [ | ||
{ | ||
share: "facebook", | ||
logo: "fab fa-facebook", | ||
}, | ||
{ | ||
share: "twitter", // name of share | ||
label: "Tweet", // share button text (optional) | ||
logo: "fab fa-twitter", | ||
// The twitter link can be based in short ("arresteddevops") or | ||
// long form ("https://twitter.com/arresteddevops") | ||
// In long form we need to strip everything but the twitter handle | ||
// for the 'via' parameter | ||
{{ if (isset .Site.Params.social "twitter" )}} | ||
{{ if gt (len (urls.Parse .Site.Params.social.twitter).Scheme) 0 }} | ||
via: "{{ trim ((urls.Parse .Site.Params.social.twitter).Path) "/" }}", // custom twitter sharing param 'via' (optional) | ||
{{ else }} | ||
via: "{{ .Site.Params.social.twitter }}", // custom twitter sharing param 'via' (optional) | ||
{{ end }} | ||
$("#share").jsSocials({ | ||
shares: [ | ||
{ | ||
share: "facebook", | ||
logo: "fab fa-facebook", | ||
}, | ||
{ | ||
share: "twitter", // name of share | ||
label: "Tweet", // share button text (optional) | ||
logo: "fab fa-twitter", | ||
// The twitter link can be based in short ("arresteddevops") or | ||
// long form ("https://twitter.com/arresteddevops") | ||
// In long form we need to strip everything but the twitter handle | ||
// for the 'via' parameter | ||
{{ if (isset .Site.Params.social "twitter" )}} | ||
{{ if gt (len (urls.Parse .Site.Params.social.twitter).Scheme) 0 }} | ||
via: "{{ trim ((urls.Parse .Site.Params.social.twitter).Path) "/" }}", // custom twitter sharing param 'via' (optional) | ||
{{ else }} | ||
via: "{{ .Site.Params.social.twitter }}", // custom twitter sharing param 'via' (optional) | ||
{{ end }} | ||
url: "{{ .Permalink }}", | ||
text: "{{ title .Title }}" | ||
}, | ||
{ | ||
share: "linkedin", | ||
logo: "fab fa-linkedin" | ||
}, | ||
{ | ||
share: "pinterest", | ||
logo: "fab fa-pinterest" | ||
} | ||
], | ||
}); | ||
{{ end }} | ||
url: "{{ .Permalink }}", | ||
text: "{{ title .Title }}" | ||
}, | ||
{ | ||
share: "linkedin", | ||
logo: "fab fa-linkedin" | ||
}, | ||
{ | ||
share: "pinterest", | ||
logo: "fab fa-pinterest" | ||
} | ||
], | ||
}); | ||
</script> | ||
|
||
<script> | ||
$(document).ready(function() { | ||
|
||
$('.transcript').hide(); | ||
$(".hide_transcript").hide(); | ||
$(".hide_transcript").click(function () { | ||
$(".transcript").hide("fast"); | ||
$(".show_transcript").show(); | ||
$(".hide_transcript").hide(); | ||
}); | ||
$(document).ready(function() { | ||
|
||
$(".show_transcript").click(function () { | ||
$(".transcript").show(500); | ||
$(".hide_transcript").show(); | ||
$(".show_transcript").hide(); | ||
}); | ||
$('.transcript').hide(); | ||
$(".hide_transcript").hide(); | ||
$(".hide_transcript").click(function() { | ||
$(".transcript").hide("fast"); | ||
$(".show_transcript").show(); | ||
$(".hide_transcript").hide(); | ||
}); | ||
|
||
}); | ||
$(".show_transcript").click(function() { | ||
$(".transcript").show(500); | ||
$(".hide_transcript").show(); | ||
$(".show_transcript").hide(); | ||
}); | ||
|
||
}); | ||
</script> | ||
|
||
<script> | ||
var player = new MediaElementPlayer('player2', { | ||
features: ['playpause', 'current', 'progress', 'duration', 'volume','speed'], | ||
defaultSpeed: 1.0, | ||
// other configuration elements | ||
}); | ||
</script> | ||
|
||
|
||
|
||
{{ template "_internal/google_analytics_async.html" . }} | ||
var player = new MediaElementPlayer('player2', { | ||
features: ['playpause', 'current', 'progress', 'duration', 'volume', 'speed'], | ||
defaultSpeed: 1.0, | ||
// other configuration elements | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- Google Analytics UA --> | ||
<script type="application/javascript"> | ||
var doNotTrack = false; | ||
if (!doNotTrack) { | ||
window.ga = window.ga || function() { | ||
(ga.q = ga.q || []).push(arguments) | ||
}; | ||
ga.l = +new Date; | ||
ga('create', '{{ .Site.Params.GoogleAnalytics_UA }}', 'auto'); | ||
|
||
ga('send', 'pageview'); | ||
} | ||
</script> | ||
<script async src='https://www.google-analytics.com/analytics.js'></script> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters