hugo test
@@ -0,0 +1 @@
|
||||
base
|
||||
@@ -0,0 +1,45 @@
|
||||
<!doctype html>
|
||||
<html lang="en"{{ if .Params.rtl }} dir="rtl"{{ end }}>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
<meta http-equiv="Content-Language" content="{{ .Site.Language }}" />
|
||||
|
||||
<meta name="author" content="{{ .Site.Params.authors }}" />
|
||||
|
||||
<meta name="msapplication-TileColor" content="#4188c9" />
|
||||
<meta name="theme-color" content="#4188c9" />
|
||||
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="HandheldFriendly" content="True" />
|
||||
<meta name="MobileOptimized" content="320" />
|
||||
|
||||
{{ .Hugo.Generator }}
|
||||
|
||||
<link rel="icon" href="{{ .Site.BaseURL }}favicon.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="{{ .Site.BaseURL }}favicon.ico" type="image/x-icon" />
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}" />
|
||||
|
||||
{{ with .Params.robots -}}
|
||||
<meta name="robots" content="{{ . }}" />
|
||||
{{- end }}
|
||||
|
||||
<title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}{{ if .Site.Params.description }} - {{ .Site.Params.description }}{{ end }}</title>
|
||||
|
||||
{{ partial "css" . }}
|
||||
</head>
|
||||
<body class="antialiased{{ if .Params.DarkTheme }} theme-dark{{ end }}">
|
||||
|
||||
{{ .Content}}
|
||||
|
||||
{{ if eq (getenv "HUGO_ENV") "development" }}
|
||||
{{ partial "debug-footer" }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "js" . }}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,2 @@
|
||||
<link href="{{ .Site.BaseURL }}css/ui-kit.css" rel="stylesheet" />
|
||||
<link href="{{ .Site.BaseURL }}libs/jqvmap/jqvmap.css" />
|
||||
@@ -0,0 +1,107 @@
|
||||
<div class="debug">
|
||||
<a href="#" data-debug="dark">Dark mode</a>
|
||||
<a href="#" data-debug="rtl">RTL mode</a>
|
||||
<a href="#" data-debug="code">Show cards code</a>
|
||||
<a href="#" data-debug="folded">Folded sidebar</a>
|
||||
<a href="#" data-debug="fullscreen">Fullscreen</a>
|
||||
<a href="#" data-debug="header-sticky">Sticky header</a>
|
||||
</div>
|
||||
<style>
|
||||
.debug {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: #222;
|
||||
color: #fff;
|
||||
padding: .5rem .75rem;
|
||||
font-size: 12px;
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.debug a {
|
||||
color: inherit;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.debug a[data-debug]:after {
|
||||
content: '';
|
||||
margin: 0 0 1px .25rem;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
display: inline-block;
|
||||
background: rgba(255, 255, 255, .3);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
body.show-debug-code .card-debug {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media (max-width: 991.98px) {
|
||||
.debug {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
body.show-debug-code a[data-debug="code"]:after,
|
||||
html[dir="rtl"] a[data-debug="rtl"]:after,
|
||||
body.theme-dark a[data-debug="dark"]:after,
|
||||
:fullscreen a[data-debug="fullscreen"]:after,
|
||||
body.header-sticky a[data-debug="header-sticky"]:after,
|
||||
body.sidebar-folded a[data-debug="folded"]:after {
|
||||
background: #5eba00;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
|
||||
var $body = $('body'),
|
||||
$html = $('html');
|
||||
|
||||
$body
|
||||
.on('click', '[data-debug="dark"]', function (e) {
|
||||
$body.toggleClass('theme-dark');
|
||||
|
||||
e.preventDefault();
|
||||
return false;
|
||||
})
|
||||
.on('click', '[data-debug="code"]', function (e) {
|
||||
$body.toggleClass('show-debug-code');
|
||||
|
||||
e.preventDefault();
|
||||
return false;
|
||||
})
|
||||
.on('click', '[data-debug="folded"]', function (e) {
|
||||
$body.toggleClass('sidebar-folded');
|
||||
|
||||
e.preventDefault();
|
||||
return false;
|
||||
})
|
||||
.on('click', '[data-debug="fullscreen"]', function (e) {
|
||||
tabler.toggleFullscreen();
|
||||
|
||||
e.preventDefault();
|
||||
return false;
|
||||
})
|
||||
.on('click', '[data-debug="header-sticky"]', function (e) {
|
||||
$body.toggleClass('header-sticky');
|
||||
|
||||
e.preventDefault();
|
||||
return false;
|
||||
})
|
||||
.on('click', '[data-debug="rtl"]', function (e) {
|
||||
if ($html.attr('dir') === 'rtl') {
|
||||
$html.attr('dir', 'ltr');
|
||||
} else {
|
||||
$html.attr('dir', 'rtl');
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,47 @@
|
||||
<style>
|
||||
.card-debug {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
line-height: 1;
|
||||
font-size: 11px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.card-debug a {
|
||||
display: inline-block;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.card-debug a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('.card').each(function () {
|
||||
var $card = $(this),
|
||||
htmlCode = $card[0].innerHTML.replace(/(^[ \t]*\n)/gm, '');
|
||||
|
||||
var $button = $('<div class="card-debug"><a href="#" class="text-muted-light" data-code>code</a></div>'),
|
||||
$codeLink = $button.find('[data-code]');
|
||||
|
||||
$codeLink
|
||||
// .data('htmlCode', htmlCode)
|
||||
.on('click', function(e){
|
||||
|
||||
var $modal = $('<div class="modal hide"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-body"><pre class="m-0"></pre></div></div></div></div>');
|
||||
$modal.find('pre').text(htmlCode);
|
||||
$('body').append($modal);
|
||||
console.log();
|
||||
|
||||
$modal.modal('show');
|
||||
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
|
||||
$card.prepend($button);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,24 @@
|
||||
<script src="{{ .Site.BaseURL }}libs/jquery/jquery.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}libs/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<script src="{{ .Site.BaseURL }}libs/apexcharts/apexcharts.min.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}libs/peity/jquery.peity.min.js"></script>
|
||||
|
||||
|
||||
{{ if eq (getenv "HUGO_ENV") "development" }}
|
||||
{{/*
|
||||
include layout/debug-header.html
|
||||
*/}}
|
||||
{{ end }}
|
||||
|
||||
<script src="{{ .Site.BaseURL }}js/ui-kit.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}js/app/charts.js"></script>
|
||||
|
||||
<script>
|
||||
window.tabler = window.tabler || {};
|
||||
window.tabler.colors = { {{ range $color, $val := .Site.Params.colors }}
|
||||
'{{ $color }}': '{{ $val.hex }}',{{ end }}
|
||||
};
|
||||
</script>
|
||||
|
||||
{{ getenv "HUGO_ENV" }}
|
||||
@@ -0,0 +1,8 @@
|
||||
# www.robotstxt.org
|
||||
|
||||
{{ if (eq (getenv "HUGO_ENV") "production") -}}
|
||||
# Allow crawling of all content
|
||||
{{- end }}
|
||||
User-agent: *
|
||||
Disallow:{{ if (ne (getenv "HUGO_ENV") "production") }} /{{ end }}
|
||||
Sitemap: {{ .Site.BaseURL }}/sitemap.xml
|
||||
@@ -0,0 +1,9 @@
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
{{- range .Data.Pages -}}{{ if ne .Params.sitemap_exclude true }}
|
||||
<url>
|
||||
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
|
||||
<lastmod>{{ safeHTML (.Lastmod.Format "2006-01-02T15:04:05-07:00") }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
|
||||
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
|
||||
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}
|
||||
</url>{{ end }}{{ end }}
|
||||
</urlset>
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
layout: page
|
||||
---
|
||||
|
||||
sdsdf sdf
|
||||
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 521 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 5.3 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 166 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 15 KiB |