Skip to main content

Flat file blog tool bult on Jinja2 templates

Project description

.

.



i

m

a

g

e

:

:



h

t

t

p

s

:

/

/

t

r

a

v

i

s

-

c

i

.

o

r

g

/

g

l

e

n

s

w

i

n

f

i

e

l

d

/

s

t

a

n

l

e

y

.

p

n

g







v

e

r

s

i

o

n

:



1

.

4

.

1







I

n

s

t

a

l

l

a

t

i

o

n




=

=

=

=

=

=

=

=

=

=

=

=







Y

o

u



c

a

n



i

n

s

t

a

l

l



S

t

a

n

l

e

y



u

s

i

n

g



`

p

i

p

`



(

h

t

t

p

:

/

/

p

y

p

i

.

p

y

t

h

o

n

.

o

r

g

/

p

y

p

i

/

s

t

a

n

l

e

y

)















s

u

d

o



p

i

p



i

n

s

t

a

l

l



s

t

a

n

l

e

y







o

r



c

l

o

n

e



t

h

i

s



r

e

p

o



a

n

d



r

u

n



s

e

t

u

p

.

p

y















g

i

t



c

l

o

n

e



g

i

t

:

/

/

g

i

t

h

u

b

.

c

o

m

/

g

l

e

n

s

w

i

n

f

i

e

l

d

/

s

t

a

n

l

e

y

.

g

i

t












c

d



s

t

a

n

l

e

y












s

u

d

o



p

y

t

h

o

n



s

e

t

u

p

.

p

y



i

n

s

t

a

l

l







U

s

a

g

e




-

-

-

-

-







>



T

h

e



f

u

n

c

t

i

o

n

a

l

i

t

y



o

f



t

h

i

s



c

o

d

e



i

s



v

e

r

y



b

a

s

i

c



a

t



t

h

e



m

o

m

e

n

t



-



j

u

s

t



e

n

o

u

g

h



t

o



r

u

n



m

y



o

w

n



b

l

o

g



(

h

t

t

p

:

/

/

b

l

o

g

.

g

l

e

n

s

w

i

n

f

i

e

l

d

.

c

o

.

u

k

)



w

h

i

c

h



d

o

e

s

n

'

t



h

a

v

e



a



l

o

t



o

f



r

e

q

u

i

r

e

m

e

n

t

s

.



I

'

l

l



b

e



a

d

d

i

n

g

/

a

d

a

p

t

i

n

g



f

e

a

t

u

r

e

s



a

s



I



n

e

e

d



t

h

e

m

.




T

o



s

e

e



t

h

e



p

r

o

j

e

c

t



s

e

t

u

p



t

h

a

t



p

o

w

e

r

s



m

y



b

l

o

g



s

e

e

:



h

t

t

p

s

:

/

/

g

i

t

h

u

b

.

c

o

m

/

g

l

e

n

s

w

i

n

f

i

e

l

d

/

b

l

o

g







Y

o

u



c

a

n



s

t

r

u

c

t

u

r

e



t

h

i

s



f

i

l

e



h

o

w

e

v

e

r



y

o

u



l

i

k

e

,



i

t



i

s



j

u

s

t



p

a

r

s

e

d



a

s



Y

A

M

L



a

n

d



p

a

s

s

e

d



t

o



t

h

e



t

e

m

p

l

a

t

e

s

,



I



u

s

e



t

h

e



`

g

l

o

b

a

l

`



k

e

w

o

r

d

,



b

u

t



i

t

'

s



a

r

b

i

t

r

a

r

y

.










C

r

e

a

t

e



a



P

r

o

j

e

c

t




-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-







T

o



i

n

i

t

i

a

l

i

z

e



a

n



s

k

e

l

e

t

o

n



f

i

l

e



s

t

r

u

c

t

u

r

e



u

s

e



