slidev-theme-frankfurt 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,7 @@
24
24
  for(let i = 1; i < $slidev.nav.slides.length; i++) {
25
25
  const slide = $slidev.nav.slides[i];
26
26
  const section = (slide.meta?.slide as SlideInfoBase)?.frontmatter?.section;
27
- if(section) {
27
+ if(section && section != title) {
28
28
  if(pages.length > 0) result.push([title, pages]);
29
29
  pages = [];
30
30
  title = section;
@@ -8,7 +8,7 @@
8
8
  </div>
9
9
  <div class="flex-1 p-1" style="background:#3333B3">
10
10
  <div class="float-right">
11
- <SlideCurrentNo /> /
11
+ {{ $slidev.nav.currentPage }} /
12
12
  <SlidesTotal />
13
13
  </div>
14
14
  {{ $slidev.configs.date || new Date().toLocaleDateString() }}
Binary file
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
1
  {
2
- "name": "slidev-theme-frankfurt",
3
- "version": "1.0.3",
4
- "type": "module",
5
- "description": "A theme for Slidev, inspired by the Frankfurt theme in Beamer.",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/MuTsunTsai/slidev-theme-frankfurt.git"
9
- },
10
- "author": "Mu-Tsun Tsai",
11
- "license": "MIT",
12
- "keywords": [
13
- "slidev-theme",
14
- "slidev"
15
- ],
16
- "engines": {
17
- "node": ">=18.0.0",
18
- "slidev": ">=0.19.3"
19
- },
20
- "scripts": {
21
- "build": "slidev build example.md",
22
- "dev": "slidev example.md",
23
- "export": "slidev export example.md",
24
- "screenshot": "slidev export example.md --per-slide --format png --output screenshots"
25
- },
26
- "dependencies": {
27
- "@slidev/types": "^0.48.3",
28
- "codemirror-theme-vars": "^0.1.2",
29
- "prism-theme-vars": "^0.2.4",
30
- "theme-vitesse": "^0.7.7"
31
- },
32
- "devDependencies": {
33
- "@slidev/cli": "^0.48.3",
34
- "playwright-chromium": "^1.42.1"
35
- },
36
- "//": "Learn more: https://sli.dev/themes/write-a-theme.html",
37
- "slidev": {
38
- "colorSchema": "both",
39
- "highlighter": "shiki",
40
- "defaults": {
41
- "fonts": {
42
- "sans": "Nunito Sans",
43
- "mono": "Fira Code"
44
- },
45
- "hightlighter": "shiki"
46
- }
47
- }
48
- }
2
+ "name": "slidev-theme-frankfurt",
3
+ "version": "1.0.5",
4
+ "type": "module",
5
+ "description": "A theme for Slidev, inspired by the Frankfurt theme in Beamer.",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/MuTsunTsai/slidev-theme-frankfurt.git"
9
+ },
10
+ "author": "Mu-Tsun Tsai",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "slidev-theme",
14
+ "slidev"
15
+ ],
16
+ "engines": {
17
+ "node": ">=18.0.0",
18
+ "slidev": ">=0.19.3"
19
+ },
20
+ "dependencies": {
21
+ "@slidev/types": "^0.48.7",
22
+ "codemirror-theme-vars": "^0.1.2",
23
+ "prism-theme-vars": "^0.2.4",
24
+ "theme-vitesse": "^0.7.7"
25
+ },
26
+ "devDependencies": {
27
+ "@slidev/cli": "^0.48.7",
28
+ "playwright-chromium": "^1.42.1"
29
+ },
30
+ "//": "Learn more: https://sli.dev/themes/write-a-theme.html",
31
+ "slidev": {
32
+ "colorSchema": "both",
33
+ "highlighter": "shiki",
34
+ "defaults": {
35
+ "fonts": {
36
+ "sans": "Nunito Sans",
37
+ "mono": "Fira Code"
38
+ },
39
+ "hightlighter": "shiki"
40
+ }
41
+ },
42
+ "scripts": {
43
+ "build": "slidev build example.md",
44
+ "dev": "slidev example.md",
45
+ "export": "slidev export example.md",
46
+ "screenshot": "slidev export example.md --per-slide --format png --output screenshots"
47
+ }
48
+ }