worked a little

This commit is contained in:
fanyx 2021-01-15 23:24:52 +01:00
parent e9a07d85d7
commit efd4a417e5
8 changed files with 49 additions and 19 deletions

View File

@ -1,11 +1,15 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="{{ .Site.LanguageCode | default "en" }}">
{{- partial "head.html" . -}} {{ partial "head.html" . }}
<body> <body>
{{- partial "header.html" . -}} <main>
<div id="content"> {{ partial "header.html" . }}
{{- block "main" . }}{{- end }} {{ partial "nav.html" . }}
</div> <section id="section_main">
{{- partial "footer.html" . -}} {{ block "main" . }}{{ end }}
</section>
{{ partial "footer.html" . }}
</main>
</body> </body>
</html> </html>

3
layouts/about/index.html Normal file
View File

@ -0,0 +1,3 @@
{{ define "main" }}
{{ end }}

View File

@ -0,0 +1,14 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device, initial-scale=1">
<meta name="author" content="Fanyx">
<meta name="referrer" content="no-referrer">
{{ hugo.Generator }}
<title>{{ if .Title }}{{ .Title }} | {{ end }} {{ .Site.Title }}</title>
{{- if or .Description .Site.Params.description }}
<meta name="description" content="{{ .Description | default .Site.Params.description }}">
{{- end }}
<link rel="stylesheet" type="text/css" href="/css/apache2.css">
</head>

View File

@ -0,0 +1,5 @@
<header>
<div class="section_header section_header_red">
{{- if .Title }}{{ .Title }} | {{ end }} {{ .Site.Title -}}
</div>
</header>

10
layouts/partials/nav.html Normal file
View File

@ -0,0 +1,10 @@
<nav>
<div class="section_header">links</div>
<div class="content_section_text">
<p>/links/</p>
{{ range $.Site.Params.Links }}
<p>|-- <a href="{{ .Link }}">{{ .Name }}</a></p>
<p>|</p>
{{ end }}
</div>
</nav>

View File

@ -3,19 +3,13 @@
name = "Apache2" name = "Apache2"
license = "MIT" license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" licenselink = "https://git.fanyx.xyz/fanyx/hugo-theme-apache2/blob/master/LICENSE"
description = "" description = "A simple theme based on the HTTPD default site and css."
homepage = "http://example.com/" homepage = "https://git.fanyx.xyz/fanyx/hugo-theme-apache2/"
tags = [] tags = ["apache2", "httpd"]
features = [] features = []
min_version = "0.41.0" min_version = "0.41.0"
[author] [author]
name = "" name = "fanyx"
homepage = "" homepage = "https://fanyx.xyz"
# If porting an existing theme
[original]
name = ""
homepage = ""
repo = ""