init commit

This commit is contained in:
2022-10-03 20:27:19 -07:00
commit e038aee33f
34 changed files with 1406 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
+++
+++

View File

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
<body>
<div class="container wrapper list">
{{ partial "head.html" . }}
{{ if isset .Data "Term" }}
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
{{ else }}
<h1 class="page-title">All articles</h1>
{{ end }}
{{ with .Content }}{{ . }}{{ end }}
<ul class="posts">
{{- range .Data.Pages -}}
{{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}}
{{- else -}}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
</li>
{{- end -}}
{{- end -}}
</ul>
</div>
{{ partial "footer.html" . }}
</body>
</html>

View File

@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
<body>
<div class="container wrapper post">
{{ partial "head.html" . }}
<div class="post-header">
<h1 class="title">{{ .Title }}</h1>
<div class="meta">Posted at &mdash; {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
</div>
<div class="markdown">
{{ .Content }}
</div>
<div class="post-tags">
{{ if ne .Type "page" }}
{{ if gt .Params.tags 0 }}
<nav class="nav tags">
<ul class="flat">
{{ range .Params.tags }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
</nav>
{{ end }}
{{ end }}
</div>
{{- $.Scratch.Set "isDisqus" true -}}
<!-- Disable if content type is excluded in config -->
{{- if and (isset .Params "type") (in .Site.Params.disableDisqusTypes .Params.type) -}}
{{- $.Scratch.Set "isDisqus" false -}}
{{- end -}}
<!-- Check if content has flag to enable/disable disqus explicitly -->
{{- if and (isset .Params "disqus") (eq .Params.disqus false) -}}
{{- $.Scratch.Set "isDisqus" false -}}
{{- else if and (isset .Params "disqus") (eq .Params.disqus true) -}}
{{- $.Scratch.Set "isDisqus" true -}}
{{- end -}}
<!-- Check if disqus short name is given -->
{{ if not .Site.DisqusShortname }}
{{- $.Scratch.Set "isDisqus" false -}}
{{ end }}
{{- if eq ($.Scratch.Get "isDisqus") true -}}
{{- partial "disqus.html" . -}}
{{- end -}}
</div>
{{ partial "footer.html" . }}
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
<body>
<div class="container wrapper tags">
{{ partial "head.html" . }}
<h1 class="page-title">{{ .Title }}</h1>
{{ with .Content }}{{ . }}{{ end }}
{{ $biggest := 1 }}
{{ $smallest := 1 }}
{{ $max := 3 }}
{{ $min := 1 }}
{{ $size := $min }}
{{ $data := .Data }}
<div class="tag-cloud">
{{ range $key, $value := .Data.Terms.ByCount }}
{{ $size := (add (mul (div $value.Count $biggest) (sub $max $min)) $min) }}
{{ $size := (cond (eq $biggest $smallest) $min $size) }}
<a style="font-size: {{ $size }}rem;" href="{{ $.Site.LanguagePrefix | absURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}</a>
{{ end }}
</div>
</div>
{{ partial "footer.html" . }}
</body>
</html>

View File

@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
<body>
<div class="container wrapper">
{{ partial "head.html" . }}
<div class="recent-posts section">
<h2 class="section-header">
Upcoming events
</h2>
{{ partial "now.html" . }}
See <a href="/tags/events/">past events</a>.
</div>
<div class="recent-posts section">
<h2 class="section-header">
Recent posts
</h2>
<div class="posts">
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
{{ range $paginator.Pages }}
<div class="post">
<div class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
<a class="title" href="{{ .RelPermalink }}">{{.Title}}</a> &mdash;
<span class="description">
{{ if isset .Params "description" }}
{{ .Description }}
{{ else }}
{{ .Summary }}&hellip;
{{ end }}
</span>
</div>
{{ end }}
{{ template "partials/paginator.html" . }}
</div>
</div>
</div>
{{ partial "footer.html" . }}
</body>
</html>

View File

@@ -0,0 +1,17 @@
<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 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>

View File

@@ -0,0 +1,12 @@
<div class="footer wrapper">
<nav class="nav">
<div>{{ with .Site.Copyright }} {{ . }} | {{ end }} <a href="https://github.com/vividvilla/ezhil">Ezhil theme</a> | Built with <a href="https://gohugo.io">Hugo</a></div>
</nav>
</div>
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
{{- with .Site.Params.Social -}}
<script>feather.replace()</script>
{{- end -}}

View File

@@ -0,0 +1,26 @@
<div class="header">
<base href="{{ .Site.BaseURL }}">
<h1 class="site-title"><a href="{{ .Site.BaseURL }}"><img width=117 height=80 src="{{ .Site.Params.Logo }}"></img></a></h1>
<div class="site-description">
{{- if isset .Site.Params "subtitle" -}}
<h2>{{ .Site.Params.Subtitle | markdownify }}</h2>
{{- end -}}
<nav class="nav social">
<ul class="flat">
{{- range $index, $key := .Site.Params.Social -}}
<a href="{{ $key.url }}" title="{{ $key.name }}"><i data-feather="{{ $key.icon }}"></i></a>
{{- end -}}
</ul>
</nav>
</div>
<nav class="nav">
<ul class="flat">
{{ range .Site.Menus.main }}
<li>
<a href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
</nav>
</div>

View File

@@ -0,0 +1,52 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{{- $title := ( .Title ) -}}
{{- $siteTitle := ( .Site.Title ) -}}
{{- if .IsHome -}}
<title>{{ $siteTitle }} {{ if isset .Site.Params "subtitle" }}- {{ .Site.Params.Subtitle }}{{ end }} </title>
{{- else -}}
<title>{{ $title }} - {{ $siteTitle }}</title>
{{- end -}}
{{- if isset .Site.Params "favicon" -}}
<link rel="icon" type="image/png" href={{ .Site.Params.favicon }} />
{{- end -}}
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,300italic,400italic|Raleway:200,300" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/normalize.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/main.css" />
{{- if isset .Site.Params "customcss" }}
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}{{ .Site.Params.customCSS }}" />
{{ end }}
{{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") -}}
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/dark.css" {{ if eq .Site.Params.mode "auto" }}media="(prefers-color-scheme: dark)"{{ end }} />
{{- if isset .Site.Params "customdarkcss" }}
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}{{ .Site.Params.customDarkCSS }}" {{ if eq .Site.Params.mode "auto" }}media="(prefers-color-scheme: dark)"{{ end }} />
{{- end }}
{{- end }}
{{ if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
{{- else if (isset .Site.Params "social") -}}
<script src="{{ .Site.BaseURL }}js/feather.min.js"></script>
{{ end }}
<script src="{{ .Site.BaseURL }}js/main.js"></script>
{{- if isset .Site.Params "customjs" -}}
{{- range .Site.Params.customJS }}
{{- if or (hasPrefix . "http://") (hasPrefix . "https://") }}
<script src="{{ . }}"></script>
{{- else }}
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
{{- end }}
{{- end }}
{{- end }}
</head>

View File

@@ -0,0 +1,15 @@
{{ $pag := $.Paginator }}
{{ if gt $pag.TotalPages 1 }}
<ul class="pagination">
<li class="page-item page-prev">
{{ if $pag.HasPrev }}
<a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Prev page</span></a>
{{ end }}
</li>
<li class="page-item page-next">
{{ if $pag.HasNext }}
<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Next page →</span></a>
{{ end }}
</li>
</ul>
{{ end }}

View File

@@ -0,0 +1,73 @@
body {
color: #ddd;
background-color: #000;
}
::-moz-selection {
background: #666;
text-shadow: none
}
::selection {
background: #666;
text-shadow: none
}
hr {
border-color: #333;
}
blockquote {
border-color: #ddd;
}
h1,h2,h3,h4,h5,h6 {
color: #ddd;
}
a,a:hover {
color: #ff7979;
text-decoration: none;
}
.site-description a,
.site-description a:hover {
color: #ddd;
text-decoration: underline;
}
a:hover {
opacity: 0.8;
}
.post-tags .tags a {
border: 1px solid #ddd;
color: #ddd;
}
.site-title a {
color: #ddd;
text-decoration: none !important;
}
.header nav,
.footer {
border-color: #333;
}
.highlight {
background-color: #333;
}
table th {
background-color: #333;
}
table th, table td {
padding: 10px 20px;
border: 1px solid #666;
}
pre code {
display: inline-block
}

View File

@@ -0,0 +1,416 @@
body {
font-family: "ubuntu", sans-serif;
font-weight: 400;
color: #333;
line-height: 1.6;
font-size: 16px;
}
a, a:hover {
color: #a00;
text-decoration: none;
word-break: break-word;
}
html,button,input,select,textarea {
color: #333;
}
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
::selection {
background: #b3d4fc;
text-shadow: none;
}
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1rem 0;
padding: 0;
}
img {
margin: 10px auto 10px auto;
max-width: 100%;
display: block;
}
a img {
border:none;
}
figure {
margin: 0;
text-align: center;
}
fieldset {
border: 0;
margin: 0;
padding: 0;
}
textarea {
resize: vertical;
}
blockquote {
margin-left: 1rem;
font-style: italic;
font-size: 1.4rem;
font-family: Georgia,bitstream charter,serif;
border-left: 3px solid;
border-color: #a00;
padding-left: 20px;
}
blockquote cite {
font-size: 70%;
opacity: .8;
}
blockquote em {
font-weight: 600;
}
a,a:hover {
color: #a00;
text-decoration: none
}
a:hover {
text-decoration: underline
}
h1,h2,h3,h4,h5,h6 {
font-family: raleway,sans-serif;
line-height: 1.2;
color: #333;
font-weight: 200;
}
h1 {
font-size: 2.75rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.6rem;
}
h4 {
font-size: 1.2rem;
}
h5 {
font-size: 1rem;
}
h6 {
font-size: .9rem;
}
.align-center {
text-align: center;
}
.align-left {
text-align: left;
}
.align-right {
text-align: right;
}
.container {
max-width: 800px;
}
ul {
padding-left: 15px;
}
ul.flat {
margin: 0;
padding: 0;
}
ul.flat li {
display: inline-block;
list-style: none;
margin-left: 0;
}
.prevent-collapse {
min-height: .1rem
}
.page-title {
margin: 0;
}
.smaller {
font-size: 70%;
}
ul {
list-style: disc inside;
}
.site-title a {
color: #333;
text-decoration: none !important;
}
.post ul li {
margin-bottom: 10px;
}
.post ul li p {
display: inline;
}
.highlight pre {
margin-bottom: 0;
margin-top: 0;
padding: 20px;
background-color: transparent !important;
}
.highlight {
background: 0 0;
background-color: #FAFAFA;
}
pre code {
display: inline-block;
}
.wrapper {
max-width: 760px;
margin: 0 auto;
}
.container {
margin-top: 50px;
}
.header {
margin-bottom: 20px;
padding-bottom: 20px;
}
.header h1,
.header h2 {
margin: 0;
padding: 0;
font-size: 2rem;
line-height: 1.3em;
}
.header h2 {
font-size: 1.125rem;
}
.header nav {
margin-top: 20px;
border-top: 1px solid #f4f4f4;
}
.header nav ul,
.header nav li {
margin: 0;
}
.header nav ul.flat {
padding: 0;
}
.header nav ul.flat li {
display: inline-block;
list-style: none;
margin-left: 0;
margin-right: 10px;
margin-top: 10px;
text-transform: capitalize;
}
.header .site-description {
display: flex;
justify-content: space-between;
}
.header .site-description nav {
margin: 0;
padding: 0;
border: none;
min-width: 50px;
margin-left: 15px;
}
.header .site-description nav ul svg {
max-height: 15px;
}
.section .section-header {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
color: #999;
margin-bottom: 20px;
letter-spacing: 1px;
}
.recent-posts .posts .post {
margin-bottom: 30px;
}
.recent-posts .posts .post .meta,
.post .post-header .meta,
.list .posts .post .meta {
font-size: 0.725rem;
color: #999;
margin-bottom: 4px;
}
.post .post-header {
margin-bottom: 30px;
}
.post .post-header .title {
margin: 0;
}
.post-tags a {
margin-right: 5px;
}
.post .post-header .meta {
padding-left: 5px;
margin-top: 10px;
}
.post .draft-label {
color: #a00;
text-decoration: none;
padding: 2px 4px;
border-radius: 4px;
margin-left: 6px;
background-color: #f9f2f4;
}
.post-tags .tags li {
margin-bottom: 0;
margin-top: 20px;
}
.post-tags .tags a {
display: inline-block;
border: 1px solid #a00;
border-radius: 4px;
padding: 0px 6px;
color: #a00;
line-height: 20px;
font-size: 12px;
text-decoration: none;
margin: 0 1px;
}
.list .posts .post .meta {
margin-bottom: 0;
margin-left: 5px;
}
.footer {
text-align: right;
font-size: 0.75em;
color: #999;
border-top: 1px solid #f4f4f4;
padding: 20px 0;
margin-top: 40px;
}
.page-title {
margin-bottom: 0;
}
.tag-cloud {
margin-top: 20px;
}
.tag-cloud a {
margin-right: 15px;
}
.pagination {
margin: 0;
padding: 0;
text-align: left;
display: flex;
justify-content: space-between;
}
.pagination li {
list-style: none;
display: inline-block;
margin: 0;
padding: 0;
}
.pagination .page-prev {
margin-right: 20px;
padding-right: 20px;
}
.pagination .page-item.page-prev {
text-align: left;
}
.pagination .page-item.page-next {
text-align: right;
}
table th {
background-color: #f4f4f4;
}
table th, table td {
padding: 10px 20px;
border: 1px solid #dddddd;
}
@media (max-width: 767px) {
body {
padding: 20px;
}
h1 {
font-size: 1.8rem;
}
h2 {
font-size: 1.6rem;
}
h3 {
font-size: 1.2rem;
}
h4 {
font-size: 1rem;
}
.container {
margin-top: 10px;
}
}

1
themes/ezhil/static/css/normalize.css vendored Normal file
View File

@@ -0,0 +1 @@
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */img,legend{border:0}legend,td,th{padding:0}html{font-family:serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}table{border-collapse:collapse;border-spacing:0}

13
themes/ezhil/static/js/feather.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File