This commit is contained in:
parent
ecabf1839c
commit
f7f4eb7e06
6 changed files with 152 additions and 4 deletions
2
.gitmodules
vendored
2
.gitmodules
vendored
|
@ -1,3 +1,3 @@
|
||||||
[submodule "coder"]
|
[submodule "coder"]
|
||||||
path = themes/coder
|
path = themes/coder
|
||||||
url = git@gitrepo.ru:NeonXP/coder.git
|
url = https://gitrepo.ru/NeonXP/coder.git
|
||||||
|
|
50
layouts/archive/single.html
Normal file
50
layouts/archive/single.html
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
{{ define "title" }}
|
||||||
|
{{ .Title }} · {{ .Site.Title }}
|
||||||
|
{{ end }}
|
||||||
|
{{ define "content" }}
|
||||||
|
<section class="container post">
|
||||||
|
<article>
|
||||||
|
<header>
|
||||||
|
<div class="post-title">
|
||||||
|
<h1 class="title">
|
||||||
|
<a class="title-link" href="{{ .Permalink | safeURL }}">
|
||||||
|
{{ .Title }}
|
||||||
|
</a>
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
<div class="post-meta">
|
||||||
|
<div class="date">
|
||||||
|
<span class="posted-on">
|
||||||
|
<i class="fa fa-calendar" aria-hidden="true"></i>
|
||||||
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
||||||
|
{{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
|
||||||
|
</time>
|
||||||
|
</span>
|
||||||
|
<span class="reading-time">
|
||||||
|
<i class="fa fa-clock-o" aria-hidden="true"></i>
|
||||||
|
{{ i18n "reading_time" .ReadingTime }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{{ with .GetTerms "authors" }}{{ partial "taxonomy/authors.html" . }}{{ end }}
|
||||||
|
{{ with .GetTerms "categories" }}{{ partial "taxonomy/categories.html" . }}{{ end }}
|
||||||
|
{{ with .GetTerms "tags" }}{{ partial "taxonomy/tags.html" . }}{{ end }}
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="post-content">
|
||||||
|
{{ if .Params.featuredImage }}
|
||||||
|
<img src="{{ .Params.featuredImage | relURL }}" alt="Илюстрация поста"/>
|
||||||
|
{{ end }}
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<h2>Комментарии</h2>
|
||||||
|
<div id="remark42"></div>
|
||||||
|
</footer>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
{{ partial "posts/math.html" . }}
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
|
@ -1,2 +0,0 @@
|
||||||
<h2>Комментарии</h2>
|
|
||||||
<div id="remark42"></div>
|
|
50
layouts/posts/single.html
Normal file
50
layouts/posts/single.html
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
{{ define "title" }}
|
||||||
|
{{ .Title }} · {{ .Site.Title }}
|
||||||
|
{{ end }}
|
||||||
|
{{ define "content" }}
|
||||||
|
<section class="container post">
|
||||||
|
<article>
|
||||||
|
<header>
|
||||||
|
<div class="post-title">
|
||||||
|
<h1 class="title">
|
||||||
|
<a class="title-link" href="{{ .Permalink | safeURL }}">
|
||||||
|
{{ .Title }}
|
||||||
|
</a>
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
<div class="post-meta">
|
||||||
|
<div class="date">
|
||||||
|
<span class="posted-on">
|
||||||
|
<i class="fa fa-calendar" aria-hidden="true"></i>
|
||||||
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
||||||
|
{{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
|
||||||
|
</time>
|
||||||
|
</span>
|
||||||
|
<span class="reading-time">
|
||||||
|
<i class="fa fa-clock-o" aria-hidden="true"></i>
|
||||||
|
{{ i18n "reading_time" .ReadingTime }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{{ with .GetTerms "authors" }}{{ partial "taxonomy/authors.html" . }}{{ end }}
|
||||||
|
{{ with .GetTerms "categories" }}{{ partial "taxonomy/categories.html" . }}{{ end }}
|
||||||
|
{{ with .GetTerms "tags" }}{{ partial "taxonomy/tags.html" . }}{{ end }}
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="post-content">
|
||||||
|
{{ if .Params.featuredImage }}
|
||||||
|
<img src="{{ .Params.featuredImage | relURL }}" alt="Илюстрация поста"/>
|
||||||
|
{{ end }}
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<h2>Комментарии</h2>
|
||||||
|
<div id="remark42"></div>
|
||||||
|
</footer>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
{{ partial "posts/math.html" . }}
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
50
layouts/projects/single.html
Normal file
50
layouts/projects/single.html
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
{{ define "title" }}
|
||||||
|
{{ .Title }} · {{ .Site.Title }}
|
||||||
|
{{ end }}
|
||||||
|
{{ define "content" }}
|
||||||
|
<section class="container post">
|
||||||
|
<article>
|
||||||
|
<header>
|
||||||
|
<div class="post-title">
|
||||||
|
<h1 class="title">
|
||||||
|
<a class="title-link" href="{{ .Permalink | safeURL }}">
|
||||||
|
{{ .Title }}
|
||||||
|
</a>
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
<div class="post-meta">
|
||||||
|
<div class="date">
|
||||||
|
<span class="posted-on">
|
||||||
|
<i class="fa fa-calendar" aria-hidden="true"></i>
|
||||||
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
||||||
|
{{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
|
||||||
|
</time>
|
||||||
|
</span>
|
||||||
|
<span class="reading-time">
|
||||||
|
<i class="fa fa-clock-o" aria-hidden="true"></i>
|
||||||
|
{{ i18n "reading_time" .ReadingTime }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{{ with .GetTerms "authors" }}{{ partial "taxonomy/authors.html" . }}{{ end }}
|
||||||
|
{{ with .GetTerms "categories" }}{{ partial "taxonomy/categories.html" . }}{{ end }}
|
||||||
|
{{ with .GetTerms "tags" }}{{ partial "taxonomy/tags.html" . }}{{ end }}
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="post-content">
|
||||||
|
{{ if .Params.featuredImage }}
|
||||||
|
<img src="{{ .Params.featuredImage | relURL }}" alt="Илюстрация поста"/>
|
||||||
|
{{ end }}
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<h2>Комментарии</h2>
|
||||||
|
<div id="remark42"></div>
|
||||||
|
</footer>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
{{ partial "posts/math.html" . }}
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
|
@ -1,3 +1,3 @@
|
||||||
![Build status](https://ci.gitrepo.ru/api/badges/neonxp/blog/status.svg)
|
![Build status](https://ci.gitrepo.ru/api/badges/neonxp/blog/status.svg)
|
||||||
|
|
||||||
Исходники моего блога https://neonxp.dev/
|
Исходники моего блога https://neonxp.ru/
|
Loading…
Reference in a new issue