mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Adding the site theme to git
This commit is contained in:
19
_site/themes/hyde-hyde/layouts/partials/commenting.html
Normal file
19
_site/themes/hyde-hyde/layouts/partials/commenting.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ if .Site.Params.highlightjs -}}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
|
||||
{{ range .Site.Params.highlightjslanguages }}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{.}}.min.js"></script>
|
||||
{{ end }}
|
||||
<script type="text/javascript">
|
||||
hljs.configure({languages: []});
|
||||
hljs.initHighlightingOnLoad();
|
||||
</script>
|
||||
{{- end }}
|
||||
<!-- Disqus-->
|
||||
{{ if .Site.DisqusShortname -}}
|
||||
{{ if ne .Params.showcomments false }}
|
||||
<h2>Comments</h2>
|
||||
{{ partial "commenting_disqus.html" . }}
|
||||
{{ end }}
|
||||
{{ else if .Site.Params.GraphCommentId -}}
|
||||
{{ partial "commenting_graph.html" . }}
|
||||
{{- end }}
|
||||
@@ -0,0 +1,25 @@
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
(function () {
|
||||
// Check and don't inject Disqus on localhost/127.0.0.1
|
||||
// however, it does not work for customised local domains,
|
||||
// e.g. example.test, example.dev
|
||||
if (location.hostname === "localhost" ||
|
||||
location.hostname === "127.0.0.1" ||
|
||||
location.hostname === "") {
|
||||
return;
|
||||
}
|
||||
var dsq = document.createElement('script');
|
||||
dsq.type = 'text/javascript';
|
||||
dsq.async = true;
|
||||
var disqus_shortname = '{{ .Site.DisqusShortname }}';
|
||||
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>
|
||||
@@ -0,0 +1,10 @@
|
||||
<div id="graphcomment"></div>
|
||||
<script type="text/javascript">
|
||||
window.graphcomment_id = '{{ .Site.Params.GraphCommentId }}';
|
||||
/* - - - DON'T EDIT BELOW THIS LINE - - - */
|
||||
(function() {
|
||||
var gc = document.createElement('script'); gc.type = 'text/javascript'; gc.async = true;
|
||||
gc.src = 'https://graphcomment.com/js/integration.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gc);
|
||||
})();
|
||||
</script>
|
||||
15
_site/themes/hyde-hyde/layouts/partials/content_list.html
Normal file
15
_site/themes/hyde-hyde/layouts/partials/content_list.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
<ul class="posts">
|
||||
{{ range .Data.Pages -}}
|
||||
<li>
|
||||
<span>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ if not .Date.IsZero }}
|
||||
<time class="pull-right post-list">
|
||||
{{- .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") -}}
|
||||
</time>
|
||||
{{end}}
|
||||
</span>
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
39
_site/themes/hyde-hyde/layouts/partials/content_single.html
Normal file
39
_site/themes/hyde-hyde/layouts/partials/content_single.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<div class="post">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ if ne .Params.showpagemeta false }}
|
||||
<div class="col-sm-12 col-md-12">
|
||||
<span class="text-left post-date meta">
|
||||
<!-- published date -->
|
||||
{{ if not .Date.IsZero }}
|
||||
<i class="fas fa-calendar-alt"></i> {{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") -}}
|
||||
{{ end }}
|
||||
<!-- categories -->
|
||||
{{ with .Params.categories }}
|
||||
{{ $total := len . }}
|
||||
{{ if gt $total 0 }}
|
||||
in
|
||||
{{ $total := sub $total 1 }}
|
||||
{{ range $i, $cat := sort . }}
|
||||
<a class="meta" href="{{ "/categories/" | relURL }}{{ $cat | urlize }}">{{ $cat | upper }}</a>
|
||||
{{ if lt $i $total }},{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<!-- tags -->
|
||||
{{ with .Params.tags }}
|
||||
{{ $total := len . }}
|
||||
{{ if gt $total 0 }}
|
||||
<br/>
|
||||
{{ $subtotal := sub $total 1 }} <i class="fas fa-tags"></i>
|
||||
{{ range $i, $tag := sort . }}
|
||||
<a class="meta" href="{{ "/tags/" | relURL }}{{ $tag | urlize }}">{{ $tag | lower }}</a>{{ if lt $i $subtotal }} {{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<br/>
|
||||
<i class="fas fa-clock"></i> {{ .ReadingTime }} min read
|
||||
</span>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
48
_site/themes/hyde-hyde/layouts/partials/header.html
Normal file
48
_site/themes/hyde-hyde/layouts/partials/header.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<link href="http://gmpg.org/xfn/11" rel="profile">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
{{ "<!-- Enable responsiveness on mobile devices -->" | safeHTML }}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||
{{ with .Site.Params.meta.description -}}<meta name="description" content="{{ . }}">{{- end }}
|
||||
{{ with .Site.Params.meta.keywords -}}<meta name="keywords" content="{{.}}">{{- end }}
|
||||
{{ .Hugo.Generator }}
|
||||
{{ if .IsHome -}}
|
||||
<title>{{ .Site.Title }}</title>
|
||||
{{- else }}
|
||||
<title>{{ .Title }} · {{ .Site.Title }}</title>
|
||||
{{- end }}
|
||||
<meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}" property="og:title">
|
||||
<meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Site.Params.meta.description }}{{ if eq $isHomePage false }} - {{ .Description }}{{ end }}" property="og:description">
|
||||
{{ "<!-- CSS -->" | safeHTML }}
|
||||
<link rel="stylesheet" href="//cdn.rawgit.com/milligram/milligram/master/dist/milligram.min.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:300,300i,400,400i|Roboto+Mono:300,300i,400,400i" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/wtf.css">
|
||||
{{ "<!-- Font-Awesome -->" | safeHTML }}
|
||||
<script defer src="https://use.fontawesome.com/releases/v5.0.9/js/all.js" integrity="sha384-8iPTk2s/jMVj81dnzb/iFR2sdA7u06vHJyyLlAd4snFpCl/SnyUjRrbdJsw1pGIl" crossorigin="anonymous"></script>
|
||||
{{ if .Site.Params.highlightjs -}}
|
||||
{{ "<!-- highlight.js-->" | safeHTML }}
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ .Site.Params.highlightjsstyle | default "default" }}.min.css">
|
||||
{{- end }}
|
||||
{{ if .Site.Params.PygmentsUseClasses -}}
|
||||
{{ "<!-- Pygments Syntax -->" | safeHTML }}
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax.css">
|
||||
{{- end }}
|
||||
{{- "<!-- Customised CSS -->" | safeHTML }}
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/custom.css">
|
||||
{{ `<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->` | safeHTML }}
|
||||
{{ "<!-- Icons -->" | safeHTML }}
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
|
||||
<link rel="shortcut icon" href="/favicon.png">
|
||||
{{ if .RSSLink -}}
|
||||
{{ "<!-- RSS -->" | safeHTML }}
|
||||
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
{{- end }}
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
52
_site/themes/hyde-hyde/layouts/partials/sidebar.html
Normal file
52
_site/themes/hyde-hyde/layouts/partials/sidebar.html
Normal file
@@ -0,0 +1,52 @@
|
||||
<div class="sidebar">
|
||||
<div class="container sidebar-sticky">
|
||||
<div class="sidebar-about text-center">
|
||||
<a href="{{ .Site.BaseURL }}"><h1 class="brand">{{ .Site.Title }}</h1></a>
|
||||
<a href="{{ .Site.BaseURL }}">{{ with .Site.Params.authorimage }} <img src="{{.}}" alt="WFT Logo" class="" width=""> {{ end }}</a>
|
||||
<p class="lead">
|
||||
{{ with .Site.Params.description }} {{.}} {{ else }} {{end}}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3 style="color: white;">Content</h3>
|
||||
<ul style="list-style-type: none;">
|
||||
<li class="sidebar-list-item-1"><a href="/posts/overview/">Overview</a></li>
|
||||
</ul>
|
||||
|
||||
<ul style="list-style-type: none;">
|
||||
<li class="sidebar-list-item-1"><a href="/posts/installation/">Installation</a></li>
|
||||
<li class="sidebar-list-item-1"><a href="/posts/configuration/">Configuration</a></li>
|
||||
</ul>
|
||||
|
||||
<ul style="list-style-type: none;">
|
||||
<li class="sidebar-list-item-1"><a href="/posts/source/">Source Code</a></li>
|
||||
</ul>
|
||||
|
||||
<ul style="list-style-type: none;">
|
||||
<li class="sidebar-list-item-1"><a href="/posts/modules/">Modules</a></li>
|
||||
<li class="sidebar-list-item-2"><a href="/posts/modules/bamboohr">BambooHR</a></li>
|
||||
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks">Clocks</a></li>
|
||||
<li class="sidebar-list-item-2"><a href="/posts/modules/git">Git</a></li>
|
||||
<li class="sidebar-list-item-2"><a href="/posts/modules/github">Github</a></li>
|
||||
<li class="sidebar-list-item-2"><a href="/posts/modules/gcal">Google Calendar</a></li>
|
||||
<li class="sidebar-list-item-2"><a href="/posts/modules/jira">Jira</a></li>
|
||||
<li class="sidebar-list-item-2"><a href="/posts/modules/newrelic">New Relic</a></li>
|
||||
<li class="sidebar-list-item-2"><a href="/posts/modules/opsgenie">OpsGenie</a></li>
|
||||
<li class="sidebar-list-item-2"><a href="/posts/modules/security">Security</a></li>
|
||||
<li class="sidebar-list-item-2"><a href="/posts/modules/textfiles">Text Files</a></li>
|
||||
<li class="sidebar-list-item-2"><a href="/posts/modules/todo">Todo</a></li>
|
||||
<li class="sidebar-list-item-2"><a href="/posts/modules/weather">Weather</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p class="copyright">
|
||||
{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}} {{.Site.Params.author}}.
|
||||
<br />
|
||||
<a href="https://creativecommons.org/licenses/by/4.0">Some Rights Reserved</a>.
|
||||
</p>
|
||||
<p class="copyright">
|
||||
Built with <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/htr3n/hyde-hyde">hyde-hyde</a>.{{end}}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
24
_site/themes/hyde-hyde/layouts/partials/sidebar_menu.html
Normal file
24
_site/themes/hyde-hyde/layouts/partials/sidebar_menu.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!-- sidebar start -->
|
||||
<div>
|
||||
<ul class="sidebar-nav">
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main -}}
|
||||
{{ if .HasChildren -}}
|
||||
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
|
||||
<a href="#">{{ .Pre }}<span>{{ .Name }}</span></a>
|
||||
<ul class="sidebar-nav">
|
||||
{{ range .Children -}}
|
||||
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
|
||||
<a href="{{ .URL }}">{{ .Name | title }}</a>
|
||||
</li>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
{{- else -}} <!-- No Children-->
|
||||
<li>
|
||||
<a href="{{.URL}}">{{ .Pre }} <span>{{ .Name | title }}</span></a>
|
||||
</li>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
32
_site/themes/hyde-hyde/layouts/partials/sidebar_social.html
Normal file
32
_site/themes/hyde-hyde/layouts/partials/sidebar_social.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<section class="row text-center">
|
||||
{{ with .Site.Params.social.twitter }}
|
||||
<a href="https://twitter.com/{{.}}"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.social.facebook }}
|
||||
<a href="https://facebook.com/{{.}}"><i class="fab fa-facebook-f"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.social.github }}
|
||||
<a href="https://github.com/{{.}}"><i class="fab fa-github fa-lg" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.social.bitbucket }}
|
||||
<a href="https://bitbucket.org/{{.}}"><i class="fab fa-bitbucket fa-lg" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.social.instagram }}
|
||||
<a href="https://instagram.com/{{.}}"><i class="fab fa-instagram fa-lg" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.social.linkedin }}
|
||||
<a href="https://linkedin.com/in/{{.}}"><i class="fab fa-linkedin fa-lg" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.social.stackoverflow }}
|
||||
<a href="https://stackoverflow.com/users/{{.}}"><i class="fab fa-stack-overflow fa-lg" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.social.medium}}
|
||||
<a href="https://medium.com/{{.}}"><i class="fab fa-medium fa-lg" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.social.xing }}
|
||||
<a href="https://www.xing.com/profile/{{.}}"><i class="fab fa-xing fa-lg" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.social.email }}
|
||||
<a href="mailto:{{.}}"><i class="fas fa-at fa-lg" aria-hidden="true"></i></a>
|
||||
{{ end }}
|
||||
</section>
|
||||
Reference in New Issue
Block a user