Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: generate basic static site with Hugo. #15

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
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
17 changes: 17 additions & 0 deletions makersite/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Makersite

The purpose of this project is to refactor the current wordpress based makerspace site to a modern alternative.

We are considering the following options:
- Static site generator for some content management.
+ ~~Astro~~ Too buggy to be used in production.
+ Hugo

- Single page website.
+ Handcrafted
* The simpler the better!

**Existing Requirements**
- Represent the corporate identity of the asociation.
- A system to manage and communicate events.

Empty file.
5 changes: 5 additions & 0 deletions makersite/content/makespacemadrid/archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
2 changes: 2 additions & 0 deletions makersite/content/makespacemadrid/content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Welcome to Makespace Madrid

21 changes: 21 additions & 0 deletions makersite/content/makespacemadrid/hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = 'makespace'

[[menus.main]]
name = 'Home'
pageRef = '/'
weight = 10

[[menus.main]]
name = 'Posts'
pageRef = '/posts'
weight = 20

[[menus.main]]
name = 'Tags'
pageRef = '/tags'
weight = 30


47 changes: 47 additions & 0 deletions makersite/content/makespacemadrid/public/categories/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en-us" dir="ltr">
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=41721&amp;path=livereload" data-no-instant defer></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Categories | My New Hugo Site</title>

<link rel="stylesheet" href="/css/main.css">


<script src="/js/main.js"></script>


</head>
<body>
<header>
<h1>My New Hugo Site</h1>

<nav>
<ul>
<li>
<a href="/">Home</a>
</li>
<li>
<a href="/posts/">Posts</a>
</li>
<li>
<a href="/tags/">Tags</a>
</li>
</ul>
</nav>


</header>
<main>

<h1>Categories</h1>



</main>
<footer>
<p>Copyright 2024. All rights reserved.</p>

</footer>
</body>
</html>
11 changes: 11 additions & 0 deletions makersite/content/makespacemadrid/public/categories/index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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 My New Hugo Site</title>
<link>http://localhost:41721/categories/</link>
<description>Recent content in Categories on My New Hugo Site</description>
<generator>Hugo</generator>
<language>en-us</language>
<atom:link href="http://localhost:41721/categories/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
22 changes: 22 additions & 0 deletions makersite/content/makespacemadrid/public/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
body {
color: #222;
font-family: sans-serif;
line-height: 1.5;
margin: 1rem;
max-width: 768px;
}

header {
border-bottom: 1px solid #222;
margin-bottom: 1rem;
}

footer {
border-top: 1px solid #222;
margin-top: 1rem;
}

a {
color: #00e;
text-decoration: none;
}
Binary file not shown.
47 changes: 47 additions & 0 deletions makersite/content/makespacemadrid/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en-us" dir="ltr">
<head>
<meta name="generator" content="Hugo 0.134.2"><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=41721&amp;path=livereload" data-no-instant defer></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>My New Hugo Site</title>

<link rel="stylesheet" href="/css/main.css">


<script src="/js/main.js"></script>


</head>
<body>
<header>
<h1>My New Hugo Site</h1>

<nav>
<ul>
<li>
<a aria-current="page" class="active" href="/">Home</a>
</li>
<li>
<a href="/posts/">Posts</a>
</li>
<li>
<a href="/tags/">Tags</a>
</li>
</ul>
</nav>


</header>
<main>

<h2 id="welcome-to-makespace-madrid">Welcome to Makespace Madrid</h2>


</main>
<footer>
<p>Copyright 2024. All rights reserved.</p>

</footer>
</body>
</html>
33 changes: 33 additions & 0 deletions makersite/content/makespacemadrid/public/index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>My New Hugo Site</title>
<link>http://localhost:41721/</link>
<description>Recent content on My New Hugo Site</description>
<generator>Hugo</generator>
<language>en-us</language>
<lastBuildDate>Wed, 15 Mar 2023 11:00:00 -0700</lastBuildDate>
<atom:link href="http://localhost:41721/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Post 3</title>
<link>http://localhost:41721/posts/post-3/</link>
<pubDate>Wed, 15 Mar 2023 11:00:00 -0700</pubDate>
<guid>http://localhost:41721/posts/post-3/</guid>
<description>&lt;p&gt;Occaecat aliqua consequat laborum ut ex aute aliqua culpa quis irure esse magna dolore quis. Proident fugiat labore eu laboris officia Lorem enim. Ipsum occaecat cillum ut tempor id sint aliqua incididunt nisi incididunt reprehenderit. Voluptate ad minim sint est aute aliquip esse occaecat tempor officia qui sunt. Aute ex ipsum id ut in est velit est laborum incididunt. Aliqua qui id do esse sunt eiusmod id deserunt eu nostrud aute sit ipsum. Deserunt esse cillum Lorem non magna adipisicing mollit amet consequat.&lt;/p&gt;</description>
</item>
<item>
<title>Post 2</title>
<link>http://localhost:41721/posts/post-2/</link>
<pubDate>Wed, 15 Feb 2023 10:00:00 -0700</pubDate>
<guid>http://localhost:41721/posts/post-2/</guid>
<description>&lt;p&gt;Anim eiusmod irure incididunt sint cupidatat. Incididunt irure irure irure nisi ipsum do ut quis fugiat consectetur proident cupidatat incididunt cillum. Dolore voluptate occaecat qui mollit laborum ullamco et. Ipsum laboris officia anim laboris culpa eiusmod ex magna ex cupidatat anim ipsum aute. Mollit aliquip occaecat qui sunt velit ut cupidatat reprehenderit enim sunt laborum. Velit veniam in officia nulla adipisicing ut duis officia.&lt;/p&gt;&#xA;&lt;p&gt;Exercitation voluptate irure in irure tempor mollit Lorem nostrud ad officia. Velit id fugiat occaecat do tempor. Sit officia Lorem aliquip eu deserunt consectetur. Aute proident deserunt in nulla aliquip dolore ipsum Lorem ut cupidatat consectetur sit sint laborum. Esse cupidatat sit sint sunt tempor exercitation deserunt. Labore dolor duis laborum est do nisi ut veniam dolor et nostrud nostrud.&lt;/p&gt;</description>
</item>
<item>
<title>Post 1</title>
<link>http://localhost:41721/posts/post-1/</link>
<pubDate>Sun, 15 Jan 2023 09:00:00 -0700</pubDate>
<guid>http://localhost:41721/posts/post-1/</guid>
<description>&lt;p&gt;Tempor proident minim aliquip reprehenderit dolor et ad anim Lorem duis sint eiusmod. Labore ut ea duis dolor. Incididunt consectetur proident qui occaecat incididunt do nisi Lorem. Tempor do laborum elit laboris excepteur eiusmod do. Eiusmod nisi excepteur ut amet pariatur adipisicing Lorem.&lt;/p&gt;&#xA;&lt;p&gt;Occaecat nulla excepteur dolore excepteur duis eiusmod ullamco officia anim in voluptate ea occaecat officia. Cillum sint esse velit ea officia minim fugiat. Elit ea esse id aliquip pariatur cupidatat id duis minim incididunt ea ea. Anim ut duis sunt nisi. Culpa cillum sit voluptate voluptate eiusmod dolor. Enim nisi Lorem ipsum irure est excepteur voluptate eu in enim nisi. Nostrud ipsum Lorem anim sint labore consequat do.&lt;/p&gt;</description>
</item>
</channel>
</rss>
4 changes: 4 additions & 0 deletions makersite/content/makespacemadrid/public/js/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(() => {
// <stdin>
console.log("This site was generated by Hugo.");
})();
59 changes: 59 additions & 0 deletions makersite/content/makespacemadrid/public/posts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="en-us" dir="ltr">
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=41721&amp;path=livereload" data-no-instant defer></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Posts | My New Hugo Site</title>

<link rel="stylesheet" href="/css/main.css">


<script src="/js/main.js"></script>


</head>
<body>
<header>
<h1>My New Hugo Site</h1>

<nav>
<ul>
<li>
<a href="/">Home</a>
</li>
<li>
<a aria-current="page" class="active" href="/posts/">Posts</a>
</li>
<li>
<a href="/tags/">Tags</a>
</li>
</ul>
</nav>


</header>
<main>

<h1>Posts</h1>
<p>Tempor est exercitation ad qui pariatur quis adipisicing aliquip nisi ea consequat ipsum occaecat. Nostrud consequat ullamco laboris fugiat esse esse adipisicing velit laborum ipsum incididunt ut enim. Dolor pariatur nulla quis fugiat dolore excepteur. Aliquip ad quis aliqua enim do consequat.</p>


