Rewrote the whole website to get rid on a heavy theme
This commit is contained in:
parent
3ea54810ad
commit
60d3abc6ec
122 changed files with 346 additions and 2558 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,3 @@
|
||||||
.*.swp
|
.*.swp
|
||||||
public/
|
public/
|
||||||
resources/
|
resources/
|
||||||
node_modules/
|
|
||||||
tech-doc-hugo
|
|
||||||
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
||||||
[submodule "themes/docsy"]
|
|
||||||
path = themes/docsy
|
|
||||||
url = _gitea@git.adyxax.org:adyxax/docsy.git
|
|
22
Makefile
Normal file
22
Makefile
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
.POSIX:
|
||||||
|
DESTDIR=public
|
||||||
|
|
||||||
|
.PHONY: build
|
||||||
|
build: ## make build # builds an optimized version of the website in $(DESTDIR)
|
||||||
|
@echo "? Generating site"
|
||||||
|
hugo --gc --minify --cleanDestinationDir -d $(DESTDIR)
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean: ## make clean # removed all $(DESTDIR) contents
|
||||||
|
@echo "? Cleaning old build"
|
||||||
|
cd $(DESTDIR) && rm -rf *
|
||||||
|
|
||||||
|
.PHONY: serve
|
||||||
|
serve: ## make serve # hugo web server development mode
|
||||||
|
hugo serve
|
||||||
|
|
||||||
|
help:
|
||||||
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||||
|
|
||||||
|
.DEFAULT_GOAL := help
|
3
README
3
README
|
@ -1,3 +0,0 @@
|
||||||
(cd ~/git/www; time hugo --minify)
|
|
||||||
|
|
||||||
hugo server --bind 0.0.0.0 --minify --disableFastRender
|
|
26
assets/base.css
Normal file
26
assets/base.css
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
font-family: open sans,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol;
|
||||||
|
font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: auto 1fr auto;
|
||||||
|
}
|
||||||
|
main p {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
nav#TableOfContents ul {
|
||||||
|
padding: 0;
|
||||||
|
list-style-type: none;
|
||||||
|
a + ul {
|
||||||
|
padding-left:1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 60rem) {
|
||||||
|
body {
|
||||||
|
max-width:60rem;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
}
|
9
assets/footer.css
Normal file
9
assets/footer.css
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
footer {
|
||||||
|
background-color: #30638e;
|
||||||
|
color: lightgray;
|
||||||
|
text-align: center;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
footer a {
|
||||||
|
color: lightgray;
|
||||||
|
}
|
32
assets/header.css
Normal file
32
assets/header.css
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
header {
|
||||||
|
background-color: #30638e;
|
||||||
|
}
|
||||||
|
header nav ul {
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
header nav ul li {
|
||||||
|
display: inline;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
header nav ul li a {
|
||||||
|
display: block;
|
||||||
|
color: lightgray;
|
||||||
|
text-align: center;
|
||||||
|
padding: 14px 16px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
header nav ul li a:hover {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
.nav-menu-title {
|
||||||
|
float: left;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.nav-menu-active {
|
||||||
|
color: white;
|
||||||
|
}
|
17
assets/home.css
Normal file
17
assets/home.css
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
.home-page {
|
||||||
|
min-height: 80vh;
|
||||||
|
}
|
||||||
|
.home-page h1 {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 3rem;
|
||||||
|
padding-bottom: 1.5rem;
|
||||||
|
font-size: 3rem;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 1.2;
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-page p {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
36
assets/pagination.css
Normal file
36
assets/pagination.css
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
.pagination {
|
||||||
|
display:-webkit-box;
|
||||||
|
display:-webkit-flex;
|
||||||
|
display:-ms-flexbox;
|
||||||
|
display:flex;
|
||||||
|
list-style:none;
|
||||||
|
border-radius:.25rem;
|
||||||
|
}
|
||||||
|
.pagination li a {
|
||||||
|
border:1px solid rgba(0,0,0,.1);
|
||||||
|
position:relative;
|
||||||
|
display:block;
|
||||||
|
padding:.5rem .75rem;
|
||||||
|
line-height:1.25;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.pagination li:first-child a {
|
||||||
|
border-top-left-radius:.25rem;
|
||||||
|
border-bottom-left-radius:.25rem
|
||||||
|
}
|
||||||
|
.pagination li:last-child a {
|
||||||
|
border-top-right-radius:.25rem;
|
||||||
|
border-bottom-right-radius:.25rem
|
||||||
|
}
|
||||||
|
.pagination li a:hover {
|
||||||
|
color:#1e53a0;
|
||||||
|
background-color:#eee;
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
.pagination-disabled {
|
||||||
|
color: lightgray;
|
||||||
|
}
|
||||||
|
.pagination-active a {
|
||||||
|
color: white;
|
||||||
|
background-color: #30638e;
|
||||||
|
}
|
|
@ -1,9 +0,0 @@
|
||||||
/*
|
|
||||||
|
|
||||||
Add styles or override variables from the theme here.
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
p {
|
|
||||||
text-align: justify;
|
|
||||||
}
|
|
141
config.toml
141
config.toml
|
@ -1,22 +1,10 @@
|
||||||
baseURL = "/"
|
baseURL = "/"
|
||||||
title = "Yet Another SysAdmin Wiki"
|
languageCode = "en-us"
|
||||||
|
title = "Yet Another SysAdmin Website"
|
||||||
|
description = "The personal space of yet another sysadmin"
|
||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
|
|
||||||
# Hugo allows theme composition (and inheritance). The precedence is from left to right.
|
|
||||||
theme = ["docsy"]
|
|
||||||
|
|
||||||
# Will give values to .Lastmod etc.
|
|
||||||
enableGitInfo = true
|
enableGitInfo = true
|
||||||
|
paginate = 32
|
||||||
# Language settings
|
|
||||||
contentDir = "content/en"
|
|
||||||
defaultContentLanguage = "en"
|
|
||||||
defaultContentLanguageInSubdir = false
|
|
||||||
# Useful when translating.
|
|
||||||
enableMissingTranslationPlaceholders = true
|
|
||||||
|
|
||||||
disableKinds = ["taxonomy", "taxonomyTerm"]
|
|
||||||
|
|
||||||
# Highlighting config
|
# Highlighting config
|
||||||
pygmentsCodeFences = true
|
pygmentsCodeFences = true
|
||||||
|
@ -27,134 +15,17 @@ pygmentsUseClassic = false
|
||||||
# See https://help.farbox.com/pygments.html
|
# See https://help.farbox.com/pygments.html
|
||||||
pygmentsStyle = "tango"
|
pygmentsStyle = "tango"
|
||||||
|
|
||||||
# Configure how URLs look like per section.
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
blog = "/:section/:year/:month/:day/:slug/"
|
blog = "/:section/:year/:month/:day/:slug/"
|
||||||
|
|
||||||
## Configuration for BlackFriday markdown parser: https://github.com/russross/blackfriday
|
|
||||||
[blackfriday]
|
|
||||||
plainIDAnchors = true
|
|
||||||
hrefTargetBlank = true
|
|
||||||
angledQuotes = false
|
|
||||||
latexDashes = true
|
|
||||||
|
|
||||||
# Image processing configuration.
|
|
||||||
[imaging]
|
[imaging]
|
||||||
resampleFilter = "CatmullRom"
|
resampleFilter = "CatmullRom"
|
||||||
quality = 75
|
quality = 75
|
||||||
anchor = "smart"
|
anchor = "smart"
|
||||||
|
|
||||||
[services]
|
|
||||||
[services.googleAnalytics]
|
|
||||||
# Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback].
|
|
||||||
#id = "UA-00000000-0"
|
|
||||||
|
|
||||||
# Language configuration
|
|
||||||
|
|
||||||
[languages]
|
|
||||||
[languages.en]
|
|
||||||
title = "Yet Another SysAdmin Wiki / Blog"
|
|
||||||
description = "The personal space of yet another sysadmin"
|
|
||||||
languageName ="English"
|
|
||||||
# Weight used for sorting.
|
|
||||||
weight = 1
|
|
||||||
|
|
||||||
#[languages.fr]
|
|
||||||
#title = "Un wiki/blog d'AdminSys"
|
|
||||||
#description = "Le petit bout d'internet d'un adminsys"
|
|
||||||
#languageName ="Français"
|
|
||||||
#contentDir = "content/fr"
|
|
||||||
##time_format_default = "02.01.2006"
|
|
||||||
##time_format_blog = "02.01.2006"
|
|
||||||
|
|
||||||
[markup]
|
|
||||||
[markup.goldmark]
|
|
||||||
[markup.goldmark.renderer]
|
|
||||||
unsafe = true
|
|
||||||
|
|
||||||
# Everything below this are Site Params
|
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
copyright = "Julien (Adyxax) Dessaux"
|
copyright = "Julien (Adyxax) Dessaux"
|
||||||
#privacy_policy = "https://policies.google.com/privacy"
|
|
||||||
|
|
||||||
# First one is picked as the Twitter card image if not set on page.
|
|
||||||
# images = ["images/project-illustration.png"]
|
|
||||||
|
|
||||||
# Menu title if your navbar has a versions selector to access old versions of your site.
|
|
||||||
# This menu appears only if you have at least one [params.versions] set.
|
|
||||||
version_menu = "Releases"
|
|
||||||
|
|
||||||
# Repository configuration (URLs for in-page links to opening issues and suggesting changes)
|
|
||||||
github_repo = "https://git.adyxax.org/adyxax/www"
|
github_repo = "https://git.adyxax.org/adyxax/www"
|
||||||
# An optional link to a related project repo. For example, the sibling repository where your product code lives.
|
|
||||||
#github_project_repo = "https://github.com/google/docsy"
|
|
||||||
|
|
||||||
# Specify a value here if your content directory is not in your repo's root directory
|
[taxonomies]
|
||||||
# github_subdir = ""
|
tag = "tags"
|
||||||
|
|
||||||
# Google Custom Search Engine ID. Remove or comment out to disable search.
|
|
||||||
#gcs_engine_id = "011737558837375720776:fsdu1nryfng"
|
|
||||||
|
|
||||||
# Enable Algolia DocSearch
|
|
||||||
algolia_docsearch = false
|
|
||||||
|
|
||||||
# Enable Lunr.js offline search
|
|
||||||
offlineSearch = true
|
|
||||||
|
|
||||||
# User interface configuration
|
|
||||||
[params.ui]
|
|
||||||
# Enable to show the side bar menu in its compact state.
|
|
||||||
sidebar_menu_compact = false
|
|
||||||
# Set to true to disable breadcrumb navigation.
|
|
||||||
breadcrumb_disable = false
|
|
||||||
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
|
|
||||||
sidebar_search_disable = false
|
|
||||||
# Set to false if you don't want to display a logo (/assets/icons/logo.svg) in the top nav bar
|
|
||||||
#navbar_logo = true
|
|
||||||
# Set to true to disable the About link in the site footer
|
|
||||||
footer_about_disable = false
|
|
||||||
|
|
||||||
# Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events.
|
|
||||||
# This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set.
|
|
||||||
# If you want this feature, but occasionally need to remove the "Feedback" section from a single page,
|
|
||||||
# add "hide_feedback: true" to the page's front matter.
|
|
||||||
[params.ui.feedback]
|
|
||||||
enable = false
|
|
||||||
# The responses that the user sees after clicking "yes" (the page was helpful) or "no" (the page was not helpful).
|
|
||||||
#yes = 'Glad to hear it! Please <a href="https://github.com/USERNAME/REPOSITORY/issues/new">tell us how we can improve</a>.'
|
|
||||||
#no = 'Sorry to hear that. Please <a href="https://github.com/USERNAME/REPOSITORY/issues/new">tell us how we can improve</a>.'
|
|
||||||
|
|
||||||
[params.links]
|
|
||||||
# End user relevant links. These will show up on left side of footer and in the community page if you have one.
|
|
||||||
#[[params.links.user]]
|
|
||||||
# name = "User mailing list"
|
|
||||||
# url = "https://example.org/mail"
|
|
||||||
# icon = "fa fa-envelope"
|
|
||||||
# desc = "Discussion and help from your fellow users"
|
|
||||||
#[[params.links.user]]
|
|
||||||
# name ="Twitter"
|
|
||||||
# url = "https://example.org/twitter"
|
|
||||||
# icon = "fab fa-twitter"
|
|
||||||
# desc = "Follow us on Twitter to get the latest news!"
|
|
||||||
#[[params.links.user]]
|
|
||||||
# name = "Stack Overflow"
|
|
||||||
# url = "https://example.org/stack"
|
|
||||||
# icon = "fab fa-stack-overflow"
|
|
||||||
# desc = "Practical questions and curated answers"
|
|
||||||
# Developer relevant links. These will show up on right side of footer and in the community page if you have one.
|
|
||||||
#[[params.links.developer]]
|
|
||||||
# name = "GitHub"
|
|
||||||
# url = "https://github.com/google/docsy"
|
|
||||||
# icon = "fab fa-github"
|
|
||||||
# desc = "Development takes place here!"
|
|
||||||
#[[params.links.developer]]
|
|
||||||
# name = "Slack"
|
|
||||||
# url = "https://example.org/slack"
|
|
||||||
# icon = "fab fa-slack"
|
|
||||||
# desc = "Chat with other project developers"
|
|
||||||
#[[params.links.developer]]
|
|
||||||
# name = "Developer mailing list"
|
|
||||||
# url = "https://example.org/mail"
|
|
||||||
# icon = "fa fa-envelope"
|
|
||||||
# desc = "Discuss development issues around the project"
|
|
||||||
|
|
11
content/_index.md
Normal file
11
content/_index.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
title: Home
|
||||||
|
description: www.adyxax.org home page
|
||||||
|
---
|
||||||
|
Hello, my name is Julien Dessaux.
|
||||||
|
|
||||||
|
This website is as an aggregation of various thoughts and tutorials about open source, BSD and GNU/Linux system administration, and networking. It is a personal space that I try to fill up with my experience and knowledge of computer systems and network administration. You can learn more about me [on this page]({{< relref "/docs/about-me/_index.md" >}})
|
||||||
|
|
||||||
|
I hope you feel welcome here, do not hesitate to leave a message at julien -DOT- dessaux -AT- adyxax -DOT- org. You can ask for a translation, some more details on a topic covered here, or just say hi or whatever ;-)
|
||||||
|
|
||||||
|
Have a good time!
|
6
content/blog/_index.md
Normal file
6
content/blog/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
title: "Blog"
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
weight: 2
|
||||||
|
---
|
10
content/docs/_index.md
Normal file
10
content/docs/_index.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
title: "Docs"
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
weight: 1
|
||||||
|
---
|
||||||
|
|
||||||
|
This is the Docs section of this website. It is an heritage of the old wiki I maintained, with information that does not really fit in a blog format.
|
||||||
|
|
||||||
|
The information is organised in the following sections :
|
|
@ -1,9 +1,6 @@
|
||||||
---
|
---
|
||||||
title: "About me"
|
title: "About me"
|
||||||
linkTitle: "About me"
|
description: Information about the author of this website
|
||||||
weight: 1
|
|
||||||
description: >
|
|
||||||
Information about the author of this website
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Who am I?
|
## Who am I?
|
|
@ -1,9 +1,6 @@
|
||||||
---
|
---
|
||||||
title: "adyxax.org"
|
title: "adyxax.org"
|
||||||
linkTitle: "adyxax.org"
|
description: a set of pages about the computer infrastructure powering this website and other services
|
||||||
weight: 1
|
|
||||||
description: >
|
|
||||||
adyxax.org is my personal computer infrastructure. This section details how I built it and why, and how I maintain it.
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## What is adyxax.org?
|
## What is adyxax.org?
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue