Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 34 additions & 17 deletions content/code-sample.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
---
title: "Hugo Code Sample"
date: 2022-02-10T16:51:11+01:00
draft: true
draft: false
---

```
-------------------------------------------------------------------------
File Structure
-------------------------------------------------------------------------
├── archetypes
├── config.toml
├── content
├── data
├── layouts
├── static
└── themes

-------------------------------------------------------------------------
_baseof.HTML
-------------------------------------------------------------------------
Expand Down Expand Up @@ -51,11 +62,10 @@ draft: true
{{ end }}

{{ define "main" }}
<section class="section">
<h1 class="title">{{ .Title }}</h1>

{{ .Content }}
</section>
<section class="section">
<h1 class="title">{{ .Title }}</h1>
{{ .Content }}
</section>
{{ end }}

{{ define "footer" }}
Expand All @@ -66,15 +76,22 @@ draft: true
-------------------------------------------------------------------------
list.HTML
-------------------------------------------------------------------------
{ define "sidebar" }} {{ partial "navigation.html" }} {{ end }} {{ define
"main" }}
<section class="section">
<h1 class="title">Main Section</h1>
{{ range (.Site.GetPage "section" "learn").Pages }}
<ul>
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
</ul>
{{ end }}
</section>
{{ end }} {{ define "footer" }} {{ partial "footer.html" }} {{ end }}
{{ define "sidebar" }}
{{ partial "navigation.html" }}
{{ end }}

{{ define "main" }}
<section class="section">
<h1 class="title">Main Section</h1>
{{ range (.Site.GetPage "section" "learn").Pages }}
<ul>
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
</ul>
{{ end }}
</section>
{{ end }}

{{ define "footer" }}
{{ partial "footer.html" }}
{{ end }}
```
2 changes: 1 addition & 1 deletion content/learn/cms-options.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Hugo For Content Managers"
date: 2022-02-10T16:51:35+01:00
draft: true
draft: false
---

- https://strapi.io/integrations/hugo-cms
Expand Down
2 changes: 1 addition & 1 deletion content/learn/documentation.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Documentation Sites"
date: 2022-02-10T16:51:35+01:00
draft: true
draft: false
---

- https://pkg.go.dev/text/template
Expand Down
2 changes: 1 addition & 1 deletion content/learn/hugo-speed.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Hugo Is Fast"
date: 2022-02-10T16:51:35+01:00
draft: true
draft: false
---

- https://css-tricks.com/comparing-static-site-generator-build-times/
Expand Down
2 changes: 1 addition & 1 deletion content/learn/themes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Hugo Themes"
date: 2022-02-10T16:51:35+01:00
draft: true
draft: false
---

https://themes.gohugo.io/
2 changes: 1 addition & 1 deletion content/learn/tutorials.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Hugo Tutorials"
date: 2022-02-10T16:51:35+01:00
draft: true
draft: false
---

- https://cloudcannon.com/community/learn/hugo-tutorial/
Expand Down
1 change: 1 addition & 0 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>404 - Page Not Found</h1>
102 changes: 102 additions & 0 deletions public/categories/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<html>
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, shrink-to-fit=no"
/>
<meta http-equiv="X-UA-Compatible" content="ie=edge" />


<link rel="stylesheet" href="/styles.min.css" />

<title>Categories</title>
</head>

<body>
<div class="columns">
<div class="column is-one-third">

<section class="section">
<aside class="menu">
<p class="menu-label">Table of Contents</p>
<ul class="menu-list">
<li><a href="https://hugo-primer.netlify.app/">Home</a></li>
<li>
<a href="https://hugo-primer.netlify.app/code-sample/">Code Sample</a>
</li>
<li>
<a href="https://hugo-primer.netlify.app/learn/tutorials/">Tutorials</a>
</li>
<li>
<a href="https://hugo-primer.netlify.app/learn/documentation/"
>Documentation Sites</a
>
</li>
<li>
<a href="https://hugo-primer.netlify.app/learn/themes/">Hugo Themes</a>
</li>
<li>
<a href="https://hugo-primer.netlify.app/learn/hugo-speed/"
>Speed Tests</a
>
</li>
<li>
<a href="https://hugo-primer.netlify.app/learn/cms-options/"
>CMS Options</a
>
</li>
</ul>
</aside>
</section>

</div>

<div class="column">


<section class="section">
<h1 class="title">Main Section</h1>

<ul>
<li><a href="http://example.org/learn/documentation/">Documentation Sites</a></li>
</ul>

<ul>
<li><a href="http://example.org/learn/cms-options/">Hugo For Content Managers</a></li>
</ul>

<ul>
<li><a href="http://example.org/learn/hugo-speed/">Hugo Is Fast</a></li>
</ul>

<ul>
<li><a href="http://example.org/learn/themes/">Hugo Themes</a></li>
</ul>

<ul>
<li><a href="http://example.org/learn/tutorials/">Hugo Tutorials</a></li>
</ul>

</section>

</div>
</div>


<footer class="footer">
<div class="content has-text-centered">
<p>
Made with
<a href="https://gohugo.io/"><strong>Hugo</strong></a
>, <a href="https://bulma.io/"><strong>Bulma</strong></a
>, and a little <strong>TLC</strong> by
<a href="https://twitter.com/george_bullock"
><strong>@george_bullock</strong></a
>
</p>
</div>
</footer>

</body>
</html>
10 changes: 10 additions & 0 deletions public/categories/index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Categories on Go Templating via Hugo</title>
<link>http://example.org/categories/</link>
<description>Recent content in Categories on Go Templating via Hugo</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language><atom:link href="http://example.org/categories/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
Loading