Convert site to Hugo (#8316)

This commit converts content and layout to use Hugo.
This commit is contained in:
Bjørn Erik Pedersen
2018-05-05 18:00:51 +02:00
committed by k8s-ci-robot
parent 7745f0e0c5
commit 7f3b633aa0
2327 changed files with 10928 additions and 171503 deletions
+38
View File
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html id="blog" lang="en" class="gr__kubernetes_io fontawesome-i2svg-active fontawesome-i2svg-complete">
<head>
{{ partial "head.html" . }}
<link rel='stylesheet' type='text/css' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
<link rel="stylesheet" type="text/css" href="{{ "css/blog.css" | relURL }}">
</head>
<body>
{{ partialCached "header.html" . "blog" }}
<section id="hero" class="light-text no-sub">
<h1>Kubernetes Blog</h1>
</section>
<div class="container-fluid" style="padding-top: 2em">
<div class="row blog-content">
<div class="col-xs-10 col-sm-9 col-lg-9 text">
{{ block "main" . }}{{ end }}
</div>
<div class="col-xs-1 col-sm-1 col-sm-3 col-lg-3 text">
<div class="widget-content">
{{ with .Site.Home.OutputFormats.Get "rss" -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}" title="{{ $.Site.Title }}">
<a class="widget-link" href="{{ .Permalink | safeURL }}"> <i class="fas fa-rss fab-icon"> </i> </a>
{{ end -}}
<a class="widget-link" href="https://twitter.com/kubernetesio"> <i class="fab fa-twitter-square fab-icon"> </i> @Kubernetesio</a>
<a class="widget-link" href="https://github.com/kubernetes/kubernetes"> <i class="fab fa-github-square fab-icon"></i> View on Github </a>
<a class="widget-link" href="http://slack.k8s.io"><i class="fab fa-slack fab-icon"> </i> #kubernetes-users </a>
<a class="widget-link" href="http://stackoverflow.com/questions/tagged/kubernetes"><i class="fab fa-stack-overflow fab-icon"></i> Stack Overflow</a>
<a class="widget-link" href="http://get.k8s.io/"><i class="fab fa-stack-overflow fab-icon"></i> Download Kubernetes</a>
</div>
{{ partialCached "blog/archive.html" . }}
</div>
</div>
</div>
{{ partialCached "footer.html" . }}
{{ partialCached "footer-scripts.html" . }}
</body>
</html>
+8
View File
@@ -0,0 +1,8 @@
{{ define "main" }}
{{ range (.Paginator 1).Pages }}
{{ .Render "post" }}
{{ end }}
<div class="PageNavigation">
{{ template "_internal/pagination.html" . }}
</div>
{{ end }}
+12
View File
@@ -0,0 +1,12 @@
<div class="PageNavigation">
{{ if .PrevInSection }}
<div class="pagerButton left">
<h4><a class=" button" href="{{ .PrevInSection.RelPermalink }}"> « Prev </a></h4>
</div>
{{ end }}
{{ if .NextInSection }}
<div class="pagerButton right">
<h4><a class=" button" href="{{ .NextInSection.RelPermalink }}"> Next >></a></h4>
</div>
{{ end }}
</div>
+3
View File
@@ -0,0 +1,3 @@
<h4 class="date-header">{{ .Date.Format .Site.Params.time_format_blog }}</h4>
<h3 class="post-title entry-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
{{ .Content }}
+4
View File
@@ -0,0 +1,4 @@
{{ define "main" }}
{{ .Render "post" }}
{{ .Render "pager" }}
{{ end }}