first release
This commit is contained in:
21
themes/hugo-theme-nix/layouts/404.html
Normal file
21
themes/hugo-theme-nix/layouts/404.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<title> {{ .Site.Title }} </title>
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
</head>
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
<div class="container wrapper">
|
||||
<h1>Uhm... Quoi?</h1>
|
||||
<div class="post-content">
|
||||
<p>Je pense que tu t'es perdu, cette page n'éxiste pas</p>
|
||||
</div>
|
||||
<div class="push"></div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
|
39
themes/hugo-theme-nix/layouts/_default/list.html
Normal file
39
themes/hugo-theme-nix/layouts/_default/list.html
Normal file
@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
<head>
|
||||
<title> {{ .Title }} · {{ .Site.Title }} </title>
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
<div class="container wrapper">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-center">
|
||||
<h1 id=>{{ .Title }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<ul id="post-list">
|
||||
{{ range .Paginator.Pages }}
|
||||
<li>
|
||||
<div class="post-list-item">
|
||||
<div class="post-header">
|
||||
<h4 class="post-link"><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
|
||||
<h4 class="post-date">{{ .Date.Format "Jan 2, 2006" }}</h4>
|
||||
</div>
|
||||
<div class="post-summary"><p>{{ .Summary }}</p></div>
|
||||
<div class="post-list-footer text-center">
|
||||
<a href="{{ .Permalink }}">Read More</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ partial "pagination" . }}
|
||||
<div class="push"></div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
27
themes/hugo-theme-nix/layouts/_default/single.html
Normal file
27
themes/hugo-theme-nix/layouts/_default/single.html
Normal file
@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title> {{ .Title }} · {{ .Site.Title }} </title>
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
<div class="container wrapper">
|
||||
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||
<span class="post-date">{{ .Date.Format "Jan 2, 2006 " }}</span>
|
||||
<div class="post-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ if (isset .Params "nocomments") }}
|
||||
{{ else }}
|
||||
<div class="post-comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="push"></div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
38
themes/hugo-theme-nix/layouts/index.html
Normal file
38
themes/hugo-theme-nix/layouts/index.html
Normal file
@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<title> {{ .Site.Title }} </title>
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
</head>
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
<div class="container wrapper">
|
||||
{{ with .Site.Params.ProfilePicture }}
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-centered">
|
||||
<img alt="profile-picture" class="img-responsive img-circle user-picture" src="{{.}}">
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 user-profile text-center">
|
||||
<h1 id="user-name">{{ .Site.Params.Name }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 user-social text-center">
|
||||
{{ partial "social.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-md-offset-4 user-description text-center">
|
||||
<p>{{ .Site.Params.About }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="push"></div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
10
themes/hugo-theme-nix/layouts/partials/footer.html
Normal file
10
themes/hugo-theme-nix/layouts/partials/footer.html
Normal file
@ -0,0 +1,10 @@
|
||||
<footer class="footer text-center">
|
||||
<p>Copyright © {{ now.Format "2006" }} {{ .Site.Params.Name }} -
|
||||
<span class="credit">
|
||||
Powered by
|
||||
<a target="_blank" href="https://gohugo.io">Hugo</a>
|
||||
and
|
||||
<a target="_blank" href="https://github.com/LordMathis/hugo-theme-nix/">Nix</a> theme.
|
||||
</span>
|
||||
</p>
|
||||
</footer>
|
34
themes/hugo-theme-nix/layouts/partials/head.html
Normal file
34
themes/hugo-theme-nix/layouts/partials/head.html
Normal file
@ -0,0 +1,34 @@
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||
{{ .Hugo.Generator }}
|
||||
|
||||
<!-- JQuery -->
|
||||
<script src="{{ "js/jquery-3.1.1.min.js" | absURL }}" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="> </script>
|
||||
|
||||
<!-- Bootstrap minified CSS and JS-->
|
||||
<link rel="stylesheet" href="{{ "css/bootstrap-3.3.7.min.css" | absURL }}" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u">
|
||||
|
||||
<script src="{{ "js/bootstrap-3.3.7.min.js" | absURL }}" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"></script>
|
||||
|
||||
<!-- Font Awesome -->
|
||||
<link href="{{ "css/font-awesome-4.7.0.min.css" | absURL }}" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" >
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="{{ "css/nix.css" | absURL }}">
|
||||
|
||||
<!-- Google Fonts -->
|
||||
<link href="{{ "css/font-Inconsolata-Open-Sans-Concert-One.css" | absURL }}" rel="stylesheet">
|
||||
|
||||
<!-- Google Analytics -->
|
||||
{{ with .Site.Params.GoogleAnalytics }}
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', '{{.}}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
{{ end }}
|
42
themes/hugo-theme-nix/layouts/partials/header.html
Normal file
42
themes/hugo-theme-nix/layouts/partials/header.html
Normal file
@ -0,0 +1,42 @@
|
||||
<header>
|
||||
<nav class="navbar navbar-default navbar-fixed-top navbar-inverse font-header">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" id="red-terminal" href={{.Site.BaseURL}}>{{.Site.Params.HeaderUsername}}@{{.Site.Params.HeaderHostname}} ~ #</a>
|
||||
</div>
|
||||
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<!-- <a href="{{ .Site.BaseURL }}">/home/{{.Site.Params.HeaderUsername}}</a> -->
|
||||
</li>
|
||||
{{ range .Site.Menus.header }}
|
||||
{{ $name := lower .Name }}
|
||||
<li class="dropdown">
|
||||
{{ if .HasChildren }}
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">~/{{ .Name }} <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
{{ range .Children }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">📂 {{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<a href="{{ .URL }}">~/{{ lower .Name }}</a>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
</ul>
|
||||
</div><!-- /.navbar-collapse -->
|
||||
</div><!-- /.container-fluid -->
|
||||
</nav>
|
||||
</header>
|
30
themes/hugo-theme-nix/layouts/partials/pagination.html
Normal file
30
themes/hugo-theme-nix/layouts/partials/pagination.html
Normal file
@ -0,0 +1,30 @@
|
||||
{{ $pag := $.Paginator }}
|
||||
{{ if gt $pag.TotalPages 1 }}
|
||||
<div class="pagination-wrapper text-center">
|
||||
<ul class="pagination">
|
||||
{{ with $pag.First }}
|
||||
<li>
|
||||
<a href="{{ .URL }}" aria-label="First"><span aria-hidden="true">««</span></a>
|
||||
</li>
|
||||
{{ end }}
|
||||
<li
|
||||
{{ if not $pag.HasPrev }}class="disabled"{{ end }}>
|
||||
<a href="{{ if $pag.HasPrev }}{{ $pag.Prev.URL }}{{ end }}" aria-label="Previous"><span aria-hidden="true">«</span></a>
|
||||
</li>
|
||||
{{ range $pag.Pagers }}
|
||||
<li
|
||||
{{ if eq . $pag }}class="active"{{ end }}><a href="{{ .URL }}">{{ .PageNumber }}</a></li>
|
||||
{{ end }}
|
||||
<li
|
||||
{{ if not $pag.HasNext }}class="disabled"{{ end }}>
|
||||
<a href="{{ if $pag.HasNext }}{{ $pag.Next.URL }}{{ end }}" aria-label="Next"><span aria-hidden="true">»</span></a>
|
||||
</li>
|
||||
{{ with $pag.Last }}
|
||||
<li>
|
||||
<a href="{{ .URL }}" aria-label="Last"><span aria-hidden="true">»»</span></a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
66
themes/hugo-theme-nix/layouts/partials/social.html
Normal file
66
themes/hugo-theme-nix/layouts/partials/social.html
Normal file
@ -0,0 +1,66 @@
|
||||
{{ with .Site.Params.StackExchangeID }}
|
||||
<a href="https://stackexchange.com/users/{{.}}" title="StackExchange"><i class="fa fa-stack-exchange fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.StackOverflowID }}
|
||||
<a href="https://stackoverflow.com/users/{{.}}" title="StackExchange"><i class="fa fa-stack-overflow fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.SlackURL }}
|
||||
<a href="{{.}}" title="Slack"><i class="fa fa-slack fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.TwitterID }}
|
||||
<a href="https://twitter.com/{{.}}" title="Twitter"><i class="fa fa-twitter fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.GoogleplusID }}
|
||||
<a href="https://plus.google.com/{{.}}/about" title="Google+"><i class="fa fa-google-plus fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.FacebookID }}
|
||||
<a href="https://facebook.com/{{.}}" title="Facebook"><i class="fa fa-facebook fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.BitbucketID }}
|
||||
<a href="https://bitbucket.org/{{.}}" title="Bitbucket"><i class="fa fa-bitbucket fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.GithubID }}
|
||||
<a href="https://github.com/{{.}}" title="GitHub"><i class="fa fa-github fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.GitlabId }}
|
||||
<a href="https://gitlab.com/{{.}}" title="GitLab"><i class="fa fa-gitlab fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.CodepenID }}
|
||||
<a href="https://codepen.io/{{.}}" title="Codepen"><i class="fa fa-codepen fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.LinkedInID }}
|
||||
<a href="https://linkedin.com/in/{{.}}" title="LinkedIn"><i class="fa fa-linkedin fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.InstagramID }}
|
||||
<a href="https://instagram.com/{{.}}" title="Instagram"><i class="fa fa-instagram fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.TelegramID }}
|
||||
<a href="https://t.me/{{.}}" title="Telegram"><i class="fa fa-telegram fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.Phone }}
|
||||
<a href="tel:{{.}}" title="Phone"><i class="fa fa-phone fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.Mobile }}
|
||||
<a href="tel:{{.}}" title="Mobile"><i class="fa fa-mobile fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.PayPalMeID }}
|
||||
<a href="https://www.paypal.me/{{.}}" title="PayPal.Me"><i class="fa fa-paypal fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.XingURL }}
|
||||
<a href="{{.}}" title="XING"><i class="fa fa-xing fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.CvURL }}
|
||||
<a href="{{.}}" title="Curriculum Vitae"><i class="fa fa-file-text fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.wiki }}
|
||||
<a href="{{.}}" title="Wiki"><i class="fa fa-book fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.git }}
|
||||
<a href="{{.}}" title="Gitea"><i class="fa fa-git fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.Email }}
|
||||
<a href="mailto:{{.}}" title="Email"><i class="fa fa-envelope fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.GnuPGFingerprint }}
|
||||
<a href="https://pgp.key-server.io/pks/lookup?op=vindex&search=0x{{.}}" title="GPG"><i class="fa fa-unlock-alt fa-3x" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
Reference in New Issue
Block a user