diff options
Diffstat (limited to 'docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news')
-rw-r--r-- | docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.html | 70 | ||||
-rw-r--r-- | docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/single.html | 85 |
2 files changed, 0 insertions, 155 deletions
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.html deleted file mode 100644 index 5165c8a13..000000000 --- a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.html +++ /dev/null @@ -1,70 +0,0 @@ -{{ define "main" }} -<div class="w-100 ph4 ph5-ns pb5 pb6-ns pt1 pt3-ns "> - - <article class="cf pa3 pa4-m pa4-l nested-copy-line-height nested-img"> - <h1 class="primary-color-dark"> - {{ .Title }} - </h1> - <div class="nested-copy-line-height"> - {{ .Content }} - </div> - </article> - - <div class="flex flex-wrap"> - {{ $interior_classes := $.Site.Params.flex_box_interior_classes }} - <section class="flex-ns flex-wrap justify-between w-100 w-80-nsTK v-top"> - - {{ $news_items := slice }} - - {{/* Get releases from GitHub. */}} - {{ $u := "https://api.github.com/repos/gohugoio/hugo/releases" }} - {{ $releases := partial "inline/get-remote-data.html" $u }} - {{ $releases = where $releases "draft" false }} - {{ $releases = where $releases "prerelease" false }} - {{ range $releases | first 20 }} - {{ $ctx := dict - "Date" (.published_at | time.AsTime) - "Title" (printf "Release %s" .name) - "Permalink" .html_url - "Section" "news" - "Summary" "" - }} - {{ $news_items = $news_items | append $ctx }} - {{ end }} - - {{/* Get content pages from news section. */}} - {{ range .Pages }} - {{ $ctx := dict - "Date" .Date - "Title" .Title - "RelPermalink" .RelPermalink - "Section" "news" - "Summary" .Summary - "Params" (dict "description" .Description) - }} - {{ $news_items = $news_items | append $ctx }} - {{ end }} - - {{/* Sort by date (descending) and render. */}} - {{ range sort $news_items "Date" "desc" }} - {{ partial "boxes-section-summaries.html" (dict "context" . "classes" $interior_classes "fullcontent" false) }} - {{ end }} - - </section> - </div> - -</div> -{{ end }} - -{{ define "partials/inline/get-remote-data.html" }} - {{ $u := . }} - {{ $r := "" }} - {{ with $r = resources.GetRemote $u }} - {{ with .Err }} - {{ errorf "%s" . }} - {{ end }} - {{ else }} - {{ errorf "Unable to get remote resource %q" $u }} - {{ end }} - {{ return ($r | transform.Unmarshal) }} -{{ end }} diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/single.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/single.html deleted file mode 100644 index eb34bedd7..000000000 --- a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/single.html +++ /dev/null @@ -1,85 +0,0 @@ -{{ define "main" }} - {{ $currentPageUrl := .RelPermalink }} - - <article class="cf ph4 pv3 pv5-ns"> - <!-- header spans the full width --> - <header class="flex-none w-100 pb3"> - {{ if .Params.categories }} - {{ range .Params.categories }} - <a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}" class="f6 fw8 mb0 link mid-gray dim mr3"> - {{ humanize . | upper }} - </a> - {{ end }} - {{end}} - - <h1 class="lh-title fw9 mb7 mv0 pt3"> - <a href="{{ .RelPermalink }}" class="link primary-color dim"> - {{ .Title }} - </a> - </h1> - </header> - - <div class="flex-l"> - <aside class="mid-gray fn w-100 w-25-l"> - {{ with .Params.description }} - <h2 class="f3 lh-title"> - {{ . | markdownify }} - </h2> - {{ end }} - <time class="f6 mt2 db ttu tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> - {{ .Date.Format "January 2, 2006" }} - </time> - {{ if in .Params.categories "Releases" }} - <p> - Go to <a href="https://github.com/gohugoio/hugo/releases" class="link primary-color dim">Hugo Releases</a> for the release downloads. - </p> - {{ end }} - - <div class="nested-links mt4"> - {{- partial "previous-next-links-in-section.html" . -}} - </div> - - </aside> - - <div class="fn pl5-l pt3 mid-gray w-100 w-two-third-l sans-serif nested-copy-line-height no-underline nested-links nested-img nested-copy-seperator nested-blockquote measure-wide-l"><!-- TODO: Can the content top and the description top line up more precisely, or is just winging it with padding the best we've got? --> - {{ with .Params.featured_image_path }} - <img src="{{ . }}" alt="Featured Image for {{ $.Title }}" class="mw-100"> - {{ else }} - {{ $featured := (.Resources.ByType "image").GetMatch "*featured*" }} - {{ with $featured }} - {{ $featured := .Resize "480x" }} - <img src="{{ $featured.RelPermalink }}" alt="Featured Image for {{ $.Title }}" class="mw-100"> - {{ end }} - {{ end }} - {{ .Content }} - </div> - </div> - {{ if and .Params.tags .Site.Taxonomies.tags }} - <div class="mt5 f6 gray nested-lh-copy bg-light-gray ph3 pv2 measure-wide-l"> - {{ $name := index .Params.tags 0 }} - {{ $name := $name | urlize }} - {{ $tags := index .Site.Taxonomies.tags $name }} - - <ul class="list dib nested-links ml0 pl0"> - <li class="dib mb2 mr2">Related:</li> - {{ range $tags.Pages }} - {{ if ne .RelPermalink $currentPageUrl }} - <li class="mb2 mr3"> - <a href="{{ .RelPermalink }}" class="link"> - {{ .LinkTitle }} - </a> - </li> - {{ end }} - {{end}} - </ul> - </div> - {{end}} - - <div class="gray f6 mv6"> - Last Update: {{ .Lastmod.Format "January 2, 2006" }} <br> - {{ partial "page-edit.html" . }} - </div> - - </article> - -{{ end }} |