1
0
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:
2016-08-28 16:21:39 +03:00
commit 2bb1d6ecc0
22 changed files with 1044 additions and 0 deletions

0
layouts/404.html Normal file
View File

View File

View File

View File

@ -0,0 +1,6 @@
<div class="blog-post">
<h2 class="blog-post-title"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h2>
<p class="blog-post-meta">{{ .Date.Format "Mon, Jan 2, 2006" }} by <a href="#">Mark</a></p>
{{ .Summary }}
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
</div> <!-- /.blog-post -->

20
layouts/index.html Normal file
View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
{{ partial "head.html" . }}
<body>
{{ partial "menu.html" . }}
{{ partial "header.html" . }}
{{ partial "content.html" . }}
{{ partial "footer.html" . }}
{{ partial "after-footer.html" . }}
</body>
</html>

View 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>

View 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 -->

View File

@ -0,0 +1,5 @@
<footer class="blog-footer">
<p>
Blog template built by <a href='https://twitter.com/mralanorth'>@mralanorth</a>.
</p>
</footer>

View 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>

View 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>

View 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>

View 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 -->