worked a little
This commit is contained in:
parent
e9a07d85d7
commit
efd4a417e5
|
@ -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>
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{{ define "main" }}
|
||||
|
||||
{{ end }}
|
|
@ -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>
|
|
@ -0,0 +1,5 @@
|
|||
<header>
|
||||
<div class="section_header section_header_red">
|
||||
{{- if .Title }}{{ .Title }} | {{ end }} {{ .Site.Title -}}
|
||||
</div>
|
||||
</header>
|
|
@ -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>
|
18
theme.toml
18
theme.toml
|
@ -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"
|
Loading…
Reference in New Issue