Giter Site home page Giter Site logo

jenny's People

Contributors

dknight avatar hmngwy avatar rcmorano avatar the-eater avatar x4m3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jenny's Issues

How about built in `jenny create`?

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.

Populate feed.xml with full blog article contents

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_

Path error during deployment / Installation issue

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

github integration?

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!

themes for jenny?

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

Tests

  • Test installation
  • Test script setup stage, symlinked
  • Test script setup stage, installed
  • Test blank blog directory render
  • Test CLI option overrides
  • Test valid blog render, with and without .blogrc
    • Test indexes
    • Test tags
    • Test rss
  • Test uninstallation

Add optional time for future posts

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.

Create a blog initiation script / subcommand

  • Asks for a directory where you want to start a blog
  • Should prompt for .blogrc values and generatethe file
  • Should ask if user wants to create a filler hello world post
  • Ask if user wants to install helper aliases, or just display them for manual installation

gawk regexp escape sequence is not a known regexp operator

fresh 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)

Malformed url in tag feeds

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

where did u get the executable file jenny?

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

测试1

tags: misc1 misc2 misc3

这是测试1.

看看如何?
root@AR:/usr/local/jenny-site# ./jenny

but i wonder how u generated the executable file jenny?
tks

Static link in code?

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.

List of posts aren't following YYYY-MM-DD pattern

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.