Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

log.pocka.io

GitHub last commit GitHub commit activity the past week, 4 weeks, year


For development

Run Server

$ yarn dev -p 8080

# Specify host to bind
$ yarn dev -H mydomain.example -p 8080

Requirements

  • nvm or ASDF (optional, but recommended)
  • Yarn

Commands

Command Description
yarn build Builds blog and feeds.
yarn dev Starts development server.

Directories

  • public/images/ ... Image files which is used by posts.
  • contents/[locale]/ ... Post markdown files.

Markdown Extensions

List of custom elements

These elements going to be converted to React components at runtime.

<blog-alert>

Alert component.

Prop Name Type Description
variant "info" | "tips" | "note" | "warning" | "danger" Severity of the alert.
<blog-alert variant="tips">

Blah Blah _Blah_

</blog-alert>
<blog-youtube>

Embed Youtube video.

Prop Name Type Description
src string Same for normal embed.
aspectratio string Defaults to 16:9
<blog-youtube src="https://www.youtube.com/embed/dQw4w9WgXcQ" aspectratio="3:2"></blog-youtube>

Environments Variables

For deploy.

Name Required?
AWS_ACCESS_KEY_ID Yes
AWS_SECRET_ACCESS_KEY Yes
AWS_BUCKET_NAME Yes
AWS_CF_DIST_ID Yes

About

Repositry for log.pocka.io

Resources

Releases

No releases published

Packages

No packages published