Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Say that an about page needs a readme line
Without one a repository has no about tab and its about url redirects
to the summary, so a site that sets only about-filter never sees the
renderer run.
Diffstat (limited to 'custom/extensions/about-render.lua')
| -rw-r--r-- | custom/extensions/about-render.lua | 3 |
1 file changed, 2 insertions, 1 deletion
diff --git a/custom/extensions/about-render.lua b/custom/extensions/about-render.lua index b0afa4a..03c17d8 100644 --- a/custom/extensions/about-render.lua +++ b/custom/extensions/about-render.lua @@ -5,7 +5,8 @@ -- extension, and anything that fails to parse falls back to escaped plain -- text. Markdown and man pages come out in div.markdown and plain text in -- pre.plaintext, the two wrappers assets/cgit.css styles. It runs on Lua 5.1 --- through 5.5 and LuaJIT. +-- through 5.5 and LuaJIT. A repository has an about page only when a readme +-- or repo.readme line, such as readme=:README.md, names a file that exists. -- -- about-filter=lua:/usr/local/lib/cgit/filters/about-render.lua |