`

p

y

t

h

o

n



/

m

y

/

s

i

t

e

-

p

a

c

k

a

g

e

s

/

s

t

a

n

l

e

y

/

b

i

n

/

p

r

o

j

e

c

t



"

p

r

o

j

e

c

t

_

d

i

r

"

`



t

h

i

s



w

i

l

l



c

r

e

a

t

e



a



d

i

r

e

c

t

o

r

y



s

t

r

u

c

t

u

r

e



i

n

s

i

d

e



t

h

e



d

i

r

e

c

t

o

r

y



s

p

e

c

i

f

i

e

d



c

o

n

t

a

i

n

s



c

o

n

f

i

g

.

y

m

l



a

n

d



a



s

a

t

a

n

l

y



u

t

i

l

s



f

i

l

e



-



l

i

k

e



t

h

i

s

:












/

c

o

n

t

e

n

t












/

s

i

t

e












/

s

t

a

t

i

c












/

t

e

m

p

l

a

t

e

s












c

o

n

f

i

g

.

y

m

l












c

o

n

f

i

g

.

d

e

v

.

y

m

l












s

t

a

n

l

e

y















T

h

i

s



w

i

l

l



N

O

T



o

v

e

r

w

r

i

t

e



e

x

i

s

t

i

n

g



f

i

l

e

s

,



j

u

s

t



c

r

e

a

t

e



t

h

o

s

e



t

h

a

t



a

r

e



m

i

s

s

i

n

g

.







C

o

n

f

i

g




-

-

-

-

-

-







T

h

i

s



f

i

l

e



e

x

i

s

t

s



i

n



t

h

e



r

o

o

t



o

f



t

h

e



a

p

p

l

i

c

a

t

i

o

n



a

n

d



d

e

f

i

n

e

s



v

a

r

i

a

b

l

e

s



t

h

a

t



w

i

l

l



b

e



g

l

o

b

a

l

l

y



a

v

a

i

l

a

b

l

e



i

n



a

l

l



t

e

m

p

l

a

t

e

s

.



A



g

o

o

d



p

l

a

c

e



t

o



s

t

a

r

t



w

o

u

l

d



b

e

:















g

l

o

b

a

l

:






s

i

t

e

_

u

r

l

:







"

h

t

t

p

:

/

/

d

o

g

s

v

s

c

a

t

s

v

s

h

u

m

a

n

s

.

n

e

t

"






s

i

t

e

_

t

i

t

l

e

:



"

M

y



S

i

t

e

"






s

t

a

t

i

c

:



'

/

s

t

a

t

i

c

'





#



c

o

n

v

i

n

i

e

n

c

e



t

o



r

e

f

e

r

e

n

c

e



t

h

e



d

i

r

e

c

t

o

r

y



h

o

l

d

i

n

g



s

t

a

t

i

c



f

i

l

e

s



(

c

s

s

/

j

s

/

i

m

g



e

t

c

)










B

u

i

l

d



.

h

t

m

l



S

i

t

e




-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-







T

o



b

u

i

l

d



.

h

t

m

l



f

i

l

e

s



f

r

o

m



y

o

u

r



c

o

n

t

e

n

t



u

s

e



`

p

y

t

h

o

n



s

t

a

n

l

e

y



b

u

i

l

d



-

-

c

o

n

f

i

g

=

c

o

n

f

i

g

.

y

m

l

`

.



T

h

i

s



w

i

l

l



t

a

k

e



a

l

l



o

f



t

h

e



f

i

l

e

s



i

n



`

c

o

n

t

e

n

t

`

,



p

a

r

s

e



t

h

e

m



a

s



m

a

r

k

d

o

w

n

,



c

o

n

v

e

r

t



t

h

e



Y

A

M

L



f

r

o

n

t



m

a

t

t

e

r



a

n

d



r

e

n

d

e

r



i

t



i

n

t

o



i

t

s



s

p

e

c

i

f

i

e

d



t

e

m

