mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2025-05-08 13:36:01 +02:00
First commit with initial theme
Some file are empty (created by `hugo new theme`), but I've left them for reference later.
This commit is contained in:
4
layouts/partials/after-footer.html
Normal file
4
layouts/partials/after-footer.html
Normal file
@ -0,0 +1,4 @@
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<!-- jQuery first, then Bootstrap -->
|
||||
<script src="{{ .Site.BaseURL }}js/jquery.min.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}js/bootstrap.min.js"></script>
|
12
layouts/partials/content.html
Normal file
12
layouts/partials/content.html
Normal file
@ -0,0 +1,12 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-8 blog-main">
|
||||
{{ range .Data.Pages }}
|
||||
{{ .Render "summary"}}
|
||||
{{ end }}
|
||||
</div> <!-- /.blog-main -->
|
||||
|
||||
{{ partial "sidebar.html" . }}
|
||||
|
||||
</div> <!-- /.row -->
|
||||
</div> <!-- /.container -->
|
5
layouts/partials/footer.html
Normal file
5
layouts/partials/footer.html
Normal file
@ -0,0 +1,5 @@
|
||||
<footer class="blog-footer">
|
||||
<p>
|
||||
Blog template built by <a href='https://twitter.com/mralanorth'>@mralanorth</a>.
|
||||
</p>
|
||||
</footer>
|
19
layouts/partials/head.html
Normal file
19
layouts/partials/head.html
Normal file
@ -0,0 +1,19 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
|
||||
{{ if .Site.Params.description }}<meta name="description" content="{{ .Site.Params.description }}">{{ end }}
|
||||
{{ if .Site.Params.author }}<meta name="author" content="{{ .Site.Params.author }}">{{ end }}
|
||||
|
||||
{{ .Hugo.Generator }}
|
||||
|
||||
<base href="{{ .Site.BaseURL }}">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
<title>{{ .Title }}</title>
|
||||
|
||||
<!-- combined, minified CSS -->
|
||||
<link href="{{ .Site.BaseURL }}css/style.css" rel="stylesheet">
|
||||
</head>
|
6
layouts/partials/header.html
Normal file
6
layouts/partials/header.html
Normal file
@ -0,0 +1,6 @@
|
||||
<div class="blog-header">
|
||||
<div class="container">
|
||||
<h1 class="blog-title">{{ .Title | safeHTML }}</h1>
|
||||
{{ if .Site.Params.description }}<p class="lead blog-description">{{ .Site.Params.description | safeHTML }}</p>{{ end }}
|
||||
</div>
|
||||
</div>
|
7
layouts/partials/menu.html
Normal file
7
layouts/partials/menu.html
Normal file
@ -0,0 +1,7 @@
|
||||
<div class="blog-masthead">
|
||||
<div class="container">
|
||||
<nav class="nav blog-nav">
|
||||
<a class="nav-link" href="{{ .Site.BaseURL }}">Home</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
31
layouts/partials/sidebar.html
Normal file
31
layouts/partials/sidebar.html
Normal file
@ -0,0 +1,31 @@
|
||||
<div class="col-sm-3 offset-sm-1 blog-sidebar">
|
||||
<div class="sidebar-module sidebar-module-inset">
|
||||
<h4>About</h4>
|
||||
<p>Etiam porta <em>sem malesuada magna</em> mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.</p>
|
||||
</div>
|
||||
<div class="sidebar-module">
|
||||
<h4>Archives</h4>
|
||||
<ol class="list-unstyled">
|
||||
<li><a href="#">March 2014</a></li>
|
||||
<li><a href="#">February 2014</a></li>
|
||||
<li><a href="#">January 2014</a></li>
|
||||
<li><a href="#">December 2013</a></li>
|
||||
<li><a href="#">November 2013</a></li>
|
||||
<li><a href="#">October 2013</a></li>
|
||||
<li><a href="#">September 2013</a></li>
|
||||
<li><a href="#">August 2013</a></li>
|
||||
<li><a href="#">July 2013</a></li>
|
||||
<li><a href="#">June 2013</a></li>
|
||||
<li><a href="#">May 2013</a></li>
|
||||
<li><a href="#">April 2013</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="sidebar-module">
|
||||
<h4>Elsewhere</h4>
|
||||
<ol class="list-unstyled">
|
||||
<li><a href="#">GitHub</a></li>
|
||||
<li><a href="#">Twitter</a></li>
|
||||
<li><a href="#">Facebook</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div><!-- /.blog-sidebar -->
|
Reference in New Issue
Block a user