Skip to content

Commit

Permalink
Add/badges (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalitov authored Apr 1, 2023
1 parent 24f3a1d commit 5648c40
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @rvalitov
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 2 additions & 0 deletions src/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions src/layouts/home.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
{{$collection:=(sort .Site.Data ".weight" "asc")}}
{{$default:=index ($collection) 0}}
<html lang="{{$default.code}}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex,nofollow,nocache,nosnippet,noarchive,noodp,noydir"/>
<link rel="shortcut icon" href="{{.Site.Params.favicon}}" type="image/x-icon">
<link rel="icon" href="{{.Site.Params.favicon}}" type="image/x-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uikit@3.16.11/dist/css/uikit.min.css" integrity="sha256-XP1nMbaNkpaqweVWm6VOZuwmiqRKXeI9fvXXU7JqXgc=" crossorigin="anonymous">
<title>{{.Site.Params.Title}}</title>
<style>
{{partial "styles.css" | safeCSS}}
</style>
Expand All @@ -19,15 +22,14 @@
style="{{. | safeCSS}}"
{{end}}
>
{{$collection:=(sort .Site.Data ".weight" "asc")}}
<div class="uk-section">
<div class="uk-container">
{{if .Site.Params.LogoURL}}
<div class="uk-text-center" id="logo-container">
{{if $.Site.Params.WebsiteURL}}
<a href="{{$.Site.Params.WebsiteURL}}">
{{end}}
<img src="{{$.Site.Params.logoURL}}" alt="Logo" id="logo"
<img src="{{$.Site.Params.logoURL}}" alt="Logo" id="logo" lang="en"
{{with $.Site.Params.logoStyles}}
style="{{. | safeCSS}}"
{{end}}
Expand All @@ -44,7 +46,7 @@
dir="{{.direction}}"
{{end}}
>
<a href="">{{.language}}</a>
<a href="" lang="{{.code}}">{{.language}}</a>
</li>
{{end}}
</ul>
Expand Down Expand Up @@ -101,7 +103,7 @@
</div>
<script src="https://cdn.jsdelivr.net/npm/uikit@3.16.11/dist/js/uikit.min.js" integrity="sha256-6APb/Kno+RRKAnlMzJzlJMyXQij6e9mU4Ru5N37HQvk=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/uikit@3.16.11/dist/js/uikit-icons.min.js" integrity="sha256-HFK2G7MjZ9npuAxiUZMetBVH6sU9vOM7USHDj0JaGZ8=" crossorigin="anonymous"></script>
<script async>
<script>
{{partial "scripts.js" . | safeJS}}
</script>
</body>
Expand Down

0 comments on commit 5648c40

Please sign in to comment.