Skip to content

Commit

Permalink
zz
Browse files Browse the repository at this point in the history
  • Loading branch information
chai2010 committed Jun 18, 2024
1 parent b434f8f commit 9f9a0a7
Show file tree
Hide file tree
Showing 45 changed files with 19 additions and 19 deletions.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

var PERMANENT_URL_PREFIX = './static/talk/';
var PERMANENT_URL_PREFIX = './static/present/';

var SLIDE_CLASSES = ['far-past', 'past', 'current', 'next', 'far-next'];

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions pkg/render/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
//go:embed tmpl/page.html
var tmplPage string

//go:embed tmpl/talk.html
var tmplTalk string
//go:embed tmpl/present.html
var tmplPresent string

//go:embed tmpl/action.tmpl
var tmplAction string
Expand Down
2 changes: 1 addition & 1 deletion pkg/render/slide.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (p *BookRendor) renderTalkPages(path string) error {
return err
}

t := template.Must(present.Template().Parse(tmplTalk))
t := template.Must(present.Template().Parse(tmplPresent))
t = template.Must(t.Parse(tmplAction))

var buf bytes.Buffer
Expand Down
26 changes: 13 additions & 13 deletions pkg/render/tmpl/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@

<link rel="icon" href="{{$page.Root}}/favicon.svg">
<link rel="shortcut icon" href="{{$page.Root}}/favicon.png">
<link rel="stylesheet" href="{{$page.Root}}/css/variables.css">
<link rel="stylesheet" href="{{$page.Root}}/css/general.css">
<link rel="stylesheet" href="{{$page.Root}}/css/chrome.css">
<link rel="stylesheet" href="{{$page.Root}}/css/print.css" media="print">
<link rel="stylesheet" href="{{$page.Root}}/static/mnbook/css/variables.css">
<link rel="stylesheet" href="{{$page.Root}}/static/mnbook/css/general.css">
<link rel="stylesheet" href="{{$page.Root}}/static/mnbook/css/chrome.css">
<link rel="stylesheet" href="{{$page.Root}}/static/mnbook/css/print.css" media="print">
<!-- Fonts -->
<link rel="stylesheet" href="{{$page.Root}}/FontAwesome/css/font-awesome.css">
<link rel="stylesheet" href="{{$page.Root}}/fonts/fonts.css">
<link rel="stylesheet" href="{{$page.Root}}/static/mnbook/FontAwesome/css/font-awesome.css">
<link rel="stylesheet" href="{{$page.Root}}/static/mnbook/fonts/fonts.css">
<!-- Highlight.js Stylesheets -->
<link rel="stylesheet" href="{{$page.Root}}/highlight.css">
<link rel="stylesheet" href="{{$page.Root}}/tomorrow-night.css">
<link rel="stylesheet" href="{{$page.Root}}/ayu-highlight.css">
<link rel="stylesheet" href="{{$page.Root}}/static/mnbook/highlight.css">
<link rel="stylesheet" href="{{$page.Root}}/static/mnbook/tomorrow-night.css">
<link rel="stylesheet" href="{{$page.Root}}/static/mnbook/ayu-highlight.css">

<!-- Custom theme stylesheets -->
</head>
Expand Down Expand Up @@ -162,10 +162,10 @@ <h1 class="menu-title"><a href="{{$page.Root}}/index.html">{{$page.Book.Title}}<
<script type="text/javascript">
window.playground_copyable = true;
</script>
<script src="{{$page.Root}}/mark.min.js" type="text/javascript" charset="utf-8"></script>
<script src="{{$page.Root}}/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
<script src="{{$page.Root}}/highlight.js" type="text/javascript" charset="utf-8"></script>
<script src="{{$page.Root}}/book.js" type="text/javascript" charset="utf-8"></script>
<script src="{{$page.Root}}/static/mnbook/mark.min.js" type="text/javascript" charset="utf-8"></script>
<script src="{{$page.Root}}/static/mnbook/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
<script src="{{$page.Root}}/static/mnbook/highlight.js" type="text/javascript" charset="utf-8"></script>
<script src="{{$page.Root}}/static/mnbook/book.js" type="text/javascript" charset="utf-8"></script>

<!-- Custom JS scripts -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions pkg/render/tmpl/talk.html → pkg/render/tmpl/present.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
<script>
var notesEnabled = {{.NotesEnabled}};
</script>
<script src='./static/talk/slides.js'></script>
<script src='./static/present/slides.js'></script>

{{if .NotesEnabled}}
<script>
var sections = {{.Sections}};
var titleNotes = {{.TitleNotes}}
</script>
<script src='./static/talk/notes.js'></script>
<script src='./static/present/notes.js'></script>
{{end}}
</head>

Expand Down

0 comments on commit 9f9a0a7

Please sign in to comment.