filebrowser / filebrowser Goto Github PK
View Code? Open in Web Editor NEW馃搨 Web File Browser
Home Page: https://filebrowser.org
License: Apache License 2.0
馃搨 Web File Browser
Home Page: https://filebrowser.org
License: Apache License 2.0
Right now, cady-hugo
is capable of editing, creating and uploading files to the file system, similar to a CMS. Those functionalities are transversal to all of the static website generators.
So, the idea is to change the name of the plugin and make it more global, like caddy-cms
. It would have an option to use Hugo or use an external static website generator.
I think it would be simple to do because the only Hugo command used inside the plugin is to regenerate the website. As Hugo is builded with Go, it offers a better experience with Caddy in this case.
To support others static website generators, we would have these options:
cms {
external true # default false
command jekyll # the command with all of the needed flags
}```
Would you mind doing a brief screencast on how to setup and use caddy-hugo? It would be extremely helpful to see how you install and setup and use Hugo for Caddy.
@mholt idea
When editing content on the shell or with sublime text 3 the changes are not recognized and not renderd. would be nice to be able to get the caddy-hugo watching the content folder
Hi,
Matt encouraged me on Hugo forum to sent You some comments from my test.
I could not write .md file. Here you have my experiences:
https://www.icloud.com/sharedalbum/#B0WJtdOXm0casHF
Maybe this is connected to OS user rights?
I'll be happy to spreading also some suggestions regarding functionalities if You are interested.
Best Regards,
Hi! It's again me ;)
I have this config /home/toor/www/Caddyfile
( pwd
used here to show problem, original config have command hugo
):
localhost {
root ./blog
cms {
content public
command pwd
}
}
I've expected to see /home/toor/www/blog/
, but
$ caddy -conf=Caddyfile
/home/toor/www
localhost:2015
But running caddy from blog
directory let it works like a charm...
I think you need to set current working dir before Run: https://golang.org/pkg/os/exec/#Command
Git sync as suggested by @captncraig.
If the folder where the site is located, there should be a Git button placed in browse screens. With that button, you can:
{"content":"\r\n"}:
{"content":"jQuery2140322192081483081_1443556381439\r\n"}:
title
Create a new login system.
Taking in account that #27 will come true in a short time from now, it would be nice to make the data fields with costum types, like datetime
for date
, textarea
for description
, etc. See gohugo.io/content/front-matter/ to know more.
The settings button is optimized for Hugo usage. So, if we're not using Hugo, the configuration file may have another name. Should it be set in caddyfile?
Hello,
I'm trying to build a Docker container with Caddy and Caddy-hugo. I'm getting this error and I know no much about Go. Can you help?
no buildable Go source files in /home/go/src/github.com/hacdias/caddy-hugo/assets
Here is my Dockerfile, save it in a directory then run 'docker build .' to reproduce the problem.
FROM abiosoft/caddy
RUN apk add go mercurial && mkdir /home/go
ENV GOPATH /home/go
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/go/bin/
RUN /usr/bin/go get -u github.com/jteeuwen/go-bindata/...
RUN /usr/bin/go get github.com/caddyserver/caddydev
RUN /usr/bin/go get github.com/hacdias/caddy-hugo
RUN cd /home/go/src/github.com/hacdias/caddy-hugo && /usr/bin/go generate
Hello,
I'm running Caddy-hugo in a Docker container (https://github.com/ludovicc/caddy-hugo). My project contains custom css and javascript files, but those are not served as the url for them starts with http://localhost:1313 instead of http://localhost:2015.
I tried to change the configuration in the Caddyfile, but it doesn't change anything.
hugo /srv {
cmd "--buildDrafts --watch --baseURL=http://localhost:2015/ --bind 0.0.0.0 --port 2015"
}
You can try this by running the Docker container on the Balsamiq site, a Hugo project (https://github.com/balsamiq/docs.balsamiq.com)
caddy has changed a little and so caddy-hugo won't build properly.
in hugo.go change:
"github.com/mholt/caddy/config/setup"
to:
"github.com/mholt/caddy/caddy/setup"
Instead of writing args "--buildFuture true"
we could write: buildFuture true
, and so on.
Ask the name of the file and the type: it should be something available on archtypes
or blank
I am having the same issue as #35 except that my config file is in YAML not TOML. The error is:
07/Jan/2016:12:36:21 -0700 [PANIC /admin/edit/config.yaml] go/src/github.com/hacdias/caddy-hugo/frontmatter/frontmatter.go:56 - interface conversion: interface is map[interface {}]interface {}, not map[string]interface {}
This is the sanitized version of my config file:
---
baseurl: http://www.domain.com"
languageCode: en-us
title: Site Title
disqusShortname: "user"
paginate: 10 # optional
editor: "atom"
paginatePath: "page"
preservetaxonomynames: true
MetaDataFormat: yaml
params:
twitter: "user"
instagram: "user"
facebook: "user"
gplus: ""
linkedin: ""
pinterest: "user"
googleAnalyticsUserID: ""
rss_link: "https://www.domain.com/index.xml"
avatar_link: "http://placehold.it/140x140"
copyright: "Content Copyright"
sb_widget_about: true
sb_widget_search: false
sb_widget_topics: true
sb_widget_tags: true
sb_widget_twitter: false
sb_widget_recient_comments: false
f_widgets: false
f_widget_archives: true
f_widget_meta: true
f_widget_twitter: true
f_widget_subscribe: true
permalinks:
post: "/:year/:month/:slug/" # optional
page: "/:title/"
taxonomies:
tag: "tags"
topic: "topics"
This config works fine with hugo and I don't have trouble parsing the fontmatter for the content (also in YAML) so I am not sure whats up. The things under params: are mostly just re-usable items, the sb_ and f_ turn on and off widgets on the site.
This crash mean much to you?
goroutine 1 [running]:
flag.init()
/usr/local/go/src/flag/flag.go:840 +0x11a
github.com/spf13/pflag.init()
/home/caddy/go/src/github.com/spf13/pflag/uint8.go:91 +0x59
github.com/spf13/viper.init()
/home/caddy/go/src/github.com/spf13/viper/viper.go:1026 +0x42
github.com/spf13/hugo/create.init()
/home/caddy/go/src/github.com/spf13/hugo/create/content.go:165 +0x42
github.com/spf13/hugo/commands.init()
/home/caddy/go/src/github.com/spf13/hugo/commands/version.go:76 +0x5e
github.com/hacdias/caddy-hugo/utils.init()
/home/caddy/go/src/github.com/hacdias/caddy-hugo/utils/utils.go:208 +0x42
github.com/hacdias/caddy-hugo.init()
/home/caddy/go/src/github.com/hacdias/caddy-hugo/hugo.go:135 +0x4c
github.com/mholt/caddy/config.init()
/tmp/custombuild_5197_315274122/src/github.com/mholt/caddy/config/directives.go:52 +0x4f
main.init()
/tmp/custombuild_5197_315274122/src/github.com/mholt/caddy/main.go:174 +0x47
full log:
http://termbin.com/gpms
Go to http://jungleboogie.me:2021/ and see the error. If you refresh, you'll notice that everything below main.init() changes between refreshes.
also see gohugoio/hugo#1649
with the new caddy-hugo I can not open my www domain. I get the content of one Subdomain also running Hugo. with earlier version no problem with same caddyfile
Add an option to Caddyfile to set costum styles for admin UI.
Right now it's a really heavy investment to see what caddy-hugo does and what it looks like. A front end is sorely needed for Hugo and I'd love to see what's happening, but it's hard to invest the 30-120 minutes that it's likely going to take for someone not familiar with the process. For someone investigating Hugo, this means installing and learning Hugo, installing and learning Caddy then figuring out this plugin.
Just a few screenshots + a list of functionality would go a long way towards getting people to take the time to install it, myself included.
I'm super excited about this project and hope to see it continue to grow!
There's something else here that can be a problem: right now, the plugin can be used with more static website generators, but if it was directed only to Hugo it could be more optimized and have better functionalities both in the editor (because we know the default front matter fields) and in the back end because we know the default website structure. It's easier. It can be optimized, it can be easily better.
I know I thought before it was better to support many website generators, but there's nothing good which bring bad things too. Almost nothing. We have to see the pros and cons. Do you prefer having the plugin optimized for Hugo with better specific functionalities or do you prefer it to be general and support multiple static generators?
What do you think in restricting this editor to Hugo?
Using 0.8.
With this config:
http://localhost:8888 {
root public
hugo {
args "--theme=hyde"
}
}
I get this error:
Activating privacy features... done.
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x2dfe21]
goroutine 1 [running]:
github.com/hacdias/caddy-hugo/utils.Run(0x208e8d2c0)
/home/caddy/go/src/github.com/hacdias/caddy-hugo/utils/utils.go:178 +0x2b1
github.com/hacdias/caddy-hugo.Setup(0x208eea100, 0x0, 0x0, 0x0)
/home/caddy/go/src/github.com/hacdias/caddy-hugo/hugo.go:26 +0x7d
github.com/mholt/caddy/caddy.loadConfigs(0x89c510, 0x9, 0x2208e4a2a0, 0x208f79050, 0x0, 0x0, 0x0, 0x0, 0x0)
/tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/config.go:162 +0x1a8a
github.com/mholt/caddy/caddy.Start(0x2208e4bd50, 0x208f79020, 0x0, 0x0)
/tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/caddy.go:138 +0x2c3
main.main()
/tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/main.go:99 +0x5fe
goroutine 5 [syscall]:
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init路1
/usr/local/go/src/os/signal/signal_unix.go:27 +0x35
goroutine 9 [chan receive]:
github.com/mholt/caddy/caddy.func路012()
/tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/sigtrap_posix.go:19 +0x2d9
created by github.com/mholt/caddy/caddy.trapSignalsPosix
/tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/sigtrap_posix.go:72 +0x25
goroutine 8 [chan receive]:
github.com/mholt/caddy/caddy.func路010()
/tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/sigtrap.go:31 +0x110
created by github.com/mholt/caddy/caddy.trapSignalsCrossPlatform
/tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/sigtrap.go:41 +0x25
goroutine 10 [select]:
github.com/mholt/caddy/caddy/letsencrypt.maintainAssets(0x208ee71e0, 0x1, 0x1, 0x0)
/tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/letsencrypt/maintain.go:34 +0x7cd
created by github.com/mholt/caddy/caddy/letsencrypt.Activate
/tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/letsencrypt/letsencrypt.go:146 +0x113a
Same thing happens with no args.
Hey,
i've try to get caddy-hugo to run, but i always get an 404 Not Found. I could open the admin panel, but i get no content from the site itself.
I've use the 2minutes hugo-site
My Caddyfile is simple:
localhost:2020
gzip
log ./access.log
errors ./errors.log
root ./
hugo {
}
Caddy version is 0.8.1
what is my issues?
Greetings
Tonka
Remove the need to have a pre-built Hugo website.
when creating a new md file at the backend using post.md:archetype there are no auto created date field and title field created from filename is missing
The admin interface will be available at /admin
and protected by a simple HTTP authentication. That configuration should be set on Caddyfile.
/admin
/admin/content
- manage the content of content
folder/admin/browse
- browse the files as file system, upload, delete, etc./admin/edit/{$file_path}
/admin/settings
- editable Hugo configuration/admin/static
- static files like css, js, etc.Schedule posts using this. Remove "draft" parameter and regenerate.
Building from source.
Whenever I try to edit the config.toml file I get a 500 error.
I enabled the error log and found a bunch of these lines:
13/Dec/2015:16:26:24 +1100 [PANIC /admin/edit/config.toml] C:/dev/go/src/github.com/hacdias/caddy-hugo/frontmatter/frontmatter.go:46 - interface conversion: interface is []map[string]interface {}, not []interface {}
Changing that line to the suggested types fixed the issue, but I'm not sure if this may cause other errors.
Related to #38
I'm implementing this by just having leaps edit the text files that are used by Hugo-Caddy to generate pages from...... but it could be even greater than that, ya know?
It occurs when the file has <html>
tag.
caddy-hugo needs a bit more Caddyfile documentation I'm proffering this as an example of a Caddy file that uses caddy-hugo and caddy's proxy features. I don't serve anything straight through right now, but have added a fourth item to the list, :
#1)Forum being proxied to four URLs
#2) Chat site being proxied to one URL
#3) Business homepage being served by Caddy after being assembled by Hugo via Caddy-Hugo
#4) A fake bunch of stuff I'm just plain serving.
#
#
sharebitstalk.io www.sharebitstalk.io technologistguild.com www.technologistguild.com {
gzip # tells caddy to compress traffic
proxy / 192.168.191.206:80 # a) proxy tells caddy that it'll be proxying b) / tells caddy that it should proxy to the folder / c) 192.168.191.206:80 Tells Caddy what URL to proxy at /
tls [email protected] # Tells let's encrypt your e-mail address
}
chat.sharebitstalk.io {
gzip
proxy / 192.168.191.206:8065
tls [email protected]
}
klouds.org www.klouds.org {
gzip
tls [email protected]
root /root/hugo-semantic-homepage-starter/dist # Tells CADDY which folder to serve as the root
basicauth /admin username password # protect the admin area using HTTP basic auth
hugo /root/hugo-semantic-homepage-starter # Tells HUGO which folder to execute in
}
jimbosfakesite.org www.jimbosfakesite.org {
gzip
tls [email protected]
}
We should be able to add both objects and arrays (aka groups) and fields.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google 鉂わ笍 Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.