pagoda-jekyll 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/Gemfile.lock +3 -3
- data/README.md +109 -4
- data/lib/pagoda/public/css/pagoda.css +6 -0
- data/lib/pagoda/public/css/pagoda.scss +5 -0
- data/pagoda.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjBkZGRjOGIwMmM2ZGQwMjAxMzJlYjY2ODJjMjIzM2YxYTBiZmRlNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmY1NzJjM2NiNzUyZDFiZGQwZjA3NDU5NTk1ZTA1YzhhMGVkODg1NQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2Y3OTlhYTZiZDA5ZDkzY2Y4MmUwMWQwMjc1YjZmZDhjNDAyODNiOTMwNTIz
|
10
|
+
Y2U5ODUyNjZmYTEyYzU2ZWQzZWFhYmExZjU4MDg1NDYwN2I2NTM0NjgzYTFl
|
11
|
+
YjdmODI3ZGM5OTI3NDE1ZTI0NTJlZjQzMjViZDRiYTJlYjlmZjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2E0ZTQ4ZGM4NmU0NWNmYjNiOTM1ZTc4MjU0ZThjYWQ1OGJmMmI5MmYyNzc2
|
14
|
+
ZDI3ZGM3MDg5NTVlMzIzM2E5YTJlODU3YjExYmE0NDM1Mzk2MGMzYzNkYjFk
|
15
|
+
NDg4YWZlODg0MjQ5NGE1OWVhMjIzZDcwMjRhMDA1NjgyMWE5ZDc=
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pagoda-jekyll (0.0.
|
4
|
+
pagoda-jekyll (0.0.8)
|
5
5
|
grit
|
6
6
|
jekyll
|
7
7
|
json
|
@@ -53,7 +53,7 @@ GEM
|
|
53
53
|
liquid (~> 2.3)
|
54
54
|
maruku (~> 0.5)
|
55
55
|
pygments.rb (~> 0.3.2)
|
56
|
-
json (1.
|
56
|
+
json (1.8.0)
|
57
57
|
kramdown (0.14.2)
|
58
58
|
liquid (2.5.0)
|
59
59
|
maruku (0.6.1)
|
@@ -117,7 +117,7 @@ GEM
|
|
117
117
|
stringex (1.5.1)
|
118
118
|
syntax (1.0.0)
|
119
119
|
thor (0.18.1)
|
120
|
-
tilt (1.
|
120
|
+
tilt (1.4.1)
|
121
121
|
yajl-ruby (1.1.0)
|
122
122
|
|
123
123
|
PLATFORMS
|
data/README.md
CHANGED
@@ -1,16 +1,121 @@
|
|
1
|
-
Pagoda
|
1
|
+
Pagoda [](https://travis-ci.org/alagu/pagoda) [](https://codeclimate.com/github/alagu/pagoda)
|
2
2
|
=========
|
3
|
-
|
3
|
+
|
4
|
+
|
5
|
+

|
6
|
+
|
7
|
+
Zen like **blog editor** for your **Jekyll** blog, heavily inspired by Svbtle.
|
8
|
+
|
9
|
+
Screenshots
|
10
|
+
===========
|
11
|
+
|
12
|
+
**Dashboard**
|
13
|
+

|
14
|
+
|
15
|
+
**Editor**
|
16
|
+

|
17
|
+
|
18
|
+
**Fullscreen editing**
|
19
|
+

|
20
|
+
|
21
|
+
**Mobile Dashboard and Editing**
|
22
|
+
|
23
|
+
|
24
|
+
<img src="http://cl.ly/image/2j1V2n2z0f0s/2013-05-15%2000.10.22.png" width="400"/>......<img src="http://cl.ly/image/030i1G0c3d0u/2013-05-15%2000.10.57.png" width="400"/>
|
25
|
+
|
4
26
|
|
5
27
|
Install
|
6
28
|
=======
|
7
29
|
|
30
|
+
Two commands, one for installing, another for running.
|
31
|
+
|
8
32
|
```
|
9
|
-
cd your-jekyll-blog-repo/
|
10
33
|
gem install pagoda-jekyll
|
11
34
|
pagoda .
|
12
35
|
```
|
13
36
|
|
14
37
|
|
15
|
-
|
38
|
+

|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
Deploying on your own server
|
43
|
+
============================
|
44
|
+
I use basic http authentication in real world use. I've deployed through nginx + unicorn. There could be easier deployment than this.
|
45
|
+
|
46
|
+
This is still not well organized, but the setup works.
|
47
|
+
|
48
|
+
## Create sock and pid folders
|
49
|
+
|
50
|
+
```
|
51
|
+
mkdir -p tmp/pids
|
52
|
+
mkdir tmp/sock
|
53
|
+
```
|
54
|
+
|
55
|
+
## Your unicorn configuration (unicorn.rb):
|
56
|
+
|
57
|
+
```
|
58
|
+
pid "./tmp/pids/blog-admin.pid"
|
59
|
+
listen "unix:./tmp/sock/blog-admin.sock"
|
60
|
+
ENV['blog'] = '/path/to/your/jekyll/blog'
|
61
|
+
```
|
62
|
+
|
63
|
+
## Script to start Unicorn (start.sh):
|
64
|
+
|
65
|
+
```
|
66
|
+
cd /path/to/pagoda
|
67
|
+
rvm use 1.9.3
|
68
|
+
unicorn -c unicorn.rb -D
|
69
|
+
```
|
70
|
+
Note: This should be run as bash --login start.sh
|
71
|
+
|
72
|
+
## Create htpasswd file for authentication
|
73
|
+
```
|
74
|
+
htpasswd -c /path/to/httpasswd/file alagu
|
75
|
+
New password: <enterpasswd>
|
76
|
+
Re-type new password: <re-enterpasswd>
|
77
|
+
Adding password for user alagu
|
78
|
+
```
|
79
|
+
|
80
|
+
## Nginx configuration
|
81
|
+
|
82
|
+
`myblog.com` shows the generated blog and `myblog.com/admin` pops up a http authentication for your admin.
|
83
|
+
|
84
|
+
```
|
85
|
+
upstream unicorn_server {
|
86
|
+
server unix:/path/to/tmp/sock/blog-admin.sock;
|
87
|
+
}
|
88
|
+
|
89
|
+
server {
|
90
|
+
server_name myblog.com;
|
91
|
+
|
92
|
+
listen 80;
|
93
|
+
|
94
|
+
location / {
|
95
|
+
root /path/to/your/jekyll/blog/_site/;
|
96
|
+
}
|
97
|
+
|
98
|
+
location /admin {
|
99
|
+
auth_basic "Restricted";
|
100
|
+
auth_basic_user_file /path/to/htpasswd/file;
|
101
|
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
102
|
+
proxy_set_header Host $http_host;
|
103
|
+
proxy_redirect off;
|
104
|
+
proxy_pass http://unicorn_server;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
```
|
108
|
+
|
109
|
+
|
16
110
|
|
111
|
+
|
112
|
+
FAQ/Bugs
|
113
|
+
========
|
114
|
+
|
115
|
+
**I get ArgumentError - invalid byte sequence in US-ASCII**
|
116
|
+
|
117
|
+
Set localte to UTF-8
|
118
|
+
|
119
|
+
```
|
120
|
+
export LC_ALL=en_US.UTF-8
|
121
|
+
```
|
@@ -595,6 +595,12 @@ fieldset.markdown {
|
|
595
595
|
font-size: 20px;
|
596
596
|
line-height: 30px;
|
597
597
|
}
|
598
|
+
@media only screen and (max-device-width: 480px) {
|
599
|
+
#post-content {
|
600
|
+
font-size: 15px;
|
601
|
+
line-height: 20px;
|
602
|
+
}
|
603
|
+
}
|
598
604
|
#post-content.scrolled {
|
599
605
|
border-top: 1px solid rgba(30, 30, 30, 0.1);
|
600
606
|
}
|
data/pagoda.gemspec
CHANGED
@@ -5,8 +5,8 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.required_ruby_version = ">= 1.8.7"
|
6
6
|
|
7
7
|
s.name = 'pagoda-jekyll'
|
8
|
-
s.version = '0.0.
|
9
|
-
s.date = '2013-05-
|
8
|
+
s.version = '0.0.9'
|
9
|
+
s.date = '2013-05-24'
|
10
10
|
s.rubyforge_project = 'pagoda-jekyll'
|
11
11
|
|
12
12
|
s.summary = "A simple admin for Jekyll"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagoda-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alagu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|