Fork off the Project
This commit is contained in:
parent
affe4cced4
commit
1891bd816c
|
@ -1,7 +1,19 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
{{ partial "metadata.html" . }}
|
{{ partial "metadata.html" . }}
|
||||||
|
|
||||||
<!-- <br><br> -->
|
<!-- <br><br> -->
|
||||||
<article>
|
<article>
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
<div>
|
||||||
|
{{ range where .Site.RegularPages "Section" "in" .Site.MainSections }}
|
||||||
|
<section class="articles">
|
||||||
|
<h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3>
|
||||||
|
<p class="summary">{{ .Summary }}</p>
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -10,4 +10,7 @@
|
||||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||||
<title>{{ $title }}</title>
|
<title>{{ $title }}</title>
|
||||||
{{ partial "hook_head_end.html" . }}
|
{{ partial "hook_head_end.html" . }}
|
||||||
|
{{ if .IsHome }}
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{relURL "css/homepage.css"}}">
|
||||||
|
{{ end }}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,15 +1,20 @@
|
||||||
<h1>{{ $.Site.Title }}</h1>
|
|
||||||
<p>{{ $.Site.Params.subtitle }}</p>
|
|
||||||
|
|
||||||
<!-- readable.css v1.1.0 introduced different navbar styles and defaults to a
|
<!-- readable.css v1.1.0 introduced different navbar styles and defaults to a
|
||||||
navbar without animations. We default to "classy" to keep the animations and be
|
navbar without animations. We default to "classy" to keep the animations and be
|
||||||
backwards compatible to earlier versions of this theme without requiring a
|
backwards compatible to earlier versions of this theme without requiring a
|
||||||
config change. -->
|
config change. -->
|
||||||
{{ $navbar_style := (default "classy" $.Site.Params.navbar_style) }}
|
{{ $navbar_style := (default "classy" $.Site.Params.navbar_style) }}
|
||||||
<nav data-style={{ $navbar_style }}>
|
<nav data-style={{ $navbar_style }}>
|
||||||
{{ range .Site.Menus.main -}}
|
{{ if .IsHome }}
|
||||||
{{ if eq $navbar_style "classy" }}<span>{{ end }}
|
{{ range .Site.Menus.main -}}
|
||||||
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
{{ if eq $navbar_style "classy" }}<span>{{ end }}
|
||||||
{{ if eq $navbar_style "classy" }}</span>{{ end }}
|
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||||
{{- end }}
|
{{ if eq $navbar_style "classy" }}</span>{{ end }}
|
||||||
|
{{- end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
<h1>{{ $.Site.Title }}</h1>
|
||||||
|
{{ else if .IsPage }}
|
||||||
|
<a href="/">Go Home</a>
|
||||||
|
</nav>
|
||||||
|
<p>{{ $.Site.Params.subtitle }}</p>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue