-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
120 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
<p>Messing around with go and HTMX and html templates to make a simple blog in a new way.</p> | ||
<p class="font_roboto-condensed post_p">Messing around with go and HTMX and html templates to make a simple blog in a | ||
way that | ||
is new to me. I've gone through a few iterations of blog approaches/sites and maybe this is the one that will stick | ||
¯\_(ツ)_/¯ | ||
</p> | ||
<p class="font_roboto-condensed post_p">So far this post / content files are html file(s), I know markdown seems like a | ||
more popular option for dev blogs etc, but I kinda like the idea of writing vanilla html files for content here, | ||
especially when llm assisted for styling or formatting.</p> | ||
|
||
<p>More styles and content to come as I firm up the approach here. </p> | ||
<p class="font_roboto-condensed post_p">I'm betting on leveraging more classic web such as html css files etc, and | ||
that we will continue to see less tooling/abstractions for dev experience since devs are now llm assisted. The | ||
fastest sites out there are just cached css and html right, why jump through all the hoops when you are now able to | ||
be assisted for the creation of the styles and can generate the styles instantly and then spot check. This post | ||
written out and css file generated/styled by hand quickly as you can tell, but I mean for the future !</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,36 @@ | |
<head> | ||
<title>{{ .Title }}</title> | ||
<link rel="stylesheet" href="/static/css/style.css" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Sixtyfour&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<script | ||
async | ||
src="https://www.googletagmanager.com/gtag/js?id=G-ETK9JGW8YR" | ||
></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag() { | ||
dataLayer.push(arguments); | ||
} | ||
gtag("js", new Date()); | ||
|
||
gtag("config", "G-ETK9JGW8YR"); | ||
</script> | ||
</head> | ||
<body> | ||
<header> | ||
<a href="/"> | ||
<h1>Nick Foden</h1> | ||
<h1 class="font_sixtyfour">Web Log</h1> | ||
</a> | ||
</header> | ||
<main>{{block "content" .}}{{end}}</main> | ||
<footer> | ||
<p> | ||
<p class="font_sixtyfour"> | ||
© | ||
<span | ||
hx-get="/get_current_year" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
{{template "base.html" .}} {{ define "content" }} | ||
<ul> | ||
<ul class="index_posts_ul"> | ||
{{ range .Posts }} | ||
<li><a href="/posts/{{ .Slug }}">{{ .Title }}</a></li> | ||
<li> | ||
<div class="row"> | ||
<a class="font_roboto-condensed" href="/posts/{{ .Slug }}" | ||
>{{ .Title }}</a | ||
> | ||
<p class="font_roboto-condensed index_post_date"> | ||
({{.CreatedAt.Format "2006-01-02"}}) | ||
</p> | ||
</div> | ||
<p class="font_roboto-condensed index_post_content_preview"> | ||
{{ .ContentPreview }} | ||
</p> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters