From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17668 invoked from network); 9 Jan 2022 14:23:39 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 9 Jan 2022 14:23:39 -0000 Received: by lists.zx2c4.com (OpenSMTPD) with ESMTP id 9bf5fdc1; Sun, 9 Jan 2022 14:23:22 +0000 (UTC) Return-Path: Received: from metanate.com ( [2001:8b0:1628:5005::111]) by lists.zx2c4.com (OpenSMTPD) with ESMTPS id 4921ea2c (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sun, 9 Jan 2022 14:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metanate.com; s=stronger; h=In-Reply-To:Content-Type:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=ZEt7ajj5LEbPRp9UOvcbIUm+7eB9yx/wg3xeyq5VbXQ=; b=zCmRn Y4A/c9i/6rHIBehTJGLTniNs8sqmG6srqTTnvvqiUbRPej6eOrRIhQQLdTax9zVqk9LMM+ApBwL+y EnkDpCKn7J0IreLrJNMajVJfkreGZCsK7DjTviKsLvN5AbZodY8q0uPcbZQxO87+REt6hHXW0j01K s/xYguMInEss4cQMleyx8K43MLZF/k9uzklmhpv4WjL1YEvzfJ2kSN2RNALSGyYR8kLVkXHnLRL53 HPxIbboU5PMlQFzoJNhW4AaeX3R+HOsngXxgdH+Wt+W9v8GpISvMnShE2Tbq9bptcwIUGxCl9589y VECaiQBMf9cZx3J8cPAmZpQKr+xFw==; Received: from [81.174.171.191] (helo=donbot) by email.metanate.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1n6Z6M-0003R4-Jq; Sun, 09 Jan 2022 14:23:18 +0000 Date: Sun, 9 Jan 2022 14:23:17 +0000 From: John Keeping To: Derek Stevens Cc: cgit@lists.zx2c4.com Subject: Re: [PATCH] add 'go-import' meta tag if in a repo Message-ID: References: <20220108235559.23253-1-nilix@nilfm.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220108235559.23253-1-nilix@nilfm.cc> X-Authenticated: YES X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" Please include some description here about why this change is desirable. On Sat, Jan 08, 2022 at 04:55:59PM -0700, Derek Stevens wrote: > Signed-off-by: Derek Stevens > --- > ui-shared.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/ui-shared.c b/ui-shared.c > index acd8ab5..0f57af6 100644 > --- a/ui-shared.c > +++ b/ui-shared.c > @@ -785,6 +785,9 @@ void cgit_print_docstart(void) > html_txt(ctx.page.title); > html("\n"); > htmlf("\n", cgit_version); > + if (ctx.repo) > + htmlf("\n", > + host, cgit_rooturl(), ctx.repo->url, host, cgit_rooturl(), ctx.repo->url); The indentation looks wrong here... > if (ctx.cfg.robots && *ctx.cfg.robots) > htmlf("\n", ctx.cfg.robots); > html("