<h2><a href="/posts/post-3/">Post 3</a></h2>
<p>Occaecat aliqua consequat laborum ut ex aute aliqua culpa quis irure esse magna dolore quis. Proident fugiat labore eu laboris officia Lorem enim. Ipsum occaecat cillum ut tempor id sint aliqua incididunt nisi incididunt reprehenderit. Voluptate ad minim sint est aute aliquip esse occaecat tempor officia qui sunt. Aute ex ipsum id ut in est velit est laborum incididunt. Aliqua qui id do esse sunt eiusmod id deserunt eu nostrud aute sit ipsum. Deserunt esse cillum Lorem non magna adipisicing mollit amet consequat.</p>

<h2><a href="/posts/post-2/">Post 2</a></h2>
<p>Anim eiusmod irure incididunt sint cupidatat. Incididunt irure irure irure nisi ipsum do ut quis fugiat consectetur proident cupidatat incididunt cillum. Dolore voluptate occaecat qui mollit laborum ullamco et. Ipsum laboris officia anim laboris culpa eiusmod ex magna ex cupidatat anim ipsum aute. Mollit aliquip occaecat qui sunt velit ut cupidatat reprehenderit enim sunt laborum. Velit veniam in officia nulla adipisicing ut duis officia.</p>
<p>Exercitation voluptate irure in irure tempor mollit Lorem nostrud ad officia. Velit id fugiat occaecat do tempor. Sit officia Lorem aliquip eu deserunt consectetur. Aute proident deserunt in nulla aliquip dolore ipsum Lorem ut cupidatat consectetur sit sint laborum. Esse cupidatat sit sint sunt tempor exercitation deserunt. Labore dolor duis laborum est do nisi ut veniam dolor et nostrud nostrud.</p>

<h2><a href="/posts/post-1/">Post 1</a></h2>
<p>Tempor proident minim aliquip reprehenderit dolor et ad anim Lorem duis sint eiusmod. Labore ut ea duis dolor. Incididunt consectetur proident qui occaecat incididunt do nisi Lorem. Tempor do laborum elit laboris excepteur eiusmod do. Eiusmod nisi excepteur ut amet pariatur adipisicing Lorem.</p>
<p>Occaecat nulla excepteur dolore excepteur duis eiusmod ullamco officia anim in voluptate ea occaecat officia. Cillum sint esse velit ea officia minim fugiat. Elit ea esse id aliquip pariatur cupidatat id duis minim incididunt ea ea. Anim ut duis sunt nisi. Culpa cillum sit voluptate voluptate eiusmod dolor. Enim nisi Lorem ipsum irure est excepteur voluptate eu in enim nisi. Nostrud ipsum Lorem anim sint labore consequat do.</p>


</main>
<footer>
<p>Copyright 2024. All rights reserved.</p>

