Skip to content

Commit

Permalink
Add website
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev committed Apr 22, 2024
1 parent 6dffb56 commit 31b943a
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[submodule "website/readme-in-static-site"]
path = website/readme-in-static-site
url = https://github.com/cljoly/readme-in-static-site.git
branch = main
[submodule "website/themes/beautifulhugo"]
path = website/themes/beautifulhugo
url = https://github.com/halogenica/beautifulhugo.git
branch = master
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<!-- insert
---
title: "Hugo APT Repository"
type: "_default"
layout: "single"
---
end_insert -->
<!-- Powered by https://cj.rs/riss -->
<!-- remove -->
# Hugo APT Repository
<!-- end_remove -->

An unofficial [APT][] repository that contains the latest [Hugo][] for [Debian][], [Ubuntu][], and
other [Debian derivatives][].
Expand Down
4 changes: 4 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/public
/.hugo_build.lock
/resources
/content/_index.md
3 changes: 3 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Website

To build the website, run `./build_site.sh`, followed by any [Hugo CLI options](https://gohugo.io/commands/hugo/).
3 changes: 3 additions & 0 deletions website/build_site.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

awk -f readme-in-static-site/riss.awk ../README.md > content/_index.md && hugo "$@"
43 changes: 43 additions & 0 deletions website/hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
baseurl = "https://hugo-apt.8hob.io"
DefaultContentLanguage = "en"
title = "Hugo APT Repository"
theme = "beautifulhugo"
pygmentsStyle = "trac"
pygmentsUseClasses = true
pygmentsCodeFences = true
pygmentsCodefencesGuessSyntax = true
disableKinds = ['rss', 'taxonomy']
enableGitInfo = true

[Params]
homeTitle = "Hugo APT Repository" # Set a different text for the header on the home page
# subtitle = "Build a beautiful and simple website in minutes"
mainSections = ["post","posts"]
# logo = "img/avatar-icon.png" # Expecting square dimensions
# favicon = "img/favicon.ico"
dateFormat = "January 2, 2006"
commit = true
rss = false
comments = false
readingTime = false
wordCount = false
useHLJS = false
socialShare = true
delayDisqus = true
showRelatedPosts = true

[Author]
# Set only your "username" for default hosts and full URLs otherwise (e.g., "https://MyGitLab.org/username")
name = "8 Hobbies"
website = "https://8hob.io"
github = "8hobbies/hugo-apt"
gitlab = "8hobbies/hugo-apt"

[minify]
disableCSS = false
disableHTML = false
disableJS = false
disableJSON = false
disableSVG = false
disableXML = false
minifyOutput = true
1 change: 1 addition & 0 deletions website/layouts/partials/head_custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script defer data-domain="hugo-apt.8hob.io" src="https://plausible.io/js/script.js"></script>
1 change: 1 addition & 0 deletions website/readme-in-static-site
Submodule readme-in-static-site added at d07c42
1 change: 1 addition & 0 deletions website/themes/beautifulhugo
Submodule beautifulhugo added at 6b650c

0 comments on commit 31b943a

Please sign in to comment.