Squashed 'themes/gohugoioTheme/' changes from f31a3dc8..66249819

66249819 Replace .Data.Pages with .Pages
32f73caa Set permission of non-executable files to 0644
69018d07 Update README.md
3b9bc8ee Update README.md
fa34f071 Update eSolia link
89573498 Fix the "edit this page" link
d0704efb Use lang.Merge to "fill in the gaps" for untranslated pages
771ae9fc Merge commit '650fac3a4e7d256f4505402ab44cfc3c804b8dea'
177aab5b Fix "reflect: Zero(nil)" error in showcase

git-subtree-dir: themes/gohugoioTheme
git-subtree-split: 662498195c8ca49e235ced10ae899f1a82804021
This commit is contained in:
Kaushal Modi 2018-07-16 17:05:30 -04:00
parent 650fac3a4e
commit d137efe022
43 changed files with 33 additions and 23 deletions

View File

@ -1 +1,7 @@
Theme for gohugo.io sites. More info to come.
# GoHugo Sites Theme
Theme for gohugo.io sites:
* [https://gohugo.io/](https://gohugo.io/)
* [https://themes.gohugo.io/](https://themes.gohugo.io/)
More info to come.

View File

@ -12,6 +12,6 @@ copy = ""
[[banners]]
name = "eSolia"
link = "https://esolia.com/"
link = "https://esolia.com/post/why-did-esolia-choose-hugo/"
logo = "/images/sponsors/esolia-logo.svg"
copy = ""

0
layouts/404.html Executable file → Normal file
View File

0
layouts/_default/baseof.html Executable file → Normal file
View File

3
layouts/_default/list.html Executable file → Normal file
View File

@ -1,4 +1,5 @@
{{ define "main" }}
{{ $section_to_display := .Sections | default .Paginator.Pages }}
{{ $paginator := .Paginate (.Pages | lang.Merge (where .Sites.First.RegularPages "Section" .Section)) }}
{{ $section_to_display := .Sections | default $paginator.Pages }}
{{ partial "pagelayout.html" (dict "context" . "section_to_display" $section_to_display ) }}
{{ end }}

0
layouts/_default/single.html Executable file → Normal file
View File

View File

@ -1,4 +1,4 @@
{{ define "main" }}
{{ $section_to_display := .Data.Pages }}
{{ $section_to_display := .Pages }}
{{ partial "pagelayout.html" (dict "context" . "section_to_display" $section_to_display ) }}
{{ end }}

View File

@ -1,6 +1,6 @@
{{/* {{ define "header" }}{{ partial "page-header" . }}{{ end }} */}}
{{ define "main" }}
{{ $section_to_display := .Data.Pages }}
{{ $section_to_display := .Pages }}
<div class="w-100 ph4 pb5 pb6-ns pt1 pt3-ns">
<div class="flex">

View File

@ -28,7 +28,8 @@
{{ $interior_classes := $.Site.Params.flex_box_interior_classes }}
<section class="flex-ns flex-wrap justify-between w-100 w-80-nsTK v-top">
{{ range .Paginator.Pages }}
{{ $paginator := .Paginate (.Pages | lang.Merge (where .Sites.First.RegularPages "Section" .Section)) -}}
{{ range $paginator.Pages }}
{{ partial "boxes-section-summaries" (dict "context" . "classes" $interior_classes "fullcontent" false) }}
{{ end }}
</section>

View File

@ -1,4 +1,4 @@
{{ define "main" }}
{{ $section_to_display := (.Site.Taxonomies.categories.fundamentals).Pages }}
{{ $section_to_display := (.Site.Taxonomies.categories.fundamentals).Pages | lang.Merge (.Sites.First.Taxonomies.categories.fundamentals).Pages }}
{{ partial "pagelayout.html" (dict "context" . "section_to_display" $section_to_display ) }}
{{ end }}

2
layouts/partials/boxes-small-news.html Executable file → Normal file
View File

@ -3,7 +3,7 @@
<!-- <a href="/news/" class="link accent-color tr-ns f6 w-100 w-50-m w-10-l bg-animate hover-bg-accent-color hover-white pv3 pv4-l ph3 ph4-l dib">
Latest News:
</a> -->
{{ range first 4 ( sort (where .Data.Pages "Section" "news") "Date" "desc" ) }}
{{ range first 4 ( sort (where .Pages "Section" "news") "Date" "desc" ) }}
<!-- only show 2 boxes on mobile -->
{{ $.Scratch.Add "i" 1 }}{{ $i := $.Scratch.Get "i" }}
<a href="{{ .URL }}" class="link lh-copy light-gray f6 w-100 w-50-m w-25-l bg-animate hover-bg-accent-color hover-white pv3 pv4-ns ph3 ph4-ns{{ if ge $i 3 }} dn dib-l{{ else }} dib{{ end }}">

View File

@ -5,10 +5,12 @@
<div class="w-100 overflow-x-scroll">
<div class="row nowrap mv2 pb1">
{{ $showcasePages := where .Site.RegularPages "Section" "showcase" }}
{{ if $showcasePages }}
{{ template "home_showcase_item" (index $showcasePages 0) }}
{{ range $p := first 10 ($showcasePages | after 1 | shuffle) }}
{{template "home_showcase_item" $p }}
{{end}}
{{end}}
</div>
</div>
</div>

0
layouts/partials/icon-link.html Executable file → Normal file
View File

0
layouts/partials/manifest.html Executable file → Normal file
View File

View File

@ -6,18 +6,18 @@
<li class="f5 w-100 hover-bg-light-gray hover-accent-color-light fw8{{ if eq $post "break" }} mb1 bb b--moon-gray{{ end }}">
<a href="{{ if .HasChildren }}javascript:void(0){{ else }}{{ .URL }}{{ end }}" class="js-toggle dib w-100 link mid-gray hover-accent-color-light pl2 pr2 pv2 {{if or ($currentPage.IsMenuCurrent "docs" .) ($currentPage.HasMenuCurrent "docs" .) }} primary-color{{end}}" data-target=".{{ .Identifier }}">{{ .Name }}</a>
{{ if .HasChildren }}
{{- if .HasChildren }}
<ul class="{{ .Identifier }} desktopmenu animated fadeIn list pl0 bg-light-gray{{if $currentPage.HasMenuCurrent "docs" . }} db{{ else }} dn{{ end }}">
{{ range .Children }}
{{- range .Children }}
<li class="f6 fw4">
<a href="{{.URL}}" class="db link hover-bg-gray hover-white pl3 pr2 pv2 {{if $currentPage.IsMenuCurrent "docs" . }}primary-color {{ else }}black {{end}}">
{{ .Name }}
</a>
</li>
{{ end }}
{{- end}}
</ul>
{{end}}
{{- end}}
</li>
{{end}}
{{- end}}
</ul>
</nav>

0
layouts/partials/nav-links.html Executable file → Normal file
View File

0
layouts/partials/nav-top.html Executable file → Normal file
View File

2
layouts/partials/page-edit.html Executable file → Normal file
View File

@ -1,3 +1,3 @@
<a href="{{.Site.Params.ghrepo}}edit/master/content/{{.File.Path}}" class="
<a href="{{.Site.Params.ghrepo}}edit/master/content/{{ .Lang }}/{{.File.Path}}" class="
f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
">Improve this page</a>

0
layouts/partials/site-footer.html Executable file → Normal file
View File

0
layouts/partials/site-nav.html Executable file → Normal file
View File

0
layouts/partials/svg/apple.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 566 B

After

Width:  |  Height:  |  Size: 566 B

0
layouts/partials/svg/facebook.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 501 B

After

Width:  |  Height:  |  Size: 501 B

0
layouts/partials/svg/freebsd.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 874 B

After

Width:  |  Height:  |  Size: 874 B

0
layouts/partials/svg/github-squared.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
layouts/partials/svg/gopher-front.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

0
layouts/partials/svg/gopher-side_path.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

0
layouts/partials/svg/instagram.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
layouts/partials/svg/link-ext.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 910 B

After

Width:  |  Height:  |  Size: 910 B

0
layouts/partials/svg/md.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 312 B

After

Width:  |  Height:  |  Size: 312 B

0
layouts/partials/svg/windows.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 202 B

After

Width:  |  Height:  |  Size: 202 B

0
layouts/robots.txt Executable file → Normal file
View File

0
src/css/_columns.css Executable file → Normal file
View File

0
src/css/_tachyons.css Executable file → Normal file
View File

0
src/css/_variables.css Executable file → Normal file
View File

0
src/css/main.css Executable file → Normal file
View File

0
src/css/postcss.config.js Executable file → Normal file
View File

0
src/js/main.js Executable file → Normal file
View File

0
src/package.json Executable file → Normal file
View File

0
src/readme.md Executable file → Normal file
View File

0
src/webpack.config.js Executable file → Normal file
View File

0
static/images/gopher-side_color.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

0
static/images/homepage-screenshot-hugo-themes.jpg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -8,7 +8,7 @@ description = ""
homepage = "https://github.com/budparr/gohugo.io"
tags = ["website"]
features = ["", ""]
min_version = 0.18
min_version = 0.38
[author]
name = "Bud Parr"