Skip to content

Commit a54ff67

Browse files
committed
adding theme
1 parent 72381cd commit a54ff67

20 files changed

+153321
-0
lines changed

themes/ubi/.gitignore

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
2+
# Created by https://www.gitignore.io/api/hugo,linux,macos
3+
# Edit at https://www.gitignore.io/?templates=hugo,linux,macos
4+
5+
### Hugo ###
6+
# Generated files by hugo
7+
/public/
8+
/resources/_gen/
9+
10+
# Executable may be added to repository
11+
hugo.exe
12+
hugo.darwin
13+
hugo.linux
14+
15+
### Linux ###
16+
*~
17+
18+
# temporary files which can be created if a process still has a handle open of a deleted file
19+
.fuse_hidden*
20+
21+
# KDE directory preferences
22+
.directory
23+
24+
# Linux trash folder which might appear on any partition or disk
25+
.Trash-*
26+
27+
# .nfs files are created when an open file is removed but is still being accessed
28+
.nfs*
29+
30+
### macOS ###
31+
# General
32+
.DS_Store
33+
.AppleDouble
34+
.LSOverride
35+
36+
# Icon must end with two \r
37+
Icon
38+
39+
# Thumbnails
40+
._*
41+
42+
# Files that might appear in the root of a volume
43+
.DocumentRevisions-V100
44+
.fseventsd
45+
.Spotlight-V100
46+
.TemporaryItems
47+
.Trashes
48+
.VolumeIcon.icns
49+
.com.apple.timemachine.donotpresent
50+
51+
# Directories potentially created on remote AFP share
52+
.AppleDB
53+
.AppleDesktop
54+
Network Trash Folder
55+
Temporary Items
56+
.apdisk
57+
58+
# End of https://www.gitignore.io/api/hugo,linux,macos
59+
60+
node_modules

themes/ubi/.prettierrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"@straw-hat/prettier-config"

themes/ubi/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020-Present Yordis Prieto ([email protected])
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

themes/ubi/assets/styles.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

themes/ubi/layouts/404.html

Whitespace-only changes.

