This commit is contained in:
Morgan 2023-11-06 22:51:44 +09:00
parent a251d41b30
commit 2b45f0e289
3 changed files with 12 additions and 11 deletions

View File

@ -1,6 +1,6 @@
baseURL: "http://blog.morgan.kr"
title: Morgan's Blog
theme: "mytheme"
theme: "oldtheme"
buildDrafts: false
buildFuture: false
@ -46,7 +46,6 @@ params:
tocopen: false
homeInfoParams:
Title: Hi, I'm Morgan.
Content: I am student developer in Korea, studying Embedded system and Cryptography.
socialIcons:
- name: github
url: "https://github.com/morgan9e"

1
scripts/remote.sh Executable file
View File

@ -0,0 +1 @@
ssh web /srv/blog/scripts/update.sh

View File

@ -1,21 +1,22 @@
{{ define "main" }}
<div class="max-w-7xl mx-auto bg-white p-10 pt-16 rounded-lg shadow-xl">
<div class="mb-10 text-center ">
<h1 class="text-xl md:text-3xl font-bold mb-6 text-black">{{ .Title }}</h1>
<div class="date text-lg md:text-2xl">
<div class="max-w-7xl mx-auto bg-white p-4 sm:p-10 pt-8 sm:pt-16 rounded-lg shadow-xl">
<div class="mb-6 sm:mb-10 text-center">
<h1 class="text-2xl sm:text-3xl font-bold mb-4 sm:mb-6 text-black">{{ .Title }}</h1>
<div class="text-base sm:text-lg md:text-2xl">
{{ .Date | time.Format ":date_long" }}
</div>
</div>
<div class="bg-gray-400 h-[1px] mb-8"></div>
<div class="content prose prose-lg lg:prose-xl max-w-none prose-a:text-blue-800 prose-a:no-underline hover:prose-a:text-blue-600 hover:prose-a:underline">
{{ .Content }}
<div class="bg-gray-400 h-[1px] mb-4 sm:mb-8"></div>
<div class="content prose prose-sm sm:prose-lg lg:prose-xl max-w-none prose-a:text-blue-800 prose-a:no-underline hover:prose-a:text-blue-600 hover:prose-a:underline">
{{ .Content }}
</div>
</div>
<button class="m-8 p-3 rounded-full bg-gray-200 hover:ring-2 hover:ring-blue-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" onclick="window.history.back()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<button class="m-4 sm:m-8 p-2 sm:p-3 rounded-full bg-gray-200 hover:ring-2 hover:ring-blue-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" onclick="window.history.back()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 sm:h-6 sm:w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M15 19l-7-7 7-7" />
</svg>
</button>
{{ end }}