...
 
Commits (2)
<!DOCTYPE html>
<html lang="{{ .Lang | default .Site.Params.DefaultContentLanguage }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ .Title }}</title>
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="{{ "bundle.css" | relURL }}">
<link rel="stylesheet" href="{{ "fonts.css" | relURL }}">
<link rel="stylesheet" href="{{ "prism.css" | relURL }}">
{{ with .OutputFormats.Get "RSS" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{- end }}
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ .Title }}</title>
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="{{ "bundle.css" | relURL }}">
<link rel="stylesheet" href="{{ "fonts.css" | relURL }}">
<link rel="stylesheet" href="{{ "prism.css" | relURL }}">
{{ with .OutputFormats.Get "RSS" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{- end }}
</head>
<body>
{{ partial "header" . }}
{{ partial "header" . }}
<div>
<p>Sorry page not found</p>
{{ partial "footer" . }}
{{ partial "footer" . }}
<script src="{{ "bundle.js" | relURL }}"></script>
<script src="{{ "prism.js" | relURL }}"></script>
......
<!DOCTYPE html>
<html lang="{{ .Lang | default .Site.Params.DefaultContentLanguage }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ .Title }}</title>
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="{{ "bundle.css" | relURL }}">
<link rel="stylesheet" href="{{ "fonts.css" | relURL }}">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ .Title }}</title>
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="{{ "bundle.css" | relURL }}">
<link rel="stylesheet" href="{{ "fonts.css" | relURL }}">
<link rel="icon" href="/favicon.ico" >
<link rel="stylesheet" href="{{ "prism.css" | relURL }}">
{{ with .OutputFormats.Get "RSS" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{- end }}
<link rel="stylesheet" href="{{ "prism.css" | relURL }}">
{{ with .OutputFormats.Get "RSS" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{- end }}
</head>
<body>
{{ partial "header" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer" . }}
{{ partial "header" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer" . }}
<script src="{{ "bundle.js" | relURL }}"></script>
<script src="{{ "prism.js" | relURL }}"></script>
......
{{ define "main" }}
<main>
{{ if or .Title .Content }}
<div>
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
{{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>
{{ end }}
{{ range .Pages }}
{{ .Render "summary" }}
{{ end }}
{{ if ne .URL "/tags/" }}
<main>
{{ if or .Title .Content }}
<div>
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
{{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>
{{ end }}
{{ range .Pages }}
{{ .Render "summary" }}
{{ end }}
{{ if ne .URL "/tags/" }}
{{ partial "pagination.html" . }}
{{ end }}
</main>
</main>
{{ partial "sidebar.html" . }}
{{ end }}
{{ define "main" }}
<main>
<article>
<h1>{{ .Title }}</h1>
<main>
<article>
<h1>{{ .Title }}</h1>
{{ if ne .Date.Year 1 }}
<time datetime="{{ replace ( .Date.Format "2006.07.07" ) "." "-" }}">
{{ .Date.Format "02.01.2006 15:04" }}
......@@ -14,22 +14,22 @@
</span>
{{ end }}
{{ if (isset .Params "tags") | and (not (eq .Params.tags ""))}}
{{ with .Params.tags }}
{{ with .Params.tags }}
|
{{ range . }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}
{{ range . }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}
{{ end }}
<div>
{{ .Content }}
</div>
{{ with .Site.DisqusShortname }}
<div>
{{ template "_internal/disqus.html" . }}
</div>
{{ end }}
<div>
{{ .Content }}
</div>
{{ with .Site.DisqusShortname }}
<div>
{{ template "_internal/disqus.html" . }}
</div>
{{ end }}
</article>
</main>
</article>
</main>
{{ partial "sidebar.html" . }}
{{ end }}
......@@ -14,20 +14,20 @@
<span>
|
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
<div style="padding: 1em 0">
{{ .Summary }}
{{ if .Truncated }}
<a class="read-more" href="{{ .Permalink }}">Read More</a>
{{ end }}
<div style="padding: 1em 0">
{{ .Summary }}
{{ if .Truncated }}
<a class="read-more" href="{{ .Permalink }}">Read More</a>
{{ else }}
{{ if not (in .URL "/tags/") }}
<div style="height: 3em"></div>
{{ end }}
{{ end }}
</div>
{{ end }}
</div>
</article>
{{ else }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
......
<!DOCTYPE html>
<html lang="{{ .Lang | default .Site.Params.DefaultContentLanguage }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ .Params.name }}</title>
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="{{ "bundle.css" | relURL }}">
<link rel="stylesheet" href="{{ "fonts.css" | relURL }}">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ .Params.name }}</title>
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="{{ "bundle.css" | relURL }}">
<link rel="stylesheet" href="{{ "fonts.css" | relURL }}">
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="{{ "prism.css" | relURL }}">
{{ with .OutputFormats.Get "RSS" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{- end }}
<link rel="stylesheet" href="{{ "prism.css" | relURL }}">
{{ with .OutputFormats.Get "RSS" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{- end }}
</head>
<body class="author-detail">
{{ partial "header" . }}
{{ partial "header" . }}
<main>
<div class="avatar">
<img src="{{ .Params.avatar }}" alt="" class="avatar" />
......@@ -92,7 +92,7 @@
</ul>
</div>
</main>
{{ partial "footer" . }}
{{ partial "footer" . }}
<script src="{{ .Site.BaseURL }}bundle.js"></script>
<script src="{{ "prism.js" | relURL }}"></script>
<script>
......
{{ define "main" }}
<main>
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
<main>
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
<h1>Posts</h1>
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{ end }}
......@@ -26,5 +26,5 @@
<a href="https://drive.google.com/drive/folders/1mhVZls9ZatSB8Zh4sQawkqXpJQvPO0Zr">Press Kit</a>
</div>
</div>
<p style="text-align: center">&copy; 2012-{{ now.Year }} <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></p>
<p style="text-align: center">&copy; 2012-{{ now.Year }} <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></p>
</footer>
......@@ -3,8 +3,8 @@
<img src="/logo.png" width="170" height="95" alt="{{ .Site.Title }}">
</a>
{{ with .Site.Menus.main }}
<nav class="main-nav">
<ul class="main-nav-list">
<nav class="main-nav">
<ul class="main-nav-list">
{{ range . }}
<li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
{{ end }}
......
<div>
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}">Previous Page</a>
<a href="{{ .Paginator.Prev.URL }}">Previous Page</a>
{{ end }}
{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}">Next Page</a>
<a href="{{ .Paginator.Next.URL }}">Next Page</a>
{{ end }}
</div>
......@@ -8,45 +8,45 @@ https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+cli
code[class*="language-"],
pre[class*="language-"] {
color: #ccc;
background: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
color: #ccc;
background: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
padding: 1em;
margin: .5em 0;
overflow: auto;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #2d2d2d;
background: #2d2d2d;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.comment,
......@@ -54,35 +54,35 @@ pre[class*="language-"] {
.token.prolog,
.token.doctype,
.token.cdata {
color: #999;
color: #999;
}
.token.punctuation {
color: #ccc;
color: #ccc;
}
.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
color: #e2777a;
color: #e2777a;
}
.token.function-name {
color: #6196cc;
color: #6196cc;
}
.token.boolean,
.token.number,
.token.function {
color: #f08d49;
color: #f08d49;
}
.token.property,
.token.class-name,
.token.constant,
.token.symbol {
color: #f8c555;
color: #f8c555;
}
.token.selector,
......@@ -90,7 +90,7 @@ pre[class*="language-"] {
.token.atrule,
.token.keyword,
.token.builtin {
color: #cc99cd;
color: #cc99cd;
}
.token.string,
......@@ -98,28 +98,28 @@ pre[class*="language-"] {
.token.attr-value,
.token.regex,
.token.variable {
color: #7ec699;
color: #7ec699;
}
.token.operator,
.token.entity,
.token.url {
color: #67cdcc;
color: #67cdcc;
}
.token.important,
.token.bold {
font-weight: bold;
font-weight: bold;
}
.token.italic {
font-style: italic;
font-style: italic;
}
.token.entity {
cursor: help;
cursor: help;
}
.token.inserted {
color: green;
color: green;
}