New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make custom log page #65

Closed
stevekrouse opened this Issue Dec 4, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@stevekrouse
Owner

stevekrouse commented Dec 4, 2017

I've noticed that I've had less strangers from the internet emailing me recently. I wonder if that's because I've been away sick or because my journal is now harder to read in commit messages.

Simplest version of this:

Extras:

  • render the commit messages as github markdown {{ page.excerpt | markdownify }}
  • link to commit on github to see file changes
  • get rid of strange character errors
  • filter out merge commits and "update git log" commits
  • main header css
  • better styles for each commit
  • anchor tags to headings
  • table of contents
  • also get stuff from /journal into /log?
  • show expand and collapseable file changes

@stevekrouse stevekrouse added the priority label Dec 4, 2017

@stevekrouse

This comment has been minimized.

Show comment
Hide comment
@stevekrouse

stevekrouse Dec 4, 2017

Owner

Save the following in .git/hooks/post-commit after pip install git2json

git2json > _data/git-log.json

previousMessage=$(git log -1 --pretty=%B)

if [ "$previousMessage" != "updated git log" ]
then
    git add _data/git-log.json
    git commit -m "updated git log" 
fi

exit 1
Owner

stevekrouse commented Dec 4, 2017

Save the following in .git/hooks/post-commit after pip install git2json

git2json > _data/git-log.json

previousMessage=$(git log -1 --pretty=%B)

if [ "$previousMessage" != "updated git log" ]
then
    git add _data/git-log.json
    git commit -m "updated git log" 
fi

exit 1

@stevekrouse stevekrouse closed this Dec 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment