dynamic titles

This commit is contained in:
pluja 2024-08-28 08:26:09 +02:00
parent 1ebf895f93
commit 32822f0675
No known key found for this signature in database
2 changed files with 9 additions and 9 deletions

View File

@ -7,7 +7,7 @@
<meta name="description" content="Find the best NON-KYC exchanges and services to use and spend your crypto anonymously.">
<meta name="keywords"
content="KYC, AML, Bitcoin, Crypto, Cryptocurrency, Exchange, Exchanges, Service, Services, Anonymous, Anonymity, Privacy, Pseudonymity, Pseudonymous, Non-KYC, No-KYC, No KYC, Monero, XMR, BTC">
<meta property="og:title" content="KYCNOT.ME" />
<meta property="og:title" content="{{.Title}}" />
<meta property="og:description"
content="Find the best NON-KYC exchanges and services to use and spend your crypto anonymously." />
<meta property="og:type" content="website" />
@ -24,7 +24,7 @@
<link rel="stylesheet" href="/static/css/balloon.min.css">
<!-- Site Config -->
<title>{{.Title}} - KYCnot.me</title>
<title>{{.Title}}</title>
<link rel='stylesheet' href='/static/css/style.css'>
<link rel="shortcut icon" href="/static/assets/favicon.webp" type="image/x-icon">
</head>
@ -37,8 +37,8 @@
<body class="h-full text-gray-200 bg-fixed bg-black bg-center bg-cover font-samo" style="background-image: url('/static/assets/gradient.webp');">
<!-- Nav Bar -->
<nav class="flex justify-center items-center w-full bg-none">
<div class="flex flex-col justify-between items-center px-4 w-full max-w-6xl md:flex-row">
<nav class="flex items-center justify-center w-full bg-none">
<div class="flex flex-col items-center justify-between w-full max-w-6xl px-4 md:flex-row">
<!-- Logo -->
<a href="/">
<img src="/static/assets/logo_wide.svg" alt="Logo" class="pt-2 max-w-48 lg:max-w-48" />
@ -76,7 +76,7 @@
</nav>
{{if .Error}}
<div class="flex justify-center items-center">
<div class="flex items-center justify-center">
<p class="px-2 py-2 font-bold text-center rounded-lg bg-red-500/70 text-md text-neutral-100">
{{ .Error }}
</p>
@ -84,7 +84,7 @@
{{end}}
{{if .Message}}
<div class="flex justify-center items-center">
<div class="flex items-center justify-center">
<p class="px-2 py-2 font-bold text-center rounded-lg text-md bg-blue-500/70 text-neutral-100">
{{ .Message }}
</p>

View File

@ -75,7 +75,7 @@ func (s *Server) handleIndex(c iris.Context) {
c.ViewLayout("main")
data := iris.Map{
"Title": "Home",
"Title": "KYCNOT.ME",
"Filters": map[string]string{
"Type": t,
"Query": q,
@ -116,7 +116,7 @@ func (s *Server) handleService(c iris.Context) {
c.ViewLayout("main")
data := iris.Map{
"Title": fmt.Sprintf("%v | Service", serviceName),
"Title": fmt.Sprintf("%v", strings.ToUpper(service.Name)),
"Service": service,
"Attributes": service.Expand["attributes"],
}
@ -165,7 +165,7 @@ func (s *Server) handleAttribute(c iris.Context) {
c.ViewLayout("main")
data := iris.Map{
"Title": fmt.Sprintf("%v", attribute.Title),
"Title": fmt.Sprintf("%v", strings.ToUpper(attribute.Title)),
"Attribute": attribute,
"Services": services,
}