<!-- new line -->
![space](https://.../nh-pluto-moonlight.jpg)
<!-- new line -->
Below is a hr, I guess.
Above is a hr, I guess.
- list item
- list item
- list item
- list item
- list item
- list item
- list item
- list item
- list item
- list item
- list item
- list item
- list item
- list item
- Get up at 7:00 AM
- Eat breakfast
- Go to bet before 11:00 PM
Hear no evil | Speak no evil | See no evil |
---|---|---|
🙉 | 🙊 | 🙈 |
Hear no evil | Speak no evil | See no evil |
---|---|---|
🙉 | 🙊 | 🙈 |
| |
:-----:|:------:|:-:
A | B | 🙈
A | B | 🙈 |
Sun With Face | Grinning Face | Smiling Face | Grinning Face With Big Eyes | Smiling Face With Smiling Eyes | Full Moon Face | Grinning Face With Smiling Eyes | Face With Monocle | Cowboy Hat Face | Thinking Face | Face Vomiting |
---|---|---|---|---|---|---|---|---|---|---|
🌞 | 😀 | 😃 | 😊 | 🌝 | 😄 | 🧐 | 🤠 | 🤔 | 🤮 |
(https://hexo.io/docs/tag-plugins#Block-Quote)
Every interaction is both precious and an opportunity to delight.
Seth GodinWelcome to Island Marketing
NEW: DevDocs now comes with syntax highlighting. http://devdocs.io
class Utils {
animate(element: Element, attr: string, change: { from: number, to: number, duration?: number }, onEnd?: () => void) {
if (change.from = = change.to) return;
if (!change.duration)
element[attr] = change.to;
const easing = (t, b, c, d) => c * ((t = t / d - 1) * t * t + 1) + b,
{ from, to } = change,
during = Math.ceil((change.duration || 300) / 17) || 1;
let start = 0,
instance = null;
step();
function step() {
const value = Math.ceil(easing(start, from, to - from, during));
start++;
if (start <= during) {
element[attr] = value;
instance = requestAnimationFrame(step);
}
else {
if (onEnd) onEnd();
cancelAnimationFrame(instance);
}
}
}
}
(https://hexo.io/docs/tag-plugins#Code-Block)
_.compactUnderscore.js_.compact([0, 1, false, 2, '', 3]);
// [1, 2, 3]
(https://hexo.io/docs/tag-plugins#Gist)
(https://hexo.io/docs/tag-plugins#jsFiddle)
stars: <span id="stargazers_count"></span>
<script>
fetch('https://api.github.com/repos/ikeq/hexo-theme-inside')
.then(res => res.json())
.then(json => {
document.getElementById('stargazers_count').innerHTML = json.stargazers_count || json.message;
});
</script>
stars: 362
For the lastest ES grammar and code minification.
Run the following command in the root directory of Hexo (not themes/inside
):
npm install babel-core babel-preset-env html-minifier terser --save
Syntax:
{% canvas [width] [height] %}
ctx.fillStyle = 'red';
ctx.fillRect(0, 0, w, h);
{% endcanvas %}
width is default to 300
, height is default to 150
,also the following constants are available in the scope:
constant | |
---|---|
ctx | CanvasRenderingContext2D |
w | Canvas width |
h | Canvas height |
For example:
{% canvas 100 100 %}
const r = w / 2;
ctx.fillStyle = 'antiquewhite';
ctx.arc(r, r, r, 0, Math.PI * 2);
ctx.fill();
{% endcanvas %}
When
init i=1
if i=0{
then i++
}