-
Notifications
You must be signed in to change notification settings - Fork 921
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
16 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,19 +7,20 @@ | |
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}"> | ||
{{ end -}} | ||
|
||
{{ if and hugo.IsProduction (ne $outputFormat "print") -}} | ||
{{ if and (eq (getenv "HUGO_ENV") "production") (ne $outputFormat "print") -}} | ||
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW"> | ||
{{ else -}} | ||
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> | ||
{{ end -}} | ||
|
||
{{ partialCached "favicons.html" . }} | ||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title> | ||
<meta name="description" content="{{ .Site.Params.Description }}"> | ||
{{- template "_internal/opengraph.html" . -}} | ||
{{- template "_internal/google_news.html" . -}} | ||
{{- template "_internal/schema.html" . -}} | ||
{{- template "_internal/twitter_cards.html" . -}} | ||
{{ if hugo.IsProduction }} | ||
{{ if eq (getenv "HUGO_ENV") "production" }} | ||
{{ template "_internal/google_analytics_async.html" . }} | ||
{{ end }} | ||
{{ partialCached "head-css.html" . "asdf" }} | ||
|
@@ -29,14 +30,12 @@ | |
crossorigin="anonymous"></script> | ||
{{ if .Site.Params.offlineSearch }} | ||
<script | ||
src="https://unpkg.com/[email protected].9/lunr.min.js" | ||
integrity="sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli" | ||
src="https://unpkg.com/[email protected].8/lunr.min.js" | ||
integrity="sha384-vRQ9bDyE0Wnu+lMfm57BlYLO0/XauFuKpVsZPs7KEDwYKktWi5+Kz3MP8++DFlRY" | ||
crossorigin="anonymous"></script> | ||
{{end}} | ||
{{ if .Site.Params.prism_syntax_highlighting }} | ||
<!-- stylesheet for Prism --> | ||
<link rel="stylesheet" href="{{ "/css/prism.css" | relURL }}"/> | ||
{{ end }} | ||
<!-- stylesheet for tabbed pane --> | ||
<link rel="stylesheet" href="{{ "/css/shortcodes.css" | relURL }}"/> | ||
{{ partial "hooks/head-end.html" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<ul class="list-unstyled d-flex justify-content-between align-items-center mb-0 pt-5 d-print-none"> | ||
<ul class="list-unstyled d-flex justify-content-between align-items-center mb-0 pt-5"> | ||
<li> | ||
<a {{if .PrevInSection}}href="{{.PrevInSection.RelPermalink}}"{{end}} class="btn btn-primary {{if not .PrevInSection}} disabled{{end}}"><span class="mr-1">←</span> {{ T "ui_pager_prev" }}</a> | ||
<a {{if .PrevInSection}}href="{{.PrevInSection.RelPermalink}}"aria-label="{{ T "ui_pager_prev" }} - {{.PrevInSection.Title}}"{{end}} class="btn btn-primary {{if not .PrevInSection}} disabled{{end}}"><span class="mr-1">←</span> {{ T "ui_pager_prev" }}</a> | ||
</li> | ||
<a {{if .NextInSection}}href="{{.NextInSection.RelPermalink}}"{{end}} class="btn btn-primary {{if not .NextInSection}} disabled{{end}}">{{ T "ui_pager_next" }} <span class="ml-1">→</span></a> | ||
<a {{if .NextInSection}}href="{{.NextInSection.RelPermalink}}"aria-label="{{ T "ui_pager_next" }} - {{.NextInSection.Title}}"{{end}} class="btn btn-primary {{if not .NextInSection}} disabled{{end}}">{{ T "ui_pager_next" }} <span class="ml-1">→</span></a> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{{ with .Parent }} | ||
{{ $id := $.Get "id" | default (printf "td-block-%d" ( add .Ordinal 1 )) }} | ||
{{ $color := $.Get "color" | default "blue" }} | ||
<a class="btn btn-link text-{{ $color }}" href="#{{ $id }}"><i class="fa fa-chevron-circle-down" style="font-size: 400%"></i></a> | ||
<a class="btn btn-link text-{{ $color }}" href="#{{ $id }}" aria-label="{{ T "ui_read_more"}}"><i class="fa fa-chevron-circle-down" style="font-size: 400%"></i></a> | ||
{{ else }} | ||
{{ errorf "The link-down shortcode is supposed to be nested inside a shortcode"}} | ||
{{ end }} |