p

l

a

t

e



a

n

d



s

a

v

e



i

t



i

n



t

h

e



`

s

i

t

e

`



d

i

r

e

c

t

o

r

y

.



T

h

e



s

t

a

t

i

c



f

o

l

d

e

r



i

s



t

h

e

n



c

o

p

i

e

d



a

c

r

o

s

s



a

s

-

i

s

.







T

e

m

p

l

a

t

e

s




-

-

-

-

-

-

-

-

-







T

e

m

p

l

a

t

e

s



a

r

e



J

i

n

j

a

2



h

t

t

p

:

/

/

j

i

n

j

a

.

p

o

c

o

o

.

o

r

g

/



t

h

e

r

e



i

s



n

o



f

u

n

c

t

i

o

n

a

l

i

t

y



a

d

d

e

d



o

r



r

e

m

o

v

e

d

.







L

o

o

p

i

n

g



o

v

e

r



c

o

n

t

e

n

t

/

p

o

s

t

s

/

e

n

t

r

i

e

s




-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-







L

o

o

p

i

n

g



o

v

e

r



e

n

t

r

i

e

s



u

s

e

s



e

x

i

s

t

i

n

g



J

i

n

j

a

2



f

u

n

c

t

i

o

n

a

l

i

t

y



w

i

t

h



t

h

e



s

t

a

n

l

e

y

.

P

o

s

t

s



o

b

j

e

c

t

,



y

o

u



u

s

e



i

t



l

i

k

e



t

h

i

s

:















{

%



f

o

r



p

o

s

t



i

n



p

o

s

t

s

.

c

a

t

e

g

o

r

y

(

'

/

b

l

o

g

'

)

.

l

i

m

i

t

(

5

)

.

r

e

s

u

l

t



%

}




















/

/



d

o



w

h

a

t

e

v

e

r












{

%



e

n

d

f

o

r



%

}







F

o

r



a

l

l



o

f



t

h

e



p

o

s

t

s



j

u

s

t



u

s

e

:















{

%



f

o

r



p

o

s

t



i

n



p

o

s

t

s

.

r

e

s

u

l

t



%

}




















/

/



d

o



w

h

a

t

e

v

e

r












{

%



e

n

d

f

o

r



%

}










E

a

c

h



o

f



t

h

e



a

v

a

i

l

a

b

l

e



f

i

l

t

e

r



m

e

t

h

o

d

s



i

n



`

p

o

s

t

s

`



r

e

t

u

r

n



a



n

e

w



`

p

o

s

t

s

`



o

b

j

e

c

t



w

i

t

h



a



`

r

e

s

u

l

t

`



a

t

t

r

i

b

u

t

e



t

h

a

t



i

s



t

h

e



f

i

l

t

e

r

e

d



s

e

t



o

f



p

o

s

t

s

.



F

i

l

t

e

r

s



a

r

e

:







*



c

a

t

e

g

o

r

y




*



o

r

d

e

r

b

y

(

'

f

i

e

l

d

'

,



d

e

s

c

e

n

d

i

n

g

[

t

r

u

e

/

f

a

l

s

e

]

)




*



l

i

m

i

t

(

)







T

h

e



d

e

f

a

u

l

t



s

e

t



i

s



a

l

l



r

e

s

u

l

t

s

.







F

r

o

n

t



M

a

t

t

e

r




-

-

-

-

-

-

-

-

-

-

-

-







T

h

e



Y

A

M

L



f

r

o

n

t



m

a

t

t

e

r



-



a

s



u

s

e

d



b

y



J

e

k

y

l

l



-



i

s



a



b

l

o

c

k



a

t



t

h

e



h

e

a

d



o

f



c

o

n

t

e

n

t



f

i

l

e

s



t

h

a

t



c

o

n

t

a

i

n

s



d

a

t

a



t

h

a

t



y

o

u



w

a

n

t



p

a

s

s

