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>
<html>
{{- partial "head.html" . -}}
<html lang="{{ .Site.LanguageCode | default "en" }}">
{{ partial "head.html" . }}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
<main>
{{ partial "header.html" . }}
{{ partial "nav.html" . }}
<section id="section_main">
{{ block "main" . }}{{ end }}
</section>
{{ partial "footer.html" . }}
</main>
</body>
</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"
license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
description = ""
homepage = "http://example.com/"
tags = []
licenselink = "https://git.fanyx.xyz/fanyx/hugo-theme-apache2/blob/master/LICENSE"
description = "A simple theme based on the HTTPD default site and css."
homepage = "https://git.fanyx.xyz/fanyx/hugo-theme-apache2/"
tags = ["apache2", "httpd"]
features = []
min_version = "0.41.0"
[author]
name = ""
homepage = ""
# If porting an existing theme
[original]
name = ""
homepage = ""
repo = ""
name = "fanyx"
homepage = "https://fanyx.xyz"