</footer>
</body>
</html>
33 changes: 33 additions & 0 deletions makersite/content/makespacemadrid/public/posts/index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Posts on My New Hugo Site</title>
<link>http://localhost:41721/posts/</link>
<description>Recent content in Posts on My New Hugo Site</description>
<generator>Hugo</generator>
<language>en-us</language>
<lastBuildDate>Wed, 15 Mar 2023 11:00:00 -0700</lastBuildDate>
<atom:link href="http://localhost:41721/posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Post 3</title>
<link>http://localhost:41721/posts/post-3/</link>
<pubDate>Wed, 15 Mar 2023 11:00:00 -0700</pubDate>
<guid>http://localhost:41721/posts/post-3/</guid>
<description>&lt;p&gt;Occaecat aliqua consequat laborum ut ex aute aliqua culpa quis irure esse magna dolore quis. Proident fugiat labore eu laboris officia Lorem enim. Ipsum occaecat cillum ut tempor id sint aliqua incididunt nisi incididunt reprehenderit. Voluptate ad minim sint est aute aliquip esse occaecat tempor officia qui sunt. Aute ex ipsum id ut in est velit est laborum incididunt. Aliqua qui id do esse sunt eiusmod id deserunt eu nostrud aute sit ipsum. Deserunt esse cillum Lorem non magna adipisicing mollit amet consequat.&lt;/p&gt;</description>
</item>
<item>
<title>Post 2</title>
<link>http://localhost:41721/posts/post-2/</link>
<pubDate>Wed, 15 Feb 2023 10:00:00 -0700</pubDate>
<guid>http://localhost:41721/posts/post-2/</guid>
<description>&lt;p&gt;Anim eiusmod irure incididunt sint cupidatat. Incididunt irure irure irure nisi ipsum do ut quis fugiat consectetur proident cupidatat incididunt cillum. Dolore voluptate occaecat qui mollit laborum ullamco et. Ipsum laboris officia anim laboris culpa eiusmod ex magna ex cupidatat anim ipsum aute. Mollit aliquip occaecat qui sunt velit ut cupidatat reprehenderit enim sunt laborum. Velit veniam in officia nulla adipisicing ut duis officia.&lt;/p&gt;&#xA;&lt;p&gt;Exercitation voluptate irure in irure tempor mollit Lorem nostrud ad officia. Velit id fugiat occaecat do tempor. Sit officia Lorem aliquip eu deserunt consectetur. Aute proident deserunt in nulla aliquip dolore ipsum Lorem ut cupidatat consectetur sit sint laborum. Esse cupidatat sit sint sunt tempor exercitation deserunt. Labore dolor duis laborum est do nisi ut veniam dolor et nostrud nostrud.&lt;/p&gt;</description>
</item>
<item>
<title>Post 1</title>
<link>http://localhost:41721/posts/post-1/</link>
<pubDate>Sun, 15 Jan 2023 09:00:00 -0700</pubDate>
<guid>http://localhost:41721/posts/post-1/</guid>
<description>&lt;p&gt;Tempor proident minim aliquip reprehenderit dolor et ad anim Lorem duis sint eiusmod. Labore ut ea duis dolor. Incididunt consectetur proident qui occaecat incididunt do nisi Lorem. Tempor do laborum elit laboris excepteur eiusmod do. Eiusmod nisi excepteur ut amet pariatur adipisicing Lorem.&lt;/p&gt;&#xA;&lt;p&gt;Occaecat nulla excepteur dolore excepteur duis eiusmod ullamco officia anim in voluptate ea occaecat officia. Cillum sint esse velit ea officia minim fugiat. Elit ea esse id aliquip pariatur cupidatat id duis minim incididunt ea ea. Anim ut duis sunt nisi. Culpa cillum sit voluptate voluptate eiusmod dolor. Enim nisi Lorem ipsum irure est excepteur voluptate eu in enim nisi. Nostrud ipsum Lorem anim sint labore consequat do.&lt;/p&gt;</description>
</item>
</channel>
</rss>
61 changes: 61 additions & 0 deletions makersite/content/makespacemadrid/public/posts/post-1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="en-us" dir="ltr">
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=41721&amp;path=livereload" data-no-instant defer></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Post 1 | My New Hugo Site</title>

<link rel="stylesheet" href="/css/main.css">


<script src="/js/main.js"></script>


</head>
<body>
<header>
<h1>My New Hugo Site</h1>

<nav>
<ul>
<li>
<a href="/">Home</a>
</li>
<li>
<a aria-current="true" class="ancestor" href="/posts/">Posts</a>
</li>
<li>
<a href="/tags/">Tags</a>
</li>
</ul>
</nav>


</header>
<main>

<h1>Post 1</h1>



<time datetime="2023-01-15T09:00:00-07:00">January 15, 2023</time>

<p>Tempor proident minim aliquip reprehenderit dolor et ad anim Lorem duis sint eiusmod. Labore ut ea duis dolor. Incididunt consectetur proident qui occaecat incididunt do nisi Lorem. Tempor do laborum elit laboris excepteur eiusmod do. Eiusmod nisi excepteur ut amet pariatur adipisicing Lorem.</p>
<p>Occaecat nulla excepteur dolore excepteur duis eiusmod ullamco officia anim in voluptate ea occaecat officia. Cillum sint esse velit ea officia minim fugiat. Elit ea esse id aliquip pariatur cupidatat id duis minim incididunt ea ea. Anim ut duis sunt nisi. Culpa cillum sit voluptate voluptate eiusmod dolor. Enim nisi Lorem ipsum irure est excepteur voluptate eu in enim nisi. Nostrud ipsum Lorem anim sint labore consequat do.</p>


<div>
<div>Tags:</div>
<ul>
<li><a href="/tags/red/">Red</a></li>
</ul>
</div>


</main>
<footer>
<p>Copyright 2024. All rights reserved.</p>

</footer>
</body>
</html>
Loading