Skip to content

Commit ac468f5

Browse files
committed
Add old blogposts and tailor theme
The old content I've written in the past is added, and a first design for the website is done (logo, animations). The theme's settings are also adapted to my needs (not completely done yet).
1 parent 39510ae commit ac468f5

29 files changed

+1029
-10
lines changed

config.toml

Lines changed: 211 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,220 @@
1-
# The URL the site will be built for
1+
# Modified version of Duckquill v6.0.0 config.toml
2+
# zoug.fr
3+
24
base_url = "https://zoug.fr"
5+
theme = "duckquill"
6+
author = "Yassine Zouggari"
7+
title = "zoug.fr"
38

4-
# Whether to automatically compile all Sass files in the sass directory
59
compile_sass = true
10+
minify_html = true
611

7-
# Whether to build a search index to be used later on by a JavaScript library
8-
build_search_index = false
12+
# Only the first file will be used in the navbar feed button,
13+
# other feeds will still be available in page's head.
14+
build_search_index = true
915

10-
# Duckquill theme
11-
theme = "duckquill"
16+
# Based on https://github.com/welpo/tabi
17+
#
18+
# To translate the entire theme, there must be a file with the same ISO 639-1 or BCP 47
19+
# language code in the `i18n` directory of your site or the Duckquill theme.
20+
# For example, "i18n/fr.toml" for French or "i18n/zh-Hans.toml" for Simplified Chinese.
21+
# Otherwise the theme will be in English.
22+
#
23+
# ISO 639-1: https://localizely.com/iso-639-1-list/
24+
# BCP 47: https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
25+
default_language = "en"
1226

1327
[markdown]
14-
# Whether to do syntax highlighting
15-
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
16-
highlight_code = false
28+
highlight_code = true
29+
highlight_theme = "css"
30+
highlight_themes_css = [
31+
{ theme = "solarized-dark", filename = "syntax-theme-dark.css" },
32+
{ theme = "solarized-light", filename = "syntax-theme-light.css" }
33+
]
34+
smart_punctuation = true
35+
bottom_footnotes = true
36+
37+
#[search]
38+
#index_format = "fuse_json"
39+
generate_feeds = true
40+
taxonomies = [{ name = "tags", feed = true }]
41+
42+
#[languages.fr]
43+
#description = "Blog de Yassine Zouggari ou zoug sur l'informatique et d'autres sujets vaguement liés, en français et en anglais."
44+
45+
[languages.en]
46+
description = "Yassine Zouggari or zoug's blog on computer science and loosely related subjects, in French and English."
1747

1848
[extra]
19-
# Put all your custom variables here
49+
# Which theme should be used by default (light/dark).
50+
default_theme = "dark"
51+
52+
# Sets theme and browser theme color.
53+
# See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name/theme-color
54+
#accent_color = "#ff7800"
55+
#accent_color = "#22f43a"
56+
57+
# Ditto but for the dark theme.
58+
# If not set regular variant will be used.
59+
# accent_color_dark = "#ffa348"
60+
# accent_color_dark = "#22f43a"
61+
accent_color_dark = "#2acc3d"
62+
63+
# Whether to fix low contrast in text selection, checkboxes, etc.
64+
# Use only if the default doesn't provide enough contrast, e.g. the accent color is set to yellow.
65+
#
66+
# fix_contrast = true
67+
#
68+
# Ditto but for the dark theme.
69+
fix_contrast_dark = true
70+
71+
# Whether to use fonts bundled with Duckquill instead of system ones.
72+
# Keep in mind that it also changes the style of headings.
73+
#
74+
bundled_fonts = true
75+
#
76+
# Use emoji as a favicon.
77+
# Only one emoji is being rendered, everything else is truncated.
78+
#
79+
# emoji_favicon = "🦆🪶"
80+
#
81+
# URL to website's issue tracker
82+
issues_url = "https://github.com/yzoug/zougfr/issues"
83+
# URL to website's source code
84+
source_url = "https://github.com/yzoug/zougfr"
85+
# Additional CSS styles; expects them to be in the "./static/" directory.
86+
# If you are using Sass it will be generated there automatically.
87+
#
88+
styles = [
89+
"custom.css"
90+
]
91+
#
92+
# Additional JavaScript scripts; expects them to be in the "./static/" directory.
93+
#
94+
# scripts = [
95+
# "YOUR_SCRIPT.js",
96+
# "ALSO_YOUR_SCRIPT.js"
97+
# ]
98+
#
99+
# Whether to show "copy code" button on all code blocks
100+
# that have the language set.
101+
# See https://www.getzola.org/documentation/content/syntax-highlighting/
102+
show_copy_button = true
103+
# Whether to show estimated read time in posts.
104+
show_read_time = true
105+
#
106+
# Whether to show a share button in article's quick actions.
107+
# Uses https://shareopenly.org.
108+
show_share_button = true
109+
# Whether to show the backlinks button for linked articles in the article's quick actions
110+
show_backlinks = true
111+
# Whether to enable the KaTeX library for rendering LaTeX.
112+
# Note: This will make your page significantly heavier.
113+
# Instead, consider enabling it per page/section.
114+
# katex = true
115+
#
116+
# Whether to render table of contents on all pages.
117+
# Will not be rendered if page doesn't have any headings.
118+
# Can be set per page/section.
119+
toc = true
120+
#
121+
# Whether to render inline table of contents at the top of all pages,
122+
# in addition to floating quick navigation buttons.
123+
# Can be set per page/section.
124+
toc_inline = true
125+
#
126+
# Whether to use numbered (ordered) list for table of contents.
127+
# Can be set per page/section.
128+
# toc_ordered = true
129+
#
130+
# Whether to use Content Security Policy.
131+
# Keep in mind that although this can potentially increase security,
132+
# it can break some stuff, in which case you will need to set custom policy.
133+
csp = [
134+
{ directive = "font-src", domains = ["'self'"] },
135+
{ directive = "img-src", domains = ["'self'", "https:", "data:"] },
136+
{ directive = "media-src", domains = ["'self'", "https:"] },
137+
{ directive = "script-src", domains = ["'self'"] },
138+
{ directive = "style-src", domains = ["'self'", "'unsafe-inline'"] },
139+
{ directive = "frame-src", domains = ["https://player.vimeo.com", "https://www.youtube-nocookie.com", "https://infosec.exchange"] },
140+
{ directive = "connect-src", domains = ["https://infosec.exchange"] },
141+
{ directive = "frame-ancestors", domains = ["'none'"] },
142+
{ directive = "base-uri", domains = ["'none'"] },
143+
{ directive = "form-action", domains = ["'none'"] }
144+
]
145+
# Display outlines around all elements for debugging purposes
146+
# debug_layout = true
147+
# Don't load any styles for debugging purposes
148+
# debug_no_styles = true
149+
150+
[extra.nav]
151+
# Whether to automatically hide nav when not hovered or focused
152+
auto_hide = true
153+
# Whether to show the Atom/RSS feed button in the nav
154+
show_feed = true
155+
# Whether to show the manual theme switcher in the nav
156+
show_theme_switcher = true
157+
# Whether to show the link to the source repository in the nav
158+
show_repo = true
159+
# Links used in the nav.
160+
# For local files use same link format as in Markdown,
161+
# i.e. "@/blog/_index.md".
162+
# See https://www.getzola.org/documentation/content/linking/#internal-links
163+
links = [
164+
#{ name = "Links", menu = [
165+
# { url = "@/blog/_index.md", name = "Blog" },
166+
# { url = "@/demo/index.md", name = "Demo" },
167+
# { url = "@/mods/index.md", name = "Mods" }
168+
#] },
169+
{ url = "https://infosec.exchange/@zoug/", name = "Mastodon" },
170+
]
171+
172+
[extra.footer]
173+
# Links used in the footer.
174+
# Same as the nav ones.
175+
links = [
176+
{ url = "https://infosec.exchange/@zoug/", name = "Mastodon" },
177+
]
178+
# Social links in the footer.
179+
# Any URL-encoded SVG can be used as an icon.
180+
# https://simpleicons.org is the recommended source of SVG icons.
181+
# For URL encoding use https://yoksel.github.io/url-encoder/.
182+
# Make sure that "external quotes" are set to "double".
183+
socials = [
184+
{ url = "https://github.com/yzoug", name = "GitHub", icon = "%3Csvg role='img' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EGitHub%3C/title%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E" },
185+
{ url = "https://infosec.exchange/@zoug", name = "Mastodon", icon = "%3Csvg role='img' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EMastodon%3C/title%3E%3Cpath d='M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z'/%3E%3C/svg%3E" },
186+
]
187+
# Whether to show "© Title, YEAR"
188+
show_copyright = false
189+
# Whether to show "Powered by Zola and Duckquill"
190+
show_powered_by = true
191+
# Whether to show link to website source
192+
show_source = false
193+
# Custom copyright text
194+
#
195+
#copyright = "© *Aperture* **Science** ~~Innovators~~, `1972`"
196+
197+
# Based on https://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/
198+
#
199+
# Mastodon-powered commenting.
200+
# Values can be overridden in the front-matter, e.g.
201+
# for multi-author blogs or guest posts.
202+
#
203+
# These variables are also used for Mastodon verification,
204+
# the needed rel="me" link is set in the head based on these.
205+
[extra.comments]
206+
# Your Mastodon API host; instance that you have an account on.
207+
host = "infosec.exchange"
208+
# Your Mastodon username; used to determine who the original poster is.
209+
user = "zoug"
210+
# Whether to show the QR code to Mastodon post
211+
show_qr = true
212+
213+
# GoatCounter analytics; enabled only if present in config.
214+
[extra.goatcounter]
215+
# Your GoatCounter server; goatcounter.com is used by default.
216+
#
217+
# host = "YOUR_SERVER"
218+
#
219+
# Your GoatCounter username
220+
user = "dragonflystardust"

0 commit comments

Comments
 (0)