From 5648c40aceb3a49f95824ef0feee93f632d6a6ce Mon Sep 17 00:00:00 2001 From: Ramil Valitov Date: Sat, 1 Apr 2023 10:54:56 +0300 Subject: [PATCH] Add/badges (#5) --- .github/CODEOWNERS | 1 + README.md | 8 +++++++- src/config.toml | 2 ++ src/layouts/home.html | 12 +++++++----- 4 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..2555e70 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @rvalitov diff --git a/README.md b/README.md index d6a204b..fc1b20f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ [![Codacy Badge](https://api.codacy.com/project/badge/Grade/cca1e0cef28a470cbbc1d3c0c877ca89)](https://app.codacy.com/gh/walitoff/website-not-found?utm_source=github.com&utm_medium=referral&utm_content=walitoff/website-not-found&utm_campaign=Badge_Grade) -[![ESLint](https://github.com/walitoff/website-not-found/actions/workflows/eslint.yml/badge.svg)](https://github.com/walitoff/website-not-found/actions/workflows/eslint.yml) [![CodeQL](https://github.com/walitoff/website-not-found/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/walitoff/website-not-found/actions/workflows/github-code-scanning/codeql) [![Codacy Security Scan](https://github.com/walitoff/website-not-found/actions/workflows/codacy.yml/badge.svg?branch=main)](https://github.com/walitoff/website-not-found/actions/workflows/codacy.yml) [![Node.js CI](https://github.com/walitoff/website-not-found/actions/workflows/node.js.yml/badge.svg)](https://github.com/walitoff/website-not-found/actions/workflows/node.js.yml) [![Deploy Hugo site to Pages](https://github.com/walitoff/website-not-found/actions/workflows/hugo.yml/badge.svg)](https://github.com/walitoff/website-not-found/actions/workflows/hugo.yml) +[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/823936c92937484e91f3576cb410fd1e)](https://app.codacy.com/gh/walitoff/website-not-found/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage) +[![ESLint](https://github.com/walitoff/website-not-found/actions/workflows/eslint.yml/badge.svg)](https://github.com/walitoff/website-not-found/actions/workflows/eslint.yml) +[![CodeQL](https://github.com/walitoff/website-not-found/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/walitoff/website-not-found/actions/workflows/github-code-scanning/codeql) +[![Codacy Security Scan](https://github.com/walitoff/website-not-found/actions/workflows/codacy.yml/badge.svg?branch=main)](https://github.com/walitoff/website-not-found/actions/workflows/codacy.yml) +[![Node.js CI](https://github.com/walitoff/website-not-found/actions/workflows/node.js.yml/badge.svg)](https://github.com/walitoff/website-not-found/actions/workflows/node.js.yml) +[![Deploy Hugo site to Pages](https://github.com/walitoff/website-not-found/actions/workflows/hugo.yml/badge.svg)](https://github.com/walitoff/website-not-found/actions/workflows/hugo.yml) +![GitHub](https://img.shields.io/github/license/walitoff/website-not-found?color=yellow) # 404 Page for Missing Website (Domain) diff --git a/src/config.toml b/src/config.toml index e8c03d2..7c5c4a5 100644 --- a/src/config.toml +++ b/src/config.toml @@ -6,6 +6,8 @@ disableSitemap = true disableKinds = ["page", "section", "taxonomy", "term", "RSS", "sitemap"] enableRobotsTXT = false [params] + #Page title used as a tab title in browser. It's static and does not change if user changes language. + title="404" #Required. Your favicon hosted externally, URL shorteners can be useful favicon="https://www.walitoff.com/favicon.ico" #Optional, leave blank or comment to disable. If image is used then icon is ignored. Put here image in base64 diff --git a/src/layouts/home.html b/src/layouts/home.html index 9506c9c..aba3cd8 100644 --- a/src/layouts/home.html +++ b/src/layouts/home.html @@ -1,5 +1,7 @@ - +{{$collection:=(sort .Site.Data ".weight" "asc")}} +{{$default:=index ($collection) 0}} + @@ -7,6 +9,7 @@ + {{.Site.Params.Title}} @@ -19,7 +22,6 @@ style="{{. | safeCSS}}" {{end}} > -{{$collection:=(sort .Site.Data ".weight" "asc")}}
{{if .Site.Params.LogoURL}} @@ -27,7 +29,7 @@ {{if $.Site.Params.WebsiteURL}} {{end}} - - {{.language}} + {{.language}} {{end}} @@ -101,7 +103,7 @@
-