mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 13:04:46 -04:00
Squashed 'themes/gohugoioTheme/' changes from bc851da9..75da2f6b
75da2f6b Move sponsor logos from hugoDocs 06ab535d Add sponsor logos to home page and footer 8e8172f1 Sync theme 6665f7ef Update Chroma highlighting docs d9164f16 Merge commit '040d8d2833c26c53cf9f0e035910821ed50e3863' a665c8ad Merge commit 'f66d59b8991c264c3366895b5e148ea810a184cd' 6a83faf5 Rewrite the syntax highlighter docs etc. git-subtree-dir: themes/gohugoioTheme git-subtree-split: 75da2f6b46ae7303941fa584db2ee5f4166ad300
This commit is contained in:
parent
60a220bbd6
commit
f463ef99ed
@ -14,6 +14,9 @@
|
||||
<section class="w-100 ph4 ph5-ns pv4 pv6-ns mid-gray bg-white bb bt b--light-gray">
|
||||
{{- partial "home-page-sections/installation" . -}}
|
||||
</section>
|
||||
|
||||
{{ partial "home-page-sections/sponsors.html" (dict "cx" . ) }}
|
||||
|
||||
<section class="w-100 ph4 ph5-ns pv4 pv6-ns mid-gray bg-accent-color-dark">
|
||||
{{- partial "home-page-sections/tweets" . -}}
|
||||
</section>
|
||||
|
31
layouts/partials/home-page-sections/sponsors.html
Normal file
31
layouts/partials/home-page-sections/sponsors.html
Normal file
@ -0,0 +1,31 @@
|
||||
{{$sponsors := .cx.Site.GetPage "home"}}
|
||||
{{$classes_box := "ba b--light-gray bg-light-gray br3 flex flex-column flex-wrap items-center justify-center ph3 pv4 mb4 w-100 w-30-l "}}
|
||||
{{if $sponsors.Params.sponsors}}
|
||||
<section class="{{.classes_section | default "bg-primary-color-dark b--light-gray bb bt ph5 pv4 w-100"}}">
|
||||
<div class="center mw9">
|
||||
<f3 class="b f3 light-gray">Hugo Sponsors</f3>
|
||||
<div class="flex-ns flex-wrap center justify-between pt3">
|
||||
{{ range $sponsors.Params.sponsors }}
|
||||
{{if .logo}}
|
||||
<div class="{{$classes_box}} o-100">
|
||||
{{with .link -}}
|
||||
<a href="{{.}}?{{ (querify "utm_source" "homepage" "utm_medium" "banner" "utm_campaign" "hugosponsor") | safeURL }}" class="grow">
|
||||
{{- end}}
|
||||
<img src="{{ .logo }}" alt="Logo for {{ .name }}" class="img h3 center" />
|
||||
{{with .link}}</a>{{end}}
|
||||
{{with .copy}}
|
||||
<p class="center lh-copy gray mv1 tc {{$.classes_copy | default "f5 w-70-ns"}}">
|
||||
{{- . -}}
|
||||
</p>
|
||||
{{end}}
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="{{$classes_box}} o-10">
|
||||
<p class="b black tc">Your Logo Here</p>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{end}}
|
@ -5,8 +5,8 @@
|
||||
{{ partial "nav-links-docs-mobile.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="flex dn-l">
|
||||
<button class="js-toggle flex-auto ml2 dib dn-l f6 tc db mt4-ns ph3 pv2 link white bg-primary-color-dark hover-bg-primary-color ba b--white-40 w-auto" data-target=".globalmenu">Menu</button>
|
||||
<div class="flex dn-l justify-between">
|
||||
<button class="js-toggle flex-auto dib dn-l f6 tc db mt4-ns ph3 pv2 link mr2 white bg-primary-color-dark hover-bg-primary-color ba b--white-40 w-auto" data-target=".globalmenu">Menu</button>
|
||||
|
||||
<button class="js-toggle flex-auto ml2 dib dn-l f6 tc db mt4-ns ph3 pv2 link white bg-primary-color-dark hover-bg-primary-color ba b--white-40 w-auto" data-target=".docsmenu">Docs Menu</button>
|
||||
<button class="js-toggle flex-auto dib dn-l f6 tc db mt4-ns ph3 pv2 link white bg-primary-color-dark hover-bg-primary-color ba b--white-40 w-auto" data-target=".docsmenu">Docs Menu</button>
|
||||
</div>
|
||||
|
@ -1,40 +1,48 @@
|
||||
<footer class="fixed relative-l bg-primary-color-dark bottom-0 w-100 pa3 pa4-l" role="contentinfo">
|
||||
<!-- TODO: Make sure we don't lose all the footer content on mobile -->
|
||||
<!-- TODO: Add icons https://github.com/rdwatters/hugo-docs-concept/issues/3#issuecomment-287194777
|
||||
-->
|
||||
<div class="dn db-l flex-ns flex-wrap w-80 center mw9 justify-between">
|
||||
<div class="w-third pv3 dn db-l">
|
||||
<div class="mb3 gray tc nested-links">
|
||||
<footer class="bg-primary-color-dark ph4-ns pt4 relative w-100" role="contentinfo">
|
||||
<div class="center flex-ns flex-wrap justify-between mw9 w-90">
|
||||
<div class="pb3 pt4 w-100 w-50-ns">
|
||||
|
||||
<div class="b f3 light-gray mb3 nested-links tc">
|
||||
By the <a href="https://github.com/gohugoio/hugo/contributors" class="link">Hugo Authors</a><br />
|
||||
</div>
|
||||
<div class="w4 center">
|
||||
{{ partialCached "svg/hugo-logo-wide.svg" (dict "size" "100") }}
|
||||
|
||||
<div class="center w4">
|
||||
{{ partialCached "svg/hugo-logo-wide.svg" . }}
|
||||
</div>
|
||||
<p class="f6 gray tc w-70 center">The Hugo logos are copyright © Steve Francia 2013–{{ now.Year }}.</p>
|
||||
<p class="f6 gray tc w-70 center">The Hugo Gopher is based on an original work by Renée French.</p>
|
||||
|
||||
<ul class="center f6 list ma0 mv3 pa0 tc">
|
||||
{{- with .Site.Params.github_repo -}}<li class="dib mr3"><a href="{{ . }}" class="dim link light-gray pv2">File an Issue</a></li>{{- end -}}
|
||||
{{- with .Site.Params.forum -}}<li class="dib mr3"><a href="{{ . }}" class="dim link light-gray pv2">Get Help</a></li>{{- end -}}
|
||||
{{- with .Site.Params.gitter -}}<li class="dib"><a href="{{ . }}" class="dim link light-gray pv2">Discuss Source Code</a></li>{{- end -}}
|
||||
</ul>
|
||||
|
||||
<ul class="center f6 list ma0 mv4 pa0 tc">
|
||||
<li class="dib mr3"><a href="https://twitter.com/gohugoio" class="dim link light-gray pv2">@GoHugoIO</a></li>
|
||||
<li class="dib mr3"><a href="https://twitter.com/spf13" class="dim link light-gray pv2">@spf13</a></li>
|
||||
<li class="dib"><a href="https://twitter.com/bepsays" class="dim link light-gray pv2">@bepsays</a></li>
|
||||
</ul>
|
||||
|
||||
{{ with getenv "REPOSITORY_URL" -}}
|
||||
<p class="f6 tc w-70 center"><a href="https://www.netlify.com"><img src="https://www.netlify.com/img/global/badges/netlify-dark.svg"/></a></p>
|
||||
<p class="center f6 tc w-70"><a href="https://www.netlify.com"><img src="https://www.netlify.com/img/global/badges/netlify-dark.svg"/></a></p>
|
||||
{{- end }}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="w-third pv3 dn db-l">
|
||||
<ul class="list ma0 pa0 w-50 center">
|
||||
{{- with .Site.Params.github_repo -}}<li><a href="{{ . }}" class="link white dim pv2 db">File an Issue</a></li>{{- end -}}
|
||||
{{- with .Site.Params.forum -}}<li><a href="{{ . }}" class="link white dim pv2 db">Get Help</a></li>{{- end -}}
|
||||
{{- with .Site.Params.gitter -}}<li><a href="{{ . }}" class="link white dim pv2 db">Discuss the Source Code</a></li>{{- end -}}
|
||||
</ul>
|
||||
<div class="w-100 w-50-l">
|
||||
{{ partial "home-page-sections/sponsors.html" (dict "cx" . "classes_section" "pb3 w-100" "classes_copy" "f7 w-90-ns") }}
|
||||
</div>
|
||||
|
||||
<div class="w-third pv3 dn db-l">
|
||||
<ul class="list ma0 pa0">
|
||||
<li><a href="https://twitter.com/gohugoio" class="link white dim pv2 db">@GoHugoIO</a></li>
|
||||
<li><a href="https://twitter.com/spf13" class="link white dim pv2 db">@spf13</a></li>
|
||||
<li><a href="https://twitter.com/bepsays" class="link white dim pv2 db">@bepsays</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="f7 gray mb5 mb0-ns ph3 w-100">
|
||||
<p class="dib mr4">The Hugo logos are copyright © Steve Francia 2013–{{ now.Year }}.</p>
|
||||
<p class="dib">The Hugo Gopher is based on an original work by Renée French.</p>
|
||||
</div>
|
||||
|
||||
<img src="/images/gopher-side_color.svg" class="absolute-l bottom-0 dn db-l h4 right-0 z-999"/>
|
||||
|
||||
<div class="bg-primary-color-dark bottom-0 dn-ns fixed pb3 ph3 w-100">
|
||||
{{ partial "nav-mobile.html" . }}
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
@ -1,31 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 18.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="レイヤー_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
||||
y="0px" viewBox="0 0 397.8 535.6" enable-background="new 0 0 397.8 535.6" xml:space="preserve">
|
||||
<g>
|
||||
<path fill="#E0DEDC" d="M68.5,64c0,0-45.3-8-56.4,40.2c-11.7,50.6,27,46.7,27,46.7L68.5,64z"/>
|
||||
<g>
|
||||
<path fill="#040000" stroke="#040000" stroke-width="1.3483" stroke-miterlimit="10" d="M23.9,86.2c-8.5-0.3-15.5,25.8-13.1,35.2
|
||||
c0.9,3.5,10,6.3,14-3.7C27.7,110.4,34.5,86.5,23.9,86.2z"/>
|
||||
<path fill="#FFFFFF" d="M17.6,94c-1.9-0.6-4,4.5-4.7,6.3c-1.8,5.3,2.1,5.1,4.4,2C18.5,100.7,19.5,94.7,17.6,94z"/>
|
||||
</g>
|
||||
<path fill="#B8937F" d="M46.3,487.8c5.2,7.3,41.6,6.4,46.1-1.3c4.2-7.1-21.4-14.9-30.7-16.1C47.6,468.6,42.6,482.5,46.3,487.8z"/>
|
||||
<path fill="#B8937F" d="M351,446c5.2,7.3,29.4,3.7,34-4c4.2-7.1-9.3-12.2-18.6-13.4C352.3,426.8,347.3,440.7,351,446z"/>
|
||||
<path fill="#8CC5E7" d="M189.6,13.4c0,0-182.1-8.9-161,217.6c6.3,68-43.8,182.8,29.2,239.8c0,0,102.1,61.7,238.9,41.5
|
||||
c20-3,45.5-10,63.2-57.1c22.3-59.5,6.6-121.5-13.2-165.5c-22.3-49.7-21.2-105.8-19.6-115.3C354.3,14.2,189.6,13.4,189.6,13.4z"/>
|
||||
<path fill="#8CC5E7" d="M282.3,38.8c19.2-5,32.6-10.5,43.4-5c30.5,15.7-4.9,45.4-12.4,51C302.3,93.2,268.4,42.4,282.3,38.8z"/>
|
||||
<path fill="#3C89BF" d="M306,40.5c-18.8,4.2-19.6,13.7-14.8,16.4c2.8,1.6,0.8-8.1,13.6-3.8c5.2,1.7-2.5,14.3,12.1,0.2
|
||||
C324.7,45.6,310.1,39.6,306,40.5z"/>
|
||||
<path fill="#E0DEDC" d="M137.9,29.2c-22.9,1.7-76.1,28.5-50,94.2c9.1,23,104.6,10.3,105.8-54C194.1,42.6,158.1,27.7,137.9,29.2z"/>
|
||||
<path fill="#040000" stroke="#040000" stroke-width="1.3483" stroke-miterlimit="10" d="M109.9,51.8C88.5,53.7,83.3,84,91.3,91.1
|
||||
c4.5,4,20.1,8.6,28.5-19C122.5,63.3,117.8,51,109.9,51.8z"/>
|
||||
<path fill="#FFFFFF" d="M101.7,57.4c-3.1-0.9-8.8,7-7.1,10.3c0.6,1.2,3.2,2.9,5.3,1.3C102.2,67.2,107.8,59.1,101.7,57.4z"/>
|
||||
<path fill="#B8937F" d="M74.6,130.1C34.9,122.3,30,165,43.9,172.3c10.1,5.4,38.8-3.5,43.6-13.4C92.2,148.9,95,134.1,74.6,130.1z"/>
|
||||
<path fill="#040000" d="M48,126.4c-12.5,4.3-11.8,25.4-5.1,26c7.6,0.7,21-14.7,24.2-20.9C69.5,126.9,53,124.7,48,126.4z"/>
|
||||
<path fill="#E0DEDC" d="M52.5,169.9c-3.2,1.4-2.9,18.8,3.3,21.5c19.6,8.3,20.9-20.4,17.1-24.9C70,162.9,54.7,168.9,52.5,169.9z"/>
|
||||
<path fill="#B8937F" d="M272,269.2c-11.2,0.5-19.7,23.3-16.9,34.3c1.5,5.9,12.9,5,11.3,9.6c-2.7,7.6,17.4,12.9,21.2,4.7
|
||||
C306.9,277,282.3,268.8,272,269.2z"/>
|
||||
<path fill="#B8937F" d="M251.8,497.4c-39.7-4.3-51.7,14.7-44.4,21.8c7.7,7.5,38.1,5.3,54.7,3.9
|
||||
C268.7,522.6,261.8,498.5,251.8,497.4z"/>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 2.6 KiB |
@ -1,3 +1,14 @@
|
||||
.chroma .lntable pre {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.chroma .lntable pre code {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
pre, .pre {
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
|
11696
static/dist/app.bundle.js
vendored
11696
static/dist/app.bundle.js
vendored
File diff suppressed because one or more lines are too long
1
static/images/sponsors/forestry-logotype.svg
Normal file
1
static/images/sponsors/forestry-logotype.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 7.6 KiB |
Loading…
x
Reference in New Issue
Block a user