fix gitlab pages
This commit is contained in:
parent
c7fec6d158
commit
fd1895ccb4
2 changed files with 15 additions and 15 deletions
|
@ -6,10 +6,10 @@ variables:
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
script:
|
script:
|
||||||
- hugo -s exampleSite
|
- hugo -s exampleSite -d ../public -b "/themen-hugo-35c3-reveal/"
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- exampleSite/public
|
- public
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
{{- $reveal_cdn := $.Param "reveal_hugo.reveal_cdn" | default "/reveal-js" -}}
|
{{- $reveal_cdn := $.Param "reveal_hugo.reveal_cdn" | default "reveal-js" -}}
|
||||||
{{- $highlight_cdn := $.Param "reveal_hugo.highlight_cdn" | default "/highlight-js/src/styles" -}}
|
{{- $highlight_cdn := $.Param "reveal_hugo.highlight_cdn" | default "highlight-js/src/styles" -}}
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
@ -10,24 +10,24 @@
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||||
<link rel="stylesheet" href="{{ $reveal_cdn }}/css/reveal.css">
|
<link rel="stylesheet" href="{{ $reveal_cdn | absURL }}/css/reveal.css">
|
||||||
<!-- Theme used for presentation -->
|
<!-- Theme used for presentation -->
|
||||||
{{- $theme := $.Param "reveal_hugo.theme" | default "black" -}}
|
{{- $theme := $.Param "reveal_hugo.theme" | default "black" -}}
|
||||||
{{- $custom_theme := $.Param "reveal_hugo.custom_theme" -}}
|
{{- $custom_theme := $.Param "reveal_hugo.custom_theme" -}}
|
||||||
{{- if $custom_theme -}}
|
{{- if $custom_theme -}}
|
||||||
<link rel="stylesheet" href="{{ $custom_theme | relURL }}" id="theme">
|
<link rel="stylesheet" href="{{ $custom_theme | relURL }}" id="theme">
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
<link rel="stylesheet" href="{{ $reveal_cdn }}/css/theme/{{ $theme }}.css" id="theme">
|
<link rel="stylesheet" href="{{ $reveal_cdn | absURL }}/css/theme/{{ $theme }}.css" id="theme">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<!-- Theme used for syntax highlighting of code -->
|
<!-- Theme used for syntax highlighting of code -->
|
||||||
{{- $highlight_theme := $.Param "reveal_hugo.highlight_theme" | default "default" -}}
|
{{- $highlight_theme := $.Param "reveal_hugo.highlight_theme" | default "default" -}}
|
||||||
<link rel="stylesheet" href="{{ $highlight_cdn }}/{{ $highlight_theme }}.css">
|
<link rel="stylesheet" href="{{ $highlight_cdn | absURL }}/{{ $highlight_theme }}.css">
|
||||||
<!-- Printing and PDF exports -->
|
<!-- Printing and PDF exports -->
|
||||||
<script>
|
<script>
|
||||||
var link = document.createElement( 'link' );
|
var link = document.createElement( 'link' );
|
||||||
link.rel = 'stylesheet';
|
link.rel = 'stylesheet';
|
||||||
link.type = 'text/css';
|
link.type = 'text/css';
|
||||||
link.href = window.location.search.match( /print-pdf/gi ) ? '{{ $reveal_cdn}}/css/print/pdf.css' : '{{ $reveal_cdn }}/css/print/paper.css';
|
link.href = window.location.search.match( /print-pdf/gi ) ? '{{ $reveal_cdn | absURL }}/css/print/pdf.css' : '{{ $reveal_cdn | absURL }}/css/print/paper.css';
|
||||||
document.getElementsByTagName( 'head' )[0].appendChild( link );
|
document.getElementsByTagName( 'head' )[0].appendChild( link );
|
||||||
</script>
|
</script>
|
||||||
<!-- To insert markup before the closing head tag for all presentations,
|
<!-- To insert markup before the closing head tag for all presentations,
|
||||||
|
@ -53,17 +53,17 @@
|
||||||
</div>
|
</div>
|
||||||
<script type="application/json" id="reveal-hugo-site-params">{{ jsonify .Site.Params.reveal_hugo | safeJS }}</script>
|
<script type="application/json" id="reveal-hugo-site-params">{{ jsonify .Site.Params.reveal_hugo | safeJS }}</script>
|
||||||
<script type="application/json" id="reveal-hugo-page-params">{{ jsonify .Page.Params.reveal_hugo | safeJS }}</script>
|
<script type="application/json" id="reveal-hugo-page-params">{{ jsonify .Page.Params.reveal_hugo | safeJS }}</script>
|
||||||
<script type="text/javascript"> window.revealHugoDependencies = { dependencies: [ { src: '{{ $reveal_cdn }}/lib/js/classList.js', condition: function() { return !document.body.classList; } },
|
<script type="text/javascript"> window.revealHugoDependencies = { dependencies: [ { src: '{{ $reveal_cdn | absURL }}/lib/js/classList.js', condition: function() { return !document.body.classList; } },
|
||||||
{ src: '{{ $reveal_cdn }}/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
{ src: '{{ $reveal_cdn | absURL }}/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
||||||
{ src: '{{ $reveal_cdn }}/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
{ src: '{{ $reveal_cdn | absURL }}/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
||||||
{ src: '{{ $reveal_cdn }}/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
|
{ src: '{{ $reveal_cdn | absURL }}/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
|
||||||
{ src: '{{ $reveal_cdn }}/plugin/zoom-js/zoom.js', async: true },
|
{ src: '{{ $reveal_cdn | absURL }}/plugin/zoom-js/zoom.js', async: true },
|
||||||
// the notes plugin can't run off the CDN b/c the HTML file isn't there
|
// the notes plugin can't run off the CDN b/c the HTML file isn't there
|
||||||
{ src: '{{ "reveal-js/plugin/notes/notes.js" | relURL }}', async: true }
|
{ src: '{{ "reveal-js/plugin/notes/notes.js" | relURL }}', async: true }
|
||||||
]};
|
]};
|
||||||
</script>
|
</script>
|
||||||
<script src="{{ $reveal_cdn }}/lib/js/head.min.js"></script>
|
<script src="{{ $reveal_cdn | absURL }}/lib/js/head.min.js"></script>
|
||||||
<script src="{{ $reveal_cdn }}/js/reveal.js"></script>
|
<script src="{{ $reveal_cdn | absURL }}/js/reveal.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// Hugo lowercases all params and Reveal.js needs camelcase
|
// Hugo lowercases all params and Reveal.js needs camelcase
|
||||||
// So params in Hugo must be stored in snakecase and we camelize them here
|
// So params in Hugo must be stored in snakecase and we camelize them here
|
||||||
|
|
Loading…
Reference in a new issue