e

d



t

o



i

t

'

s



t

e

m

p

l

a

t

e



w

h

e

n



i

t



i

s



r

e

n

d

e

r

e

d

.







A



`

t

e

m

p

l

a

t

e

`



p

a

r

a

m

e

t

e

r



i

s



r

e

q

u

i

r

e

d



o

r



a

n



e

x

c

e

p

t

i

o

n



w

i

l

l



b

e



t

h

r

o

w

n



w

h

e

n



y

o

u



r

u

n



t

h

e



b

u

i

l

d



s

c

r

i

p

t

.



T

y

p

i

c

a

l

l

y



a



c

o

n

t

e

n

t



f

i

l

e



m

i

g

h

t



l

o

o

k



l

i

k

e



t

h

i

s

:















-

-

-












t

e

m

p

l

a

t

e

:



b

l

o

g

.

h

t

m

l












t

i

t

l

e

:



T

h

i

s



i

s



t

h

e



t

i

t

l

e



o

f



m

y



p

a

g

e












s

o

m

e

_

o

t

h

e

r

_

t

h

i

n

g

:



R

e

d












d

a

f

t

:



t

r

u

e





#



t

h

i

s



p

r

e

v

e

n

t

s



t

h

e



p

o

s

t



f

r

o

m



b

e

i

n

g



p

u

b

l

i

s

h

e

d



i

f



t

h

e



n

o

t

d

r

a

f

t

(

)



f

i

l

t

e

r



i

s



u

s

e

d












-

-

-















T

h

i

s



i

s



t

h

e



b

o

d

y



c

o

n

t

e

n

t







A

d

d

i

t

i

o

n

a

l

l

y



s

o

m

e



g

l

o

b

a

l



v

a

r

i

a

b

l

e

s



a

r

e



a

v

a

i

l

a

b

l

e



i

n



a

l

l



t

e

m

p

l

a

t

e

s

.



Y

o

u



d

e

f

i

n

e



t

h

e

s

e



i

n



y

o

u

r



c

o

n

f

i

g

.

y

m

l

.







S

e

r

v

e

r




-

-

-

-

-

-







D

u

r

i

n

g



d

e

v

e

l

o

p

m

e

n

t



y

o

u



m

i

g

h

t



w

a

n

t



t

o



s

e

e



y

o

u

r



s

i

t

e



r

e

n

d

e

r

e

d

,



y

o

u



c

a

n



u

s

e



F

l

a

s

k



t

o



k

i

c

k



o

f

f



a



s

e

r

v

e

r



o

n



0

.

0

.

0

.

0

:

5

0

0

0



-



e

a

c

h



p

a

g

e



r

e

f

r

e

s

h



w

i

l

l



t

r

i

g

g

e

r



a



`

-

-

b

u

i

l

d

`



a

n

d



r

e

t

u

r

n



t

h

e



c

o

n

t

e

n

t



y

o

u



s

p

e

c

i

f

y

.



*

T

h

i

s



i

s



a



v

e

r

y



r

o

u

g

h



i

m

p

l

e

m

e

n

t

a

t

i

o

n



a

n

d



i

s



s

o

m

e

t

h

i

n

g



t

h

a

t



I



w

i

l

l



b

e



w

o

r

k

i

n

g



o

n

*

.







S

t

a

r

t



t

h

e



s

e

r

v

e

r



w

i

t

h



`

p

y

t

h

o

n



s

t

a

n

l

e

y



s

e

r

v

e

r



-

-

c

o

n

f

i

g

=

c

o

n

f

i

g

.

y

m

l

`



t

h

e

n



v

i

s

i

t



`

h

t

t

p

:

/

/

0

.

0

.

0

.

0

:

5

0

0

0

`



t

o



s

e

e



t

h

e



g

e

n

e

r

a

t

e

d



s

i

t

e

.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stanley-1.4.3.tar.gz (12.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page