add content types
This commit is contained in:
parent
1c669f45c8
commit
f34addf793
4
layouts/portfolio/li.html
Normal file
4
layouts/portfolio/li.html
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<li>
|
||||||
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
<div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
|
||||||
|
</li>
|
0
layouts/portfolio/li.html~
Normal file
0
layouts/portfolio/li.html~
Normal file
28
layouts/portfolio/list.html
Normal file
28
layouts/portfolio/list.html
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<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>
|
||||||
|
{{ $style := resources.Get "css/basic.scss" }}
|
||||||
|
{{ $style = $style | toCSS }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||||
|
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||||
|
|
||||||
|
{{ with .OutputFormats.Get "RSS" -}}
|
||||||
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||||||
|
{{- end }}
|
||||||
|
</head>
|
||||||
|
<main id="main">
|
||||||
|
<div>
|
||||||
|
<h1 id="title">{{ .Title }}</h1>
|
||||||
|
{{ range .Pages }}
|
||||||
|
{{ .Render "summary"}}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</main>
|
8
layouts/portfolio/list.html~
Normal file
8
layouts/portfolio/list.html~
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<main id="main">
|
||||||
|
<div>
|
||||||
|
<h1 id="title">{{ .Title }}</h1>
|
||||||
|
{{ range .Pages }}
|
||||||
|
{{ .Render "summary"}}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</main>
|
9
layouts/portfolio/summary.html
Normal file
9
layouts/portfolio/summary.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<article class="recent-block recent-block--right">
|
||||||
|
<div>
|
||||||
|
<a class="article__link" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
</div>
|
||||||
|
<time class="recent-block__time">{{ .Date.Format "02.01.2006 15:04" }}</time>
|
||||||
|
{{ range .Params.tags }}
|
||||||
|
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</article>
|
30
layouts/portfolio/summary.html~
Normal file
30
layouts/portfolio/summary.html~
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<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>
|
||||||
|
{{ $style := resources.Get "css/basic.scss" }}
|
||||||
|
{{ $style = $style | toCSS }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||||
|
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||||
|
|
||||||
|
{{ with .OutputFormats.Get "RSS" -}}
|
||||||
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||||||
|
{{- end }}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<article class="recent-block recent-block--right">
|
||||||
|
<div>
|
||||||
|
<a class="article__link" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
</div>
|
||||||
|
<time class="recent-block__time">{{ .Date.Format "02.01.2006 15:04" }}</time>
|
||||||
|
{{ range .Params.tags }}
|
||||||
|
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</article>
|
4
layouts/posts/li.html
Normal file
4
layouts/posts/li.html
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<li>
|
||||||
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
<div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
|
||||||
|
</li>
|
0
layouts/posts/li.html~
Normal file
0
layouts/posts/li.html~
Normal file
26
layouts/posts/list.html
Normal file
26
layouts/posts/list.html
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<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>
|
||||||
|
{{ $style := resources.Get "css/basic.scss" }}
|
||||||
|
{{ $style = $style | toCSS }}
|
||||||
|
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||||
|
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||||
|
|
||||||
|
{{ with .OutputFormats.Get "RSS" -}}
|
||||||
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||||||
|
{{- end }}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<main id="main">
|
||||||
|
<div>
|
||||||
|
<h1 id="title">{{ .Title }}</h1>
|
||||||
|
{{ range .Pages }}
|
||||||
|
{{ .Render "summary"}}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</main>
|
8
layouts/posts/list.html~
Normal file
8
layouts/posts/list.html~
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<main id="main">
|
||||||
|
<div>
|
||||||
|
<h1 id="title">{{ .Title }}</h1>
|
||||||
|
{{ range .Pages }}
|
||||||
|
{{ .Render "summary"}}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</main>
|
9
layouts/posts/summary.html
Normal file
9
layouts/posts/summary.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<article class="recent-block recent-block--right">
|
||||||
|
<div>
|
||||||
|
<a class="article__link" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
</div>
|
||||||
|
<time class="recent-block__time">{{ .Date.Format "02.01.2006 15:04" }}</time>
|
||||||
|
{{ range .Params.tags }}
|
||||||
|
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</article>
|
30
layouts/posts/summary.html~
Normal file
30
layouts/posts/summary.html~
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<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>
|
||||||
|
{{ $style := resources.Get "css/basic.scss" }}
|
||||||
|
{{ $style = $style | toCSS }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||||
|
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||||
|
|
||||||
|
{{ with .OutputFormats.Get "RSS" -}}
|
||||||
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||||||
|
{{- end }}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<article class="recent-block recent-block--right">
|
||||||
|
<div>
|
||||||
|
<a class="article__link" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
</div>
|
||||||
|
<time class="recent-block__time">{{ .Date.Format "02.01.2006 15:04" }}</time>
|
||||||
|
{{ range .Params.tags }}
|
||||||
|
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</article>
|
Loading…
Reference in a new issue