-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
8,960 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,149 @@ | ||
--- | ||
title: Using Remark in Hugo | ||
author: Hoas | ||
date: '2019-02-19' | ||
slug: using-remark-in-hugo | ||
--- | ||
class: center, middle | ||
count: false | ||
### 逃离office | ||
-- | ||
|
||
count: false | ||
之 | ||
-- | ||
|
||
count: false | ||
# Using Remark in Hugo | ||
|
||
-- | ||
|
||
count: false | ||
见:https://github.com/gnab/remark/wiki/Using-with-Hugo | ||
|
||
--- | ||
|
||
# Formatting | ||
|
||
Referring to https://github.com/gnab/remark/wiki/Formatting. | ||
|
||
--- | ||
|
||
# Slide Separators | ||
|
||
```md | ||
--- | ||
``` | ||
|
||
## Incremental Slides | ||
|
||
```c | ||
- bullet 1 | ||
-- | ||
|
||
- bullet 2 | ||
``` | ||
- bullet 1 | ||
-- | ||
|
||
- bullet 2 | ||
|
||
--- | ||
## Incremental Slides | ||
While expanding: | ||
|
||
```md | ||
- bullet 1 | ||
--- | ||
|
||
- bullet 1 | ||
- bullet 2 | ||
``` | ||
|
||
- bullet 1 | ||
--- | ||
## Incremental Slides | ||
While expanding: | ||
|
||
```md | ||
- bullet 1 | ||
--- | ||
|
||
- bullet 1 | ||
- bullet 2 | ||
``` | ||
|
||
- bullet 1 | ||
- bullet 2 | ||
--- | ||
## Slide Notes | ||
|
||
Some content. | ||
|
||
??? | ||
Some note. | ||
|
||
--- | ||
## Comments | ||
|
||
```md | ||
<!--- | ||
I'm a comment. | ||
---> | ||
``` | ||
|
||
<!--- | ||
I'm a comment. | ||
---> | ||
|
||
```md | ||
[//]: # (I'm a comment) | ||
``` | ||
|
||
[//]: # (I'm a comment) | ||
|
||
--- | ||
name: agenda | ||
|
||
## Agenda | ||
|
||
```c | ||
name: agenda | ||
``` | ||
--- | ||
[The agenda](#agenda) | ||
|
||
```c | ||
[The agenda](#agenda) | ||
``` | ||
--- | ||
count: false | ||
|
||
# Agenda | ||
|
||
-- | ||
1. Introduction | ||
|
||
-- | ||
2. Markdown formatting | ||
|
||
--- | ||
layout: true | ||
|
||
# Section | ||
|
||
--- | ||
|
||
## Sub section 1 | ||
|
||
```ruby | ||
def add(a,b) | ||
* a + b | ||
end | ||
|
||
# Notice how there is no return statement. | ||
``` | ||
|
||
--- | ||
|
||
## Sub section 2 |
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,4 @@ | ||
--- | ||
title: "{{ replace .TranslationBaseName "-" " " | title }}" | ||
date: {{ .Date }} | ||
lastmod: {{ .Date }} |
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,59 @@ | ||
<html> | ||
<head> | ||
<!-- head content, etc omitted for brevity --> | ||
<style> | ||
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz); | ||
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic); | ||
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic); | ||
|
||
body { font-family: 'Droid Serif'; } | ||
h1, h2, h3 { | ||
font-family: 'Yanone Kaffeesatz'; | ||
font-weight: normal; | ||
} | ||
.remark-code, .remark-inline-code { font-family: 'Ubuntu Mono'; } | ||
</style> | ||
</head> | ||
<body> | ||
<textarea id="source"> | ||
{{ .RawContent }} | ||
</textarea> | ||
<script src="https://gnab.github.io/remark/downloads/remark-latest.min.js"></script> | ||
<script> | ||
var slideshow = remark.create({ | ||
// Set the slideshow display ratio | ||
// Default: '4:3' | ||
// Alternatives: '16:9', ... | ||
ratio: '4:3', | ||
|
||
// Navigation options | ||
navigation: { | ||
// Enable or disable navigating using scroll | ||
// Default: true | ||
// Alternatives: false | ||
scroll: true, | ||
|
||
// Enable or disable navigation using touch | ||
// Default: true | ||
// Alternatives: false | ||
touch: true, | ||
|
||
// Enable or disable navigation using click | ||
// Default: false | ||
// Alternatives: true | ||
click: true | ||
}, | ||
|
||
// Customize slide number label, either using a format string.. | ||
slideNumberFormat: 'Slide %current% of %total%', | ||
// .. or by using a format function | ||
slideNumberFormat: function (current, total) { | ||
return 'Slide ' + current + ' of ' + total; | ||
}, | ||
|
||
// Enable or disable counting of incremental slides in the slide counting | ||
countIncrementalSlides: true | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.