Initial commit
This commit is contained in:
commit
ff41d5ea95
28 changed files with 908 additions and 0 deletions
42
layouts/_default/single.html
Normal file
42
layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body>
|
||||
|
||||
<div id="all">
|
||||
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
|
||||
<div id="content" class="mt-5 mb-5">
|
||||
{{ if isset .Params "id" }}
|
||||
|
||||
{{ partial .Params.id . }}
|
||||
|
||||
{{ else }}
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
<!-- /#content -->
|
||||
|
||||
</div>
|
||||
<!-- /#all -->
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
{{ partial "scripts.html" . }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
32
layouts/index.html
Normal file
32
layouts/index.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}" style="background-color: #3A0B4D">
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body>
|
||||
|
||||
<div id="all">
|
||||
|
||||
{{ partial "top.html" . }}
|
||||
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
{{ partial "jumbo.html" . }}
|
||||
|
||||
{{ partial "carousel.html" . }}
|
||||
|
||||
{{ partial "features.html" . }}
|
||||
|
||||
{{ partial "downloads.html" . }}
|
||||
|
||||
{{ partial "community.html" . }}
|
||||
|
||||
</div>
|
||||
<!-- /#all -->
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
{{ partial "scripts.html" . }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
6
layouts/partials/breadcrumbs.html
Normal file
6
layouts/partials/breadcrumbs.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<nav aria-label="breadcrumb" style="background-color: #e9ecef">
|
||||
<ol class="breadcrumb container">
|
||||
<li class="breadcrumb-item"><a href="../">{{ i18n "home" }}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li>
|
||||
</ol>
|
||||
</nav>
|
||||
15
layouts/partials/carousel.html
Normal file
15
layouts/partials/carousel.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{{ if isset .Site.Params "carousel" }}
|
||||
{{ if gt (len .Site.Params.carousel) 0 }}
|
||||
<div class="anchor" id="features"></div>
|
||||
<div class="carousel text-light pt-5 pb-3 d-flex flex-row justify-content-around">
|
||||
{{ range sort .Site.Params.carousel "weight" }}
|
||||
<figure class="">
|
||||
<a href="{{ .image }}">
|
||||
<img class="rounded img-thumbnail" src="{{ .image }}" alt="{{ .title }}" style="max-height: 300px;">
|
||||
</a>
|
||||
<figcaption class="mt-2 text-center">{{ .description | markdownify }}</figcaption>
|
||||
</figure>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
62
layouts/partials/community.html
Normal file
62
layouts/partials/community.html
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
<div class="container d-flex flex-wrap justify-content-around mb-5" id="community" style="gap: 2em 0;">
|
||||
<div style="width: 28%" class="text-center">
|
||||
<h4>
|
||||
<span class="fa-stack fa-lg" style="color: #20a7c9">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fas fa-comments fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
{{ i18n "community-chat" }}
|
||||
</h4>
|
||||
<p>
|
||||
{{ i18n "community-chat-text" | markdownify }}
|
||||
</p>
|
||||
</div>
|
||||
<div style="width: 28%" class="text-center">
|
||||
<h4>
|
||||
<span class="fa-stack fa-lg" style="color: #9720c9">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fas fa-bug fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
{{ i18n "community-bugs" }}
|
||||
</h4>
|
||||
<p>
|
||||
{{ i18n "community-bugs-text" | markdownify }}
|
||||
</p>
|
||||
</div>
|
||||
<div style="width: 28%" class="text-center">
|
||||
<h4>
|
||||
<span class="fa-stack fa-lg" style="color: #c92052">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fas fa-language fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
{{ i18n "community-translation" }}
|
||||
</h4>
|
||||
<p>
|
||||
{{ i18n "community-translation-text" | markdownify }}
|
||||
</p>
|
||||
</div>
|
||||
<div style="width: 28%" class="text-center">
|
||||
<h4>
|
||||
<span class="fa-stack fa-lg" style="color: #c99720">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fas fa-code fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
{{ i18n "community-code" }}
|
||||
</h4>
|
||||
<p>
|
||||
{{ i18n "community-code-text" | markdownify }}
|
||||
</p>
|
||||
</div>
|
||||
<div style="width: 28%" class="text-center">
|
||||
<h4>
|
||||
<span class="fa-stack fa-lg" style="color: #20c943">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fas fa-paper-plane fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
{{ i18n "community-contact" }}
|
||||
</h4>
|
||||
<p>
|
||||
{{ i18n "community-contact-text" | markdownify }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
15
layouts/partials/downloads.html
Normal file
15
layouts/partials/downloads.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<div class="anchor" id="downloads"></div>
|
||||
<div class="jumbotron">
|
||||
<div class="container">
|
||||
<h3 class="font-weight-bolder">
|
||||
{{ i18n "downloads-title" }}
|
||||
</h3>
|
||||
<div class="row">
|
||||
<div class="col-md-10 offset-md-1">
|
||||
<p>
|
||||
{{ i18n "downloads-text" | markdownify }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
38
layouts/partials/features.html
Normal file
38
layouts/partials/features.html
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<div class="container">
|
||||
<div class="row mt-3">
|
||||
<h3 class="text-center font-weight-bolder mt-5 mb-5 offset-md-2 col-md-8" style="line-height: 1.5em;">
|
||||
{{ i18n "features-title" | safeHTML }}
|
||||
</h3>
|
||||
</div>
|
||||
<div class="row mt-4 mb-5 text-justify">
|
||||
<div class="col-md-4 pt-5">
|
||||
<p class="font-weight-bold" style="font-size: 1.15rem;">
|
||||
{{ i18n "features-lead" }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-sm-6 col-md-4">
|
||||
<div class="text-center mb-2">
|
||||
<hr style="margin-top: 21px; margin-bottom: -21px; border-color: #9720c955;">
|
||||
<span class="fa-stack fa-lg" style="color: #4b1064">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fas fa-gamepad fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
</div>
|
||||
<p>
|
||||
{{ i18n "features-col1" | markdownify }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-sm-6 col-md-4">
|
||||
<div class="text-center mb-2">
|
||||
<hr style="margin-top: 21px; margin-bottom: -21px; border-color: #9720c955;">
|
||||
<span class="fa-stack fa-lg" style="color: #4b1064">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fas fa-rocket fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
</div>
|
||||
<p>
|
||||
{{ i18n "features-col2" | markdownify }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
14
layouts/partials/footer.html
Normal file
14
layouts/partials/footer.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<footer class="pt-3 pb-5 bg-dark text-light">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md">
|
||||
© 2019-2020 <span style="font-family: 'Fortheenas01';font-weight:bold;">happy<span style="font-family: 'Fortheenas01 Bold';margin-left:.1em;">DNS</span></span>
|
||||
</div>
|
||||
<div class="col-md">
|
||||
<a href="/{{ .Site.Language.Lang }}/legal-notice/" class="text-secondary">
|
||||
{{ i18n "legal-notice" }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
49
layouts/partials/head.html
Normal file
49
layouts/partials/head.html
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<meta name="robots" content="all,follow">
|
||||
<meta name="googlebot" content="index,follow,snippet,archive">
|
||||
<title>{{ .Title }}</title>
|
||||
<meta name="author" content="{{ .Site.Author.name }}" />
|
||||
{{ .Hugo.Generator }}
|
||||
|
||||
{{ if .Keywords }}
|
||||
<meta name="keywords" content="{{ delimit .Keywords ", " }}">
|
||||
{{ else if .Site.Params.DefaultKeywords }}
|
||||
<meta name="keywords" content="{{ delimit .Site.Params.DefaultKeywords ", " }}">
|
||||
{{ end }}
|
||||
|
||||
{{ if .Description }}
|
||||
<meta name="description" content="{{ .Description }}">
|
||||
{{ else if .Site.Params.DefaultDescription }}
|
||||
<meta name="description" content="{{ .Site.Params.DefaultDescription }}">
|
||||
{{ end }}
|
||||
|
||||
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" crossorigin="anonymous">
|
||||
|
||||
<!-- Theme stylesheet, if possible do not edit this stylesheet -->
|
||||
{{ if and (isset .Site.Params "style") .Site.Params.style }}
|
||||
<link href="{{ .Site.BaseURL }}css/style.{{ .Site.Params.style }}.css" rel="stylesheet" id="theme-stylesheet">
|
||||
{{ else }}
|
||||
<link href="{{ .Site.BaseURL }}css/style.default.css" rel="stylesheet" id="theme-stylesheet">
|
||||
{{ end }}
|
||||
|
||||
<!-- Custom stylesheet - for your changes -->
|
||||
<link href="{{ .Site.BaseURL }}css/custom.css" rel="stylesheet">
|
||||
|
||||
<!-- Responsivity for older IE -->
|
||||
{{ `
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
` | safeHTML }}
|
||||
|
||||
<!-- Favicon and apple touch icons-->
|
||||
<link rel="shortcut icon" href="{{ .Site.BaseURL }}img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}img/apple-touch-icon.png" />
|
||||
|
||||
<link rel="alternate" href="{{ "/index.xml" | absURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||
</head>
|
||||
18
layouts/partials/jumbo.html
Normal file
18
layouts/partials/jumbo.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<div class="jumbotron bg-light mt-n1 mb-0">
|
||||
<div class="container">
|
||||
<h1 class="display-3 text-center">
|
||||
<span style="font-family: 'Fortheenas01';font-weight:bold;">happy</span><span style="font-family: 'Fortheenas01 Bold';margin-left:.1em;">DNS</span>
|
||||
</h1>
|
||||
<h2 class="display-5 text-center text-muted">
|
||||
{{ i18n "slogan" }}
|
||||
</h2>
|
||||
<p class="mt-4 lead">
|
||||
<span style="font-family: 'Fortheenas01';font-weight:bold;">happy</span><span style="font-family: 'Fortheenas01 Bold';margin-left:.1em;">DNS</span>
|
||||
{{ i18n "lead" | markdownify }}
|
||||
</p>
|
||||
<p>
|
||||
<a class="btn btn-primary mt-2" href="/join">{{ i18n "tryit" }} »</a>
|
||||
<a class="btn btn-outline-secondary mt-2" href="#downloads">{{ i18n "downloadit" }} »</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
58
layouts/partials/nav.html
Normal file
58
layouts/partials/nav.html
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<nav class="navbar navbar-expand-md sticky-top navbar-light bg-light">
|
||||
<div class="container">
|
||||
<a class="h1 navbar-brand mb-0" href="/" style="font-family: 'Fortheenas01';font-weight:bold;">
|
||||
happy<span style="font-family: 'Fortheenas01 Bold';margin-left:.1em;">DNS</span>
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse justify-content-between" id="navbarCollapse">
|
||||
<ul class="navbar-nav">
|
||||
{{ range .Site.Menus.main }}
|
||||
{{ if .HasChildren }}
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
{{ range .Children }}
|
||||
<a href="{{ .URL }}" class="dropdown-item">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ else }}
|
||||
<li class="nav-item">
|
||||
<a href="{{ .URL }}" class="nav-link">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<div class="nav-item nav-ext-links">
|
||||
{{ range .Site.Data.social.social_icons }}
|
||||
{{- if isset $.Site.Author .id }}
|
||||
<a class="nav-icon-link" href="{{ printf .url (index $.Site.Author .id) }}" title="{{ .title }}"><span class="fa-stack fa-lg"><i class="fa fa-circle fa-stack-2x"></i><i class="fa {{ .icon }} fa-stack-1x fa-inverse"></i></span></a>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
{{ if .Site.Params.rss }}
|
||||
{{ if .RSSLink }}
|
||||
<a href="{{ .RSSLink }}" title="RSS" class="nav-icon-link">
|
||||
{{ else }}
|
||||
<a href="{{ .Site.RSSLink }}" title="RSS" class="nav-icon-link">
|
||||
{{ end }}
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa-rss fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.tryit }}
|
||||
<a href="{{ .Site.Params.tryit }}" title="{{ i18n "tryhappydns" }}" class="nav-icon-link">
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa-arrow-right fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
2
layouts/partials/scripts.html
Normal file
2
layouts/partials/scripts.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
|
||||
18
layouts/partials/top.html
Normal file
18
layouts/partials/top.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{{ if .Site.Params.topbar.enable }}
|
||||
<div id="top">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-5">
|
||||
{{ .Site.Params.topbar.text | safeHTML }}
|
||||
</div>
|
||||
<div class="col-xs-7">
|
||||
<div class="social">
|
||||
{{ range .Site.Menus.topbar.ByWeight }}
|
||||
<a href="{{ .URL }}" target="_blank" style="opacity: 1;">{{ .Pre }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue