Initial commit.
This commit is contained in:
8
layouts/_shortcodes/button.html
Normal file
8
layouts/_shortcodes/button.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<a
|
||||
class="!rounded-lg bg-primary-600 px-4 py-2 !text-neutral !no-underline hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
|
||||
{{ with .Get "href" }}href="{{ . }}"{{ end }}
|
||||
{{ with .Get "target" }}target="{{ . }}"{{ end }}
|
||||
{{ with .Get "rel" }}rel="{{ . }}"{{ end }}
|
||||
role="button">
|
||||
{{ .Inner }}
|
||||
</a>
|
||||
3
layouts/_shortcodes/div.html
Normal file
3
layouts/_shortcodes/div.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="{{ .Get "class" }}">
|
||||
{{ .Inner }}
|
||||
</div>
|
||||
8
layouts/_shortcodes/more.html
Normal file
8
layouts/_shortcodes/more.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="flex cursor-pointer justify-end -mt-4">
|
||||
<a
|
||||
href="{{ .Params.href }}"
|
||||
class="rounded-lg border border-primary-400 px-2 py-[1px] text-s text-primary-700 dark:border-primary-600 dark:text-primary-400 hover:bg-primary-100 dark:hover:bg-primary-800 transition-colors duration-200 hover:rounded-lg"
|
||||
>
|
||||
Read more
|
||||
</a>
|
||||
</div>
|
||||
14
layouts/home.html
Normal file
14
layouts/home.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ define "main" }}
|
||||
<article class="h-full max-w-full flex flex-col items-center justify-center">
|
||||
<section class="mt-6">
|
||||
{{ .Content }}
|
||||
</section>
|
||||
<section>
|
||||
{{ partial "recent-articles/main.html" . }}
|
||||
</section>
|
||||
<footer class="pt-8">
|
||||
</footer>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user