Skip to content

Commit 5422b61

Browse files
committed
update static resources
1 parent 0137fe2 commit 5422b61

File tree

11 files changed

+68
-0
lines changed

11 files changed

+68
-0
lines changed
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{ $link := .Destination }}
2+
{{ $isRemote := strings.HasPrefix $link "http" }}
3+
{{- if not $isRemote -}}
4+
{{ $url := urls.Parse .Destination }}
5+
{{- if $url.Path -}}
6+
{{ $fragment := "" }}
7+
{{- with $url.Fragment }}{{ $fragment = printf "#%s" . }}{{ end -}}
8+
{{- with .Page.GetPage $url.Path }}{{ $link = printf "%s%s" .RelPermalink $fragment }}{{ else }}{{ warnf "%q not found from %q" $url.Path $.Page.Path }}{{ end }}{{ end -}}
9+
{{- end -}}
10+
<a href="{{ $link | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank"{{ end }}>{{ .Text | safeHTML }}</a>
File renamed without changes.
File renamed without changes.
File renamed without changes.

layouts/v4.5.0/baseof.html

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!doctype html>
2+
<html itemscope itemtype="http://schema.org/WebPage" lang="{{ .Site.Language.Lang }}" class="no-js">
3+
<head>
4+
{{ partial "head.html" . }}
5+
</head>
6+
<body class="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }}">
7+
<header>
8+
{{ partial "navbar.html" . }}
9+
</header>
10+
<div class="container-fluid td-outer">
11+
<div class="td-main">
12+
<div class="row flex-xl-nowrap">
13+
<aside class="col-12 col-md-3 col-xl-2 td-sidebar d-print-none">
14+
{{ partial "sidebar.html" . }}
15+
</aside>
16+
<aside class="d-none d-xl-block col-xl-2 td-sidebar-toc d-print-none">
17+
{{ partial "page-meta-links.html" . }}
18+
{{ partial "toc.html" . }}
19+
{{ partial "taxonomy_terms_clouds.html" . }}
20+
</aside>
21+
<main class="col-12 col-md-9 col-xl-8 pl-md-5" role="main">
22+
{{ partial "version-banner.html" . }}
23+
{{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }}
24+
{{ block "main" . }}{{ end }}
25+
</main>
26+
</div>
27+
</div>
28+
{{ partial "footer.html" . }}
29+
</div>
30+
{{ partial "scripts.html" . }}
31+
</body>
32+
</html>

layouts/v4.5.0/list.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{{ define "main" }}
2+
<div class="td-content">
3+
<h1>{{ .Title }}</h1>
4+
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
5+
<header class="article-meta">
6+
{{ partial "taxonomy_terms_article_wrapper.html" . }}
7+
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }}
8+
{{ partial "reading-time.html" . }}
9+
{{ end }}
10+
</header>
11+
{{ .Content }}
12+
{{ partial "section-index.html" . }}
13+
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
14+
{{ partial "feedback.html" .Site.Params.ui.feedback }}
15+
<br />
16+
{{ end }}
17+
{{ if (.Site.DisqusShortname) }}
18+
<br />
19+
{{ partial "disqus-comment.html" . }}
20+
{{ end }}
21+
{{ partial "page-meta-lastmod.html" . }}
22+
</div>
23+
{{ end }}

layouts/v4.5.0/single.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{ define "main" }}
2+
{{ .Render "content" }}
3+
{{ end }}
Loading
Loading
879 Bytes
Loading
Loading

0 commit comments

Comments
 (0)