themes/ubi/layouts/_default/list.html

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!DOCTYPE html>
2+
<html>
3+
{{ partial "header.html" . }}
4+
5+
<body>
6+
<!-- Google Tag Manager (noscript) -->
7+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N88JZ7B" height="0" width="0"
8+
style="display:none;visibility:hidden"></iframe></noscript>
9+
<!-- End Google Tag Manager (noscript) -->
10+
<div class="container wrapper list">
11+
{{ partial "head.html" . }}
12+
13+
{{ if isset .Data "Term" }}
14+
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
15+
{{ else }}
16+
<h1 class="page-title">All articles</h1>
17+
{{ end }}
18+
19+
<ul class="posts">
20+
{{- range .Data.Pages -}}
21+
{{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}}
22+
{{- else -}}
23+
<li class="post">
24+
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span
25+
class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span>
26+
{{ end }}</span>
27+
</li>
28+
{{- end -}}
29+
{{- end -}}
30+
</ul>
31+
</div>
32+
33+
{{ partial "footer.html" . }}
34+
</body>
35+
36+
</html>
+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!DOCTYPE html>
2+
<html>
3+
{{ partial "header.html" . }}
4+
5+
<body>
6+
<!-- Google Tag Manager (noscript) -->
7+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N88JZ7B" height="0" width="0"
8+
style="display:none;visibility:hidden"></iframe></noscript>
9+
<!-- End Google Tag Manager (noscript) -->
10+
<div class="container wrapper post">
11+
{{ partial "head.html" . }}
12+
13+
<div class="post-header">
14+
<h1 class="title">{{ .Title }}</h1>
15+
<div class="meta">Posted at &mdash; {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span
16+
class="draft-label">DRAFT</span> {{ end }}</div>
17+
</div>
18+
19+
<div class="markdown">
20+
{{ .Content }}
21+
</div>
22+
23+
<div class="post-tags">
24+
{{ if ne .Type "page" }}
25+
{{ if gt .Params.tags 0 }}
26+
<nav class="nav tags">
27+
<ul class="flat">
28+
{{ range .Params.tags }}
29+
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
30+
{{ end }}
31+
</ul>
32+
</nav>
33+
{{ end }}
34+
{{ end }}
35+
</div>
36+
37+
{{- $.Scratch.Set "isDisqus" true -}}
38+
39+
{{- if and (isset .Params "type") (in .Site.Params.disableDisqusTypes .Params.type) -}}
40+
{{- $.Scratch.Set "isDisqus" false -}}
41+
{{- end -}}
42+
43+
{{- if and (isset .Params "disqus") (eq .Params.disqus false) -}}
44+
{{- $.Scratch.Set "isDisqus" false -}}
45+
{{- else if and (isset .Params "disqus") (eq .Params.disqus true) -}}
46+
{{- $.Scratch.Set "isDisqus" true -}}
47+
{{- end -}}
48+
49+
{{- if eq ($.Scratch.Get "isDisqus") true -}}
50+
{{- partial "disqus.html" . -}}
51+
{{- end -}}
52+
</div>
53+
{{ partial "footer.html" . }}
54+
</body>
55+
56+
</html>

themes/ubi/layouts/_default/term.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html>
3+
{{ partial "header.html" . }}
4+
5+
<body>
6+
<!-- Google Tag Manager (noscript) -->
7+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N88JZ7B" height="0" width="0"
8+
style="display:none;visibility:hidden"></iframe></noscript>
9+
<!-- End Google Tag Manager (noscript) -->
10+
<div class="container wrapper tags">
11+
{{ partial "head.html" . }}
12+
13+
<h1 class="page-title">All tags</h1>
14+
</div>
15+
16+
{{ partial "footer.html" . }}
17+
</body>
18+
19+
</html>
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html>
3+
{{ partial "header.html" . }}
4+
5+
<body>
6+
<!-- Google Tag Manager (noscript) -->
7+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N88JZ7B" height="0" width="0"
8+
style="display:none;visibility:hidden"></iframe></noscript>
9+
<!-- End Google Tag Manager (noscript) -->
10+
<div class="container wrapper tags">
11+
{{ partial "head.html" . }}
12+
13+
<h1 class="page-title">All tags</h1>
14+
15+
{{ $biggest := 1 }}
16+
{{ $smallest := 1 }}
17+
{{ $max := 3 }}
18+
{{ $min := 1 }}
19+
{{ $size := $min }}
20+
21+
{{ $data := .Data }}
22+
<div class="tag-cloud">
23+
{{ range $key, $value := .Data.Terms.ByCount }}
24+
{{ $size := (add (mul (div $value.Count $biggest) (sub $max $min)) $min) }}
25+
{{ $size := (cond (eq $biggest $smallest) $min $size) }}
26+
<a style="font-size: {{ $size }}rem;"
27+
href="{{ $.Site.LanguagePrefix | absURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}</a>
28+
{{ end }}
29+
</div>
30+
</div>
31+
32+
{{ partial "footer.html" . }}
33+
</body>
34+
35+
</html>

themes/ubi/layouts/index.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
{{ partial "header.html" . }}
4+
5+
<body>
6+
<!-- Google Tag Manager (noscript) -->
7+
<noscript>
8+
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N88JZ7B" height="0" width="0"
9+
style="display:none;visibility:hidden"></iframe>
10+
</noscript>
11+
<!-- End Google Tag Manager (noscript) -->
12+
{{ partial "head.html" . }}
13+
{{ partial "recent_posts.html" . }}
14+
{{ partial "footer.html" . }}
15+
</body>
16+
17+
</html>
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<div id="disqus_thread"></div>
2+
<script type="text/javascript">
3+
(function () {
4+
// Don't ever inject Disqus on localhost--it creates unwanted
5+
// discussions from 'localhost:1313' on your Disqus account...
6+
if (window.location.hostname == "localhost")
7+
return;
8+
9+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
10+
var disqus_shortname = '{{ .Site.DisqusShortname }}';
11+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
12+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
13+
})();
14+
</script>
15+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by
16+
Disqus.</a></noscript>
17+
<a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<footer>
2+
<div class="max-w-screen-xl mx-auto pt-12 pb-5 px-4 overflow-hidden">
3+
4+
<nav class="flex flex-wrap justify-center text-base leading-6 text-gray-500">
5+
{{ range .Site.Menus.main }}
6+
<div class="px-5 py-2">
7+
<a href="{{ .URL }}" class="hover:text-gray-900">
8+
{{ .Name }}
9+
</a>
10+
</div>
11+
{{ end }}
12+
</nav>
13+
14+
<div class="mt-8 flex justify-center text-gray-400">
15+
<a href="https://twitter.com/eventmodeling" class="ml-6 hover:text-gray-500">
16+
<span class="sr-only">Twitter</span>
17+
<svg class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24">
18+
<path
19+
d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84" />
20+
</svg>
21+
</a>
22+
<a href="https://github.com/event-modeling" class="ml-6 hover:text-gray-500">
23+
<span class="sr-only">GitHub</span>
24+
<svg class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24">
25+
<path fill-rule="evenodd"
26+
d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"
27+
clip-rule="evenodd" />
28+
</svg>
29+
</a>
30+
<a href="/index.xml" class="ml-6 hover:text-gray-500">
31+
<span class="sr-only">RSS</span>
32+
<svg class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24">
33+
<circle cx="6.18" cy="17.82" r="2.18"></circle>
34+
<path
35+
d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z">
36+
</path>
37+
</svg>
38+
</a>
39+
</div>
40+
41+
<div class="mt-8 text-base leading-6 text-gray-400 flex justify-center">
42+
<p>Built with</p>
43+
<svg class="text-red-500 h-6 w-6" fill="currentColor" viewBox="0 0 24 24">
44+
<path
45+
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z">
46+
</path>
47+
</svg>
48+
<p>by <a href="https://twitter.com/alchemist_ubi" class="text-purple-500">@alchemist_ubi</a></p>
49+
</div>
50+
51+
</div>
52+
</footer>

themes/ubi/layouts/partials/head.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<header class="pt-6 pb-12 px-4">
2+
<div class="max-w-screen-xl flex items-center justify-center mx-auto">
3+
<a href="{{ .Site.BaseURL }}"
4+
class="mr-15 font-bold text-gray-500 hover:text-gray-900 focus:outline-none focus:text-gray-900">
5+
Event Modeling
6+
</a>
7+
<nav class="flex items-center h-10 justify-center">
8+
{{ range .Site.Menus.main }}
9+
<a href="{{ .URL }}"
10+
class="ml-10 font-medium text-gray-500 hover:text-gray-900 focus:outline-none focus:text-gray-900">
11+
{{ .Name }}
12+
</a>
13+
{{ end }}
14+
</nav>
15+
</div>
16+
</header>
+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<head>
2+
<!-- Google Tag Manager -->
3+
<script>(function (w, d, s, l, i) {
4+
w[l] = w[l] || []; w[l].push({
5+
'gtm.start':
6+
new Date().getTime(), event: 'gtm.js'
7+
}); var f = d.getElementsByTagName(s)[0],
8+
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
9+
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
10+
})(window, document, 'script', 'dataLayer', 'GTM-N88JZ7B');</script>
11+
<!-- End Google Tag Manager -->
12+
<meta charset="utf-8" />
13+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
14+
{{- $title := ( .Title ) -}}
15+
{{- $siteTitle := ( .Site.Title ) -}}
16+
{{- if .IsHome -}}
17+
<title>{{ $siteTitle }} {{ if isset .Site.Params "subtitle" }}- {{ .Site.Params.Subtitle }}{{ end }} </title>
18+
{{- else -}}
19+
<title>{{ $title }} - {{ $siteTitle }}</title>
20+
{{- end -}}
21+
22+
{{- if isset .Site.Params "favicon" -}}
23+
<link rel="icon" type="image/png" href={{ .Site.Params.favicon }} />
24+
{{- end -}}
25+
26+
<meta name="viewport" content="width=device-width, initial-scale=1">
27+
{{ with .OutputFormats.Get "rss" -}}
28+
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
29+
{{ end -}}
30+
31+
{{- template "_internal/opengraph.html" . -}}
32+
{{- template "_internal/twitter_cards.html" . -}}
33+
34+
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/tailwind.css" />
35+
36+
{{ if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
37+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
38+
{{- else if (isset .Site.Params "social") -}}
39+
<script src="{{ .Site.BaseURL }}js/feather.min.js"></script>
40+
{{ end }}
41+
<script src="{{ .Site.BaseURL }}js/main.js"></script>
42+
{{- if isset .Site.Params "customjs" -}}
43+
{{- range .Site.Params.customJS }}
44+
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
45+
{{- end }}
46+
{{- end }}
47+
</head>

0 commit comments

Comments
 (0)