initial commit
This commit is contained in:
20
themes/hugo-sustain/LICENSE.md
Normal file
20
themes/hugo-sustain/LICENSE.md
Normal file
@@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2017 Nurlan Su
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
134
themes/hugo-sustain/README.md
Normal file
134
themes/hugo-sustain/README.md
Normal file
@@ -0,0 +1,134 @@
|
||||
![Sustain - Logo][logo]
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Installation](#installation)
|
||||
- [Quick start](#quick-start)
|
||||
- [Features](#features)
|
||||
- [Syntax highlighting](#syntax-highlighting)
|
||||
- [Disqus](#disqus)
|
||||
- [Google Analytics](#google-analytics)
|
||||
- [About](#about)
|
||||
- [Contributing](#contributing)
|
||||
- [Changelog](#changelog)
|
||||
- [License](#license)
|
||||
|
||||
********************
|
||||
|
||||
![Sustain Screen][screenshot]
|
||||
|
||||
********************
|
||||
|
||||
<p align="center"><b><a href="https://demo.nurlan.co/hugo-sustain/">Sustain Live Demo</a></b></p>
|
||||
|
||||
## Installation
|
||||
|
||||
#### With `git`
|
||||
|
||||
From the root of your Hugo site, clone the theme into `themes/hugo-sustain` by running :
|
||||
```
|
||||
git clone https://github.com/nurlansu/hugo-sustain.git themes/hugo-sustain
|
||||
```
|
||||
|
||||
#### Manual
|
||||
|
||||
1. [Download][zip-archive] zip archive.
|
||||
2. Unarchive it.
|
||||
3. Move `hugo-sustain` folder in `themes` folder of your blog
|
||||
|
||||
For more information read the official [setup guide][hugo-guide] of Hugo.
|
||||
|
||||
## Quick start
|
||||
|
||||
After installation, take a look in the `exampleSite` folder at. This directory contains an example config file and the content for the demo. It serves as an example setup for your documentation.
|
||||
|
||||
```
|
||||
exampleSite
|
||||
├── config.toml
|
||||
├── content
|
||||
│ ├── projects.md
|
||||
│ │
|
||||
│ └── blog
|
||||
│ ├── creating-a-new-theme.md
|
||||
│ ├── go-is-for-lovers.md
|
||||
│ ├── hugo-is-for-lovers.md
|
||||
│ └── migrate-from-jekyll.md
|
||||
│
|
||||
├── data
|
||||
│ └── projects.yml
|
||||
│
|
||||
└── static
|
||||
```
|
||||
|
||||
Copy at least the `config.toml` in the root directory of your website. Overwrite the existing config file if necessary.
|
||||
|
||||
Hugo includes a development server, so you can view your changes as you go -
|
||||
very handy. Spin it up with the following command:
|
||||
|
||||
``` sh
|
||||
hugo serve
|
||||
```
|
||||
|
||||
Now you can go to [localhost:1313][local] and the Sustain
|
||||
theme should be visible.
|
||||
|
||||
## Features
|
||||
|
||||
### Syntax highlighting
|
||||
|
||||
Use `highlight = true` in the front matter to include [`highlight.js`][highlight-js] javascript and css files.
|
||||
|
||||
### Disqus
|
||||
|
||||
To use this feature, uncomment and fill out the `disqusShortname` parameter in `config.toml`.
|
||||
|
||||
### Google Analytics
|
||||
|
||||
To add Google Analytics, simply sign up to [Google Analytics][g-analytics] to obtain your Google Tracking ID, and add this tracking ID to the `googleAnalytics` parameter in `config.toml`.
|
||||
|
||||
## About
|
||||
|
||||
This is a port of the Jekyll theme [Sustain][sustain-jekyll] by [Fábio Madeira][sustain-author]. It supports most of the features of the original theme.
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests, bug fixes, and new features are welcome!
|
||||
|
||||
1. Fork the repository
|
||||
2. Create your feature branch (`git checkout -b my-new-feature`)
|
||||
3. Commit your changes (`git commit -a -m 'Add some feature'`)
|
||||
4. Push to the branch (`git push origin my-new-feature`)
|
||||
5. Create new Pull Request on GitHub
|
||||
|
||||
## Changelog
|
||||
|
||||
> Version 1.0.1
|
||||
|
||||
- Added proper "Projects" page rendering
|
||||
- Fixes, many fixes
|
||||
|
||||
> Version 1.0
|
||||
|
||||
- Initial release
|
||||
|
||||
## License
|
||||
|
||||
<p align="center">
|
||||
<a href="./LICENSE.md"><img src="https://i.nurlan.co/logo.svg" width="100%" height="128"></a>
|
||||
<a href="./LICENSE.md"><strong>MIT</strong></a>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
[logo]: https://i.nurlan.co/sustain.png
|
||||
[screenshot]: https://i.nurlan.co/sustain-screen.png
|
||||
[bootstrap]: https://getbootstrap.com/
|
||||
[hugo]: https://gohugo.io/
|
||||
[gh-pages]: https://pages.github.com/
|
||||
[zip-archive]: https://github.com/nurlansu/hugo-sustain/archive/master.zip
|
||||
[hugo-guide]: https://gohugo.io/overview/installing/
|
||||
[local]: http://localhost:1313/
|
||||
[highlight-js]: https://highlightjs.org/
|
||||
[g-analytics]: https://www.google.com/analytics/
|
||||
[sustain-jekyll]: https://github.com/biomadeira/sustain/
|
||||
[sustain-author]: https://github.com/biomadeira/
|
||||
6
themes/hugo-sustain/archetypes/default.md
Normal file
6
themes/hugo-sustain/archetypes/default.md
Normal file
@@ -0,0 +1,6 @@
|
||||
+++
|
||||
title = ""
|
||||
description = ""
|
||||
tags = []
|
||||
categories = []
|
||||
+++
|
||||
BIN
themes/hugo-sustain/images/screenshot.png
Normal file
BIN
themes/hugo-sustain/images/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 241 KiB |
BIN
themes/hugo-sustain/images/tn.png
Normal file
BIN
themes/hugo-sustain/images/tn.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 117 KiB |
13
themes/hugo-sustain/layouts/404.html
Normal file
13
themes/hugo-sustain/layouts/404.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ partial "head" . }}
|
||||
<body>
|
||||
<div id="wrap">
|
||||
{{ partial "header" . }}
|
||||
<div class="container">
|
||||
<div class="page-not-found">
|
||||
<h3>Uh oh! Page not found!</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
31
themes/hugo-sustain/layouts/_default/list.html
Normal file
31
themes/hugo-sustain/layouts/_default/list.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{{ partial "head" . }}
|
||||
<body>
|
||||
<div id="wrap">
|
||||
<!-- Header -->
|
||||
{{ partial "header" . }}
|
||||
<div class="container">
|
||||
<h1>Archive</h1>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
{{ range .Data.Pages.ByPublishDate.Reverse }}
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-md-4 col-lg-4">
|
||||
<h5 style="text-align: right">
|
||||
{{ .Date.Format "January 2, 2006" }}
|
||||
</h5>
|
||||
</div>
|
||||
<div class="col-sm-8 col-md-8 col-lg-8">
|
||||
<h5 style="text-align: left">
|
||||
<strong><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></strong>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Footer -->
|
||||
{{ partial "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
61
themes/hugo-sustain/layouts/_default/single.html
Normal file
61
themes/hugo-sustain/layouts/_default/single.html
Normal file
@@ -0,0 +1,61 @@
|
||||
{{ partial "head" . }}
|
||||
<body>
|
||||
<div id="wrap">
|
||||
|
||||
<!-- Header -->
|
||||
{{ partial "header" . }}
|
||||
|
||||
<div class="container {{ replace (.LinkTitle | lower) " " "_" }}"> <!-- add link title add class -->
|
||||
<div class="blog-post">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</div>
|
||||
{{ if ne .Params.page true }}
|
||||
<div class="blog-title">
|
||||
<h4>
|
||||
{{ .Date.Format "January 2, 2006" }}
|
||||
|
||||
{{ range .Params.tags }}
|
||||
<span class="label label-success">{{ . }}</span>
|
||||
|
||||
{{ end }}
|
||||
</h4>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<div class="blogpost">
|
||||
{{ .Content }}
|
||||
<!-- only show related posts if param is true, or if it's not a page -->
|
||||
{{ if or (eq .Params.related true) (ne .Params.page true) }}
|
||||
<hr>
|
||||
<div class="related-posts">
|
||||
<h5>Related Posts</h5>
|
||||
{{ range first 3 ( where ( where .Site.Pages.ByDate.Reverse ".Params.tags" "intersect" .Params.tags ) "Permalink" "!=" .Permalink ) }}
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-md-4 col-lg-4">
|
||||
<h6 style="text-align: right">
|
||||
{{ .Date.Format "January 2, 2006" }}
|
||||
</h6>
|
||||
</div>
|
||||
<div class="col-sm-8 col-md-8 col-lg-8">
|
||||
<h6 style="text-align: left">
|
||||
<strong><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></strong>
|
||||
</h6>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
{{ partial "social" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
{{ partial "footer" . }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
19
themes/hugo-sustain/layouts/index.html
Normal file
19
themes/hugo-sustain/layouts/index.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ partial "head" . }}
|
||||
<body>
|
||||
<div id="wrap">
|
||||
{{ partial "header" . }}
|
||||
<section id="about">
|
||||
<div class="container">
|
||||
<div class="avatar">
|
||||
<img class="img-circle" src="{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}" alt="Responsive image">
|
||||
</div>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ partial "social.html" . }}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
{{ partial "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
19
themes/hugo-sustain/layouts/partials/disqus.html
Executable file
19
themes/hugo-sustain/layouts/partials/disqus.html
Executable file
@@ -0,0 +1,19 @@
|
||||
<div class="disqus">
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
|
||||
(function() {
|
||||
// Don't ever inject Disqus on localhost--it creates unwanted
|
||||
// discussions from 'localhost:1313' on your Disqus account...
|
||||
if (window.location.hostname == "localhost")
|
||||
return;
|
||||
|
||||
var disqus_shortname = '{{ .Site.DisqusShortname }}';
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
<a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
||||
</div>
|
||||
10
themes/hugo-sustain/layouts/partials/footer.html
Normal file
10
themes/hugo-sustain/layouts/partials/footer.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<footer>
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<p class="text-muted">© All rights reserved. The code <a href="https://src.mehl.mx/mxmehl/mehl.mx">is available</a> under GNU GPL 3.0. <a href="/impressum">Impressum & Privacy</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<div class="footer"></div>
|
||||
|
||||
{{ partial "js" . }}
|
||||
35
themes/hugo-sustain/layouts/partials/head.html
Normal file
35
themes/hugo-sustain/layouts/partials/head.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="author" content="{{ .Site.Params.Author }}" />
|
||||
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
{{ with .Site.Params.keywords }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}img/favicon.ico">
|
||||
<title>
|
||||
{{- if .IsHome -}}
|
||||
{{- .Site.Title -}}
|
||||
{{- else -}}
|
||||
{{- if .Params.heading -}} {{- .Params.heading -}} {{- else -}} {{- .Site.Title -}} {{ print " | " }} {{- .Title -}} {{- end -}}
|
||||
{{- end -}}
|
||||
</title>
|
||||
{{ .Hugo.Generator }}
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap-3.3.7.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/main.css" />
|
||||
{{- if .Params.highlight -}}
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/tomorrow-9.7.0.min.css">
|
||||
{{ end }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/fontawesome/css/all.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/fonts.css" />
|
||||
{{ range .Site.Params.custom_css }}
|
||||
<link rel="stylesheet" href="{{ $.Site.BaseURL}}{{ . }}">
|
||||
{{ end }}
|
||||
{{ `<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->` | safeHTML }}
|
||||
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
</head>
|
||||
22
themes/hugo-sustain/layouts/partials/header.html
Normal file
22
themes/hugo-sustain/layouts/partials/header.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse" id="navbar">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{{- $rel := .RelPermalink -}}
|
||||
{{- if .Site.Menus.main -}}
|
||||
{{- range sort .Site.Menus.main -}}
|
||||
<!-- if RelPermalink = this menu item, mark it -->
|
||||
<li class="{{if eq $rel .URL}}active{{end}}"><a href="{{ .URL }}">{{ .Name | upper }}</a></li>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
16
themes/hugo-sustain/layouts/partials/js.html
Normal file
16
themes/hugo-sustain/layouts/partials/js.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
||||
<script src="{{ .Site.BaseURL }}js/jquery-1.11.3.min.js"></script>
|
||||
<!-- Bootstrap core JavaScript -->
|
||||
<script src="{{ .Site.BaseURL }}js/bootstrap-3.3.7.min.js" ></script>
|
||||
{{- range .Site.Params.custom_js -}}
|
||||
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
|
||||
{{ end }}
|
||||
<script src="{{ .Site.BaseURL }}js/docs.min.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}js/main.js"></script>
|
||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||
<script src="{{ .Site.BaseURL }}js/ie10-viewport-bug-workaround.js"></script>
|
||||
{{- if .Params.highlight -}}
|
||||
{{ "<!-- Syntax highlighting -->" | safeHTML }}
|
||||
<script src="{{ .Site.BaseURL }}js/highlight-9.7.0.min.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
{{ end }}
|
||||
36
themes/hugo-sustain/layouts/partials/social.html
Executable file
36
themes/hugo-sustain/layouts/partials/social.html
Executable file
@@ -0,0 +1,36 @@
|
||||
<div class="social">
|
||||
<ul class="social-links">
|
||||
|
||||
{{ with .Site.Params.Social.Email }}
|
||||
<li><a href="{{ . }}" title="Email"><i class="fa fa-envelope"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.Mastodon }}
|
||||
<li><a href="https://{{ . }}" title="Mastodon"><i class="fab fa-mastodon"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.Twitter }}
|
||||
<li><a href="https://twitter.com/{{ . }}" title="Twitter"><i class="fab fa-twitter"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.Diaspora }}
|
||||
<li><a href="https://{{ . }}" title="Diaspora"><i class="fab fa-diaspora"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.Stackoverflow }}
|
||||
<li><a href="https://stackoverflow.com/{{ . }}" title="Stackoverflow"><i class="fab fa-stack-overflow"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.Git }}
|
||||
<li><a href="{{ . }}" title="Git"><i class="fab fa-git"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.Github }}
|
||||
<li><a href="https://github.com/{{ . }}" title="Github"><i class="fab fa-github"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.LinkedIn }}
|
||||
<li><a href="https://linkedin.com/in/{{ . }}" title="LinkedIn"><i class="fab fa-linkedin"></i></a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
199
themes/hugo-sustain/static/css/main.css
Executable file
199
themes/hugo-sustain/static/css/main.css
Executable file
@@ -0,0 +1,199 @@
|
||||
/* Main page with stikky-footer */
|
||||
html, body {
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
font-family: 'Source Sans Pro', sans-serif;
|
||||
/* The html and body elements cannot have any padding or margin. */
|
||||
border-top: 3px solid #27A822;
|
||||
}
|
||||
|
||||
/* Wrapper for page content to push down footer */
|
||||
#wrap {
|
||||
padding-bottom: 50px;
|
||||
min-height: 100%;
|
||||
height: auto;
|
||||
/* Negative indent footer by its height */
|
||||
margin: 0 auto -65px;
|
||||
/* Pad bottom by footer height */
|
||||
/*padding: 0 0 60px;*/
|
||||
}
|
||||
|
||||
/* Navbar */
|
||||
.navbar-static-top {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.navbar-default {
|
||||
background-color: #ffffff;
|
||||
border-color: #ffffff;
|
||||
}
|
||||
.navbar-default .navbar-brand {
|
||||
color: #6b6b6b;
|
||||
}
|
||||
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
|
||||
color: #6b6b6b;
|
||||
}
|
||||
.navbar-default .navbar-text {
|
||||
color: #6b6b6b;
|
||||
}
|
||||
.navbar-default .navbar-nav > li > a {
|
||||
color: #6b6b6b;
|
||||
}
|
||||
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
|
||||
color: #6b6b6b;
|
||||
}
|
||||
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
|
||||
color: #6b6b6b;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
|
||||
color: #6b6b6b;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.navbar-default .navbar-toggle {
|
||||
border-color: #ffffff;
|
||||
}
|
||||
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.navbar-default .navbar-toggle .icon-bar {
|
||||
background-color: #6b6b6b;
|
||||
}
|
||||
.navbar-default .navbar-collapse,
|
||||
.navbar-default .navbar-form {
|
||||
border-color: #6b6b6b;
|
||||
}
|
||||
.navbar-default .navbar-link {
|
||||
color: #6b6b6b;
|
||||
}
|
||||
.navbar-default .navbar-link:hover {
|
||||
color: #6b6b6b;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
|
||||
color: #6b6b6b;
|
||||
}
|
||||
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
|
||||
color: #6b6b6b;
|
||||
}
|
||||
.navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
|
||||
color: #6b6b6b;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
/* Custom page CSS */
|
||||
.container {
|
||||
width: auto;
|
||||
max-width: 800px;
|
||||
text-align: center;
|
||||
}
|
||||
.container .text-muted {
|
||||
margin: 20px 0;
|
||||
}
|
||||
.container a {
|
||||
color: #27A822;
|
||||
}
|
||||
.container a:hover {
|
||||
color: #267723;
|
||||
}
|
||||
.container p img, .img-responsive {
|
||||
display: block;
|
||||
height: auto;
|
||||
margin: 2rem auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
.panel-default h4 {
|
||||
text-align: left;
|
||||
line-height: 24px;
|
||||
font-size: 22px;
|
||||
}
|
||||
.panel-default h5 {
|
||||
text-align: left;
|
||||
line-height: 30px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.panel-default h6 {
|
||||
font-size: 15px;
|
||||
}
|
||||
.panel-default h4 a, h5 a {
|
||||
color: #27A822;
|
||||
}
|
||||
.panel-default h4 a:hover, h5 a:hover {
|
||||
color: #267723;
|
||||
}
|
||||
.panel{
|
||||
border-style: none;
|
||||
}
|
||||
.panel-body {
|
||||
padding-top: -10px;
|
||||
text-align: left;
|
||||
}
|
||||
.social-links {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
margin-top: 40px;
|
||||
padding: 0px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
animation: fade 1s ease 1s both;
|
||||
}
|
||||
.social-links li {
|
||||
display: inline-block;
|
||||
padding: 5px;
|
||||
padding-top: 0;
|
||||
text-align: center;
|
||||
}
|
||||
.social-links li a {
|
||||
font-size: 20px;
|
||||
color: #000;
|
||||
padding: 10px;
|
||||
padding-bottom: 4px;
|
||||
transition: all .4s ease;
|
||||
}
|
||||
.social-links li a:hover {
|
||||
color: #000;
|
||||
}
|
||||
.avatar {
|
||||
padding-top: 5%;
|
||||
}
|
||||
.blog-post{
|
||||
padding-top: 15px;
|
||||
}
|
||||
.blog-title{
|
||||
padding-top: 2px;
|
||||
}
|
||||
.label {
|
||||
display: inline-block;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.related-posts h4 {
|
||||
text-align: center;
|
||||
}
|
||||
.page-not-found {
|
||||
padding-top: 20%;
|
||||
}
|
||||
.disqus {
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
.blogpost{
|
||||
text-align: left;
|
||||
line-height: 30px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
.text-muted {
|
||||
color: #6b6b6b;
|
||||
}
|
||||
div.footer{
|
||||
border-bottom: 5px solid #27A822;;
|
||||
}
|
||||
/* Set the fixed height of the footer here */
|
||||
/*.footer {
|
||||
height: 50px;
|
||||
padding-bottom: 15px;
|
||||
|
||||
}*/
|
||||
16
themes/hugo-sustain/static/js/docs.min.js
vendored
Executable file
16
themes/hugo-sustain/static/js/docs.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
23
themes/hugo-sustain/static/js/ie10-viewport-bug-workaround.js
Executable file
23
themes/hugo-sustain/static/js/ie10-viewport-bug-workaround.js
Executable file
@@ -0,0 +1,23 @@
|
||||
/*!
|
||||
* IE10 viewport hack for Surface/desktop Windows 8 bug
|
||||
* Copyright 2014-2015 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
*/
|
||||
|
||||
// See the Getting Started docs for more information:
|
||||
// http://getbootstrap.com/getting-started/#support-ie10-width
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
||||
var msViewportStyle = document.createElement('style')
|
||||
msViewportStyle.appendChild(
|
||||
document.createTextNode(
|
||||
'@-ms-viewport{width:auto!important}'
|
||||
)
|
||||
)
|
||||
document.querySelector('head').appendChild(msViewportStyle)
|
||||
}
|
||||
|
||||
})();
|
||||
14
themes/hugo-sustain/static/js/main.js
Executable file
14
themes/hugo-sustain/static/js/main.js
Executable file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Created by fabiomadeira on 25/02/15.
|
||||
*/
|
||||
// jQuery for page scrolling feature
|
||||
jQuery(document).ready(function(e) {
|
||||
e(".scroll").click(function(t) {
|
||||
t.preventDefault();
|
||||
e("html,body").animate({
|
||||
scrollTop: e(this.hash).offset().top
|
||||
}, 1e3)
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
18
themes/hugo-sustain/theme.toml
Normal file
18
themes/hugo-sustain/theme.toml
Normal file
@@ -0,0 +1,18 @@
|
||||
name = "Sustain"
|
||||
license = "MIT"
|
||||
licenselink = "https://github.com/nurlansu/hugo-sustain/blob/master/LICENSE.md"
|
||||
description = "Personal blog built with Bootstrap, powered by Hugo"
|
||||
homepage = "https://github.com/nurlansu/hugo-sustain"
|
||||
tags = ["blog", "minimal", "responsive"]
|
||||
features = ["responsive", "syntax highlighting"]
|
||||
min_version = 0.17
|
||||
|
||||
[author]
|
||||
name = "Nurlan Su"
|
||||
homepage = "https://github.com/nurlansu"
|
||||
|
||||
# If porting an existing theme
|
||||
[original]
|
||||
name = "Sustain"
|
||||
homepage = "https://biomadeira.github.io/sustain/"
|
||||
repo = "https://github.com/biomadeira/sustain"
|
||||
Reference in New Issue
Block a user