Last active
August 29, 2015 14:05
-
-
Save guo-yu/89b17bf331b001f58c2a to your computer and use it in GitHub Desktop.
running a Airpub blog by only 40 lines of html code.
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
<!DOCTYPE html> | |
<html ng-app="airpub" ng-controller="global"> | |
<head ng-controller="meta"> | |
<base href="/" /> | |
<meta charset="UTF-8"> | |
<title ng-bind="title"></title> | |
<meta name="fragment" content="!" /> | |
<meta name="description" content="{{description}}"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | |
<!-- dependencies stylesheets and scripts --> | |
<link rel="stylesheet" href="http://airpub.qiniudn.com/dist/airpub-dependencies.min.css"> | |
<script src="http://airpub.qiniudn.com/dist/airpub-dependencies.min.js"></script> | |
<!-- default theme: chill --> | |
<link rel="stylesheet" href="http://airpub.qiniudn.com/themes/chill/css/chill.min.css" /> | |
<link rel="shortcut icon" type="image/x-icon" href="http://airpub.qiniudn.com/themes/chill/favicon.ico" /> | |
</head> | |
<body ng-controller="base" ng-class="state.current.controller"> | |
<div ui-view="layout"></div> | |
<!-- airpub configs --> | |
<script> | |
var airpubConfigs = { | |
name: 'Airpub', // 博客名称 | |
description: 'Just another Airpub blog', // 博客描述 | |
url: 'http://your-uri', // 博客站点永久链接 | |
themePath: 'http://airpub.qiniudn.com/themes', // 博客主题根目录,目前支持七牛CDN | |
upyun: { // 用于上传图片 | |
bucket: 'mybucket', // 又拍云 bucket 配置 (可选) | |
form_api_secret: 'xxxxxx' // 又拍云 form_api_secret (可选) | |
} | |
}; | |
var duoshuoQuery = { | |
short_name: 'your_duoshuo_short_name' // 修改成你的多说 short_name | |
}; | |
</script> | |
<!-- duoshuo embed js --> | |
<script src="http://static.duoshuo.com/embed.unstable.js"></script> | |
<!-- airpub angular app --> | |
<script src="http://airpub.qiniudn.com/dist/airpub.min.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment