Skip to content

Commit 6ccbdc0

Browse files
committed
Merge branch 'migrate-credential-helpers-to-hugo'
A recent addition to the upstream site (that happened during the development of the Pull Request to migrate git-scm.com to a Hugo site) is taken care of by this topic branch. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents b0acf07 + 5bee54b commit 6ccbdc0

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
<%- @section = 'documentation' %>
2-
<%- @subsection = 'credential-helpers' %>
3-
<%- @page_title = 'Git credential helpers' %>
1+
---
2+
section: "documentation"
3+
subsection: "credential-helpers"
4+
title: "Git credential helpers"
5+
aliases:
6+
- /docs/credential-helpers/index.html
7+
---
48

59
<div id="main">
610
<h1>Git credential helpers</h1>

layouts/partials/ref/category.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ <h3 class='{{ $category.category_id }}'>{{ $category.name }}</h3>
44
<ul class='unstyled'>
55
{{ range $doc := $category.commands }}
66
<li>
7-
<a href="{{ print "/docs/" $doc.doc (cond (and (ne $.Page.Params.lang nil) (ne $doc.no_append_lang true) (isset (index $.Site.Data.docs.pages $doc.doc) "languages") (isset (index $.Site.Data.docs.pages $doc.doc "languages") $.Page.Params.lang)) (print "/" $.Page.Params.lang) "") }}">
7+
{{ if (eq $doc.doc "credential-helpers") }}
8+
<a href="doc/credential-helpers">
9+
{{ else }}
10+
<a href="{{ print "/docs/" $doc.doc (cond (and (ne $.Page.Params.lang nil) (ne $doc.no_append_lang true) (isset (index $.Site.Data.docs.pages $doc.doc) "languages") (isset (index $.Site.Data.docs.pages $doc.doc "languages") $.Page.Params.lang)) (print "/" $.Page.Params.lang) "") }}">
11+
{{ end }}
812
{{ if (eq $doc.title nil) }}
913
{{ replace $doc.doc "git-" "" }}
1014
{{ else }}

0 commit comments

Comments
 (0)