Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aleph Systems
Hugo Theme Dimension
Commits
9116e9a3
Commit
9116e9a3
authored
May 17, 2020
by
d-asnaghi
Browse files
[HUGO] base example format
parent
da80a9e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
layouts/_default/list.html
View file @
9116e9a3
...
...
@@ -12,7 +12,7 @@
</div>
<div
class=
"content"
>
<div
class=
"inner"
>
<h1>
{{ .Title }}
</h1>
<h1>
{{ .Title
| default "Title"
}}
</h1>
{{ if .Params.description }}
<p>
{{ .Params.description }}
...
...
@@ -37,12 +37,14 @@
<div
id=
"main"
>
{{ range .Pages }}
{{if .Content}}
<article
id=
"{{ .Title | urlize }}"
>
<h2
class=
"major"
>
{{ .Title }}
</h2>
<span
class=
"image main"
><img
src=
"{{ .Params.image }}"
alt=
""
/></span>
{{ .Content }}
</article>
{{if .Content }}
{{if .Title }}
<article
id=
"{{ .Title | urlize }}"
>
<h2
class=
"major"
>
{{ .Title }}
</h2>
<span
class=
"image main"
><img
src=
"{{ .Params.image }}"
alt=
""
/></span>
{{ .Content }}
</article>
{{ end }}
{{ end }}
{{ end }}
...
...
layouts/partials/header.html
View file @
9116e9a3
<!DOCTYPE html>
<html>
<head>
<title>
{{ .Params.Title }}
</title>
<title>
{{ .Params.Title
| default "Title"
}}
</title>
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, user-scalable=no"
/>
<link
rel=
"stylesheet"
href=
{{
"
assets
/
css
/
main.css
"
|
absURL
}}
/>
...
...
theme.toml
View file @
9116e9a3
...
...
@@ -5,7 +5,7 @@ description = "A port of HTML5's dimension theme, optimized for markdown based C
homepage
=
"https://github.com/your-identity/hugo-theme-dimension/"
tags
=
[
"blog"
,
"clean"
,
"customizable"
,
"dark"
,
"highlighting"
,
"minimal"
,
"personal"
,
"responsive"
,
"simple"
,
"responsive"
]
features
=
[
"blog"
,
"syntax highlighting"
]
min_version
=
0.5
9.0
min_version
=
0.5
7
[author]
name
=
"d-asnaghi"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment