hmngwy / jenny Goto Github PK
View Code? Open in Web Editor NEWA bash-based static blog generator
License: MIT License
A bash-based static blog generator
License: MIT License
Hi, jenny
is simple awesome!
Btw, it will be convenient if jenny
have build in command like jenny create
to create post. Something like jenny
on make install
will check default $EDITOR
on terminal env
. If not exist then offering the default editor to use---together with other setup during make install
.
This command jenny create
will ask for title then automatically create *.md
file with name contain current date and title then open this file with default $EDITOR.
It's must be very helpful for people---like me---who uses eleven finger to type (mostly use index fingers only). :))
Even though I'm already create custom script for my need, but it's would be nice if jenny
have this kind build in command.
If you have enough posts that the navigation becomes visible, an entry is mistakenly generated in the list of blogposts that does not belong there. In your blog, this is the entry "Under Page 2".
See https://manilafunctional.com/
Thanks for the cool project :-)
Dead link: https://bitbucket.org/yiyus/md2html.awk
After running make install PREFIX=~/.local
, jenny still searches for some files in /usr/local
. It seems that’s due to the fact that SHARE_DIR
is hard-coded.
in https://github.com/hmngwy/jenny ,i didn't find layout dir.
tks
I need some help getting my RSS feed populated which the contents of my blog articles, please. Default settings only generate title, URL and date of each article.
So I tried adding $(echo $POST_CONTENTS)
in-between <description>
and </description>
without luck.
My updated .layout/rss2.sh
looks as follows:
#!/bin/bash
# Break apart the LIST payload
IFS='✂︎' read -r -a array <<< "$LIST"
function index_loop {
for (( idx=${#array[@]}-1 ; idx>=0 ; idx-- )) ; do
[ "${array[idx]}" ] && eval "${array[idx]} list_item"
done
}
function list_item {
cat << _LOOP_
<item>
<title>$(echo $POST_TITLE)</title>
<link>https://example.com$(echo $POST_URL)</link>
<description>$(echo $POST_CONTENTS)</description>
<pubDate>$(echo $POST_DATE_RFC822)</pubDate>
</item>
_LOOP_
}
cat << _EOF_
<?xml version="1.0" ?>
<rss version="2.0">
<channel>
<title>Super sweet blog project</title>
<link>https://example.com</link>
<description>$(echo $POST_CONTENTS)</description>
$(index_loop)
</channel>
</rss>
_EOF_
There is a path issue, inserting bin/ before share/ when running jenny
, see my output:
$ jenny
Working in /home/martin/website/jennyblog/.dist
• Skipping: 2018-05-18 first-post.md
- post/first-post.html
CREATED PAGE 1
/usr/local/bin/jenny: line 215: /usr/local/bin/share/layout/index.sh: No such
file or directory
Generating feed.xml
/usr/local/bin/jenny: line 223: /usr/local/bin/share/layout/rss2.sh: No such file or directory
ls: cannot access /tmp/jennytag_*: No such file or directory
hi, im trying jenny and im liking it so far.
do you think it's possible to have a repo with my jenny blog and use github pages to publish it ?
im currently using jekyll on github pages and id like to keep my current repo for my blog.
thank you, and great work on jenny, simple and fast!
something like this in .blogrc which user can configure and then jenny will build it according to what user has set.
THEME="default"
# THEME="dark"
also linking external css would be better because then jenny can have many themes without messing the code too much.
something like this in index.sh & post.sh
if theme=dark
link dark css
else if theme=theme1
link theme1 css
else
link default css
Add optional time for future posts so that they can be scheduled to go live at a specific time instead of just when ever the post date is when jenny is ran. Use case, having multiple posts on a certain date, but they need posted at different times of the day.
.blogrc
values and generatethe filefresh install from master branch:
$ jenny
[jenny] Sourced .blogrc
[jenny] Generating main index
[jenny] ☶ 2020-03-13 hello-world.md
gawk: ~/.local/share/jenny/lib/md2html.awk:30: warning: regexp escape sequence `\!' is not a known regexp operator
gawk: ~/.local/share/jenny/lib/md2html.awk:109: warning: regexp escape sequence `\"' is not a known regexp operator
$ awk --version
GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.2.0)
A friend of mine spotted an issue in the feed for a tag.
The item link looks like http://manilafunctional.com./../post/python-list-comprehensions.html
(comes from your website ). If the ./../
can be supported by webbrowsers (it works in firefox in my case), it do not work for some feed readers
hi.
i setup a blog as per ur repo: http://jny.bright.biz.st/ ,i did it this way:
cd /usr/local
git clone https://github.com/hmngwy/jenny jenny-site
cd jenny-site
root@AR:/usr/local/jenny-site# mkdir dist
root@AR:/usr/local/jenny-site# echo "DIST=dist" >> .blogrc
root@AR:/usr/local/jenny-site# nano 2017-02-24-test-1.md
root@AR:/usr/local/jenny-site# cat 2017-02-24-test-1.md
tags: misc1 misc2 misc3
这是测试1.
看看如何?
root@AR:/usr/local/jenny-site# ./jenny
but i wonder how u generated the executable file jenny?
tks
I was considering this static blog generator but it kind of disturbs me that there is this link:
http://manilafunctional.com
all over the code.
Why not use an ENV-variable (like $HOST) for this?
I don't want to clean all of the source for myself before compiling it.
I am using jenny a couple of days, amazing job, congrats.
I created new post file using touch "$(date +%Y-%m-%d) hello-world.md"
and edited after.
When I published with docker run --rm -it -v $PWD:/blog hmngwy/jenny:latest -c
the html files are rendering to .dist folder, as you describe in README.
But something weird happen, the index.hml contain a list with the same date(today) - for eg.:
my list of markdown files
2022-11-24 hello-world.md
2022-11-25 about.md
2022-11-25 books.md
2022-11-29 sobre-jenny.md
The date used in index.html for all itens will be - (rendered by jenny):
11/29/2022 Sobre como usar o gerador de sites jenny
11/29/2022 Book List
11/29/2022 About me
11/29/2022 Hello World
Am I doing something wrong?
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.