Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Links to article source in a git system #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ftertre
Copy link
Contributor

@ftertre ftertre commented Mar 12, 2019

This is a functionnality available in Learn2 theme and really interresting when you are creating a documentation.

This PR add the possibility to have in the pages of the articles two links to Git management system (Github, Gitlab or other) to go directly on the source of the article for the first one (Edit this page) or to the history of commits for the second one (View history).

I have added two params in articles, one with the link to the tree, one with the link to the commits. If the parameter is missing in the config file, the link is not shown in the article.

It works for both single Grav site and multisite.

There is no request from other for that function, but as it was something needed for me, I share it ;)

@ftertre
Copy link
Contributor Author

ftertre commented Mar 12, 2019

Forgot to say : I have made only English and French languages for the two texts needed by this PR (Edit this page and View history).

@Perlkonig
Copy link
Owner

Merci bien! I'll have to do some testing and then consider including it. I'll have to add some documentation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants