updates
parent
7bde82327a
commit
52a57d1f79
|
@ -69,6 +69,7 @@ module.exports = function(grunt) {
|
|||
'assets/js/app.min.js': ['node_modules/jquery/dist/jquery.js',
|
||||
'node_modules/perfect-scrollbar/dist/js/perfect-scrollbar.jquery.js',
|
||||
'node_modules/showdown/dist/showdown.js',
|
||||
'node_modules/noty/js/noty/packaged/jquery.noty.packaged.js',
|
||||
'assets/js/src/**/*.js'
|
||||
]
|
||||
}
|
|
@ -9,7 +9,7 @@ This is an add-on for Caddy which wants to deliver a good UI to edit the content
|
|||
If you want to try the Hugo add-on for Caddy (and improve it maybe), you'll have to install some tools.
|
||||
|
||||
+ [Go 1.4 or higher](https://golang.org/dl/)
|
||||
+ [Caddydev](https://github.com/caddyserver/caddydev)
|
||||
+ [caddydev](https://github.com/caddyserver/caddydev)
|
||||
+ [go-bindata](https://github.com/jteeuwen/go-bindata)
|
||||
|
||||
If you want to go deeper and make changes in front-end assets like JavaScript or CSS, you'll need some more tools.
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2697,6 +2697,11 @@ button.add {
|
|||
width: 1.5em;
|
||||
font-size: .7em;
|
||||
padding: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
h3:hover > button.add {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* perfect-scrollbar v0.6.5 */
|
||||
|
|
|
@ -249,6 +249,11 @@ button.add {
|
|||
width: 1.5em;
|
||||
font-size: .7em;
|
||||
padding: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
h3:hover > button.add {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@import "scrollbar";
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,12 @@
|
|||
$(document).ready(function() {
|
||||
$('.scroll').perfectScrollbar();
|
||||
|
||||
var n = noty({
|
||||
layout: 'topRight',
|
||||
type: 'success',
|
||||
text: 'noty - a jquery notification library!'
|
||||
});
|
||||
|
||||
$("#preview").click(function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
|
|
3
hugo.go
3
hugo.go
|
@ -3,7 +3,6 @@
|
|||
package hugo
|
||||
|
||||
import (
|
||||
"log"
|
||||
"mime"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
|
@ -34,8 +33,6 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)
|
|||
if middleware.Path(r.URL.Path).Matches("/admin") {
|
||||
page := utils.ParseComponents(r)[1]
|
||||
|
||||
log.Print(page)
|
||||
|
||||
if page == "assets" {
|
||||
filename := strings.Replace(r.URL.Path, "/admin/", "", 1)
|
||||
file, err := assets.Asset(filename)
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/hacdias/caddy-hugo.git"
|
||||
},
|
||||
"main": "gruntfile.js",
|
||||
"main": "Gruntfile.js",
|
||||
"author": "Henrique Dias <hacdias@gmail.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
|
@ -17,6 +17,7 @@
|
|||
"font-awesome": "^4.4.0",
|
||||
"jquery": "^2.1.4",
|
||||
"normalize.css": "^3.0.3",
|
||||
"noty": "^2.3.6",
|
||||
"perfect-scrollbar": "^0.6.4",
|
||||
"showdown": "^1.2.3"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue