Original by Apple:
At the top left are the customization panel. Click on each item to change the appearance. Appearance is changed by adding/removing classes.
A Pen by Thai Pangsakulyanont on CodePen.
--- | |
# Page meta info, like heading, footer text and nav links | |
pageInfo: | |
title: Dashy | |
description: Welcome to your new dashboard! | |
navLinks: | |
- title: GitHub | |
path: https://github.com/Lissy93/dashy | |
- title: Documentation | |
path: https://dashy.to/docs |
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net" | |
"os" | |
"strings" |
Original by Apple:
At the top left are the customization panel. Click on each item to change the appearance. Appearance is changed by adding/removing classes.
A Pen by Thai Pangsakulyanont on CodePen.
/** | |
* 对Date的扩展,将 Date 转化为指定格式的String | |
* 月(M)、日(d)、12小时(h)、24小时(H)、分(m)、秒(s)、周(E)、季度(q) 可以用 1-2 个占位符 | |
* 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) | |
* eg: | |
* (new Date()).pattern("yyyy-MM-dd hh:mm:ss.S") ==> 2007-07-02 08:09:04.423 | |
* (new Date()).pattern("yyyy-MM-dd E HH:mm:ss") ==> 2007-03-10 二 20:09:04 | |
* (new Date()).pattern("yyyy-MM-dd EE hh:mm:ss") ==> 2007-03-10 周二 08:09:04 | |
* (new Date()).pattern("yyyy-MM-dd EEE hh:mm:ss") ==> 2007-03-10 星期二 08:09:04 | |
* (new Date()).pattern("yyyy-M-d h:m:s.S") ==> 2007-7-2 8:9:4.18 |