Add theme
This commit is contained in:
20
themes/hugo-scroll/layouts/_default/baseof.html
Normal file
20
themes/hugo-scroll/layouts/_default/baseof.html
Normal file
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
{{- block "main" . }}{{- end }}
|
||||
{{- partial "footer.html" . -}}
|
||||
|
||||
<!-- We do need jQuery to be loaded before HugoScroll script -->
|
||||
<script type="text/javascript" src='{{ "js/jquery-1.11.3.min.js" | absURL }}'></script>
|
||||
|
||||
<!-- The main JavaScript files for HugoScroll -->
|
||||
<script type="text/javascript" src='{{ "js/icons.js" | absURL }}'></script>
|
||||
<script type="text/javascript" src='{{ "js/index.js" |absURL }}'></script>
|
||||
<!-- A partial to be overwritten by the user.
|
||||
Simply place a custom_body.html into
|
||||
your local /layouts/partials-directory -->
|
||||
{{- partial "custom_body.html" . -}}
|
||||
</body>
|
||||
</html>
|
0
themes/hugo-scroll/layouts/_default/list.html
Normal file
0
themes/hugo-scroll/layouts/_default/list.html
Normal file
15
themes/hugo-scroll/layouts/_default/single.html
Normal file
15
themes/hugo-scroll/layouts/_default/single.html
Normal file
@ -0,0 +1,15 @@
|
||||
{{ define "main" }}
|
||||
<main class="content page-template page-{{ .Slug }}" role="main">
|
||||
<article class="post page">
|
||||
<header class="post-header">
|
||||
<a id="blog-logo" href="{{ "/" | relURL }}">
|
||||
{{ .Site.Title }}
|
||||
</a>
|
||||
</header>
|
||||
<h1 class="post-title">{{ .Title }}</h1>
|
||||
<section class="post-content">
|
||||
{{ .Content }}
|
||||
</section>
|
||||
</article>
|
||||
</main>
|
||||
{{ end }}
|
Reference in New Issue
Block a user