switch to use tailwindcss
This commit is contained in:
		
							parent
							
								
									078ba9cf4c
								
							
						
					
					
						commit
						3f41e8414d
					
				| 
						 | 
					@ -0,0 +1,2 @@
 | 
				
			||||||
 | 
					tailwindcss/node_modules/
 | 
				
			||||||
 | 
					tailwindcss/tailwindcss
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
{{ define "main" }}
 | 
					{{ define "main" }}
 | 
				
			||||||
	<main>
 | 
						<main class="grid grid-cols-1 place-content-evenly">
 | 
				
			||||||
		{{ if or .Title .Content }}
 | 
							{{ if or .Title .Content }}
 | 
				
			||||||
		<div>
 | 
							<div class="text-xl">
 | 
				
			||||||
			{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
 | 
								{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
 | 
				
			||||||
			{{ with .Content }}<div>{{ . }}</div>{{ end }}
 | 
								{{ with .Content }}<div>{{ . }}</div>{{ end }}
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,9 @@
 | 
				
			||||||
		{{ range .Paginator.Pages }}
 | 
							{{ range .Paginator.Pages }}
 | 
				
			||||||
			{{ .Render "summary" }}
 | 
								{{ .Render "summary" }}
 | 
				
			||||||
		{{ end }}
 | 
							{{ end }}
 | 
				
			||||||
		{{ partial "pagination.html" . }}
 | 
							<div class="justify-self-center">
 | 
				
			||||||
 | 
								{{ partial "pagination.html" . }}
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
	</main>
 | 
						</main>
 | 
				
			||||||
{{ partial "sidebar.html" . }}
 | 
					{{ partial "sidebar.html" . }}
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,20 +1,20 @@
 | 
				
			||||||
{{ define "main" }}
 | 
					{{ define "main" }}
 | 
				
			||||||
	<main>
 | 
						<main>
 | 
				
			||||||
		<article>
 | 
							<article class="flex flex-col md:justify-center md:items-center gap-4 ml-10">
 | 
				
			||||||
			<h1>{{ .Title }}</h1>
 | 
								<h1 class="text-2xl">{{ .Title }}</h1>
 | 
				
			||||||
			<time datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format "02.01.2006 15:04" }}</time>
 | 
								<time datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format "02.01.2006 15:04" }}</time>
 | 
				
			||||||
			<div>
 | 
					 | 
				
			||||||
				{{ .Content }}
 | 
					 | 
				
			||||||
			</div>
 | 
					 | 
				
			||||||
			{{ with .Params.tags }}
 | 
								{{ with .Params.tags }}
 | 
				
			||||||
			<div>
 | 
								<div>
 | 
				
			||||||
				<ul id="tags">
 | 
									<ul id="tags">
 | 
				
			||||||
					{{ range . }}
 | 
										{{ range . }}
 | 
				
			||||||
					<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
 | 
										<li class="badge badge-outline"><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
 | 
				
			||||||
					{{ end }}
 | 
										{{ end }}
 | 
				
			||||||
				</ul>
 | 
									</ul>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
			{{ end }}
 | 
								{{ end }}
 | 
				
			||||||
 | 
								<div class="prose sm:prose-sm dark:prose-invert">
 | 
				
			||||||
 | 
									{{ .Content }}
 | 
				
			||||||
 | 
								</div>
 | 
				
			||||||
			{{ with .Site.DisqusShortname }}
 | 
								{{ with .Site.DisqusShortname }}
 | 
				
			||||||
			<div>
 | 
								<div>
 | 
				
			||||||
				{{ template "_internal/disqus.html" . }}
 | 
									{{ template "_internal/disqus.html" . }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,13 +1,13 @@
 | 
				
			||||||
<article>
 | 
					<article class="card-body">
 | 
				
			||||||
	<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
 | 
						<h1 class="card-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
 | 
				
			||||||
	<time datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format "02.01.2006 15:04" }}</time>
 | 
						<time datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format "02.01.2006 15:04" }}</time>
 | 
				
			||||||
	{{ range .Params.tags }}
 | 
						{{ range .Params.tags }}
 | 
				
			||||||
	<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
 | 
						<a class="badge badge-outline" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
 | 
				
			||||||
	{{ end }}
 | 
						{{ end }}
 | 
				
			||||||
	<div>
 | 
						<div class="card-actions justify-end">
 | 
				
			||||||
		{{ .Summary | safeHTML | truncate 125 }}
 | 
							{{ .Summary | safeHTML | truncate 125 }}
 | 
				
			||||||
		{{ if .Truncated }}
 | 
							{{ if .Truncated }}
 | 
				
			||||||
			<a href="{{ .Permalink }}">Read more...</a>
 | 
								<a class="btn btn-outline self-end" href="{{ .Permalink }}">Read more...</a>
 | 
				
			||||||
		{{ end }}
 | 
							{{ end }}
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
</article>
 | 
					</article>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,12 +1,13 @@
 | 
				
			||||||
{{ define "main" }}
 | 
					{{ define "main" }}
 | 
				
			||||||
	<main>
 | 
						<main class="flex flex-wrap justify-around gap-4">
 | 
				
			||||||
		{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
 | 
							{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
 | 
				
			||||||
		{{ range $paginator.Pages }}
 | 
							{{ range $paginator.Pages }}
 | 
				
			||||||
			<div class="row">
 | 
								<div class="card lg:w-1/4 glass">
 | 
				
			||||||
			{{ .Render "summary" }}
 | 
								{{ .Render "summary" }}
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
		{{ end }}
 | 
							{{ end }}
 | 
				
			||||||
		{{ partial "pagination.html" . }}
 | 
					 | 
				
			||||||
	</main>
 | 
						</main>
 | 
				
			||||||
{{ partial "sidebar.html" . }}
 | 
						<div class="flex justify-center">
 | 
				
			||||||
{{ end }}
 | 
						{{ partial "pagination.html" . }}
 | 
				
			||||||
 | 
						</div>
 | 
				
			||||||
 | 
					{{ end }}
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,2 @@
 | 
				
			||||||
<footer>
 | 
					<footer class="footer flex justify-center">
 | 
				
			||||||
	<a type="application/rss+xml" href="{{ .Site.BaseURL }}index.xml"><i class="fa fa-rss" aria-hidden="true"></i></a>
 | 
					 | 
				
			||||||
	<a href="https://mastodon.sdf.org/@zongor"><i class="fa-brands fa-mastodon"></i></a>
 | 
					 | 
				
			||||||
</footer>
 | 
					</footer>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,30 @@
 | 
				
			||||||
<header>
 | 
					<header class="navbar dark:bg-neutral mb-10 shadow-xl rounded-box">
 | 
				
			||||||
	{{ with .Site.Menus.main }}
 | 
						{{ with .Site.Menus.main }}
 | 
				
			||||||
	<nav>
 | 
						<div class="navbar">
 | 
				
			||||||
		{{ range . }}
 | 
							<div class="navbar-start">
 | 
				
			||||||
		<a href="{{ .URL | relURL }}">{{ .Name }}</a>
 | 
							  <div class="dropdown">
 | 
				
			||||||
		{{ end }}
 | 
								<label tabindex="0" class="btn btn-ghost lg:hidden">
 | 
				
			||||||
	</nav>
 | 
								  <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h8m-8 6h16" /></svg>
 | 
				
			||||||
 | 
								</label>
 | 
				
			||||||
 | 
								<ul tabindex="0" class="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52">
 | 
				
			||||||
 | 
									{{ range . }}
 | 
				
			||||||
 | 
									<li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
 | 
				
			||||||
 | 
									{{ end }}
 | 
				
			||||||
 | 
								</ul>
 | 
				
			||||||
 | 
							  </div>
 | 
				
			||||||
 | 
							  <a class="btn btn-ghost normal-case text-xl" href="https://alfrescocavern.com">alfrescocavern</a>
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
 | 
							<div class="navbar-center hidden lg:flex">
 | 
				
			||||||
 | 
								<ul class="menu menu-horizontal px-1">
 | 
				
			||||||
 | 
								{{ range . }}
 | 
				
			||||||
 | 
								<li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
 | 
				
			||||||
 | 
								{{ end }}
 | 
				
			||||||
 | 
								</ul>
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
 | 
							<div class="navbar-end">
 | 
				
			||||||
 | 
								<a class="p-2" type="application/rss+xml" href="https://alfrescocavern.com/index.xml"><i class="fa fa-rss" aria-hidden="true"></i></a>
 | 
				
			||||||
 | 
								<a class="p-2" href="https://mastodon.sdf.org/@zongor"><i class="fa-brands fa-mastodon"></i></a>
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
 | 
						  </div>
 | 
				
			||||||
	{{ end }}
 | 
						{{ end }}
 | 
				
			||||||
</header>
 | 
					</header>
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,9 @@
 | 
				
			||||||
<div>
 | 
					<div class="join">
 | 
				
			||||||
{{ if .Paginator.HasPrev }}
 | 
					{{ if .Paginator.HasPrev }}
 | 
				
			||||||
	<a href="{{ .Paginator.Prev.URL }}">Previous Page</a>
 | 
						<a class="join-item btn" href="{{ .Paginator.Prev.URL }}">Previous Page</a>
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}
 | 
					<a class="join-item btn">{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</a>
 | 
				
			||||||
{{ if .Paginator.HasNext }}
 | 
					{{ if .Paginator.HasNext }}
 | 
				
			||||||
	<a href="{{ .Paginator.Next.URL }}">Next Page</a>
 | 
						<a class="join-item btn" href="{{ .Paginator.Next.URL }}">Next Page</a>
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,14 +1,12 @@
 | 
				
			||||||
<aside>
 | 
					<aside class="flex justify-center">
 | 
				
			||||||
	<div>
 | 
						<div>
 | 
				
			||||||
		<div>
 | 
							<ul class="menu menu-horizontal bg-base-200 rounded-box">
 | 
				
			||||||
			<h3>LATEST POSTS</h3>
 | 
								<li class="justify-center">
 | 
				
			||||||
		</div>
 | 
									LATEST POSTS:
 | 
				
			||||||
		<div>
 | 
								</li>
 | 
				
			||||||
			<ul>
 | 
								{{ range first 5 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
 | 
				
			||||||
				{{ range first 5 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
 | 
								<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
 | 
				
			||||||
				<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
 | 
								{{ end }}
 | 
				
			||||||
				{{ end }}
 | 
							</ul>
 | 
				
			||||||
			</ul>
 | 
					 | 
				
			||||||
		</div>
 | 
					 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
</aside>
 | 
					</aside>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
					@ -0,0 +1,2 @@
 | 
				
			||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					./tailwindcss -i input.css -o ../static/css/style.css --watch
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					@tailwind base;
 | 
				
			||||||
 | 
					@tailwind components;
 | 
				
			||||||
 | 
					@tailwind utilities;
 | 
				
			||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  "devDependencies": {
 | 
				
			||||||
 | 
					    "@tailwindcss/typography": "^0.5.10",
 | 
				
			||||||
 | 
					    "daisyui": "^3.9.4"
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,2 @@
 | 
				
			||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					./tailwindcss -i input.css -o ../static/css/style.css --minify
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,15 @@
 | 
				
			||||||
 | 
					/** @type {import('tailwindcss').Config} */
 | 
				
			||||||
 | 
					module.exports = {
 | 
				
			||||||
 | 
					  content: ["../layouts/**/*.{html,js}"],
 | 
				
			||||||
 | 
					  theme: {
 | 
				
			||||||
 | 
					    extend: {},
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  plugins: [
 | 
				
			||||||
 | 
					    require("@tailwindcss/forms"), 
 | 
				
			||||||
 | 
					    require("@tailwindcss/typography"),
 | 
				
			||||||
 | 
					    require("daisyui")
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  daisyui: {
 | 
				
			||||||
 | 
					    themes: ["retro", "dark"],
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
name = "Blank"
 | 
					name = "zirakzigil"
 | 
				
			||||||
license = "MIT"
 | 
					license = "MIT"
 | 
				
			||||||
licenselink = "https://git.alfrescocavern.com/zongor/hugo-theme-zirakzigil/raw/branch/main/LICENSE"
 | 
					licenselink = "https://git.alfrescocavern.com/zongor/hugo-theme-zirakzigil/raw/branch/main/LICENSE"
 | 
				
			||||||
description = "Custom theme for alfrescocavern.com based on `blank` by vimux."
 | 
					description = "Custom theme for alfrescocavern.com based on `blank` by vimux."
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue