add page description on subpages

Signed-off-by: Avelino <avelinorun@gmail.com>
This commit is contained in:
Avelino 2021-12-25 11:04:11 -03:00
parent a7b4e90f00
commit 08725d72e6
2 changed files with 58 additions and 40 deletions

17
tmpl/cat-tmpl.html vendored
View File

@ -16,6 +16,8 @@
<meta property="og:image" content="https://awesome-go.com/assets/logo.png" /> <meta property="og:image" content="https://awesome-go.com/assets/logo.png" />
<meta property="og:description" content="{{.Description}} - Awesome Go" /> <meta property="og:description" content="{{.Description}} - Awesome Go" />
<link rel="canonical" href="https://awesome-go.com/{{.Slug}}">
<link rel="stylesheet" type="text/css" href="/assets/fonts/firasans.css"> <link rel="stylesheet" type="text/css" href="/assets/fonts/firasans.css">
<link rel="stylesheet" type="text/css" href="/assets/normalize.css"> <link rel="stylesheet" type="text/css" href="/assets/normalize.css">
<link rel="stylesheet" type="text/css" href="/assets/awesome-go.css"> <link rel="stylesheet" type="text/css" href="/assets/awesome-go.css">
@ -31,6 +33,8 @@
{{.Title}} - <a href="https://awesome-go.com/">Awesome Go</a> {{.Title}} - <a href="https://awesome-go.com/">Awesome Go</a>
</h1> </h1>
<p><em>{{.Description}}</em></p>
<p> <p>
<a href="https://github.com/avelino/awesome-go/actions/workflows/tests.yaml?query=branch%3Amain" rel="nofollow"><img src="https://github.com/avelino/awesome-go/actions/workflows/tests.yaml/badge.svg?branch=main" alt="Build Status"></a> <a href="https://github.com/avelino/awesome-go/actions/workflows/tests.yaml?query=branch%3Amain" rel="nofollow"><img src="https://github.com/avelino/awesome-go/actions/workflows/tests.yaml/badge.svg?branch=main" alt="Build Status"></a>
<a href="https://github.com/sindresorhus/awesome" rel="nofollow"><img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome"></a> <a href="https://github.com/sindresorhus/awesome" rel="nofollow"><img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome"></a>
@ -44,10 +48,21 @@
</p> </p>
</header> </header>
<div>
<h3 id="sponsorships">Sponsorships</h3>
<p>
<a href="https://www.doppler.com/?utm_campaign=github_repo&amp;utm_medium=referral&amp;utm_content=awesomego&amp;utm_source=github"><img src="https://github.com/avelino/awesome-go/raw/main/tmpl/assets/sponsors/doppler.png" alt="Doppler"></a>
</p>
<p>
<a href="https://m.do.co/c/bd3b723c0a36?utm_medium=opensource&amp;utm_source=awesome-go"><img src="https://avelino.run/sponsors/do_logo_horizontal_blue-210.png" alt="Digital Ocean"></a>
</p>
</div>
<i><a href="/#contents" alt="back to content menu" title="back to content menu">🗺️ back to content menu</a></i>
<ul> <ul>
{{range .Items}} {{range .Items}}
<li><a href="/{{.Url}}" alt="Go to {{.Title}} link">{{.Description}}</a></li> <li><a href="/{{.Url}}" alt="Go to {{.Title}} link" title="Go to {{.Title}} link">{{.Description}}</a></li>
{{end}} {{end}}
</ul> </ul>

79
tmpl/tmpl.html vendored
View File

@ -2,51 +2,54 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Language" content="en"> <meta http-equiv="Content-Language" content="en">
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<title>A curated list of awesome Go frameworks, libraries and software - Awesome Go</title> <title>A curated list of awesome Go frameworks, libraries and software - Awesome Go</title>
<meta name="description" content="A curated list of awesome Go frameworks, libraries and software"> <meta name="description" content="A curated list of awesome Go frameworks, libraries and software">
<meta name="keywords" content="golang, go, awesome, awesome-go, go framework, golang framework"> <meta name="keywords" content="golang, go, awesome, awesome-go, go framework, golang framework">
<meta name="twitter:card" value="summary"> <meta name="twitter:card" value="summary">
<meta property="og:title" content="A curated list of awesome Go frameworks, libraries and software - Awesome Go" /> <meta property="og:title" content="A curated list of awesome Go frameworks, libraries and software - Awesome Go" />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:url" content="https://awesome-go.com/" /> <meta property="og:url" content="https://awesome-go.com/" />
<meta property="og:image" content="https://awesome-go.com/assets/logo.png" /> <meta property="og:image" content="https://awesome-go.com/assets/logo.png" />
<meta property="og:description" content="A curated list of awesome #Golang frameworks, libraries and software" /> <meta property="og:description" content="A curated list of awesome #Golang frameworks, libraries and software" />
<link rel="stylesheet" type="text/css" href="/assets/fonts/firasans.css"> <link rel="canonical" href="https://awesome-go.com/">
<link rel="stylesheet" type="text/css" href="/assets/normalize.css">
<link rel="stylesheet" type="text/css" href="/assets/awesome-go.css"> <link rel="stylesheet" type="text/css" href="/assets/fonts/firasans.css">
<link rel="stylesheet" type="text/css" href="/assets/normalize.css">
<link rel="stylesheet" type="text/css" href="/assets/awesome-go.css">
</head> </head>
<body> <body>
<div id="content"> <div id="content">
{{.Body}} {{.Body}}
<a href="https://www.netlify.com"> <a href="https://www.netlify.com">
<img src="https://www.netlify.com/img/global/badges/netlify-dark.svg" alt="Deploys by Netlify" /> <img src="https://www.netlify.com/img/global/badges/netlify-dark.svg" alt="Deploys by Netlify" />
</a> </a>
</div> </div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous"></script>
integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" <script src="https://cdnjs.cloudflare.com/ajax/libs/marked/1.1.0/marked.min.js" integrity="sha512-uggp1jOpxGjqTeS8Fit5x6+lqyJoIuXXn/VziVPlxBRnqZ0FhCaxsUnQsPL5PKylHr0KIoMtNbBIiU6n31dDTg==" crossorigin="anonymous"></script>
crossorigin="anonymous"></script> <script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/1.1.0/marked.min.js" (function(i, s, o, g, r, a, m) {
integrity="sha512-uggp1jOpxGjqTeS8Fit5x6+lqyJoIuXXn/VziVPlxBRnqZ0FhCaxsUnQsPL5PKylHr0KIoMtNbBIiU6n31dDTg==" i['GoogleAnalyticsObject'] = r;
crossorigin="anonymous"></script> i[r] = i[r] || function() {
<script> (i[r].q = i[r].q || []).push(arguments)
(function (i, s, o, g, r, a, m) { }, i[r].l = 1 * new Date();
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { a = s.createElement(o),
(i[r].q = i[r].q || []).push(arguments) m = s.getElementsByTagName(o)[0];
}, i[r].l = 1 * new Date(); a = s.createElement(o), a.async = 1;
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) a.src = g;
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-85465107-1', 'auto'); ga('create', 'UA-85465107-1', 'auto');
ga('send', 'pageview'); ga('send', 'pageview');
</script> </script>
</body> </body>
</html> </html>