~kornellapacz/gmnigit

6af184b724888895f7a34c3ea86282a7a0e40127 — Omar Polo 2 months ago 6104fff
add an alt text for the git clone command
1 files changed, 4 insertions(+), 2 deletions(-)

M files.go
M files.go => files.go +4 -2
@@ 116,8 116,10 @@ func createIndexFile() {
	indexFile, err := os.Create(filepath.Join(distPath, "index.gmi"))
	check(err)

	if cloneURL != "" {
		indexFile.WriteString("```\ngit clone " + strings.TrimSpace(cloneURL) + "\n```\n\n")
	url := strings.TrimSpace(cloneURL)
	if url != "" {
		descr := "Command to clone this repository"
		fmt.Fprintf(indexFile, "```%s\ngit clone %s\n```\n\n", descr, url)
	}

	indexFile.WriteString("=> " + commitsSubPath + "/\n")