-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improves the header of the main page (#6)
- Loading branch information
Showing
15 changed files
with
250 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
+++ | ||
--- | ||
title = '{{ replace .File.ContentBaseName "-" " " | title }}' | ||
date = {{ .Date }} | ||
draft = true | ||
+++ | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
baseURL: https://example.org/ | ||
languageCode: en-US | ||
title: My New Hugo Site | ||
|
||
params: | ||
author: | ||
email: [email protected] | ||
name: Author name | ||
welcome: | ||
title: Welcome | ||
body: Stuff in here | ||
image: image.webp | ||
|
||
menus: | ||
main: | ||
- name: About | ||
pageRef: /about | ||
weight: 10 | ||
- name: Posts | ||
pageRef: /posts | ||
weight: 20 | ||
- name: Projects | ||
pageRef: /projects | ||
weight: 30 | ||
|
||
module: | ||
hugoVersion: | ||
extended: false | ||
min: "0.116.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="{{ site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}"> | ||
|
||
<head> | ||
{{ partial "head.html" . }} | ||
</head> | ||
|
||
<body> | ||
<header> | ||
{{ partial "header.html" . }} | ||
</header> | ||
<header>{{ partial "header.html" . }}</header> | ||
<main> | ||
{{ block "main" . }}{{ end }} | ||
{{ partial "breadcrumbs.html" . }} {{ block "main" . }}{{ end }} | ||
</main> | ||
<footer> | ||
{{ partial "footer.html" . }} | ||
</footer> | ||
<footer>{{ partial "footer.html" . }}</footer> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{{ define "main" }} | ||
{{ .Content }} | ||
{{ range site.RegularPages }} | ||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> | ||
{{ .Summary }} | ||
{{ end }} | ||
{{ define "main" }} {{ with .GetPage "About" }} | ||
<section class="info"> | ||
<h2>Quick Intro</h2> | ||
{{ truncate 100 .Content }} | ||
<a class="more" href="{{ .RelPermalink }}">Read more...</a> | ||
</section> | ||
{{ end }} | ||
<section> | ||
<h2>Posts</h2> | ||
{{ range where site.Pages "Section" "posts" }} | ||
<h3><a href=" {{ .RelPermalink }}">{{ .LinkTitle }}</a></h3> | ||
{{ .Summary }} {{ end }} | ||
</section> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
{{ define "main" }} | ||
<h1>{{ .Title }}</h1> | ||
{{ .Content }} | ||
{{ range .Pages }} | ||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> | ||
{{ .Summary }} | ||
{{ end }} | ||
{{ end }} | ||
<h1>{{ .Title }}</h1> | ||
{{ .Content }} {{ range .Pages }} | ||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> | ||
{{ .Summary }} {{ end }} {{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
{{ define "main" }} | ||
<h1>{{ .Title }}</h1> | ||
<h1>{{ .Title }}</h1> | ||
|
||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} | ||
{{ $dateHuman := .Date | time.Format ":date_long" }} | ||
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time> | ||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} {{ | ||
$dateHuman := .Date | time.Format ":date_long" }} | ||
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time> | ||
|
||
{{ .Content }} | ||
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} | ||
{{ end }} | ||
{{ .Content }} {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} {{ | ||
end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{ if gt .Ancestors.Len 0 }} | ||
<ul id="breadcrumbs"> | ||
{{- range .Ancestors.Reverse }} | ||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> | ||
{{- end }} | ||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> | ||
</ul> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
<p>Copyright {{ now.Year }}. All rights reserved.</p> | ||
<p> | ||
Made with <span title="Love">💗</span> by | ||
<a title="{{ .Site.Params.author.email }}" href="mailto:{{ .Site.Params.author.email }}">{{ .Site.Params.author.name | ||
}}</a> | ||
</p> | ||
<p>·</p> | ||
<p> | ||
<span title="Powered">⚡</span> by | ||
<a title="Hugo" href="https://gohugo.io">Hugo</a> in | ||
<time datetime='{{ dateFormat "2006" now | ||
}}'>{{ dateFormat "2006" now }}</time> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
<h1>{{ site.Title }}</h1> | ||
{{ partial "menu.html" (dict "menuID" "main" "page" .) }} | ||
<nav> | ||
<a title="{{ site.Title }}" href="/"> | ||
<h1>{{ site.Title }}</h1> | ||
</a> | ||
{{ partial "menu.html" (dict "menuID" "main" "page" .) }} | ||
</nav> |
Oops, something went wrong.