change theme to hba
|
|
@ -1,3 +1,9 @@
|
|||
[submodule "themes/ananke"]
|
||||
path = themes/ananke
|
||||
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
|
||||
[submodule "themes/hermit-v2"]
|
||||
path = themes/hermit-v2
|
||||
url = https://github.com/1bl4z3r/hermit-V2
|
||||
[submodule "hugo-blog-awesome"]
|
||||
path = hugo-blog-awesome
|
||||
url = https://github.com/hugo-sid/hugo-blog-awesome.git
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 1.6 MiB |
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: About
|
||||
description: 'About me'
|
||||
author: nadim.salloum
|
||||
---
|
||||
|
||||
Developer, Cycling enthusiast. I love doing projects on the side, if I ever get the time for that.
|
||||
|
||||
Education:
|
||||
|
||||
- Informatiker EFZ
|
||||
- BsC Computer Science, FHNW
|
||||
|
||||
My Focus:
|
||||
|
||||
- Web Development
|
||||
- Self-hosting
|
||||
|
||||
see my [Github-Profile](https://github.com/NateMS)
|
||||
|
|
@ -10,6 +10,7 @@ categories:
|
|||
At about 8 in the morning I had all things packed and went on my way towards the mountains. It was a cloudy day, sometimes even a bit cold, but not too bad. I managed to go a good bit towards the mountains and the bike is going well. I have found a nice camping spot right at the Lake „Walensee“ with a great view. After a long day of cycling I could cool down in the cold water.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Travel
|
||||
---
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
# THIS IS AN EXAMPLE ON HOW YOU SHOULD CONFIGURE YOUR hugo.toml
|
||||
# See this hugo.toml in action at https://github.com/1bl4z3r/hermit-V2/blob/staging/hugo.toml
|
||||
# Example Site is Staging branch, acessible at https://github.com/1bl4z3r/hermit-V2/tree/staging
|
||||
# To see what each config does, refer to https://1bl4z3r.github.io/hermit-V2/en/posts/explaining-configs/
|
||||
# Open Issue or Pull Request at https://github.com/1bl4z3r/hermit-V2
|
||||
|
||||
baseURL = "salloum.ch"
|
||||
defaultContentLanguage = "en"
|
||||
defaultContentLanguageInSubdir = false
|
||||
theme = "hermit-v2"
|
||||
|
||||
#[languages]
|
||||
# [languages.en]
|
||||
# title = 'CHANGE ME'
|
||||
# [languages.en.params]
|
||||
# homeSubtitle = "CHANGE ME"
|
||||
# weight = 1
|
||||
# [languages.fr]
|
||||
# title = 'CHANGE ME(FR)'
|
||||
# [languages.fr.params]
|
||||
# homeSubtitle = "CHANGE ME"
|
||||
# weight = 2
|
||||
# [languages.it]
|
||||
# title = 'CHANGE ME(IT)'
|
||||
# [languages.it.params]
|
||||
# homeSubtitle = "CHANGE ME"
|
||||
# weight = 3
|
||||
|
||||
languageCode = "en-us"
|
||||
|
||||
# title = "CHANGE ME"
|
||||
# enableGitInfo = true
|
||||
|
||||
pygmentsCodefences = true
|
||||
pygmentsUseClasses = true
|
||||
#hasCJKLanguage = true
|
||||
|
||||
rssLimit = 10
|
||||
|
||||
copyright = "CHANGE ME"
|
||||
enableEmoji = true
|
||||
|
||||
# googleAnalytics = "UA-123-45"
|
||||
# disqusShortname = "CHANGE ME"
|
||||
|
||||
[params.author]
|
||||
name = "CHANGE SITE AUTHOR"
|
||||
about = "CHANGE SITE AUTHOR ABOUT"
|
||||
|
||||
[blackfriday]
|
||||
# hrefTargetBlank = true
|
||||
# noreferrerLinks = true
|
||||
# nofollowLinks = true
|
||||
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
# Categories are disabled by default.
|
||||
|
||||
[params]
|
||||
dateform = "Jan 2, 2006"
|
||||
dateformShort = "2. Jan"
|
||||
dateformNum = "2006-01-02"
|
||||
dateformNumTime = "2006-01-02 15:04 -0700"
|
||||
|
||||
# description = "CHANGE ME SITE DESCRIPTION"
|
||||
# images = [""]
|
||||
themeColor = "#494f5c"
|
||||
|
||||
homeSubtitle = "CHANGE ME HOME SUBTITLE"
|
||||
footerCopyright = "CHANGE ME FOOTER COPYRIGHT"
|
||||
# bgImg = ""
|
||||
# gitUrl = "https://github.com/1bl4z3r/hermit-V2/tree/staging"
|
||||
|
||||
justifyContent = false
|
||||
|
||||
relatedPosts = true
|
||||
code_copy_button = true
|
||||
|
||||
homeSubtitlePrinter = true
|
||||
scrollToTop = true
|
||||
global_mathjax = false
|
||||
readTime = true
|
||||
readTimeSeparator = "CHANGE ME READ TIME"
|
||||
# legacyLayout = false
|
||||
shareSocial = true
|
||||
|
||||
[[params.socialLinks]]
|
||||
name = "mastodon"
|
||||
url = "https://joinmastodon.org/"
|
||||
|
||||
[[params.socialLinks]]
|
||||
name = "x"
|
||||
url = "https://twitter.com/"
|
||||
|
||||
[[params.socialLinks]]
|
||||
name = "github"
|
||||
url = "https://github.com/natems"
|
||||
|
||||
[menu]
|
||||
|
||||
[[menu.main]]
|
||||
name = "Blog"
|
||||
url = "blog/"
|
||||
weight = 10
|
||||
|
||||
[[menu.main]]
|
||||
name = "About"
|
||||
url = "about-hugo/"
|
||||
weight = 20
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
baseURL = 'https://salloum.ch/'
|
||||
languageCode = 'en-us'
|
||||
title = 'Personal Blog'
|
||||
theme = 'hermit-v2'
|
||||
129
hugo.toml
|
|
@ -1,4 +1,127 @@
|
|||
baseURL = 'https://blog.salloum.ch/'
|
||||
title = "Awesome Hugo blog"
|
||||
baseURL = 'https://salloum.ch'
|
||||
|
||||
# This is what goes in <html lang="">
|
||||
languageCode = 'en-us'
|
||||
title = 'Personal Blog'
|
||||
theme = 'ananke'
|
||||
|
||||
theme = "hugo-blog-awesome"
|
||||
|
||||
# This defines how dates are formatted
|
||||
defaultContentLanguage = "en-gb"
|
||||
|
||||
# To enable Google Analytics 4 (gtag.js) provide G-MEASUREMENT_ID below.
|
||||
# To disable Google Analytics, simply leave the field empty or remove the next line
|
||||
# googleAnalytics = '' # G-MEASUREMENT_ID
|
||||
|
||||
# Enable emojis globally
|
||||
enableEmoji = true
|
||||
ignoreErrors = ["additional-script-loading-error"] # ignore error of loading additional scripts.
|
||||
|
||||
# To enable Disqus comments, provide Disqus Shortname below.
|
||||
# To disable Disqus comments, simply leave the field empty or remove the next line
|
||||
disqusShortname = ''
|
||||
|
||||
# set markup.highlight.noClasses=false to enable code highlight
|
||||
[markup]
|
||||
[markup.highlight]
|
||||
noClasses = false
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true
|
||||
[markup.tableOfContents]
|
||||
startLevel = 2 # ToC starts from H2
|
||||
endLevel = 4 # ToC ends at H4
|
||||
ordered = false # generates <ul> instead of <ol>
|
||||
|
||||
############################## English language ################################
|
||||
[Languages.en-gb]
|
||||
languageName = "English"
|
||||
languageCode = "en-gb"
|
||||
contentDir = "content"
|
||||
weight = 1
|
||||
|
||||
[Languages.en-gb.menu]
|
||||
[[Languages.en-gb.menu.main]]
|
||||
# The page reference (pageRef) is useful for menu highlighting
|
||||
# When pageRef is set, setting `url` is optional; it will be used as a fallback if the page is not found.
|
||||
pageRef="/"
|
||||
name = 'Home'
|
||||
url = '/'
|
||||
weight = 10
|
||||
[[Languages.en-gb.menu.main]]
|
||||
pageRef="blog"
|
||||
name = 'Blog'
|
||||
url = '/blog/'
|
||||
weight = 20
|
||||
[[Languages.en-gb.menu.main]]
|
||||
pageRef="travel"
|
||||
name = 'Travel'
|
||||
url = '/travel/'
|
||||
weight = 30
|
||||
# [[Languages.en-gb.menu.main]]
|
||||
# pageRef="cyclingtour"
|
||||
# name = '2021 Cycling Tour'
|
||||
# url = '/blog/travel/2021-cycling-tour'
|
||||
# weight = 20
|
||||
# [[Languages.en-gb.menu.main]]
|
||||
# pageRef="blog"
|
||||
# name = 'Blog'
|
||||
# url = '/blog/'
|
||||
# weight = 20
|
||||
[[Languages.en-gb.menu.main]]
|
||||
pageRef="about"
|
||||
name = 'About'
|
||||
url = '/pages/about/'
|
||||
weight = 40
|
||||
|
||||
[Languages.en-gb.params]
|
||||
sitename = "Nadim Salloum | salloum.ch"
|
||||
defaultColor = "auto" # set color mode: dark, light, auto
|
||||
# Setting it to 'auto' applies the color scheme based on the visitor's device color preference.If you don't specify anything, ignore this parameter, or leave it blank,
|
||||
# the default value is set to 'auto'.
|
||||
# You can take a look at layouts/index.html for more information.
|
||||
description = "Minimal Hugo blog theme with light and dark mode support"
|
||||
mainSections = ['post']
|
||||
toc = false # set to false to disable table of contents 'globally'
|
||||
tocOpen = false # set to true to open table of contents by default
|
||||
goToTop = true # set to false to disable 'go to top' button
|
||||
additionalScripts = ['js/custom.js', 'js/custom-2.js']
|
||||
# Will try to load 'assets/js/custom.js' and 'assets/js/custom-2.js'.
|
||||
# Your custom scripts will be concatinated to one file `custom.js`.
|
||||
# When building for production it will be minified.
|
||||
# The file `custom.js` is loaded on each page (before body tag ends).
|
||||
dateFormat = "" # date format used to show dates on various pages. If nothing is specified, then "2 Jan 2006" format is used.
|
||||
# See https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference for available date formats.
|
||||
rssFeedDescription = "full" # available options: 1) summary 2) full
|
||||
# summary - includes a short summary of the blog post in the RSS feed. Generated using Hugo .Summary .
|
||||
# full - includes full blog post in the RSS feed. Generated using Hugo .Content .
|
||||
# By default (or if nothing is specified), summary is used.
|
||||
|
||||
[Languages.en-gb.params.author]
|
||||
avatar = "avatar.jpg" # put the file in assets folder; also ensure that image has same height and width
|
||||
# Note: image is not rendered if the resource(avatar image) is not found. No error is displayed.
|
||||
intro = "Nadim Salloum"
|
||||
name = "Salloum Nadim"
|
||||
description = "Personal Site & Blog"
|
||||
|
||||
# Allow to override webmanifest options
|
||||
[Languages.en-gb.params.webmanifest]
|
||||
name = "sitename" # will use "params.sitename" or "title" by default
|
||||
short_name = "sitename" # same as name
|
||||
start_url = "/" # will use homepage url by default
|
||||
theme_color = "#434648" # default is "#434648" (base color of text). Also will override html `<meta name="theme-color" />`
|
||||
background_color = "#fff" # by default depend on "params.defaultColor" for "light" or "auto" will be set to "#fff" for dark will be "#131418" (color of dark mode background)
|
||||
display = "standalone"
|
||||
|
||||
###################################################################
|
||||
|
||||
# Allow to override `browserconfig.xml` params (configuration for windows embeded browsers)
|
||||
[params.browserconfig]
|
||||
TileColor = "#2d89ef" # default windows 10 blue tile color
|
||||
|
||||
[[params.socialIcons]]
|
||||
name = "github"
|
||||
url = "https://github.com/natems"
|
||||
|
||||
[[params.socialIcons]]
|
||||
name = "Rss"
|
||||
url = "index.xml"
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
{"Target":"style.min.9bd04d0fad85388343088ec85e9afd787ea003e72914d7f57df39c17ab2e7173.css","MediaType":"text/css","Data":{"Integrity":"sha256-m9BND62FOINDCI7IXpr9eH6gA+cpFNf1ffOcF6sucXM="}}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"Target":"css/style.min.42f85ce2ba32392de4db82f5dd047903f1c639376710fe92fc00782f6ff3a2d8.css","MediaType":"text/css","Data":{"Integrity":"sha256-Qvhc4royOS3k24L13QR5A/HGOTdnEP6S/AB4L2/zotg="}}
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>TinaCMS</title>
|
||||
</head>
|
||||
|
||||
<!-- if development -->
|
||||
<script type="module">
|
||||
import RefreshRuntime from 'http://localhost:4001/@react-refresh'
|
||||
RefreshRuntime.injectIntoGlobalHook(window)
|
||||
window.$RefreshReg$ = () => {}
|
||||
window.$RefreshSig$ = () => (type) => type
|
||||
window.__vite_plugin_react_preamble_installed__ = true
|
||||
</script>
|
||||
<script type="module" src="http://localhost:4001/@vite/client"></script>
|
||||
<script>
|
||||
function handleLoadError() {
|
||||
// Assets have failed to load
|
||||
document.getElementById('root').innerHTML = '<style type="text/css"> #no-assets-placeholder body { font-family: sans-serif; font-size: 16px; line-height: 1.4; color: #333; background-color: #f5f5f5; } #no-assets-placeholder { max-width: 600px; margin: 0 auto; padding: 40px; text-align: center; background-color: #fff; box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1); } #no-assets-placeholder h1 { font-size: 24px; margin-bottom: 20px; } #no-assets-placeholder p { margin-bottom: 10px; } #no-assets-placeholder a { color: #0077cc; text-decoration: none; } #no-assets-placeholder a:hover { text-decoration: underline; } </style> <div id="no-assets-placeholder"> <h1>Failed loading TinaCMS assets</h1> <p> Your TinaCMS configuration may be misconfigured, and we could not load the assets for this page. </p> <p> Please visit <a href="https://tina.io/docs/tina-cloud/faq/#how-do-i-resolve-failed-loading-tinacms-assets-error">this doc</a> for help. </p> </div> </div>';
|
||||
}
|
||||
</script>
|
||||
<script
|
||||
type="module"
|
||||
src="http://localhost:4001/src/main.tsx"
|
||||
onerror="handleLoadError()"
|
||||
></script>
|
||||
<body class="tina-tailwind">
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit c6cbddfcd8ea9a4c4df4d98cdcc802fd4b3a5dd2
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
# Set the Node.js version you want to use. You can change this in docker-compose.yml.
|
||||
ARG NODE_VERSION=18
|
||||
# Use the base image for Node.js development from Microsoft's repository.
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${NODE_VERSION}
|
||||
|
||||
# Choose between 'hugo' (standard) or 'hugo_extended' (extended) version of Hugo.
|
||||
ARG VARIANT=hugo_extended
|
||||
# Choose either 'latest' or a specific version number for Hugo.
|
||||
ARG VERSION=latest
|
||||
|
||||
# Install necessary tools and dependencies, and download Hugo.
|
||||
# Download and extract the specified version of Hugo.
|
||||
# Move Hugo executable to /usr/bin/ to make it globally accessible.
|
||||
RUN apt-get update && apt-get install -y ca-certificates openssl git curl && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
case ${VERSION} in \
|
||||
latest) \
|
||||
export VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') ;;\
|
||||
esac && \
|
||||
echo ${VERSION} && \
|
||||
wget -O ${VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${VERSION}/${VARIANT}_${VERSION}_Linux-64bit.tar.gz && \
|
||||
tar xf ${VERSION}.tar.gz && \
|
||||
mv hugo /usr/bin/hugo
|
||||
|
||||
# Expose the port that the Hugo development server will use.
|
||||
EXPOSE 1313
|
||||
|
||||
# [Optional] Uncomment this section to install additional OS packages you may want.
|
||||
#
|
||||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
||||
|
||||
# [Optional] Uncomment if you want to install more global Node.js packages.
|
||||
# RUN sudo -u node npm install -g <your-package-list-here>
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
||||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.3/containers/hugo
|
||||
{
|
||||
"name": "Hugo (Community)",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile",
|
||||
"args": {
|
||||
// Update VARIANT to pick hugo variant.
|
||||
// Example variants: hugo, hugo_extended
|
||||
// Rebuild the container if it already exists to update.
|
||||
"VARIANT": "hugo_extended",
|
||||
// Update VERSION to pick a specific hugo version.
|
||||
// Example versions: latest, 0.73.0, 0,71.1
|
||||
// Rebuild the container if it already exists to update.
|
||||
"VERSION": "latest",
|
||||
// Update NODE_VERSION to pick the Node.js version
|
||||
"NODE_VERSION": "18",
|
||||
}
|
||||
},
|
||||
|
||||
"customizations": {
|
||||
// Configure properties specific to VS Code.
|
||||
// See https://containers.dev/supporting#visual-studio-code for more details
|
||||
"vscode": {
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {
|
||||
"html.format.templating": true,
|
||||
},
|
||||
// Add the IDs of extensions you want installed when the container is created.
|
||||
"extensions": [
|
||||
"tamasfe.even-better-toml",
|
||||
"davidanson.vscode-markdownlint",
|
||||
"budparr.language-hugo-vscode",
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
"forwardPorts": [
|
||||
1313
|
||||
],
|
||||
|
||||
// Use 'postAttachCommand' to run each time a tool has successfully attached to the container.
|
||||
// Note that, postCreateCommand, postStartCommand, postAttachCommand, and initializeCommand all have 3 types:
|
||||
// Array: Passed to the OS for execution without going through a shell
|
||||
// String: Goes through a shell (it needs to be parsed into command and arguments)
|
||||
// Object: All lifecycle scripts have been extended to support object types to allow for parallel execution
|
||||
// See https://containers.dev/implementors/json_reference/#formatting-string-vs-array-properties for more details.
|
||||
// The following line uses string format.
|
||||
"postAttachCommand": "echo 🌲 Git version: $(git --version) && echo 🌲 Hugo version: $(hugo version) && echo 🌲 Node.js version: $(node -v) && echo 🌲 Golang version: $(go version)",
|
||||
|
||||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||
"remoteUser": "node",
|
||||
"features": {
|
||||
"golang": "latest"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# https://editorconfig.org
|
||||
|
||||
# Declare this as the top-level EditorConfig file
|
||||
root = true
|
||||
|
||||
# Set defaults (applicable for all files)
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
# [*.md]
|
||||
# trim_trailing_whitespace = false
|
||||
|
|
@ -0,0 +1,85 @@
|
|||
# Common settings that generally should always be used with your language specific settings
|
||||
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
#
|
||||
# The above will handle all files NOT mentioned below
|
||||
#
|
||||
|
||||
# Documents
|
||||
*.bibtex text diff=bibtex
|
||||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
||||
*.md text diff=markdown
|
||||
*.mdx text diff=markdown
|
||||
*.tex text diff=tex
|
||||
*.adoc text
|
||||
*.textile text
|
||||
*.mustache text
|
||||
*.csv text eol=crlf
|
||||
*.tab text
|
||||
*.tsv text
|
||||
*.txt text
|
||||
*.sql text
|
||||
*.epub diff=astextplain
|
||||
|
||||
# Graphics
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.jpeg binary
|
||||
*.gif binary
|
||||
*.tif binary
|
||||
*.tiff binary
|
||||
*.ico binary
|
||||
# SVG treated as text by default.
|
||||
*.svg text
|
||||
# If you want to treat it as binary,
|
||||
# use the following line instead.
|
||||
# *.svg binary
|
||||
*.eps binary
|
||||
|
||||
# Scripts
|
||||
*.bash text eol=lf
|
||||
*.fish text eol=lf
|
||||
*.sh text eol=lf
|
||||
*.zsh text eol=lf
|
||||
# These are explicitly windows files and should use crlf
|
||||
*.bat text eol=crlf
|
||||
*.cmd text eol=crlf
|
||||
*.ps1 text eol=crlf
|
||||
|
||||
# Serialisation
|
||||
*.json text
|
||||
*.toml text
|
||||
*.xml text
|
||||
*.yaml text
|
||||
*.yml text
|
||||
|
||||
# Archives
|
||||
*.7z binary
|
||||
*.gz binary
|
||||
*.tar binary
|
||||
*.tgz binary
|
||||
*.zip binary
|
||||
|
||||
# Text files where line endings should be preserved
|
||||
*.patch -text
|
||||
|
||||
#
|
||||
# /////////Exclude files from exporting////////
|
||||
# You can tell Git not to export certain files or directories when generating an archive.
|
||||
# If there is a subdirectory or file that you don’t want to include in your archive file but that,
|
||||
# you do want checked into your project, you can determine those files via the export-ignore attribute.
|
||||
|
||||
# .gitattributes export-ignore
|
||||
# .gitignore export-ignore
|
||||
# .gitkeep export-ignore
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
# These are supported funding model platforms
|
||||
|
||||
# github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
# patreon: # Replace with a single Patreon username
|
||||
# open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: sidharth
|
||||
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
# liberapay: # Replace with a single Liberapay username
|
||||
# issuehunt: # Replace with a single IssueHunt username
|
||||
# otechie: # Replace with a single Otechie username
|
||||
# lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Report a bug to help us improve.
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**Steps to reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Device information**
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. firefox, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Questions or support
|
||||
url: https://github.com/hugo-sid/hugo-blog-awesome/discussions/
|
||||
about: Please use Discussions to ask and answer questions.
|
||||
- name: Feature request
|
||||
url: https://github.com/hugo-sid/hugo-blog-awesome/discussions/categories/feature-requests
|
||||
about: Please use the feature requests section in GitHub discussions to propose new features or ideas.
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
name: New blank issue
|
||||
about: Use this to mention anything other than bug report.
|
||||
title: ""
|
||||
labels: ""
|
||||
assignees: ""
|
||||
---
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<!--
|
||||
|
||||
## Read this before opening a PR.
|
||||
|
||||
Thank you for contributing to hugo-blog-awesome!
|
||||
Please fill out the following questions to make it easier for us to review your
|
||||
changes. Neither you need to answer all questions nor you have to check all the boxes below.
|
||||
|
||||
-->
|
||||
|
||||
|
||||
## What problem does this PR solve?
|
||||
|
||||
<!--
|
||||
A small description of the fix.
|
||||
-->
|
||||
|
||||
## Is this PR adding a new feature?
|
||||
|
||||
<!--
|
||||
A small description of the feature.
|
||||
-->
|
||||
|
||||
## Is this PR related to any issue or discussion?
|
||||
|
||||
<!--
|
||||
Provide link(s) to any relevant issue or discussion post here.
|
||||
|
||||
If this PR resolves an existing issue (say issue number 1), write "Closes #1" in your pull request description (not in title) so that the issue is closed automatically when this PR is merged.
|
||||
-->
|
||||
|
||||
|
||||
## PR Checklist
|
||||
|
||||
- [ ] I have verified that the code works as described/as intended.
|
||||
- [ ] This change adds a social icon which has a permissive license to use it.
|
||||
- [ ] This change **does not** include any external library/resources.
|
||||
- [ ] This change **does not** include any unrelated scripts (e.g. bash and python scripts).
|
||||
- [ ] I have enabled [maintainer edits for this PR](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork).
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
name: "Pull Request auto-label"
|
||||
|
||||
on:
|
||||
# Including 'on push' trigger, so that PRs touching the same files as push are checked for conflicts.
|
||||
# PR can be rebased (against main brnach) to resolve conflicts.
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request_target:
|
||||
types: [ opened, synchronize ]
|
||||
|
||||
jobs:
|
||||
conflicts:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Update PRs with conflict labels
|
||||
uses: eps1lon/actions-label-merge-conflict@fd1f295ee7443d13745804bc49fe158e240f6c6e # releases/2.1.0
|
||||
with:
|
||||
dirtyLabel: "conflicts"
|
||||
#removeOnDirtyLabel: "PR: ready to ship"
|
||||
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
||||
commentOnDirty: "This pull request has conflicts with the base branch, please resolve those so that we can review the pull request."
|
||||
commentOnClean: "Conflicts have been resolved! 🎉 A maintainer will soon review the pull request."
|
||||
|
||||
size:
|
||||
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: codelytv/pr-size-labeler@54ef36785e9f4cb5ecf1949cfc9b00dbb621d761 # v1.8.1
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
xs_label: 'size/xs'
|
||||
xs_max_size: 35
|
||||
s_label: 'size/s'
|
||||
s_max_size: 75
|
||||
m_label: 'size/m'
|
||||
m_max_size: 150
|
||||
l_label: 'size/l'
|
||||
l_max_size: 300
|
||||
xl_label: 'size/xl'
|
||||
message_if_xl: >
|
||||
This PR exceeds the recommended size of 300 lines (counting both additions & deletions).
|
||||
Kindly ensure that you are NOT addressing multiple issues in one PR.
|
||||
We recommend you to create atomic PRs which focus on a single change.
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
name: Create release PR
|
||||
|
||||
jobs:
|
||||
release-please:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: google-github-actions/release-please-action@ca6063f4ed81b55db15b8c42d1b6f7925866342d # v3.7.11
|
||||
with:
|
||||
release-type: simple
|
||||
token: ${{ secrets.HBA_RELEASE_PLEASE_TOKEN }}
|
||||
pull-request-header: ":rocket: New release"
|
||||
changelog-types: '[{"type":"feat","section":":sparkles: Features","hidden":false},{"type":"fix","section":":bug: Bug Fixes","hidden":false},{"type":"chore","section":":hammer: Housekeeping","hidden":false},{"type":"docs","section":":memo: Documentation","hidden":false},{"type":"ci","section":":construction_worker: CI/CD","hidden":false},{"type":"perf","section":":zap: Performance","hidden":false},{"type":"refactor","section":":recycle: Refactoring","hidden":false},{"type":"style","section":":art: Style","hidden":false},{"type":"test","section":":white_check_mark: Tests","hidden":false}]'
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
# This workflow uses actions that are not certified by GitHub. They are provided
|
||||
# by a third-party and are governed by separate terms of service, privacy
|
||||
# policy, and support documentation.
|
||||
|
||||
name: Scorecard supply-chain security
|
||||
on:
|
||||
# For Branch-Protection check. Only the default branch is supported. See
|
||||
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
|
||||
branch_protection_rule:
|
||||
# To guarantee Maintained check is occasionally updated. See
|
||||
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
|
||||
schedule:
|
||||
- cron: '25 10 * * 3'
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
# Declare default permissions as read only.
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
analysis:
|
||||
name: Scorecard analysis
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
# Needed to upload the results to code-scanning dashboard.
|
||||
security-events: write
|
||||
# Needed to publish results and get a badge (see publish_results below).
|
||||
id-token: write
|
||||
# Uncomment the permissions below if installing in a private repository.
|
||||
# contents: read
|
||||
# actions: read
|
||||
|
||||
steps:
|
||||
- name: "Checkout code"
|
||||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: "Run analysis"
|
||||
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
|
||||
with:
|
||||
results_file: results.sarif
|
||||
results_format: sarif
|
||||
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
|
||||
# - you want to enable the Branch-Protection check on a *public* repository, or
|
||||
# - you are installing Scorecard on a *private* repository
|
||||
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
|
||||
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
|
||||
|
||||
# Public repositories:
|
||||
# - Publish results to OpenSSF REST API for easy access by consumers
|
||||
# - Allows the repository to include the Scorecard badge.
|
||||
# - See https://github.com/ossf/scorecard-action#publishing-results.
|
||||
# For private repositories:
|
||||
# - `publish_results` will always be set to `false`, regardless
|
||||
# of the value entered here.
|
||||
publish_results: true
|
||||
|
||||
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
|
||||
# format to the repository Actions tab.
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
|
||||
with:
|
||||
name: SARIF file
|
||||
path: results.sarif
|
||||
retention-days: 5
|
||||
|
||||
# Upload the results to GitHub's code scanning dashboard.
|
||||
- name: "Upload to code-scanning"
|
||||
uses: github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
|
||||
with:
|
||||
sarif_file: results.sarif
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
|
||||
#
|
||||
# You can adjust the behavior by modifying this file.
|
||||
# For more information, see:
|
||||
# https://github.com/actions/stale
|
||||
name: Mark stale issues and pull requests
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '31 22 * * *'
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
days-before-issue-stale: 10
|
||||
days-before-pr-stale: 10
|
||||
days-before-close: 7
|
||||
stale-issue-message: 'This issue has been marked stale due to inactivity. It will auto-close in 7 days without an update.'
|
||||
close-issue-message: 'This issue was auto-closed due to inactivity.'
|
||||
stale-pr-message: 'This pull request has been marked stale due to inactivity. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.'
|
||||
close-pr-message: 'This pull request was auto-closed due to inactivity.'
|
||||
exempt-all-assignees: true
|
||||
exempt-issue-labels: accepted
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
.hugo_build.lock
|
||||
exampleSite/resources/
|
||||
exampleSite/.hugo_build.lock
|
||||
|
|
@ -0,0 +1,452 @@
|
|||
# Changelog
|
||||
|
||||
## [1.12.0](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.11.0...v1.12.0) (2023-10-31)
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* add parameter to open ToC globally or in frontmatter of post ([#138](https://github.com/hugo-sid/hugo-blog-awesome/issues/138)) ([a6ece0e](https://github.com/hugo-sid/hugo-blog-awesome/commit/a6ece0e3804b1b98cc29f359169de03c14f0e980))
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* improve accessibility of language selector ([#131](https://github.com/hugo-sid/hugo-blog-awesome/issues/131)) ([5f52bb2](https://github.com/hugo-sid/hugo-blog-awesome/commit/5f52bb241503fea11b33b3b1376378accb9024f1))
|
||||
|
||||
|
||||
### :construction_worker: CI/CD
|
||||
|
||||
* update GitHub access token for release please ([#134](https://github.com/hugo-sid/hugo-blog-awesome/issues/134)) ([94f92a6](https://github.com/hugo-sid/hugo-blog-awesome/commit/94f92a6cf3acb756b2a3c89fb908b7f2b05ba0f1))
|
||||
|
||||
## [1.11.0](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.10.0...v1.11.0) (2023-09-25)
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* add multilingual mode (websites with multiple languages side by side) ([#127](https://github.com/hugo-sid/hugo-blog-awesome/issues/127)) ([b7644e2](https://github.com/hugo-sid/hugo-blog-awesome/commit/b7644e2cf1c112ee85a1e8d889f48e8f739802db))
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* hugo error when dateFormat parameter is not set, closes [#128](https://github.com/hugo-sid/hugo-blog-awesome/issues/128) ([730ced7](https://github.com/hugo-sid/hugo-blog-awesome/commit/730ced7716e909d904ba058a2748f3eeb77a431e))
|
||||
* ToC setting bug, closes [#120](https://github.com/hugo-sid/hugo-blog-awesome/issues/120) ([cb695b1](https://github.com/hugo-sid/hugo-blog-awesome/commit/cb695b19d8bf3be30cd61029bd28e3f86f9af9b5))
|
||||
|
||||
|
||||
### :hammer: Housekeeping
|
||||
|
||||
* add link, fix typo in readme ([ab16ba1](https://github.com/hugo-sid/hugo-blog-awesome/commit/ab16ba14b3bfbf365c86ae151241fef3f9b16292))
|
||||
* add rel='noopener' for external link ([6c767d1](https://github.com/hugo-sid/hugo-blog-awesome/commit/6c767d167d28febcc1971c5f0b8bb7ea1f7d0af5))
|
||||
* fix typo in `README.md` ([46147ae](https://github.com/hugo-sid/hugo-blog-awesome/commit/46147ae8348c1a517b0cd3361ab73d246377d601))
|
||||
* modify footer branding text ([41e6f8e](https://github.com/hugo-sid/hugo-blog-awesome/commit/41e6f8e8342a776356d75bef737da86d7fb58aad))
|
||||
* update bug report issue template ([923ddfd](https://github.com/hugo-sid/hugo-blog-awesome/commit/923ddfd4de684c0637ad11440035b9c06c87f480))
|
||||
* update links in `README.md` [skip ci] ([e414a38](https://github.com/hugo-sid/hugo-blog-awesome/commit/e414a382069efe7065365eed347bff2836621c16))
|
||||
* update note ([59d4b68](https://github.com/hugo-sid/hugo-blog-awesome/commit/59d4b6810226a0aef25b52b72e3f44fc79b994cc))
|
||||
|
||||
|
||||
### :memo: Documentation
|
||||
|
||||
* add docs for setting ToC ([b0ffc61](https://github.com/hugo-sid/hugo-blog-awesome/commit/b0ffc61be6e7369b875586e9b3a3e54549509620))
|
||||
* add documentation regarding default date format ([97ccc77](https://github.com/hugo-sid/hugo-blog-awesome/commit/97ccc77bf81c0d2b00184a9287cb59b1837950b5))
|
||||
|
||||
|
||||
### :construction_worker: CI/CD
|
||||
|
||||
* pin third-party GitHub actions by hash ([#119](https://github.com/hugo-sid/hugo-blog-awesome/issues/119)) ([218ea44](https://github.com/hugo-sid/hugo-blog-awesome/commit/218ea44a1a66e0c9a9ab0b5764576ba4fa92bc03))
|
||||
|
||||
## [1.10.0](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.9.0...v1.10.0) (2023-09-18)
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* **RSS:** add support for full post content in RSS feed, closes [#109](https://github.com/hugo-sid/hugo-blog-awesome/issues/109) ([b7a4e4c](https://github.com/hugo-sid/hugo-blog-awesome/commit/b7a4e4cca192258135d2645b5d87a82fa31d9255))
|
||||
|
||||
|
||||
### :hammer: Housekeeping
|
||||
|
||||
* **README:** update list of websites using this theme ([#116](https://github.com/hugo-sid/hugo-blog-awesome/issues/116)) ([deffb2c](https://github.com/hugo-sid/hugo-blog-awesome/commit/deffb2ce703c981e06177f877a6d3bc9eb69364d))
|
||||
|
||||
|
||||
### :construction_worker: CI/CD
|
||||
|
||||
* update Hugo version for Netlify builds ([aa7630b](https://github.com/hugo-sid/hugo-blog-awesome/commit/aa7630b4295384b3ecddb14f826dbd1ab1535c52))
|
||||
|
||||
## [1.9.0](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.8.0...v1.9.0) (2023-09-13)
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* add support for custom date formatting ([09a204c](https://github.com/hugo-sid/hugo-blog-awesome/commit/09a204cebca09bc76bc76abebb856b2eb27c010c))
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* logo not displaying in readme, closes [#106](https://github.com/hugo-sid/hugo-blog-awesome/issues/106), PR ([#107](https://github.com/hugo-sid/hugo-blog-awesome/issues/107)) ([7042eaf](https://github.com/hugo-sid/hugo-blog-awesome/commit/7042eaf4d5df7e2be70ddce44db2f658f5af75af))
|
||||
|
||||
|
||||
### :hammer: Housekeeping
|
||||
|
||||
* update list of websites using this theme ([#110](https://github.com/hugo-sid/hugo-blog-awesome/issues/110)) ([366a762](https://github.com/hugo-sid/hugo-blog-awesome/commit/366a76299d6daebd1d8fd31fc05897d9b5a52a74))
|
||||
* update post title ([e0abd99](https://github.com/hugo-sid/hugo-blog-awesome/commit/e0abd993c32bc7381fc4942d6565baa1bc6ba087))
|
||||
|
||||
## [1.8.0](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.7.0...v1.8.0) (2023-08-26)
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* include `_custom.scss` to facilitate quick and simple CSS adjustments, closes [#93](https://github.com/hugo-sid/hugo-blog-awesome/issues/93) ([#104](https://github.com/hugo-sid/hugo-blog-awesome/issues/104)) ([c95d4e7](https://github.com/hugo-sid/hugo-blog-awesome/commit/c95d4e79e95d6dcdc273d472e23911bb5e110854))
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* avatar with transparent bg is always black closes [#92](https://github.com/hugo-sid/hugo-blog-awesome/issues/92) ([a64bffd](https://github.com/hugo-sid/hugo-blog-awesome/commit/a64bffdcf4659eea145263808ed25ea0e43ce700))
|
||||
|
||||
|
||||
### :hammer: Housekeeping
|
||||
|
||||
* **README:** update logo alt text ([#105](https://github.com/hugo-sid/hugo-blog-awesome/issues/105)) ([67f6473](https://github.com/hugo-sid/hugo-blog-awesome/commit/67f6473c56e2b0ce5e8a40b875c72232b56b0e95))
|
||||
|
||||
## [1.7.0](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.6.0...v1.7.0) (2023-08-26)
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* add config for Dev containers ([#102](https://github.com/hugo-sid/hugo-blog-awesome/issues/102)) ([fb4ebca](https://github.com/hugo-sid/hugo-blog-awesome/commit/fb4ebca661c75d24145307b70bf95e8956bd21df))
|
||||
* add social icon for Nostr ([#100](https://github.com/hugo-sid/hugo-blog-awesome/issues/100)) ([eb20024](https://github.com/hugo-sid/hugo-blog-awesome/commit/eb200246e13484e06da65320be59ddc3466000fe))
|
||||
|
||||
## [1.6.0](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.5.3...v1.6.0) (2023-08-21)
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* add IRC and health icon ([#96](https://github.com/hugo-sid/hugo-blog-awesome/issues/96)) ([beb30ce](https://github.com/hugo-sid/hugo-blog-awesome/commit/beb30ceadcba1a5872c2df95402373ea3dc44aa3))
|
||||
* add support for x.com logo/icon ([#91](https://github.com/hugo-sid/hugo-blog-awesome/issues/91)) ([20c2ea8](https://github.com/hugo-sid/hugo-blog-awesome/commit/20c2ea89287bcd1d5c5129cd0d4cfc3dcb0e9356))
|
||||
|
||||
## [1.5.3](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.5.2...v1.5.3) (2023-07-28)
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* bold font on active menu item ([#88](https://github.com/hugo-sid/hugo-blog-awesome/issues/88)) ([88cfd5d](https://github.com/hugo-sid/hugo-blog-awesome/commit/88cfd5dfd097b9c43ea4a91351ee8c739d318862))
|
||||
|
||||
## [1.5.2](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.5.1...v1.5.2) (2023-07-26)
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* allow setting default theme(color mode) in no-script browsers closes [#50](https://github.com/hugo-sid/hugo-blog-awesome/issues/50) (PR [#85](https://github.com/hugo-sid/hugo-blog-awesome/issues/85)) ([970bdd9](https://github.com/hugo-sid/hugo-blog-awesome/commit/970bdd9f85b3ad2641bb26724f0b2eb7515c570b))
|
||||
* change `fadein` keyframe value from 0.8 to 1 (for opacity 100%) ([#86](https://github.com/hugo-sid/hugo-blog-awesome/issues/86)) ([79a3101](https://github.com/hugo-sid/hugo-blog-awesome/commit/79a31018c35e9991c50ddce435e1c2ed129ffa0b))
|
||||
|
||||
## [1.5.1](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.5.0...v1.5.1) (2023-07-12)
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* make specifying date optional ([#83](https://github.com/hugo-sid/hugo-blog-awesome/issues/83)) ([864f523](https://github.com/hugo-sid/hugo-blog-awesome/commit/864f523143b35b65e64a2b85182b1a269451da5a))
|
||||
|
||||
## [1.5.0](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.4.2...v1.5.0) (2023-07-12)
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* update favicons ([#81](https://github.com/hugo-sid/hugo-blog-awesome/issues/81)) ([c3d2f26](https://github.com/hugo-sid/hugo-blog-awesome/commit/c3d2f260c38cadf2052d7f355167ae8aab3ba01b))
|
||||
|
||||
|
||||
### :hammer: Housekeeping
|
||||
|
||||
* update logo ([#79](https://github.com/hugo-sid/hugo-blog-awesome/issues/79)) ([d8dfc4d](https://github.com/hugo-sid/hugo-blog-awesome/commit/d8dfc4dfc299d65a84a287cd623fdaa95ee342ed))
|
||||
* update README.md - add contributors ([#82](https://github.com/hugo-sid/hugo-blog-awesome/issues/82)) ([677f465](https://github.com/hugo-sid/hugo-blog-awesome/commit/677f4652e9dcdbc90275dcbeab448893e6121a71))
|
||||
|
||||
## [1.4.2](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.4.1...v1.4.2) (2023-06-26)
|
||||
|
||||
|
||||
### :hammer: Housekeeping
|
||||
|
||||
* update list of websites using this theme ([#73](https://github.com/hugo-sid/hugo-blog-awesome/issues/73)) ([de04339](https://github.com/hugo-sid/hugo-blog-awesome/commit/de04339aca28087969821b04ccf349dfc56c9449))
|
||||
|
||||
## [1.4.1](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.4.0...v1.4.1) (2023-06-23)
|
||||
|
||||
|
||||
### :hammer: Housekeeping
|
||||
|
||||
* add bskdany.com to readme ([#71](https://github.com/hugo-sid/hugo-blog-awesome/issues/71)) ([d4a0889](https://github.com/hugo-sid/hugo-blog-awesome/commit/d4a08891d5c5b1598f3b57fe15ade331f94e8fdb))
|
||||
|
||||
## [1.4.0](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.3.0...v1.4.0) (2023-06-21)
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* deprecated Twitter post format ([#67](https://github.com/hugo-sid/hugo-blog-awesome/issues/67)) ([8968732](https://github.com/hugo-sid/hugo-blog-awesome/commit/8968732dd0bda3b4995ba40b34dec168be1767e7))
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* add forgejo icon ([#69](https://github.com/hugo-sid/hugo-blog-awesome/issues/69)) ([468682a](https://github.com/hugo-sid/hugo-blog-awesome/commit/468682aee873f03a0ebf2564d79ec05731590c2d))
|
||||
|
||||
## [1.3.0](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.2.7...v1.3.0) (2023-06-19)
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* **ui:** add link hover transition ([112c59b](https://github.com/hugo-sid/hugo-blog-awesome/commit/112c59b991be66ca1dc247125af2991b14f57b5b))
|
||||
|
||||
## [1.2.7](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.2.6...v1.2.7) (2023-06-19)
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* move tableOfContents to appropriate section in `config.toml` file ([#64](https://github.com/hugo-sid/hugo-blog-awesome/issues/64)) ([aa199ce](https://github.com/hugo-sid/hugo-blog-awesome/commit/aa199ceffff6a46cb75e1b440245a37cbddd4702))
|
||||
|
||||
## [1.2.6](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.2.5...v1.2.6) (2023-06-16)
|
||||
|
||||
|
||||
### :hammer: Housekeeping
|
||||
|
||||
* **README:** update list of websites using this theme ([#61](https://github.com/hugo-sid/hugo-blog-awesome/issues/61)) ([c29df07](https://github.com/hugo-sid/hugo-blog-awesome/commit/c29df070326dd93894c8a2edd1ebdd84521420e1))
|
||||
|
||||
## [1.2.5](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.2.4...v1.2.5) (2023-06-15)
|
||||
|
||||
|
||||
### :hammer: Housekeeping
|
||||
|
||||
* **README:** add websites using this theme ([#60](https://github.com/hugo-sid/hugo-blog-awesome/issues/60)) ([109b200](https://github.com/hugo-sid/hugo-blog-awesome/commit/109b2007bad4ebc5cb2e45f8fb0c82eaad5484dd))
|
||||
* **README:** add yukizr.com to the list of websites using this theme ([#57](https://github.com/hugo-sid/hugo-blog-awesome/issues/57)) ([42e9b95](https://github.com/hugo-sid/hugo-blog-awesome/commit/42e9b95868c90bf263a0c7622adcffe1ef57cc4a))
|
||||
|
||||
## [1.2.4](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.2.3...v1.2.4) (2023-06-08)
|
||||
|
||||
|
||||
### :construction_worker: CI/CD
|
||||
|
||||
* setup OpenSSF scorecard ([23b9c0d](https://github.com/hugo-sid/hugo-blog-awesome/commit/23b9c0d04a20aa4633e3bcdd8fe0fa8661dd433a))
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* resolve theme toggle race condition ([#55](https://github.com/hugo-sid/hugo-blog-awesome/issues/55)) ([1c41cce](https://github.com/hugo-sid/hugo-blog-awesome/commit/1c41cce98eb22bd3fbdfe1a2423f29aa09debb34))
|
||||
|
||||
## [1.2.3](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.2.2...v1.2.3) (2023-05-25)
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* inline code not being stylized in list items ([#52](https://github.com/hugo-sid/hugo-blog-awesome/issues/52)) ([2585ddb](https://github.com/hugo-sid/hugo-blog-awesome/commit/2585ddb39c3a98bb7612a21ffa8f6bf1965de704))
|
||||
|
||||
## [1.2.2](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.2.1...v1.2.2) (2023-05-21)
|
||||
|
||||
|
||||
### :recycle: Refactoring
|
||||
|
||||
* refactor JS ([#39](https://github.com/hugo-sid/hugo-blog-awesome/issues/39)) ([9d9f2bc](https://github.com/hugo-sid/hugo-blog-awesome/commit/9d9f2bc46589f017dbfca714380bcc017de5ea49))
|
||||
|
||||
|
||||
### :construction_worker: CI/CD
|
||||
|
||||
* increase PR labeler warning limit ([e5f4bf8](https://github.com/hugo-sid/hugo-blog-awesome/commit/e5f4bf8241edf0bac70b3cf326025f5e66f06893))
|
||||
|
||||
## [1.2.1](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.2.0...v1.2.1) (2023-05-16)
|
||||
|
||||
|
||||
### :memo: Documentation
|
||||
|
||||
* update instructions for adding favicon ([4438214](https://github.com/hugo-sid/hugo-blog-awesome/commit/4438214567c515feeabaa61204c4c3b1c1f0da02))
|
||||
|
||||
|
||||
### :hammer: Housekeeping
|
||||
|
||||
* **ci:** add comments for GitHub action workflow trigger ([4e83639](https://github.com/hugo-sid/hugo-blog-awesome/commit/4e83639c42cec577c8e592a6dbc930b296348ffc))
|
||||
* **ci:** change emojis used in changelog ([2514abd](https://github.com/hugo-sid/hugo-blog-awesome/commit/2514abdb6e5274167509a892b10244f336fff290))
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* baseURL variable on See all posts button ([#38](https://github.com/hugo-sid/hugo-blog-awesome/issues/38)) ([6e12b25](https://github.com/hugo-sid/hugo-blog-awesome/commit/6e12b25c988a9770d954451ecb8cef848436408a))
|
||||
|
||||
## [1.2.0](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.1.2...v1.2.0) (2023-05-10)
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* add support for comments ([#44](https://github.com/hugo-sid/hugo-blog-awesome/issues/44)) ([685ebf6](https://github.com/hugo-sid/hugo-blog-awesome/commit/685ebf62bdfd8d1fc3f9add78a6aa2b5190eacfb))
|
||||
|
||||
|
||||
### :hammer: Miscellaneous
|
||||
|
||||
* **repo:** add info regarding changelog ([82eee54](https://github.com/hugo-sid/hugo-blog-awesome/commit/82eee5423fc9ca1bbef0e784ebc87548a7f866f9))
|
||||
* **repo:** update CONTRIBUTING.md ([4abd77b](https://github.com/hugo-sid/hugo-blog-awesome/commit/4abd77b2f573ac593246a7cd35539979e1e63055))
|
||||
* **repo:** update README.md ([225237f](https://github.com/hugo-sid/hugo-blog-awesome/commit/225237f69fd292bd10d5ffc6a9fc342734120dfc))
|
||||
|
||||
## [1.1.2](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.1.1...v1.1.2) (2023-05-09)
|
||||
|
||||
|
||||
### :construction_worker: CI/CD
|
||||
|
||||
* add stale sction ([154883e](https://github.com/hugo-sid/hugo-blog-awesome/commit/154883ed2851861f090988a7fdd826cf1fe99f20))
|
||||
|
||||
## [1.1.1](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.1.0...v1.1.1) (2023-05-05)
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* handle relative non-root baseURL ([#25](https://github.com/hugo-sid/hugo-blog-awesome/issues/25)) ([058560e](https://github.com/hugo-sid/hugo-blog-awesome/commit/058560ec08252295acd10385d8c5db5302dff9e9))
|
||||
|
||||
## [1.1.0](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.0.2...v1.1.0) (2023-05-04)
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* add go to top button ([#34](https://github.com/hugo-sid/hugo-blog-awesome/issues/34)) ([170da4f](https://github.com/hugo-sid/hugo-blog-awesome/commit/170da4f84038a764e90fc5e006dab6018a5adbe2))
|
||||
|
||||
## [1.0.2](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.0.1...v1.0.2) (2023-05-04)
|
||||
|
||||
|
||||
### :hammer: Miscellaneous
|
||||
|
||||
* remove custom funding link ([b914ca1](https://github.com/hugo-sid/hugo-blog-awesome/commit/b914ca1a904b2a15aa7381f4de280328611b853f))
|
||||
|
||||
|
||||
### :recycle: Refactoring
|
||||
|
||||
* fix Markdown formatting ([1343d9c](https://github.com/hugo-sid/hugo-blog-awesome/commit/1343d9cd1e7419a11bc6583472e04e85e6decff9))
|
||||
* fix typo ([550de8b](https://github.com/hugo-sid/hugo-blog-awesome/commit/550de8bb840e35d869d6f73be32faeb1182225c1))
|
||||
* format code as per .editorconfig rules ([7bd4021](https://github.com/hugo-sid/hugo-blog-awesome/commit/7bd40210d5d0d2b85def44a6652a791304261f8a))
|
||||
* format scss file ([ba07ef9](https://github.com/hugo-sid/hugo-blog-awesome/commit/ba07ef94f1baa69c0d630bcebaa6072862ecd9ce))
|
||||
* improve comment ([6fb74c7](https://github.com/hugo-sid/hugo-blog-awesome/commit/6fb74c791fc0dda8f2e556a6540193109d1a460e))
|
||||
* manage ToC styles in separate scss file ([f18f133](https://github.com/hugo-sid/hugo-blog-awesome/commit/f18f13376cbe58ad5cfc3cebd78f50bce177bc05))
|
||||
|
||||
## [1.0.1](https://github.com/hugo-sid/hugo-blog-awesome/compare/v1.0.0...v1.0.1) (2023-05-03)
|
||||
|
||||
|
||||
### :construction_worker: CI/CD
|
||||
|
||||
* include style, test, refactor commits in changelog ([7cc8174](https://github.com/hugo-sid/hugo-blog-awesome/commit/7cc8174bf3eb473a443a811a0a89e669bf0de52c))
|
||||
|
||||
|
||||
### :recycle: Refactoring
|
||||
|
||||
* remove space at EOL ([3db832c](https://github.com/hugo-sid/hugo-blog-awesome/commit/3db832cb57ca89b416ea774d1820b36e3fdcd8f3))
|
||||
|
||||
|
||||
### :hammer: Miscellaneous
|
||||
|
||||
* **maintenance:** update contribution guidelines ([c1cf69c](https://github.com/hugo-sid/hugo-blog-awesome/commit/c1cf69c1c0a8d939b281714cdb9a9bd6638a5470))
|
||||
* merge branch 'main' of hugo-sid/hugo-blog-awesome ([1e21fce](https://github.com/hugo-sid/hugo-blog-awesome/commit/1e21fce1d1c224b78ac6f021107db270db6fc49c))
|
||||
|
||||
## 1.0.0 (2023-05-02)
|
||||
|
||||
|
||||
### :zap: Performance
|
||||
|
||||
* resize and convert avatar image to webp ([e558c0b](https://github.com/hugo-sid/hugo-blog-awesome/commit/e558c0bb0123a39fd3e29a733273d6066136071f))
|
||||
|
||||
|
||||
### :sparkles: Features
|
||||
|
||||
* add automatic dark and light mode detection ([#26](https://github.com/hugo-sid/hugo-blog-awesome/issues/26)) ([cfa6ca6](https://github.com/hugo-sid/hugo-blog-awesome/commit/cfa6ca6b5b41bc4f0138787bc1a9a4ef89d942be))
|
||||
* add date on blog list page ([#6](https://github.com/hugo-sid/hugo-blog-awesome/issues/6)) ([b6d1495](https://github.com/hugo-sid/hugo-blog-awesome/commit/b6d14958a134182d073798180bfd24d672366d89))
|
||||
* add repo visit counter ([fc55f17](https://github.com/hugo-sid/hugo-blog-awesome/commit/fc55f17603827f95179769490ba3b6f7af64e861))
|
||||
* add styles for abbr, sub, sup, kbd, mark HTML elements(tags) ([5efbd28](https://github.com/hugo-sid/hugo-blog-awesome/commit/5efbd2834bf425b91591779e96588d781e378326))
|
||||
* add support for Google analytics ([19bdd10](https://github.com/hugo-sid/hugo-blog-awesome/commit/19bdd103b050864413c998e0e1dd2e47b79e37db))
|
||||
* add table of content ([5d7c93b](https://github.com/hugo-sid/hugo-blog-awesome/commit/5d7c93bf0acb42c9378304d3daa70154e282299b))
|
||||
* change color of svgs & add hover effect ([bd24d0e](https://github.com/hugo-sid/hugo-blog-awesome/commit/bd24d0ee9d32d097e02d8f72fad05a614d78ca87))
|
||||
* enable KaTeX rendering with additional delimiters ([#19](https://github.com/hugo-sid/hugo-blog-awesome/issues/19)) ([eac6563](https://github.com/hugo-sid/hugo-blog-awesome/commit/eac6563d448b138b4b07f05b87ebdcab0a60da21))
|
||||
* enforce code formatting with .editorconfig ([025de05](https://github.com/hugo-sid/hugo-blog-awesome/commit/025de050967546c5af1c205cd1bd2d158f0abe11))
|
||||
* **favicons:** add support and docs for favicons ([9cb14af](https://github.com/hugo-sid/hugo-blog-awesome/commit/9cb14af7acf77e81c1344adf0eb2be3388686c61))
|
||||
* illustrate use of images in a leaf bundle directory ([a2888c9](https://github.com/hugo-sid/hugo-blog-awesome/commit/a2888c989383eea9b3c1a0fec2f52e73c2d58fa3))
|
||||
* **repo:** add stars history ([6a5b20e](https://github.com/hugo-sid/hugo-blog-awesome/commit/6a5b20eac87b47cbff4d46d9e642773e3dd2fc82))
|
||||
* setup PR labeler GitHub action ([f245613](https://github.com/hugo-sid/hugo-blog-awesome/commit/f245613caf8212d0bbfe3d0041ba7da18fec6af6))
|
||||
* **ui:** add support for emoji ([f5a0718](https://github.com/hugo-sid/hugo-blog-awesome/commit/f5a07184be533763b5818f462f1a87e60a97facc))
|
||||
* use config.toml to manage footer links & svgs ([b9fbdad](https://github.com/hugo-sid/hugo-blog-awesome/commit/b9fbdad8b3949b0672226387d18873c415597de9))
|
||||
* use hugo `dateFormat` function to show localized date string based on `defaultContentLanguage` ([#20](https://github.com/hugo-sid/hugo-blog-awesome/issues/20)) ([64195d2](https://github.com/hugo-sid/hugo-blog-awesome/commit/64195d2e5b785999e8fb8517f05e7e0f839416e9))
|
||||
|
||||
|
||||
### :memo: Documentation
|
||||
|
||||
* add docs for enabling table of content ([c0824e3](https://github.com/hugo-sid/hugo-blog-awesome/commit/c0824e31f21d8ee1acb84493f11ebec9bc2040ac))
|
||||
* add documentation for new color scheme options ([ab263dd](https://github.com/hugo-sid/hugo-blog-awesome/commit/ab263ddb8e76c8042731c31ca1c24341a3c6c9b9))
|
||||
* add list of supported social icons ([ef30262](https://github.com/hugo-sid/hugo-blog-awesome/commit/ef30262f366354003ccaf63b194b49fa0a0630ac))
|
||||
* add more info on social icons ([2612e5a](https://github.com/hugo-sid/hugo-blog-awesome/commit/2612e5af585da699b09479f59f66ac598dce8776))
|
||||
* remove word 'link' to avoid any confusion ([7deb83c](https://github.com/hugo-sid/hugo-blog-awesome/commit/7deb83c95832c37b687cabf5b31d778120b6bd9e))
|
||||
|
||||
|
||||
### :hammer: Miscellaneous
|
||||
|
||||
* add .gitattributes ([85ea4f2](https://github.com/hugo-sid/hugo-blog-awesome/commit/85ea4f209869695e1bc286f569ee0a04c2e051e9))
|
||||
* add info about theme ([515a25d](https://github.com/hugo-sid/hugo-blog-awesome/commit/515a25db0114c6a7b8736ba85e1597d63cb34728))
|
||||
* add lang attribute to HTML ([b3df60d](https://github.com/hugo-sid/hugo-blog-awesome/commit/b3df60d7c3623563952eed2f20ca469d0e7c5396))
|
||||
* add lang attribute to HTML ([ac8257c](https://github.com/hugo-sid/hugo-blog-awesome/commit/ac8257ce2507a36addee6df978d789d6f8a05542))
|
||||
* add list of websites using this theme ([ce9f89b](https://github.com/hugo-sid/hugo-blog-awesome/commit/ce9f89bda93816cc284561c9e4a5e30d389b830a))
|
||||
* add more info about theme ([e6cef51](https://github.com/hugo-sid/hugo-blog-awesome/commit/e6cef512e9022ce33748bc79585445b526b389e0))
|
||||
* add more info about theme ([c3f37cd](https://github.com/hugo-sid/hugo-blog-awesome/commit/c3f37cd8270dab89e4f6fcf575a9e5b3144b6fb6))
|
||||
* add more support methods ([d8fe3f9](https://github.com/hugo-sid/hugo-blog-awesome/commit/d8fe3f95df32b6bc2aa257d4dd81e033071ee23d))
|
||||
* add morre info on Hugo extended version ([0f12641](https://github.com/hugo-sid/hugo-blog-awesome/commit/0f1264192bca484a5f9a7f65848dde52c3b325ed))
|
||||
* add padding to year on listpage ([d7118b1](https://github.com/hugo-sid/hugo-blog-awesome/commit/d7118b1ee05359df599df1bd6715ff1197ca1093))
|
||||
* add screenshot and thumbnail ([44e53f6](https://github.com/hugo-sid/hugo-blog-awesome/commit/44e53f67ea5f35ce290eaa9776db092441d50acb))
|
||||
* align items to center in flexbox ([031aa94](https://github.com/hugo-sid/hugo-blog-awesome/commit/031aa941d51b10ecb4a0dc8a7259bea25d17e336))
|
||||
* change demo url ([054c26f](https://github.com/hugo-sid/hugo-blog-awesome/commit/054c26fdae3cb07c7eb78b163254d8144070d868))
|
||||
* change post title ([594687d](https://github.com/hugo-sid/hugo-blog-awesome/commit/594687de182088ace08fcbfd457725f5d143741e))
|
||||
* **CONTRIBUTING.md:** fix spelling mistake ([c77726c](https://github.com/hugo-sid/hugo-blog-awesome/commit/c77726c6abe898fbaa242247989808c7fe2fbc9e))
|
||||
* create CODE_OF_CONDUCT.md ([639a287](https://github.com/hugo-sid/hugo-blog-awesome/commit/639a2871183d345653c49be1a825f44325dfee4c))
|
||||
* fix grammatical errors in PULL_REQUEST_TEMPLATE.md ([a2c1ad7](https://github.com/hugo-sid/hugo-blog-awesome/commit/a2c1ad73d60c413565d12c005e9c3df382948d65))
|
||||
* **image:** specify height and width ([6464c5d](https://github.com/hugo-sid/hugo-blog-awesome/commit/6464c5d5f082a81f88c61623e340c6479bf0393a))
|
||||
* improvements for math page ([#22](https://github.com/hugo-sid/hugo-blog-awesome/issues/22)) ([1ad6eea](https://github.com/hugo-sid/hugo-blog-awesome/commit/1ad6eea797742dd1aa00c20331035ba4da8fe5cb))
|
||||
* initial commit ([526932b](https://github.com/hugo-sid/hugo-blog-awesome/commit/526932b5294bf40806911b7db97beefc21aa8d6d))
|
||||
* lint Markdown files ([b25cd46](https://github.com/hugo-sid/hugo-blog-awesome/commit/b25cd465bae85f54c98182e4b7b724d1a353c485))
|
||||
* make details toggle more accessible ([566475b](https://github.com/hugo-sid/hugo-blog-awesome/commit/566475b32ab4114a9b6bd0f1bd234993d82ca720))
|
||||
* modify repo visit counter ([66bd9b0](https://github.com/hugo-sid/hugo-blog-awesome/commit/66bd9b015c9d02f9b453088f338b32cae2aa17a7))
|
||||
* modify ToC style ([872b187](https://github.com/hugo-sid/hugo-blog-awesome/commit/872b1877c142e798e9844d267dfb3f8d00f6b7b2))
|
||||
* normalize all the line endings ([04b83b1](https://github.com/hugo-sid/hugo-blog-awesome/commit/04b83b18b32dbe384c9d5c7f8cc0dc4ee8411293))
|
||||
* **readme:** add link to contribution guideline ([dca0a53](https://github.com/hugo-sid/hugo-blog-awesome/commit/dca0a53a1ae9853158875bd7e61dc280c7522eba))
|
||||
* **readme:** add more info about theme ([d8870b3](https://github.com/hugo-sid/hugo-blog-awesome/commit/d8870b39cd1cf9f4262965ea052cd66b02f8238a))
|
||||
* **readme:** add support section ([5fd98c7](https://github.com/hugo-sid/hugo-blog-awesome/commit/5fd98c76ff8b0f13fbcd03e1bb192877b73c803e))
|
||||
* **readme:** fix spelling mistake ([d821b22](https://github.com/hugo-sid/hugo-blog-awesome/commit/d821b229384ec077d923f253778b41e97d653189))
|
||||
* **readme:** make statement about Hugo extended version more clear ([491430a](https://github.com/hugo-sid/hugo-blog-awesome/commit/491430a1ea55c6b353c2ab8358eb7b52fc03ad45))
|
||||
* **readme:** privacy checker url ([7e09732](https://github.com/hugo-sid/hugo-blog-awesome/commit/7e097324bcc6894b865b8958cb9b902f42beebda))
|
||||
* remove resources folder & generated assets ([86d2d44](https://github.com/hugo-sid/hugo-blog-awesome/commit/86d2d44ed771b9998e5fd083ef2ce018e8e3b207))
|
||||
* rename Markdown files ([26d5f8f](https://github.com/hugo-sid/hugo-blog-awesome/commit/26d5f8f51baf98357bec5ba2c775b98179fa67f1))
|
||||
* **repo:** add more sections to issue template ([eb0747b](https://github.com/hugo-sid/hugo-blog-awesome/commit/eb0747ba1e4517c46b67526d9926a698b4d01596))
|
||||
* **repo:** add pull request template ([133de72](https://github.com/hugo-sid/hugo-blog-awesome/commit/133de723a430e8911a59a18f66189e7b3fbf1211))
|
||||
* **repo:** create CONTRIBUTING.md ([9ed22ae](https://github.com/hugo-sid/hugo-blog-awesome/commit/9ed22ae831b2af124e036f73d5aa6cf98b008a03))
|
||||
* **repo:** create issue templates ([d2607bd](https://github.com/hugo-sid/hugo-blog-awesome/commit/d2607bdc2a2512f28b43c3c07e47bc62a36b47f6))
|
||||
* **repo:** improve contributing guidelines ([d194898](https://github.com/hugo-sid/hugo-blog-awesome/commit/d1948989816ab2df9338db0c94675ce5712d2a3a))
|
||||
* **repo:** improve pull request template ([dc5ed1d](https://github.com/hugo-sid/hugo-blog-awesome/commit/dc5ed1d96cf8bd28f969da457d8d6a6430d74e15))
|
||||
* **repo:** improve pull request template ([07e2ef2](https://github.com/hugo-sid/hugo-blog-awesome/commit/07e2ef216dd6889136483aabfbedd8843d747d48))
|
||||
* **repo:** improvise issue templates ([2979973](https://github.com/hugo-sid/hugo-blog-awesome/commit/29799735c037ac49acc1916bd27df185d7e50d85))
|
||||
* **repo:** improvise issue templates ([c2edf7b](https://github.com/hugo-sid/hugo-blog-awesome/commit/c2edf7b9ac99d86bec84e16a438fd759b8af89b5))
|
||||
* saving files before refreshing line endings ([1cddbee](https://github.com/hugo-sid/hugo-blog-awesome/commit/1cddbee043dff42f69a74a89fb1440348a4b7eda))
|
||||
* **UI:** change focus color ([3d324a2](https://github.com/hugo-sid/hugo-blog-awesome/commit/3d324a25a302485d5cc72521ca14cbf5c5a8e127))
|
||||
* update baseurl ([bcb0483](https://github.com/hugo-sid/hugo-blog-awesome/commit/bcb04838dcd72bd5ab7edbf57b2c022efc973097))
|
||||
* update credits ([e4c71b6](https://github.com/hugo-sid/hugo-blog-awesome/commit/e4c71b6e0c553376ec6648b9a0b666ed4c1baa77))
|
||||
* update links related to pagespeed ([321adad](https://github.com/hugo-sid/hugo-blog-awesome/commit/321adad3dd84dd5a55a74bde2cf38788d468d5a3))
|
||||
* update math-typesetting.md ([#21](https://github.com/hugo-sid/hugo-blog-awesome/issues/21)) ([b2fcfc5](https://github.com/hugo-sid/hugo-blog-awesome/commit/b2fcfc5da79621969554f48d0b75b3ba11128b1f))
|
||||
* update readme ([18f9a0f](https://github.com/hugo-sid/hugo-blog-awesome/commit/18f9a0f0e8c21f5093bc5ce751cd1204171cca17))
|
||||
* update screenshots ([7f35679](https://github.com/hugo-sid/hugo-blog-awesome/commit/7f35679e23c66a6dc4fd519002623ed5bb733ec6))
|
||||
* update theme info ([0a40494](https://github.com/hugo-sid/hugo-blog-awesome/commit/0a40494dd42ca2452a876599d2cb2ed9f6343ec5))
|
||||
* update websites using this theme ([fd3d59c](https://github.com/hugo-sid/hugo-blog-awesome/commit/fd3d59c4c9fc0f291d275cc4de17b32098e6c121))
|
||||
* use postcard partial on listpage ([dc83c3e](https://github.com/hugo-sid/hugo-blog-awesome/commit/dc83c3ea90a66597c7994b7ac73dd4301c493c1e))
|
||||
* use symantic HTML - <time> tag instead of <p> or <span> ([5ce5e25](https://github.com/hugo-sid/hugo-blog-awesome/commit/5ce5e25e30784565665779b5b7d7d31768c542ee))
|
||||
|
||||
|
||||
### :bug: Bug Fixes
|
||||
|
||||
* add title for homepage ([89e35ff](https://github.com/hugo-sid/hugo-blog-awesome/commit/89e35ff2f71b868f6d1af2e07ddb482c53209e9c))
|
||||
* change baseURL to hba.sid.one ([d0ed717](https://github.com/hugo-sid/hugo-blog-awesome/commit/d0ed71798c3bd5f0ed795237564d03266f51f132))
|
||||
* **CI:** fix pr-labeler GitHub action ([3618655](https://github.com/hugo-sid/hugo-blog-awesome/commit/36186552efe196420270be1a810f5c363d96c9e6))
|
||||
* **CI:** Netlify non-deployment issue ([8427b9d](https://github.com/hugo-sid/hugo-blog-awesome/commit/8427b9d60e26034ac82745b8e690a488c6663f64))
|
||||
* **CI:** Netlify non-deployment issue ([918c84a](https://github.com/hugo-sid/hugo-blog-awesome/commit/918c84a1075eebc22cd15e2aa0653200b9667414))
|
||||
* **CI:** Netlify publish dir ([db63f5c](https://github.com/hugo-sid/hugo-blog-awesome/commit/db63f5c31d09eda4c7f1ea92e35a34043f938c9e))
|
||||
* **ci:** use Netlify `$DEPLOY_PRIME_URL` as `baseURL` for deploy previews ([64bfa09](https://github.com/hugo-sid/hugo-blog-awesome/commit/64bfa099743ca3cb1d3359d11ced5db0ab3678b1))
|
||||
* fix 404 page layout on small screens ([a9c1130](https://github.com/hugo-sid/hugo-blog-awesome/commit/a9c1130e46fe111ab8292c0eefcf45c83f4c890e))
|
||||
* fix abbr tag style ([f103396](https://github.com/hugo-sid/hugo-blog-awesome/commit/f103396409631b6e39183f16bafb5bb65108dd5c))
|
||||
* fix links and 404 page style ([#24](https://github.com/hugo-sid/hugo-blog-awesome/issues/24)) ([2e78155](https://github.com/hugo-sid/hugo-blog-awesome/commit/2e78155aa52ddeeb59207f4d575932d46abb89d0))
|
||||
* **html:** add href for <a> tag ([fc936ae](https://github.com/hugo-sid/hugo-blog-awesome/commit/fc936ae1374e11f9e3447acff73dae69d4eeb889))
|
||||
* link to license in readme ([91e0cd9](https://github.com/hugo-sid/hugo-blog-awesome/commit/91e0cd972c2c2f6c061c9c0ddd00712fbf7f0c69))
|
||||
* meta description ([340bd14](https://github.com/hugo-sid/hugo-blog-awesome/commit/340bd14a97dc9665d1b9d0749b9aa54be72690e5))
|
||||
* recent posts on home page is not correctly filtered ([#23](https://github.com/hugo-sid/hugo-blog-awesome/issues/23)) ([4afdfcb](https://github.com/hugo-sid/hugo-blog-awesome/commit/4afdfcbb47a302395929c3cf015f6b705978e48f))
|
||||
* stretched image ([87c7756](https://github.com/hugo-sid/hugo-blog-awesome/commit/87c775645a5b002e9c9c4e5e0581e11e87f78d54))
|
||||
* stretched image ([#3](https://github.com/hugo-sid/hugo-blog-awesome/issues/3)) ([5eb9b07](https://github.com/hugo-sid/hugo-blog-awesome/commit/5eb9b07e569fb04080d13a47c5cce4557f36a0f5))
|
||||
* template failure in bio.html when avatar is not found/defined ([#15](https://github.com/hugo-sid/hugo-blog-awesome/issues/15)) ([295c8a1](https://github.com/hugo-sid/hugo-blog-awesome/commit/295c8a13cdf3f5e928cbc1275dc19e053585d232))
|
||||
* theme name ([58d6bae](https://github.com/hugo-sid/hugo-blog-awesome/commit/58d6bae8e0cdb296f784d5494386931e39c93e8e))
|
||||
|
||||
|
||||
### :construction_worker: CI/CD
|
||||
|
||||
* setup CI based release ([6b68d1e](https://github.com/hugo-sid/hugo-blog-awesome/commit/6b68d1eb9ed83c8fab13bbb3b284b542e28de98d))
|
||||
* use GitHub PAT ([f2d98c8](https://github.com/hugo-sid/hugo-blog-awesome/commit/f2d98c8245a38a297855aff158979a4064e0b35c))
|
||||
|
|
@ -0,0 +1,128 @@
|
|||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
We as members, contributors, and leaders pledge to make participation in our
|
||||
community a harassment-free experience for everyone, regardless of age, body
|
||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||
identity and expression, level of experience, education, socio-economic status,
|
||||
nationality, personal appearance, race, religion, or sexual identity
|
||||
and orientation.
|
||||
|
||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||
diverse, inclusive, and healthy community.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
* Demonstrating empathy and kindness toward other people
|
||||
* Being respectful of differing opinions, viewpoints, and experiences
|
||||
* Giving and gracefully accepting constructive feedback
|
||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
and learning from the experience
|
||||
* Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
* The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or email
|
||||
address, without their explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
|
||||
Community leaders are responsible for clarifying and enforcing our standards of
|
||||
acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
|
||||
Community leaders have the right and responsibility to remove, edit, or reject
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||
decisions when appropriate.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies within all community spaces, and also applies when
|
||||
an individual is officially representing the community in public spaces.
|
||||
Examples of representing our community include using an official e-mail address,
|
||||
posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported to the community leaders responsible for enforcement at
|
||||
.
|
||||
All complaints will be reviewed and investigated promptly and fairly.
|
||||
|
||||
All community leaders are obligated to respect the privacy and security of the
|
||||
reporter of any incident.
|
||||
|
||||
## Enforcement Guidelines
|
||||
|
||||
Community leaders will follow these Community Impact Guidelines in determining
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from community leaders, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
### 2. Warning
|
||||
|
||||
**Community Impact**: A violation through a single incident or series
|
||||
of actions.
|
||||
|
||||
**Consequence**: A warning with consequences for continued behavior. No
|
||||
interaction with the people involved, including unsolicited interaction with
|
||||
those enforcing the Code of Conduct, for a specified period of time. This
|
||||
includes avoiding interactions in community spaces as well as external channels
|
||||
like social media. Violating these terms may lead to a temporary or
|
||||
permanent ban.
|
||||
|
||||
### 3. Temporary Ban
|
||||
|
||||
**Community Impact**: A serious violation of community standards, including
|
||||
sustained inappropriate behavior.
|
||||
|
||||
**Consequence**: A temporary ban from any sort of interaction or public
|
||||
communication with the community for a specified period of time. No public or
|
||||
private interaction with the people involved, including unsolicited interaction
|
||||
with those enforcing the Code of Conduct, is allowed during this period.
|
||||
Violating these terms may lead to a permanent ban.
|
||||
|
||||
### 4. Permanent Ban
|
||||
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
the community.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 2.0, available at
|
||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||
|
||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||
enforcement ladder](https://github.com/mozilla/diversity).
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see the FAQ at
|
||||
https://www.contributor-covenant.org/faq. Translations are available at
|
||||
https://www.contributor-covenant.org/translations.
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
# Welcome to contribution guidelines
|
||||
|
||||
Thank you for taking time to contribute to Hugo blog awesome!
|
||||
|
||||
Following the contribution guidelines helps both owners and contributors. The guidelines save time and hassle caused by improperly created pull requests or issues that might have to be rejected and re-submitted.
|
||||
|
||||
## When to use issues?
|
||||
|
||||
We prefer to use issues for reporting real 'issues' or bugs. For feature requests you can visit the [feature request section](https://github.com/hugo-sid/hugo-blog-awesome/discussions/categories/feature-requests) of Discussions and start a new thread.
|
||||
For questions you can visit [Q&A section](https://github.com/hugo-sid/hugo-blog-awesome/discussions/categories/q-a) of Discussions.
|
||||
|
||||
## Pull requests (PR)
|
||||
|
||||
- Please ensure that you have filled answers to as many questions as applicable, while creating a PR.
|
||||
- We recommend you to create atomic PRs which focus on a single change.
|
||||
- We do recommend PRs to not exceed 200 lines (includes additions and deletions) of code.
|
||||
- Kindly ensure that you are **NOT** addressing multiple issues in one PR.
|
||||
|
||||
## Commits
|
||||
|
||||
This project adheres to [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/).
|
||||
|
||||
## Releases
|
||||
|
||||
We use [Semantic Versioning](https://semver.org/) for releases.
|
||||
|
||||
## Changelog
|
||||
|
||||
You don't have to edit the `CHANGELOG.md` file. The changelong is auto generated. A GitHub action workflow is in place, which:
|
||||
|
||||
- analyses the commits (from last release)
|
||||
- determines the version to bump (it's doable since this project adheres to conventional commit specification)
|
||||
- updates the changelog
|
||||
- creates a git tag corresponding to the version
|
||||
|
||||
Finally it creates a PR with the above changes. So, there is no manual editing required.
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2023 Sidharth R.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
|
@ -0,0 +1,267 @@
|
|||
<div align=center>
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/main/assets/icons/book-icon-dark.svg">
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/main/assets/icons/book-icon-light.svg">
|
||||
<img alt="Hugo blog awesome logo" src="https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/feat/logo-change/assets/icons/book-icon-light.svg" />
|
||||
</picture>
|
||||
|
||||
</div>
|
||||
<h1 align=center> Hugo Blog Awesome | <a href="https://hba.sid.one" target="_blank" rel="nofollow">Demo link</a></h1>
|
||||
|
||||
<h4 align=center>⚡ Fast | 📰 Clean UI | 🌙 Dark mode support | 📱 Responsive design </h4>
|
||||
|
||||
## Screenshots
|
||||
|
||||
| Dark mode | Light mode |
|
||||
| --- | --- |
|
||||
|  |  |
|
||||
|
||||
<details>
|
||||
<summary>Page speed score (click to expand)</summary>
|
||||
|
||||

|
||||
|
||||
The result shown above was last confirmed on September 23, 2023. You can check the details of the PageSpeed test at this link: [Link to the analysis](https://pagespeed.web.dev/analysis/https-hba-sid-one/uh4rm91hnj?form_factor=mobile). You can also do a live [PageSpeed test](https://pagespeed.web.dev/analysis?url=https://hba.sid.one/) of the [demo website](https://hba.sid.one) now.
|
||||
|
||||
</details>
|
||||
|
||||
## Features
|
||||
|
||||
- Minimal design
|
||||
- Light and dark mode
|
||||
- Syntax highlighting
|
||||
- RSS feed
|
||||
- No jQuery, no Bootstrap
|
||||
- 100/100 Google PageSpeed Insights [score](https://pagespeed.web.dev/analysis/https-hba-sid-one/uh4rm91hnj?form_factor=mobile) on all 4 metrics
|
||||
|
||||
## Why this theme?
|
||||
|
||||
Hugo Blog Awesome (HBA) is a theme crafted to capture your readers' attention.
|
||||
|
||||
Additionally, it's fast, [privacy-conscious](https://themarkup.org/blacklight?url=hba.sid.one), and comes with no external dependencies. That's right. There are no Google fonts, icon packs, or JavaScript frameworks. No trackers or ads to bloat your website.
|
||||
|
||||
Its focus on minimalism and clean UI ensures that your content takes the spotlight. This, coupled with the support for dark mode, provides a stress-free (on the eyes) reading experience for your audience.
|
||||
|
||||
Built with Hugo, SCSS, and vanilla JavaScript.
|
||||
|
||||
## Setup
|
||||
|
||||
> **Note**
|
||||
> You must have the [Hugo extended version](https://gohugo.io/installation/linux/#editions) installed in order to use this theme. This theme uses SCSS for styling. With the Hugo extended version, SCSS can be compiled to CSS without any additional tools.
|
||||
|
||||
To create a new Hugo site with this theme, run the following command:
|
||||
|
||||
hugo new site myblog
|
||||
|
||||
Then, clone this repository into the `themes` directory of your new site:
|
||||
|
||||
cd myblog
|
||||
git clone https://github.com/hugo-sid/hugo-blog-awesome.git themes/hugo-blog-awesome
|
||||
|
||||
To preview the theme with example content, run the following command from the `exampleSite` directory:
|
||||
|
||||
hugo server --themesDir ../..
|
||||
|
||||
## Usage
|
||||
|
||||
To use this theme, set the `theme` variable in your site's `config.toml` to `hugo-blog-awesome`:
|
||||
|
||||
theme = "hugo-blog-awesome"
|
||||
|
||||
## Configuration
|
||||
|
||||
You can take a look at the `config.toml` file in the `exampleSite` directory for an example configuration.
|
||||
It is recommended that you copy the `config.toml` file from the `exampleSite` directory to the root directory of your Hugo site. You can then edit the `config.toml` file to suit your needs.
|
||||
|
||||
### Adding favicon
|
||||
|
||||
I used [realfavicongenerator.net](https://realfavicongenerator.net/) to generate the favicons. You can place the resulting files in the `assets\icons` folder. That should get your favicon working.
|
||||
|
||||
If you want to customize anything further, you can modify `layouts\partials\head.html`.
|
||||
|
||||
### Adding Social icons
|
||||
|
||||
Social icons can be added by congifuring `config.toml` file in the following manner.
|
||||
|
||||
```toml
|
||||
[[params.socialIcons]]
|
||||
name = "github"
|
||||
url = "https://github.com/hugo-sid"
|
||||
|
||||
[[params.socialIcons]]
|
||||
name = "twitter"
|
||||
url = "https://twitter.com"
|
||||
|
||||
[[params.socialIcons]]
|
||||
name = "Rss"
|
||||
url = "index.xml"
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>List of available icons (click to expand)</summary>
|
||||
|
||||
| Name | Platform |
|
||||
| --------------- | ------------------------------- |
|
||||
| `123rf` | 123rf.com |
|
||||
| `adobestock` | stock.adobe.com |
|
||||
| `applemusic` | music.apple.com |
|
||||
| `behance` | behance.net |
|
||||
| `bilibili` | bilibili.com |
|
||||
| `bitcoin` | - |
|
||||
| `buymeacoffee` | buymeacoffee.com |
|
||||
| `codepen` | codepen.io |
|
||||
| `cryptohack` | cryptohack.org |
|
||||
| `ctftime` | ctftime.org |
|
||||
| `cv` | - |
|
||||
| `deezer` | deezer.com |
|
||||
| `dev` | dev.to |
|
||||
| `discogs` | discogs.com |
|
||||
| `discord` | discord.com |
|
||||
| `dreamstime` | dreamstime.com |
|
||||
| `dribbble` | dribbble.com |
|
||||
| `email` | - |
|
||||
| `facebook` | facebook.com |
|
||||
| `flickr` | flickr.com |
|
||||
| `freepik` | freepik.com |
|
||||
| `gitea` | gitea.io |
|
||||
| `github` | github.com |
|
||||
| `gitlab` | gitlab.com |
|
||||
| `goodreads` | goodreads.com |
|
||||
| `googlescholar` | scholar.google.com |
|
||||
| `guruShots` | gurushots.com |
|
||||
| `hackerone` | hackerone.com |
|
||||
| `hackerrank` | hackerrank.com |
|
||||
| `hackthebox` | hackthebox.eu |
|
||||
| `instagram` | instagram.com |
|
||||
| `itchio` | itch.io |
|
||||
| `kaggle` | - |
|
||||
| `kakaotalk` | kakaocorp.com/service/KakaoTalk |
|
||||
| `key` | - |
|
||||
| `keybase` | keybase.io |
|
||||
| `kofi` | ko-fi.com |
|
||||
| `komoot` | - |
|
||||
| `lastfm` | last.fm |
|
||||
| `letterboxd` | - |
|
||||
| `liberapay` | liberapay.com |
|
||||
| `linkedin` | linkedin.com |
|
||||
| `mastodon` | mastodon.social |
|
||||
| `matrix` | matrix.org |
|
||||
| `medium` | medium.com |
|
||||
| `monero` | - |
|
||||
| `mixcloud` | mixcloud.com |
|
||||
| `nuget` | nuget.org |
|
||||
| `paypal` | paypal.com |
|
||||
| `peertube` | - |
|
||||
| `pgp` | - |
|
||||
| `phone` | - |
|
||||
| `ploywork` | ploywork.com |
|
||||
| `qq` | qq.com |
|
||||
| `reddit` | reddit.com |
|
||||
| `researchgate` | researchgate.net |
|
||||
| `rss` | - |
|
||||
| `serverfault` | serverfault.com |
|
||||
| `soundcloud` | soundcloud.com |
|
||||
| `shutterstock` | shutterstock.com |
|
||||
| `slack` | slack.com |
|
||||
| `snapchat` | snapchat.com/add |
|
||||
| `spotify` | spotify.com |
|
||||
| `stackoverflow` | stackoverflow.com |
|
||||
| `steam` | steampowered.com |
|
||||
| `strava` | strava.com |
|
||||
| `telegram` | telegram.org |
|
||||
| `tiktok` | tiktok.com |
|
||||
| `twitch` | twitch.tv |
|
||||
| `twitter` (the blue bird logo) | twitter.com |
|
||||
| `unsplash` | unsplash.com |
|
||||
| `x` (formerly Twitter) | x.com |
|
||||
| `xda` | xda-developers.com |
|
||||
| `xing` | xing.com |
|
||||
| `ycombinator` | ycombinator.com |
|
||||
| `youtube` | youtube.com |
|
||||
| `other` | - |
|
||||
|
||||
</details>
|
||||
|
||||
If you are trying to add an icon that is not listed above, you can modify `layouts\partials\svgs\svgs.html` to include your icon (SVG). You are encouraged to submit your icon by creating a pull request, so that others can benefit.
|
||||
|
||||
### Enable go to top button
|
||||
|
||||
To enable go to top button on blog posts, set `goToTop` to `true` in `config.toml` file.
|
||||
|
||||
```toml
|
||||
[params]
|
||||
goToTop = true
|
||||
```
|
||||
|
||||
## Content
|
||||
|
||||
### Posts
|
||||
|
||||
To create a new post, run the following command:
|
||||
|
||||
hugo new posts/my-first-post.md
|
||||
|
||||
Then, edit the `my-first-post.md` file to suit your needs.
|
||||
|
||||
### Comments
|
||||
|
||||
To enable Disqus comments, set `disqusShortname` in your site's `config.toml`.
|
||||
|
||||
To use another comments system, provide your own `comments.html` partial in `layouts\partials\comments.html`.
|
||||
|
||||
## Contributing
|
||||
|
||||
Please read [CONTRIBUTING.md](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/CONTRIBUTING.md).
|
||||
|
||||
## Contributors
|
||||
|
||||
Thanks to these wonderful people for contributing to Hugo blog awesome:
|
||||
|
||||
<a href="https://github.com/hugo-sid/hugo-blog-awesome/graphs/contributors">
|
||||
<img src="https://contrib.rocks/image?repo=hugo-sid/hugo-blog-awesome" />
|
||||
</a>
|
||||
|
||||
## Websites using this theme
|
||||
|
||||
If you are using this theme for any website, feel free to list the website here. You can submit a pull request (PR) to include your website.
|
||||
|
||||
- <https://krisnova.net/>
|
||||
- <https://paddy-exe.github.io/>
|
||||
- <https://www.siggijons.net/>
|
||||
- <https://debanwita27.github.io/>
|
||||
- <https://mrizkimaulidan.vercel.app/>
|
||||
- <https://www.yukizr.com/>
|
||||
- <http://liamdalg.co.uk/>
|
||||
- <http://pratham-mishra.in/>
|
||||
- <https://chriscodes.net/>
|
||||
- <https://ruiper.es/>
|
||||
- <https://www.magicplace.de/>
|
||||
- <https://bskdany.com/>
|
||||
- <https://josephscottcampbell.com/>
|
||||
- <https://heckintosh.github.io/>
|
||||
|
||||
## Support
|
||||
|
||||
Don't forget to ⭐️ the repo if you liked this theme!
|
||||
|
||||
<a href='https://ko-fi.com/sidharth' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi1.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
||||
|
||||
## Credits
|
||||
|
||||
The social icons are made possible thanks to [Aditya Telange](https://github.com/adityatelange)'s [hugo-PaperMod](https://github.com/adityatelange/hugo-PaperMod) theme.
|
||||
|
||||
Thanks to [piharpi](https://harpi.me/) for creating the [Jekyll klise theme](https://github.com/piharpi/jekyll-klise). It served as an inspiration to create this Hugo theme.
|
||||
|
||||
## License
|
||||
|
||||
This theme is released under the MIT license. For more information read the [License](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/LICENSE).
|
||||
|
||||
## Stats
|
||||
|
||||
### Visitors
|
||||
|
||||
[](https://visitorbadge.io/status?path=https%3A%2F%2Fgithub.com%2Fhugo-sid%2Fhugo-blog-awesome)
|
||||
|
||||
### Star History
|
||||
|
||||
[](https://star-history.com/#hugo-sid/hugo-blog-awesome&Date)
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
title:
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
description:
|
||||
---
|
||||
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 5.3 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||
<svg width="200" height="200" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M16.19 2H7.81C4.17 2 2 4.17 2 7.81V16.18C2 19.83 4.17 22 7.81 22H16.18C19.82 22 21.99 19.83 21.99 16.19V7.81C22 4.17 19.83 2 16.19 2ZM11.5 17.25C11.5 17.61 11.14 17.85 10.81 17.71C9.6 17.19 8.02 16.71 6.92 16.57L6.73 16.55C6.12 16.47 5.62 15.9 5.62 15.28V7.58C5.62 6.81 6.24 6.24 7 6.3C8.25 6.4 10.1 7 11.26 7.66C11.42 7.75 11.5 7.92 11.5 8.09V17.25ZM18.38 15.27C18.38 15.89 17.88 16.46 17.27 16.54L17.06 16.56C15.97 16.71 14.4 17.18 13.19 17.69C12.86 17.83 12.5 17.59 12.5 17.23V8.08C12.5 7.9 12.59 7.73 12.75 7.64C13.91 6.99 15.72 6.41 16.95 6.3H16.99C17.76 6.3 18.38 6.92 18.38 7.69V15.27Z" fill="#fff"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 841 B |
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||
<svg width="200" height="200" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M16.19 2H7.81C4.17 2 2 4.17 2 7.81V16.18C2 19.83 4.17 22 7.81 22H16.18C19.82 22 21.99 19.83 21.99 16.19V7.81C22 4.17 19.83 2 16.19 2ZM11.5 17.25C11.5 17.61 11.14 17.85 10.81 17.71C9.6 17.19 8.02 16.71 6.92 16.57L6.73 16.55C6.12 16.47 5.62 15.9 5.62 15.28V7.58C5.62 6.81 6.24 6.24 7 6.3C8.25 6.4 10.1 7 11.26 7.66C11.42 7.75 11.5 7.92 11.5 8.09V17.25ZM18.38 15.27C18.38 15.89 17.88 16.46 17.27 16.54L17.06 16.56C15.97 16.71 14.4 17.18 13.19 17.69C12.86 17.83 12.5 17.59 12.5 17.23V8.08C12.5 7.9 12.59 7.73 12.75 7.64C13.91 6.99 15.72 6.41 16.95 6.3H16.99C17.76 6.3 18.38 6.92 18.38 7.69V15.27Z" fill="#292D32"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 844 B |
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square70x70logo src="{{ (resources.Get "/icons/mstile-70x70.png").RelPermalink }}"/>
|
||||
<square150x150logo src="{{ (resources.Get "/icons/mstile-150x150.png").RelPermalink }}"/>
|
||||
<square310x310logo src="{{ (resources.Get "/icons/mstile-310x310.png").RelPermalink }}"/>
|
||||
<wide310x150logo src="{{ (resources.Get "/icons/mstile-310x150.png").RelPermalink }}"/>
|
||||
<TileColor>{{ .TileColor | default "#2d89ef" }}</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
||||
|
After Width: | Height: | Size: 809 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" width="1000" height="1000"><g transform="matrix(5,0,0,5,0.16609954833984375,0.00002288818359375)"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" width="200" height="200"><svg width="200" height="200" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M16.19 2H7.81C4.17 2 2 4.17 2 7.81V16.18C2 19.83 4.17 22 7.81 22H16.18C19.82 22 21.99 19.83 21.99 16.19V7.81C22 4.17 19.83 2 16.19 2ZM11.5 17.25C11.5 17.61 11.14 17.85 10.81 17.71C9.6 17.19 8.02 16.71 6.92 16.57L6.73 16.55C6.12 16.47 5.62 15.9 5.62 15.28V7.58C5.62 6.81 6.24 6.24 7 6.3C8.25 6.4 10.1 7 11.26 7.66C11.42 7.75 11.5 7.92 11.5 8.09V17.25ZM18.38 15.27C18.38 15.89 17.88 16.46 17.27 16.54L17.06 16.56C15.97 16.71 14.4 17.18 13.19 17.69C12.86 17.83 12.5 17.59 12.5 17.23V8.08C12.5 7.9 12.59 7.73 12.75 7.64C13.91 6.99 15.72 6.41 16.95 6.3H16.99C17.76 6.3 18.38 6.92 18.38 7.69V15.27Z" fill="#292D32"></path>
|
||||
</svg></svg></g></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||
width="700.000000pt" height="700.000000pt" viewBox="0 0 700.000000 700.000000"
|
||||
preserveAspectRatio="xMidYMid meet">
|
||||
<metadata>
|
||||
Created by potrace 1.14, written by Peter Selinger 2001-2017
|
||||
</metadata>
|
||||
<g transform="translate(0.000000,700.000000) scale(0.100000,-0.100000)"
|
||||
fill="#000000" stroke="none">
|
||||
<path d="M2177 6414 c-1 -1 -42 -4 -92 -7 -136 -9 -206 -20 -340 -53 -496
|
||||
-122 -855 -432 -1033 -889 -37 -93 -76 -233 -92 -325 -6 -36 -13 -76 -16 -90
|
||||
-2 -14 -7 -68 -11 -120 -9 -119 -10 -2758 -1 -2860 40 -439 188 -783 449
|
||||
-1041 231 -229 540 -372 917 -425 111 -15 342 -18 1537 -18 1196 -1 1500 3
|
||||
1547 19 7 2 31 6 53 9 202 26 468 124 645 237 165 107 338 286 432 449 56 97
|
||||
67 119 103 210 53 132 96 289 111 405 3 22 7 46 9 53 14 42 19 423 18 1567 0
|
||||
1407 0 1425 -44 1644 -118 600 -505 1016 -1089 1170 -74 19 -204 43 -310 57
|
||||
-47 6 -2786 14 -2793 8z m-62 -1259 c33 -4 69 -9 80 -11 10 -2 37 -6 59 -10
|
||||
22 -3 43 -7 47 -9 3 -2 21 -7 40 -10 195 -33 596 -173 829 -290 115 -58 126
|
||||
-65 144 -84 41 -45 41 -36 40 -1447 0 -1330 -1 -1361 -20 -1394 -51 -87 -116
|
||||
-94 -269 -31 -99 42 -316 119 -450 161 -86 27 -397 106 -445 113 -19 3 -84 13
|
||||
-145 21 -182 27 -289 98 -353 234 l-27 57 0 1215 0 1215 31 65 c55 114 156
|
||||
190 276 208 57 8 70 8 163 -3z m2941 -6 c143 -36 261 -159 294 -306 16 -68 15
|
||||
-2308 0 -2380 -7 -29 -29 -78 -54 -115 -69 -102 -160 -159 -281 -173 -48 -6
|
||||
-61 -8 -130 -20 -127 -23 -408 -90 -475 -115 -14 -5 -63 -20 -110 -35 -113
|
||||
-35 -263 -88 -384 -137 -138 -56 -203 -46 -252 37 -17 28 -18 102 -19 1390 0
|
||||
831 3 1373 9 1393 15 51 51 80 181 142 207 99 305 138 500 199 341 106 601
|
||||
150 721 120z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "{{ .name }}",
|
||||
"short_name": "{{ .short_name }}",
|
||||
"start_url": "{{ .start_url }}",
|
||||
"theme_color": "{{ .theme_color }}",
|
||||
"background_color": "{{ .background_color }}",
|
||||
"display": "{{ .display }}",
|
||||
"icons": [
|
||||
{
|
||||
"src": "{{ (resources.Get "/icons/android-chrome-192x192.png").RelPermalink }}",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "{{ (resources.Get "/icons/android-chrome-512x512.png").RelPermalink }}",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
window.addEventListener('load', () => {
|
||||
const gttButton = document.getElementById("totop");
|
||||
if (!gttButton) return;
|
||||
window.onscroll = () => {
|
||||
if (
|
||||
document.body.scrollTop > 300 ||
|
||||
document.documentElement.scrollTop > 300
|
||||
) {
|
||||
gttButton.style.visibility = "visible";
|
||||
gttButton.style.opacity = "1";
|
||||
} else {
|
||||
gttButton.style.visibility = "hidden";
|
||||
gttButton.style.opacity = "0";
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
@ -0,0 +1 @@
|
|||
'use strict';
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
(() => {
|
||||
"use strict";
|
||||
const LS_THEME_KEY = "theme";
|
||||
const THEMES = {
|
||||
LIGHT: "light",
|
||||
DARK: "dark",
|
||||
AUTO: "auto",
|
||||
};
|
||||
|
||||
const body = document.body;
|
||||
const config = body.getAttribute("data-theme");
|
||||
|
||||
const getThemeState = () => {
|
||||
const lsState = localStorage.getItem(LS_THEME_KEY);
|
||||
if (lsState) return lsState;
|
||||
|
||||
let state;
|
||||
switch (config) {
|
||||
case THEMES.DARK:
|
||||
state = THEMES.DARK;
|
||||
break;
|
||||
case THEMES.LIGHT:
|
||||
state = THEMES.LIGHT;
|
||||
break;
|
||||
case THEMES.AUTO:
|
||||
default:
|
||||
state = window.matchMedia("(prefers-color-scheme: dark)")
|
||||
.matches
|
||||
? THEMES.DARK
|
||||
: THEMES.LIGHT;
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
};
|
||||
|
||||
const initTheme = (state) => {
|
||||
if (state === THEMES.DARK) {
|
||||
document.documentElement.classList.add(THEMES.DARK);
|
||||
document.documentElement.classList.remove(THEMES.LIGHT);
|
||||
} else if (state === THEMES.LIGHT) {
|
||||
document.documentElement.classList.remove(THEMES.DARK);
|
||||
document.documentElement.classList.add(THEMES.LIGHT);
|
||||
}
|
||||
};
|
||||
|
||||
// init theme ASAP, then do the rest.
|
||||
initTheme(getThemeState());
|
||||
requestAnimationFrame(() => body.classList.remove("notransition"))
|
||||
const toggleTheme = () => {
|
||||
const state = getThemeState();
|
||||
if (state === THEMES.DARK) {
|
||||
localStorage.setItem(LS_THEME_KEY, THEMES.LIGHT);
|
||||
initTheme(THEMES.LIGHT);
|
||||
} else if (state === THEMES.LIGHT) {
|
||||
localStorage.setItem(LS_THEME_KEY, THEMES.DARK);
|
||||
initTheme(THEMES.DARK);
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
// Theme switch
|
||||
const lamp = document.getElementById("mode");
|
||||
|
||||
lamp.addEventListener("click", () => toggleTheme());
|
||||
|
||||
// Blur the content when the menu is open
|
||||
const cbox = document.getElementById("menu-trigger");
|
||||
|
||||
cbox.addEventListener("change", function () {
|
||||
const area = document.querySelector(".wrapper");
|
||||
if (this.checked) return area.classList.add("blurry");
|
||||
area.classList.remove("blurry");
|
||||
});
|
||||
});
|
||||
})();
|
||||
|
|
@ -0,0 +1,324 @@
|
|||
// Reset some basic elements
|
||||
* {
|
||||
-webkit-transition: background-color 75ms ease-in, border-color 75ms ease-in;
|
||||
-moz-transition: background-color 75ms ease-in, border-color 75ms ease-in;
|
||||
-ms-transition: background-color 75ms ease-in, border-color 75ms ease-in;
|
||||
-o-transition: background-color 75ms ease-in, border-color 75ms ease-in;
|
||||
transition: background-color 75ms ease-in, border-color 75ms ease-in;
|
||||
}
|
||||
|
||||
.notransition {
|
||||
-webkit-transition: none;
|
||||
-moz-transition: none;
|
||||
-ms-transition: none;
|
||||
-o-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
html {
|
||||
overflow-x: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
p,
|
||||
blockquote,
|
||||
pre,
|
||||
hr,
|
||||
dl,
|
||||
dd,
|
||||
ol,
|
||||
ul,
|
||||
figure {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
// Basic styling
|
||||
body {
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
position: relative;
|
||||
color: $text-base-color;
|
||||
background-color: $white;
|
||||
font: $normal-weight #{$base-font-size}/#{$base-line-height} $sans-family;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-font-feature-settings: "kern" 1;
|
||||
-moz-font-feature-settings: "kern" 1;
|
||||
-o-font-feature-settings: "kern" 1;
|
||||
font-feature-settings: "kern" 1;
|
||||
font-kerning: normal;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
// Set `margin-bottom` to maintain vertical rhythm
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
p,
|
||||
blockquote,
|
||||
pre,
|
||||
ul,
|
||||
ol,
|
||||
dl,
|
||||
figure,
|
||||
%vertical-rhythm {
|
||||
margin-top: $spacing-full - 20;
|
||||
margin-bottom: $spacing-full - 20;
|
||||
}
|
||||
|
||||
// strong | bold
|
||||
strong,
|
||||
b {
|
||||
font-weight: $bold-weight;
|
||||
color: $black;
|
||||
}
|
||||
|
||||
// horizontal rule
|
||||
hr {
|
||||
border-bottom: 0;
|
||||
border-style: solid;
|
||||
border-color: $light;
|
||||
}
|
||||
|
||||
// Image
|
||||
img {
|
||||
max-width: 100%;
|
||||
vertical-align: middle;
|
||||
-webkit-user-drag: none;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
// Figure
|
||||
figure {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
// Image inside Figure tag
|
||||
figure > img {
|
||||
display: block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
// Image caption
|
||||
figcaption {
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
// Lists
|
||||
ul {
|
||||
li {
|
||||
display: list-item;
|
||||
text-align: -webkit-match-parent;
|
||||
}
|
||||
}
|
||||
|
||||
ol {
|
||||
li {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
ul,
|
||||
ol {
|
||||
margin-top: 0;
|
||||
margin-left: $spacing-full;
|
||||
}
|
||||
|
||||
li {
|
||||
padding-bottom: 1px;
|
||||
padding-top: 1px;
|
||||
|
||||
&:before {
|
||||
color: $black;
|
||||
}
|
||||
|
||||
> ul,
|
||||
> ol {
|
||||
margin-bottom: 2px;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Headings
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: $black;
|
||||
font-weight: $bold-weight;
|
||||
& + ul,
|
||||
& + ol {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
scroll-margin-top: 65px;
|
||||
}
|
||||
}
|
||||
|
||||
// Headings with link
|
||||
h1 > a,
|
||||
h2 > a,
|
||||
h3 > a,
|
||||
h4 > a,
|
||||
h5 > a,
|
||||
h6 > a {
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Link
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration-color: $smoke;
|
||||
|
||||
&:hover {
|
||||
color: $text-link-blue;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: 3px solid rgba(0, 54, 199, 0.6);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
// Del
|
||||
del {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
// Em
|
||||
em {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
// Blockquotes
|
||||
blockquote {
|
||||
color: $blockquote-text;
|
||||
opacity: 0.9;
|
||||
border-left: 5px solid $bloquote-border;
|
||||
padding: 0 0 0 1rem;
|
||||
margin-left: .3rem;
|
||||
margin-right: .3rem;
|
||||
font-size: 1em;
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Wrapper
|
||||
.wrapper {
|
||||
max-width: -webkit-calc(#{$narrow-size} - (#{$spacing-full} * 2));
|
||||
max-width: calc(#{$narrow-size} - (#{$spacing-full} * 2));
|
||||
position: relative;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
padding-right: $spacing-full;
|
||||
padding-left: $spacing-full;
|
||||
@extend %clearfix;
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
max-width: -webkit-calc(#{$narrow-size} - (#{$spacing-full}));
|
||||
max-width: calc(#{$narrow-size} - (#{$spacing-full}));
|
||||
padding-right: $spacing-full - 10;
|
||||
padding-left: $spacing-full - 10;
|
||||
|
||||
&.blurry {
|
||||
animation: 0.2s ease-in forwards blur;
|
||||
-webkit-animation: 0.2s ease-in forwards blur;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Underline
|
||||
u {
|
||||
text-decoration-color: #d2c7c7;
|
||||
}
|
||||
|
||||
// Small
|
||||
small {
|
||||
font-size: $small-font-size;
|
||||
}
|
||||
|
||||
// Superscript
|
||||
sup {
|
||||
border-radius: 10%;
|
||||
top: -3px;
|
||||
left: 2px;
|
||||
font-size: small;
|
||||
position: relative;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
// Table
|
||||
.overflow-table {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
margin-top: $spacing-half;
|
||||
border-collapse: collapse;
|
||||
font-size: $small-font-size;
|
||||
|
||||
thead {
|
||||
font-weight: $bold-weight;
|
||||
color: $black;
|
||||
border-bottom: 1px solid $light;
|
||||
}
|
||||
|
||||
th,
|
||||
td,
|
||||
tr {
|
||||
border: 1px solid $light;
|
||||
padding: 2px 7px;
|
||||
}
|
||||
}
|
||||
|
||||
// Clearfix
|
||||
%clearfix:after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
// When mouse block a text set this color
|
||||
mark,
|
||||
::selection {
|
||||
background: #fffba0;
|
||||
color: $black;
|
||||
}
|
||||
|
||||
// Github Gist clear border
|
||||
.gist {
|
||||
table {
|
||||
border: 0;
|
||||
|
||||
tr,
|
||||
td {
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,201 @@
|
|||
// Code
|
||||
code {
|
||||
font-family: $mono-family;
|
||||
text-rendering: optimizeLegibility;
|
||||
font-feature-settings: "calt" 1;
|
||||
font-variant-ligatures: normal;
|
||||
white-space: pre;
|
||||
word-spacing: normal;
|
||||
word-break: normal;
|
||||
word-wrap: normal;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
p > code {
|
||||
font-size: 0.9em;
|
||||
padding: 1px 3px;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
color: $inline-code-text;
|
||||
background-color: $inline-code-bg;
|
||||
border-radius: 2px;
|
||||
border: 1px solid rgba(128,128,128,0.1);
|
||||
}
|
||||
// Codeblock Theme
|
||||
pre {
|
||||
background-color: #1a1b21;
|
||||
border-radius: .3rem;
|
||||
padding: .5rem 1rem;
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
margin: 0 calc(51% - 51vw);
|
||||
}
|
||||
|
||||
// Configure scrollbars for code blocks
|
||||
&::-webkit-scrollbar {
|
||||
height: .5rem;
|
||||
}
|
||||
// Set scrollbar background, track and thumb colors
|
||||
&::-webkit-scrollbar-track {
|
||||
background: #606071;
|
||||
border-radius: .1rem;
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: #999ea2;
|
||||
border-radius: .3rem;
|
||||
}
|
||||
&::-webkit-scrollbar-thumb:hover {
|
||||
background: #424546;
|
||||
}
|
||||
|
||||
> code {
|
||||
color: white;
|
||||
max-width: 50rem;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
line-height: 1.5;
|
||||
display: block;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.highlight table td {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.highlight table pre {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.highlight,
|
||||
.highlight .w {
|
||||
color: #fbf1c7;
|
||||
// background-color: #1a1b21;
|
||||
}
|
||||
|
||||
.highlight .err {
|
||||
color: #fb4934;
|
||||
// background-color: #1a1b21;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.highlight .c,
|
||||
.highlight .cd,
|
||||
.highlight .cm,
|
||||
.highlight .c1,
|
||||
.highlight .cs {
|
||||
color: #928374;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.highlight .cp {
|
||||
color: #8ec07c;
|
||||
}
|
||||
|
||||
.highlight .nt {
|
||||
color: #fb4934;
|
||||
}
|
||||
|
||||
.highlight .o,
|
||||
.highlight .ow {
|
||||
color: #fbf1c7;
|
||||
}
|
||||
|
||||
.highlight .p,
|
||||
.highlight .pi {
|
||||
color: #fbf1c7;
|
||||
}
|
||||
|
||||
.highlight .gi {
|
||||
color: #b8bb26;
|
||||
background-color: #282828;
|
||||
}
|
||||
|
||||
.highlight .gd {
|
||||
color: #fb4934;
|
||||
background-color: #282828;
|
||||
}
|
||||
|
||||
.highlight .gh {
|
||||
color: #b8bb26;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.highlight .k,
|
||||
.highlight .kn,
|
||||
.highlight .kp,
|
||||
.highlight .kr,
|
||||
.highlight .kv {
|
||||
color: #fb4934;
|
||||
}
|
||||
|
||||
.highlight .kc {
|
||||
color: #d3869b;
|
||||
}
|
||||
|
||||
.highlight .kt {
|
||||
color: #fabd2f;
|
||||
}
|
||||
|
||||
.highlight .kd {
|
||||
color: #fe8019;
|
||||
}
|
||||
|
||||
.highlight .s,
|
||||
.highlight .sb,
|
||||
.highlight .sc,
|
||||
.highlight .sd,
|
||||
.highlight .s2,
|
||||
.highlight .sh,
|
||||
.highlight .sx,
|
||||
.highlight .s1 {
|
||||
color: #b8bb26;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.highlight .si {
|
||||
color: #b8bb26;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.highlight .sr {
|
||||
color: #b8bb26;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.highlight .se {
|
||||
color: #fe8019;
|
||||
}
|
||||
|
||||
.highlight .nn {
|
||||
color: #8ec07c;
|
||||
}
|
||||
|
||||
.highlight .nc {
|
||||
color: #8ec07c;
|
||||
}
|
||||
|
||||
.highlight .no {
|
||||
color: #d3869b;
|
||||
}
|
||||
|
||||
.highlight .na {
|
||||
color: #b8bb26;
|
||||
}
|
||||
|
||||
.highlight .m,
|
||||
.highlight .mf,
|
||||
.highlight .mh,
|
||||
.highlight .mi,
|
||||
.highlight .il,
|
||||
.highlight .mo,
|
||||
.highlight .mb,
|
||||
.highlight .mx {
|
||||
color: #d3869b;
|
||||
}
|
||||
|
||||
.highlight .ss {
|
||||
color: #83a598;
|
||||
}
|
||||
|
|
@ -0,0 +1,286 @@
|
|||
@mixin dark-mode {
|
||||
body {
|
||||
color: $dark-text-base-color;
|
||||
background-color: $dark-black;
|
||||
}
|
||||
|
||||
// Headings
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: $dark-white;
|
||||
}
|
||||
|
||||
// Table
|
||||
table {
|
||||
thead {
|
||||
color: $dark-white;
|
||||
border-color: $dark-light;
|
||||
}
|
||||
|
||||
th,
|
||||
td,
|
||||
tr {
|
||||
border-color: $dark-light;
|
||||
}
|
||||
}
|
||||
|
||||
// Post
|
||||
.page-content {
|
||||
a {
|
||||
color: $dark-text-link-blue;
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:focus {
|
||||
color: $dark-text-link-blue-active;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
border-color: $dark-light;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
.anchor-head {
|
||||
color: $dark-text-link-blue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ToC
|
||||
.toc {
|
||||
background-color: $dark-toc-bg;
|
||||
}
|
||||
|
||||
// Go to top
|
||||
#totop {
|
||||
color: $dark-text-base-color;
|
||||
background-color: $dark-go-top-bg;
|
||||
|
||||
&:hover {
|
||||
background-color: $dark-go-top-bg-hover;
|
||||
}
|
||||
}
|
||||
|
||||
// Inline code
|
||||
li>code,
|
||||
p>code {
|
||||
font-size: 0.9em;
|
||||
padding: 1px 3px;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
color: $dark-inline-code-text;
|
||||
background-color: $dark-inline-code-bg;
|
||||
border-radius: 2px;
|
||||
border: 1px solid rgba(128, 128, 128, 0.1);
|
||||
}
|
||||
|
||||
// kbd tag
|
||||
kbd {
|
||||
color: $dark-inline-code-text;
|
||||
background-color: $dark-inline-code-bg;
|
||||
}
|
||||
|
||||
// horizontal rule
|
||||
hr {
|
||||
border-color: $dark-light;
|
||||
}
|
||||
|
||||
// Post Meta
|
||||
.post-meta {
|
||||
color: $dark-gray;
|
||||
|
||||
time {
|
||||
&::after {
|
||||
background-color: $dark-light;
|
||||
}
|
||||
}
|
||||
|
||||
span[itemprop="author"] {
|
||||
border-color: $dark-light;
|
||||
}
|
||||
}
|
||||
|
||||
// Link
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration-color: $dark-smoke;
|
||||
|
||||
&:hover {
|
||||
color: $dark-text-link-blue;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline-color: rgba(44, 118, 246, 0.6);
|
||||
}
|
||||
}
|
||||
|
||||
// List
|
||||
li {
|
||||
&:before {
|
||||
color: $dark-white;
|
||||
}
|
||||
}
|
||||
|
||||
// Blockquote
|
||||
blockquote {
|
||||
color: $dark-blockquote-text;
|
||||
border-color: $dark-bloquote-border;
|
||||
}
|
||||
|
||||
// Strong, Bold
|
||||
strong,
|
||||
b {
|
||||
color: $dark-white;
|
||||
}
|
||||
|
||||
// Navbar
|
||||
.navbar {
|
||||
border-color: $dark-light;
|
||||
|
||||
.menu {
|
||||
a#mode {
|
||||
.mode-sunny {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.mode-moon {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-link {
|
||||
color: $dark-white;
|
||||
}
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
background-color: $dark-black;
|
||||
border-color: $dark-light;
|
||||
|
||||
input[type="checkbox"]:checked~.trigger {
|
||||
background: $dark-black;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Post Item
|
||||
.post-item {
|
||||
&:not(:first-child) {
|
||||
border-color: $dark-light;
|
||||
}
|
||||
|
||||
.post-item-date {
|
||||
color: $dark-white;
|
||||
}
|
||||
|
||||
.post-item-title {
|
||||
a {
|
||||
color: $dark-text-base-color;
|
||||
|
||||
&:hover,
|
||||
&focus {
|
||||
color: $dark-white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Post Navigation
|
||||
.post-nav {
|
||||
border-color: $dark-light;
|
||||
|
||||
.post-nav-item {
|
||||
font-weight: $bold-weight;
|
||||
|
||||
.post-title {
|
||||
color: $dark-white;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
.post-title {
|
||||
color: $dark-text-link-blue-active;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-arrow {
|
||||
color: $dark-gray;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
.post-nav-item:nth-child(even) {
|
||||
border-color: $dark-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Footer
|
||||
.footer {
|
||||
span.footer_item {
|
||||
color: $dark-white;
|
||||
}
|
||||
|
||||
a.footer_item:not(:last-child) {
|
||||
color: $dark-white;
|
||||
}
|
||||
|
||||
.footer_copyright {
|
||||
color: $dark-gray;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
// 404 Page
|
||||
.not-found {
|
||||
.title {
|
||||
color: $dark-white;
|
||||
text-shadow: 1px 0px 0px $dark-text-link-blue;
|
||||
}
|
||||
|
||||
.phrase {
|
||||
color: $dark-text-base-color;
|
||||
}
|
||||
|
||||
.solution {
|
||||
color: $dark-text-link-blue;
|
||||
}
|
||||
|
||||
.solution:hover {
|
||||
color: $dark-text-link-blue-active;
|
||||
}
|
||||
}
|
||||
|
||||
.search-article {
|
||||
input[type="search"] {
|
||||
color: $dark-text-base-color;
|
||||
|
||||
&::-webkit-input-placeholder {
|
||||
color: rgba(128, 128, 128, 0.8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// support JS disabled environment with media query
|
||||
@media (prefers-color-scheme: dark) {
|
||||
// use "light" class to avoid style conflicts in js enabled environment
|
||||
html:not(.light) {
|
||||
@include dark-mode()
|
||||
}
|
||||
}
|
||||
|
||||
html.dark {
|
||||
@include dark-mode()
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
@charset "utf-8";
|
||||
/* roboto-regular - latin */
|
||||
@font-face {
|
||||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/Roboto/roboto-v30-latin-regular.eot); /* IE9 Compat Modes */
|
||||
src: url(fonts/Roboto/roboto-v30-latin-regular.eot?#iefix) format('embedded-opentype'), /* IE6-IE8 */
|
||||
url(fonts/Roboto/roboto-v30-latin-regular.woff2) format('woff2'), /* Super Modern Browsers */
|
||||
url(fonts/Roboto/roboto-v30-latin-regular.woff) format('woff'), /* Modern Browsers */
|
||||
url(fonts/Roboto/roboto-v30-latin-regular.ttf) format('truetype'), /* Safari, Android, iOS */
|
||||
url(fonts/Roboto/roboto-v30-latin-regular.svg#Roboto) format('svg'); /* Legacy iOS */
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
/* Scroll to top button */
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
#totop {
|
||||
visibility: hidden;
|
||||
color: $text-base-color;
|
||||
position: fixed;
|
||||
bottom: 60px;
|
||||
right: 30px;
|
||||
z-index: 1;
|
||||
border-radius: 10%;
|
||||
background-color: $go-top-bg;
|
||||
transition: visibility .5s,opacity .8s linear;
|
||||
|
||||
&:hover {
|
||||
background-color: $go-top-bg-hover;
|
||||
}
|
||||
|
||||
// center align icon vertically
|
||||
svg {
|
||||
margin: auto;
|
||||
display: block;
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,253 @@
|
|||
// Author
|
||||
.author {
|
||||
margin-top: 6.3rem;
|
||||
margin-bottom: 7.2rem;
|
||||
text-align: center;
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
margin-bottom: 3em;
|
||||
}
|
||||
|
||||
.author-avatar {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
border-radius: 100%;
|
||||
user-select: none;
|
||||
-ms-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-webkit-animation: 0.5s ease-in forwards fadein;
|
||||
animation: 0.5s ease-in forwards fadein;
|
||||
opacity: 1;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.author-name {
|
||||
font-size: 1.7em;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.author-bio {
|
||||
margin: 0 auto;
|
||||
opacity: 0.9;
|
||||
max-width: 393px;
|
||||
line-height: 1.688;
|
||||
}
|
||||
}
|
||||
|
||||
// Content
|
||||
.posts-item-note {
|
||||
padding-bottom: .3rem;
|
||||
font-weight: 500;
|
||||
color: $black;
|
||||
}
|
||||
|
||||
// List of posts
|
||||
.post-item {
|
||||
display: flex;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 6px;
|
||||
justify-content: space-between;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
&:not(:first-child) {
|
||||
border-top: 1px solid $light;
|
||||
}
|
||||
|
||||
.post-item-date {
|
||||
min-width: 96px;
|
||||
color: $black;
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.post-item-title {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
font-size: $base-font-size;
|
||||
font-weight: normal;
|
||||
letter-spacing: 0.1px;
|
||||
|
||||
a {
|
||||
color: $text-base-color;
|
||||
transition: all 150ms ease-in 0s;
|
||||
|
||||
&:hover,
|
||||
&focus {
|
||||
color: $black;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Footer
|
||||
.footer {
|
||||
margin-top: 8em;
|
||||
margin-bottom: 2em;
|
||||
text-align: center;
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
margin-top: 3em;
|
||||
}
|
||||
|
||||
span.footer_item {
|
||||
opacity: 0.8;
|
||||
font-weight: $bold-weight;
|
||||
font-size: $small-font-size;
|
||||
}
|
||||
|
||||
a.footer_item {
|
||||
opacity: 0.8;
|
||||
text-decoration: none;
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-right: 10px;
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&_copyright {
|
||||
font-size: $small-font-size - 1;
|
||||
display: block;
|
||||
color: $gray;
|
||||
opacity: 0.8;
|
||||
margin-top: .7rem;
|
||||
padding: .3rem .95rem;
|
||||
}
|
||||
|
||||
&_social-icons {
|
||||
a {
|
||||
text-decoration: none;
|
||||
margin-right: .31rem;
|
||||
|
||||
}
|
||||
svg {
|
||||
color: #888a90;
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
&:hover {
|
||||
color: rgb(221, 221, 221);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.not-found {
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
height: 75vh;
|
||||
.title {
|
||||
font-size: 5em;
|
||||
font-weight: $bold-weight;
|
||||
line-height: 1.1;
|
||||
color: $black;
|
||||
text-shadow: 1px 0px 0px $text-link-blue;
|
||||
}
|
||||
.phrase {
|
||||
color: $text-base-color;
|
||||
}
|
||||
.solution {
|
||||
color: $text-link-blue;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
.solution:hover {
|
||||
color: $text-link-blue-active;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.search-article {
|
||||
position: relative;
|
||||
margin-bottom: 50px;
|
||||
|
||||
label[for="search-input"] {
|
||||
position: relative;
|
||||
top: 10px;
|
||||
left: 11px;
|
||||
}
|
||||
|
||||
input[type="search"] {
|
||||
top: 0;
|
||||
left: 0;
|
||||
border: 0;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
outline: none;
|
||||
position: absolute;
|
||||
border-radius: 5px;
|
||||
padding: 10px 10px 10px 35px;
|
||||
color: $text-base-color;
|
||||
-webkit-appearance: none;
|
||||
font-size: $base-font-size;
|
||||
background-color: rgba(128, 128, 128, 0.1);
|
||||
border: 1px solid rgba(128, 128, 128, 0.1);
|
||||
&::-webkit-input-placeholder {
|
||||
color: #808080;
|
||||
}
|
||||
&::-webkit-search-decoration,
|
||||
&::-webkit-search-results-decoration {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#search-results {
|
||||
text-align: center;
|
||||
li {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.archive-tags {
|
||||
height: auto;
|
||||
.tag-item {
|
||||
padding: 1px 3px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid rgba(128, 128, 128, 0.1);
|
||||
background-color: rgba(128, 128, 128, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Add styles for sub, sup, kbd, mark */
|
||||
|
||||
sub, sup {
|
||||
font-size: 79%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
kbd {
|
||||
font-size: 85%;
|
||||
border-radius: 3px;
|
||||
color: $inline-code-text;
|
||||
background: $inline-code-bg;
|
||||
display: inline-block;
|
||||
font-family: Consolas, monaco, monospace;
|
||||
line-height: 1;
|
||||
padding: 2px 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
.list-page .post-year {
|
||||
padding-bottom: .5rem;
|
||||
}
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
// Animation fade-in
|
||||
@keyframes fadein {
|
||||
0% {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Animation blur
|
||||
@keyframes blur {
|
||||
0% {
|
||||
filter: blur(0px);
|
||||
}
|
||||
|
||||
100% {
|
||||
filter: blur(4px);
|
||||
}
|
||||
}
|
||||
|
||||
// Responsive embed video
|
||||
.embed-responsive {
|
||||
height: 0;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
padding-bottom: 56.25%;
|
||||
margin-top: 20px;
|
||||
|
||||
iframe,
|
||||
object,
|
||||
embed {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
}
|
||||
}
|
||||
|
||||
// 404 page
|
||||
.main-404 {
|
||||
padding: 9rem 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
@ -0,0 +1,205 @@
|
|||
// Navbar
|
||||
.navbar {
|
||||
height: auto;
|
||||
max-width: calc(#{$wide-size} - (#{$spacing-full} * 2));
|
||||
max-width: -webkit-calc(#{$wide-size} - (#{$spacing-full} * 2));
|
||||
position: relative;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
border-bottom: 1px solid $light;
|
||||
padding: .5rem .3rem;
|
||||
@extend %clearfix;
|
||||
}
|
||||
.logo {
|
||||
float: left;
|
||||
margin: .5rem 0 0 1rem;
|
||||
> svg {
|
||||
opacity: 0.7;
|
||||
}
|
||||
&:hover {
|
||||
> svg {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@include media-query($on-mobile) {
|
||||
padding-top: .3rem;
|
||||
|
||||
}
|
||||
}
|
||||
// Navigation
|
||||
.menu {
|
||||
user-select: none;
|
||||
-ms-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.menu-separator {
|
||||
margin-right: .7rem;
|
||||
@include media-query($on-mobile) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
a#mode {
|
||||
-webkit-transform: scale(1, 1);
|
||||
transform: scale(1, 1);
|
||||
opacity: 0.7;
|
||||
z-index: 1;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
opacity: 1;
|
||||
}
|
||||
&:active {
|
||||
-webkit-transform: scale(0.9, 0.9);
|
||||
transform: scale(0.9, 0.9);
|
||||
}
|
||||
.mode-moon {
|
||||
display: block;
|
||||
line {
|
||||
stroke: $black;
|
||||
fill: none;
|
||||
}
|
||||
|
||||
circle {
|
||||
fill: $black;
|
||||
stroke: $black;
|
||||
}
|
||||
}
|
||||
.mode-sunny {
|
||||
display: none;
|
||||
line {
|
||||
stroke: $dark-white;
|
||||
fill: none;
|
||||
}
|
||||
circle {
|
||||
fill: none;
|
||||
stroke: $dark-white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.trigger {
|
||||
float: right;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.menu-trigger {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-link {
|
||||
color: $black;
|
||||
line-height: $base-line-height + 0.4;
|
||||
text-decoration: none;
|
||||
padding: .3rem .5rem;
|
||||
opacity: 0.7;
|
||||
letter-spacing: 0.015rem;
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-link.active {
|
||||
opacity: 1;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 2;
|
||||
text-align: center;
|
||||
height: 50px;
|
||||
background-color: $white;
|
||||
border-bottom: 1px solid $light;
|
||||
|
||||
a#mode {
|
||||
left: 10px;
|
||||
top: 12px;
|
||||
}
|
||||
|
||||
.menu-icon {
|
||||
display: block;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
margin: .7rem .3rem 0 0;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
z-index: 1;
|
||||
> svg {
|
||||
opacity: 0.7;
|
||||
}
|
||||
&:hover {
|
||||
> svg {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
&:active {
|
||||
-webkit-transform: scale(0.9, 0.9);
|
||||
transform: scale(0.9, 0.9);
|
||||
}
|
||||
}
|
||||
|
||||
input[type="checkbox"]:not(:checked) ~ .trigger {
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked ~ .trigger {
|
||||
position: fixed;
|
||||
animation: 0.2s ease-in forwards fadein;
|
||||
-webkit-animation: 0.2s ease-in forwards fadein;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.menu-link {
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
font-size: 1.1em;
|
||||
|
||||
&:not(:last-child) {
|
||||
margin: 0;
|
||||
padding: 2px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,235 @@
|
|||
// Post wrapper
|
||||
.wrapper.post {
|
||||
@include media-query($on-mobile) {
|
||||
padding-left: $spacing-half;
|
||||
padding-right: $spacing-half;
|
||||
}
|
||||
}
|
||||
|
||||
// Post title
|
||||
.header {
|
||||
margin-top: 7.8em;
|
||||
|
||||
.header-title {
|
||||
font-size: 2em;
|
||||
line-height: 1.2;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 20px;
|
||||
|
||||
&.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
font-size: 1.9em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Post meta
|
||||
.post-meta {
|
||||
padding-top: 3px;
|
||||
line-height: 1.3;
|
||||
color: $gray;
|
||||
|
||||
time {
|
||||
position: relative;
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
span[itemprop="author"] {
|
||||
border-bottom: 1px dotted $light;
|
||||
}
|
||||
}
|
||||
|
||||
// Post content
|
||||
.page-content {
|
||||
padding-top: 8px;
|
||||
|
||||
iframe {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
figure {
|
||||
img {
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
margin-top: 5px;
|
||||
font-style: italic;
|
||||
font-size: $small-font-size;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: $text-link-blue;
|
||||
text-decoration: none;
|
||||
&[target="_blank"]::after {
|
||||
content: " \2197";
|
||||
font-size: $small-font-size;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
bottom: 5px;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $text-link-blue-active;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
color: $text-link-blue;
|
||||
}
|
||||
}
|
||||
|
||||
> p {
|
||||
margin: 0;
|
||||
padding-top: $spacing-full - 15;
|
||||
padding-bottom: $spacing-full - 15;
|
||||
}
|
||||
|
||||
ul.task-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
|
||||
li::before {
|
||||
content: "";
|
||||
}
|
||||
|
||||
li input[type="checkbox"] {
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
dl dt {
|
||||
font-weight: $bold-weight;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: $black;
|
||||
font-weight: $bold-weight;
|
||||
margin-top: $spacing-full;
|
||||
margin-bottom: 0;
|
||||
letter-spacing: .03rem;
|
||||
|
||||
&:hover {
|
||||
.anchor-head {
|
||||
color: $text-link-blue;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.anchor-head {
|
||||
position: relative;
|
||||
opacity: 0;
|
||||
outline: none;
|
||||
|
||||
&::before {
|
||||
content: "#";
|
||||
position: absolute;
|
||||
right: -3px;
|
||||
width: 1em;
|
||||
font-weight: $bold-weight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
@include relative-font-size(1.5);
|
||||
}
|
||||
|
||||
h2 {
|
||||
@include relative-font-size(1.375);
|
||||
}
|
||||
|
||||
h3 {
|
||||
@include relative-font-size(1.25);
|
||||
}
|
||||
|
||||
h4 {
|
||||
@include relative-font-size(1.25);
|
||||
}
|
||||
|
||||
h5 {
|
||||
@include relative-font-size(1);
|
||||
}
|
||||
|
||||
h6 {
|
||||
@include relative-font-size(0.875);
|
||||
}
|
||||
}
|
||||
|
||||
.post-nav {
|
||||
display: flex;
|
||||
position: relative;
|
||||
margin-top: 5em;
|
||||
border-top: 1px solid $light;
|
||||
line-height: 1.4;
|
||||
|
||||
.post-nav-item {
|
||||
border-bottom: 0;
|
||||
font-weight: $bold-weight;
|
||||
padding-bottom: 10px;
|
||||
|
||||
.post-title {
|
||||
color: $black;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
.post-title {
|
||||
color: $text-link-blue-active;
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-arrow {
|
||||
font-weight: $normal-weight;
|
||||
font-size: $small-font-size;
|
||||
color: $gray;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
width: 50%;
|
||||
padding-top: 10px;
|
||||
text-decoration: none;
|
||||
box-sizing: border-box;
|
||||
|
||||
&:nth-child(odd) {
|
||||
padding-left: 0;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
&:nth-child(even) {
|
||||
text-align: right;
|
||||
padding-right: 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-query($on-mobile) {
|
||||
display: block;
|
||||
font-size: $small-font-size;
|
||||
|
||||
.post-nav-item {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.post-nav-item:nth-child(even) {
|
||||
border-left: 0;
|
||||
padding-left: 0;
|
||||
border-top: 1px solid $light;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.post-updated-at {
|
||||
font-family: "Ubuntu mono", "monospace";
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
/* Table of contents */
|
||||
details {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.toc {
|
||||
margin: 1.1rem 0 1rem 0;
|
||||
padding: .5rem 1rem .5rem 1rem;
|
||||
border-radius: .3rem;
|
||||
background-color: $toc-bg;
|
||||
|
||||
ul {
|
||||
padding-top: 1rem;
|
||||
margin-left: 1rem;
|
||||
padding-left: 1rem;
|
||||
|
||||
li {
|
||||
margin-bottom: 0.5em;
|
||||
line-height: 1.4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
//////////////// 1. Light Colors /////////////////
|
||||
$text-base-color: #434648;
|
||||
$text-link-blue: #003fff;
|
||||
$text-link-blue-active: #0036c7;
|
||||
$bloquote-border: #c4c8cc;
|
||||
$blockquote-text: #525b66;
|
||||
$inline-code-text: #333638;
|
||||
$inline-code-bg: #d8dbe2;
|
||||
$toc-bg: #edecec;
|
||||
$go-top-bg: #dfe0e397;
|
||||
$go-top-bg-hover: #dfe0e3;
|
||||
|
||||
$black: #0d122b;
|
||||
$light: #ececec;
|
||||
$smoke: #d2c7c7;
|
||||
$gray: #6b7886;
|
||||
$white: #fff;
|
||||
|
||||
//////////////// 2. Dark Colors /////////////////
|
||||
$dark-text-base-color: #babdc4;
|
||||
$dark-text-link-blue: #77a8fd;
|
||||
$dark-text-link-blue-active: #5292ff;
|
||||
$dark-bloquote-border: #4a4d56;
|
||||
$dark-blockquote-text: #9b9ba3;
|
||||
$dark-inline-code-text: #c2c4ca;
|
||||
$dark-inline-code-bg: #2d2d2d;
|
||||
$dark-toc-bg: #323232;
|
||||
$dark-go-top-bg: #676767b3;
|
||||
$dark-go-top-bg-hover: #676767;
|
||||
|
||||
$dark-black: #131418;
|
||||
$dark-white: #eaeaea;
|
||||
$dark-light: #1b1d25;
|
||||
$dark-smoke: #4a4d56;
|
||||
$dark-gray: #767f87;
|
||||
|
||||
//////////////// 3. Fonts preferences /////////////////
|
||||
$sans-family: Roboto, sans-serif;
|
||||
$mono-family: Consolas, monospace;
|
||||
$base-font-size: 16px;
|
||||
$medium-font-size: $base-font-size * 0.938;
|
||||
$small-font-size: $base-font-size * 0.875;
|
||||
$base-line-height: 1.85;
|
||||
|
||||
// Font weight
|
||||
// $light-weight: 300; // uncomment if necessary
|
||||
$normal-weight: 400;
|
||||
$bold-weight: 700;
|
||||
// $black-weight: 900; // uncomment if necessary
|
||||
|
||||
//////////////// 4.Responsive design (media queries) /////////////////
|
||||
$wide-size: 890px;
|
||||
$narrow-size: 720px;
|
||||
|
||||
// Padding unit
|
||||
$spacing-full: 30px;
|
||||
$spacing-half: $spacing-full / 2;
|
||||
|
||||
// Screen sizes
|
||||
$on-mobile: 768px;
|
||||
$on-tablet: 769px;
|
||||
$on-desktop: 1024px;
|
||||
$on-widescreen: 1152px;
|
||||
|
||||
@mixin media-query($device) {
|
||||
@media screen and (max-width: $device) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin relative-font-size($ratio) {
|
||||
font-size: $base-font-size * $ratio;
|
||||
}
|
||||
|
||||
//////////////// 5. Import all sass files /////////////////
|
||||
|
||||
@import "fonts";
|
||||
@import "base";
|
||||
@import "navbar";
|
||||
@import "layout";
|
||||
@import "post";
|
||||
@import "code";
|
||||
|
||||
@import "tableOfContent";
|
||||
@import "miscellaneous";
|
||||
@import "dark";
|
||||
@import "listpage";
|
||||
@import "custom";
|
||||
|
||||
{{ with .Site.Params.goToTop }}
|
||||
@import "goToTop";
|
||||
{{ end }}
|
||||
|
After Width: | Height: | Size: 86 KiB |
|
|
@ -0,0 +1,180 @@
|
|||
title = "Awesome Hugo blog"
|
||||
baseURL = 'https://hba.sid.one/'
|
||||
|
||||
# This is what goes in <html lang="">
|
||||
languageCode = 'en-us'
|
||||
|
||||
theme = "hugo-blog-awesome"
|
||||
|
||||
# This defines how dates are formatted
|
||||
defaultContentLanguage = "en-gb"
|
||||
|
||||
# To enable Google Analytics 4 (gtag.js) provide G-MEASUREMENT_ID below.
|
||||
# To disable Google Analytics, simply leave the field empty or remove the next line
|
||||
googleAnalytics = '' # G-MEASUREMENT_ID
|
||||
|
||||
# Enable emojis globally
|
||||
enableEmoji = true
|
||||
ignoreErrors = ["additional-script-loading-error"] # ignore error of loading additional scripts.
|
||||
|
||||
# To enable Disqus comments, provide Disqus Shortname below.
|
||||
# To disable Disqus comments, simply leave the field empty or remove the next line
|
||||
disqusShortname = ''
|
||||
|
||||
# set markup.highlight.noClasses=false to enable code highlight
|
||||
[markup]
|
||||
[markup.highlight]
|
||||
noClasses = false
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true
|
||||
[markup.tableOfContents]
|
||||
startLevel = 2 # ToC starts from H2
|
||||
endLevel = 4 # ToC ends at H4
|
||||
ordered = false # generates <ul> instead of <ol>
|
||||
|
||||
############################## English language ################################
|
||||
[Languages.en-gb]
|
||||
languageName = "English"
|
||||
languageCode = "en-gb"
|
||||
contentDir = "content/en"
|
||||
weight = 1
|
||||
|
||||
[Languages.en-gb.menu]
|
||||
[[Languages.en-gb.menu.main]]
|
||||
# The page reference (pageRef) is useful for menu highlighting
|
||||
# When pageRef is set, setting `url` is optional; it will be used as a fallback if the page is not found.
|
||||
pageRef="/"
|
||||
name = 'Home'
|
||||
url = '/'
|
||||
weight = 10
|
||||
[[Languages.en-gb.menu.main]]
|
||||
pageRef="posts"
|
||||
name = 'Posts'
|
||||
url = '/posts/'
|
||||
weight = 20
|
||||
[[Languages.en-gb.menu.main]]
|
||||
pageRef="about"
|
||||
name = 'About'
|
||||
url = '/about/'
|
||||
weight = 30
|
||||
|
||||
[Languages.en-gb.params]
|
||||
sitename = "Awesome hugo blog"
|
||||
defaultColor = "dark" # set color mode: dark, light, auto
|
||||
# Setting it to 'auto' applies the color scheme based on the visitor's device color preference.If you don't specify anything, ignore this parameter, or leave it blank,
|
||||
# the default value is set to 'auto'.
|
||||
# You can take a look at layouts/index.html for more information.
|
||||
description = "Minimal Hugo blog theme with light and dark mode support"
|
||||
mainSections = ['posts']
|
||||
toc = true # set to false to disable table of contents 'globally'
|
||||
tocOpen = false # set to true to open table of contents by default
|
||||
goToTop = true # set to false to disable 'go to top' button
|
||||
additionalScripts = ['js/custom.js', 'js/custom-2.js']
|
||||
# Will try to load 'assets/js/custom.js' and 'assets/js/custom-2.js'.
|
||||
# Your custom scripts will be concatinated to one file `custom.js`.
|
||||
# When building for production it will be minified.
|
||||
# The file `custom.js` is loaded on each page (before body tag ends).
|
||||
dateFormat = "" # date format used to show dates on various pages. If nothing is specified, then "2 Jan 2006" format is used.
|
||||
# See https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference for available date formats.
|
||||
rssFeedDescription = "summary" # available options: 1) summary 2) full
|
||||
# summary - includes a short summary of the blog post in the RSS feed. Generated using Hugo .Summary .
|
||||
# full - includes full blog post in the RSS feed. Generated using Hugo .Content .
|
||||
# By default (or if nothing is specified), summary is used.
|
||||
|
||||
[Languages.en-gb.params.author]
|
||||
avatar = "avatar.jpg" # put the file in assets folder; also ensure that image has same height and width
|
||||
# Note: image is not rendered if the resource(avatar image) is not found. No error is displayed.
|
||||
intro = "Awesome hugo blog"
|
||||
name = "Sidharth R"
|
||||
description = "A fast, minimalistic Hugo theme with light and dark mode support, for running a personal site or blog."
|
||||
|
||||
# Allow to override webmanifest options
|
||||
[Languages.en-gb.params.webmanifest]
|
||||
name = "sitename" # will use "params.sitename" or "title" by default
|
||||
short_name = "sitename" # same as name
|
||||
start_url = "/" # will use homepage url by default
|
||||
theme_color = "#434648" # default is "#434648" (base color of text). Also will override html `<meta name="theme-color" />`
|
||||
background_color = "#fff" # by default depend on "params.defaultColor" for "light" or "auto" will be set to "#fff" for dark will be "#131418" (color of dark mode background)
|
||||
display = "standalone"
|
||||
|
||||
############################## Italian language ################################
|
||||
[Languages.it]
|
||||
languageName = "Italian"
|
||||
languageCode = "it"
|
||||
contentDir = "content/it"
|
||||
weight = 2
|
||||
[Languages.it.menu]
|
||||
[[Languages.it.menu.main]]
|
||||
# The page reference (pageRef) is useful for menu highlighting
|
||||
# When pageRef is set, setting `url` is optional; it will be used as a fallback if the page is not found.
|
||||
pageRef="/"
|
||||
name = 'Inizio'
|
||||
url = '/'
|
||||
weight = 10
|
||||
[[Languages.it.menu.main]]
|
||||
pageRef="posts"
|
||||
name = 'Articoli'
|
||||
url = '/posts/'
|
||||
weight = 20
|
||||
[[Languages.it.menu.main]]
|
||||
pageRef="about"
|
||||
name = 'Chi Sono'
|
||||
url = '/about/'
|
||||
weight = 30
|
||||
|
||||
[Languages.it.params]
|
||||
sitename = "Awesome hugo blog"
|
||||
defaultColor = "dark" # set color mode: dark, light, auto
|
||||
# Setting it to 'auto' applies the color scheme based on the visitor's device color preference.If you don't specify anything, ignore this parameter, or leave it blank,
|
||||
# the default value is set to 'auto'.
|
||||
# You can take a look at layouts/index.html for more information.
|
||||
description = "Un tema Hugo veloce e minimalista con supporto per la modalità chiara e scura, per la gestione di un sito o di un blog personale"
|
||||
mainSections = ['posts']
|
||||
toc = true # set to false to disable table of contents 'globally'
|
||||
tocOpen = false # set to true to open table of contents by default
|
||||
goToTop = true # set to false to disable 'go to top' button
|
||||
additionalScripts = ['js/custom.js', 'js/custom-2.js']
|
||||
# Will try to load 'assets/js/custom.js' and 'assets/js/custom-2.js'.
|
||||
# Your custom scripts will be concatinated to one file `custom.js`.
|
||||
# When building for production it will be minified.
|
||||
# The file `custom.js` is loaded on each page (before body tag ends).
|
||||
dateFormat = "2 January 2006" # default date format used on various pages
|
||||
# See https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference for available date formats.
|
||||
rssFeedDescription = "summary" # available options: 1) summary 2) full
|
||||
# summary - includes a short summary of the blog post in the RSS feed. Generated using Hugo .Summary .
|
||||
# full - includes full blog post in the RSS feed. Generated using Hugo .Content .
|
||||
# By default (or if nothing is specified), summary is used.
|
||||
|
||||
[Languages.it.params.author]
|
||||
avatar = "avatar.jpg" # put the file in assets folder; also ensure that image has same height and width
|
||||
# Note: image is not rendered if the resource(avatar image) is not found. No error is displayed.
|
||||
intro = "Awesome hugo blog"
|
||||
name = "Sidharth R"
|
||||
description = "Un tema Hugo veloce e minimalista con supporto per la modalità chiara e scura, per la gestione di un sito o di un blog personale."
|
||||
|
||||
# Allow to override webmanifest options
|
||||
[Languages.it.params.webmanifest]
|
||||
name = "sitename" # will use "params.sitename" or "title" by default
|
||||
short_name = "sitename" # same as name
|
||||
start_url = "/" # will use homepage url by default
|
||||
theme_color = "#434648" # default is "#434648" (base color of text). Also will override html `<meta name="theme-color" />`
|
||||
background_color = "#fff" # by default depend on "params.defaultColor" for "light" or "auto" will be set to "#fff" for dark will be "#131418" (color of dark mode background)
|
||||
display = "standalone"
|
||||
|
||||
###################################################################
|
||||
|
||||
# Allow to override `browserconfig.xml` params (configuration for windows embeded browsers)
|
||||
[params.browserconfig]
|
||||
TileColor = "#2d89ef" # default windows 10 blue tile color
|
||||
|
||||
[[params.socialIcons]]
|
||||
name = "github"
|
||||
url = "https://github.com/hugo-sid"
|
||||
|
||||
[[params.socialIcons]]
|
||||
name = "twitter"
|
||||
url = "https://twitter.com"
|
||||
|
||||
[[params.socialIcons]]
|
||||
name = "Rss"
|
||||
url = "index.xml"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: "Home"
|
||||
author : "Hugo Authors"
|
||||
---
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
title: About
|
||||
description: 'Hugo, the world''s fastest framework for building websites'
|
||||
author: Hugo Authors
|
||||
---
|
||||
|
||||
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
|
||||
|
||||
Hugo makes use of a variety of open source projects including:
|
||||
|
||||
* https://github.com/yuin/goldmark
|
||||
* https://github.com/alecthomas/chroma
|
||||
* https://github.com/muesli/smartcrop
|
||||
* https://github.com/spf13/cobra
|
||||
* https://github.com/spf13/viper
|
||||
|
||||
Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
|
||||
|
||||
Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
|
||||
|
||||
Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
|
||||
|
||||
Learn more and contribute on [GitHub](https://github.com/gohugoio).
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "Posts"
|
||||
---
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
title: Emoji Support
|
||||
date: 2023-02-01
|
||||
author: Hugo Authors
|
||||
description: Guide to emoji usage in Hugo
|
||||
tags:
|
||||
- emoji
|
||||
---
|
||||
|
||||
Emoji can be enabled in a Hugo project in a number of ways.
|
||||
<!--more-->
|
||||
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
|
||||
|
||||
To enable emoji globally, set `enableEmoji` to `true` in your site's `config.toml`. You can type emoji shorthand codes directly in content files; e.g.
|
||||
|
||||
`:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil:
|
||||
|
||||
I :heart: Hugo! 😁
|
||||
|
||||
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
|
||||
|
||||
***
|
||||
|
||||
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
|
||||
|
||||
{{< highlight css >}}
|
||||
.emoji {
|
||||
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
||||
}
|
||||
{{< /highlight >}}
|
||||
|
||||
{{< css.inline >}}
|
||||
<style>
|
||||
.emojify {
|
||||
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
||||
font-size: 2rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
@media screen and (max-width:650px) {
|
||||
.nowrap {
|
||||
display: block;
|
||||
margin: 25px 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
{{< /css.inline >}}
|
||||
|
After Width: | Height: | Size: 18 KiB |
|
|
@ -0,0 +1,164 @@
|
|||
---
|
||||
title: Markdown Syntax Guide
|
||||
date: 2023-02-11
|
||||
author: Hugo Authors
|
||||
description: Sample article showcasing basic Markdown syntax and formatting for HTML elements.
|
||||
---
|
||||
|
||||
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
|
||||
<!--more-->
|
||||
|
||||
## Headings
|
||||
|
||||
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
|
||||
|
||||
# H1
|
||||
|
||||
## H2
|
||||
|
||||
### H3
|
||||
|
||||
#### H4
|
||||
|
||||
##### H5
|
||||
|
||||
###### H6
|
||||
|
||||
## Paragraph
|
||||
|
||||
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
|
||||
|
||||
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
|
||||
|
||||
## Image
|
||||
|
||||
You can use the following syntax to include an image. Path of the image should be relative to the `index.md` file.
|
||||
|
||||
```markdown
|
||||

|
||||
```
|
||||
|
||||

|
||||
|
||||
You can also include image from external sources.
|
||||
|
||||
```markdown
|
||||

|
||||
```
|
||||
|
||||

|
||||
|
||||
## Blockquotes
|
||||
|
||||
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
|
||||
|
||||
### Blockquote without attribution
|
||||
|
||||
> You can use Markdown syntax within a blockquote, like **bold**, _italics_, [links](https://gohugo.io/), `code`.
|
||||
|
||||
### Blockquote with attribution
|
||||
|
||||
> Don't communicate by sharing memory, share memory by communicating.<br>
|
||||
> — <cite>Rob Pike[^1]</cite>
|
||||
|
||||
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
|
||||
|
||||
## Tables
|
||||
|
||||
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
|
||||
|
||||
Name | Age
|
||||
--------|------
|
||||
Bob | 27
|
||||
Alice | 23
|
||||
|
||||
### Markdown within tables
|
||||
|
||||
| Italics | Bold | Code |
|
||||
| -------- | -------- | ------ |
|
||||
| *italics* | **bold** | `code` |
|
||||
|
||||
## Code Blocks
|
||||
|
||||
### Code block with backticks
|
||||
|
||||
```html
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
### Code block indented with four spaces
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
### Code block with Hugo's internal highlight shortcode
|
||||
|
||||
{{< highlight html >}}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
{{< /highlight >}}
|
||||
|
||||
### Inline code
|
||||
|
||||
Use the backtick to refer to a `variable` within a sentence.
|
||||
|
||||
## List Types
|
||||
|
||||
### Ordered List
|
||||
|
||||
1. First item
|
||||
2. Second item
|
||||
3. Third item
|
||||
|
||||
### Unordered List
|
||||
|
||||
* List item
|
||||
* Another item
|
||||
* And another item
|
||||
|
||||
### Nested list
|
||||
|
||||
* Fruit
|
||||
* Apple
|
||||
* Orange
|
||||
* Banana
|
||||
* Dairy
|
||||
* Milk
|
||||
* Cheese
|
||||
|
||||
## Other Elements — abbr, sub, sup, kbd, mark
|
||||
|
||||
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
|
||||
|
||||
H<sub>2</sub>O
|
||||
|
||||
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
|
||||
|
||||
Press <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd> to end the session.
|
||||
|
||||
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
---
|
||||
author: Hugo Authors
|
||||
title: Math Typesetting
|
||||
date: 2023-04-01
|
||||
description: A brief guide to setup KaTeX
|
||||
math: true
|
||||
---
|
||||
|
||||
Mathematical notation in a Hugo project can be enabled by using
|
||||
[third party JavaScript libraries](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/layouts/partials/helpers/katex.html).
|
||||
|
||||
<!--more-->
|
||||
|
||||
In this example we will be using [KaTeX](https://katex.org/).
|
||||
|
||||
- To enable KaTeX globally, set the parameter `math` to `true` in a project's
|
||||
configuration file as follows.
|
||||
- `config.toml`
|
||||
```toml
|
||||
[params]
|
||||
math = true
|
||||
```
|
||||
- `config.yaml`
|
||||
```yaml
|
||||
params:
|
||||
math: true
|
||||
```
|
||||
- To enable KaTeX on a per page basis, include the parameter `math: true` in
|
||||
Front Matter of Markdown content file as follows.
|
||||
|
||||
```
|
||||
---
|
||||
math: true
|
||||
---
|
||||
```
|
||||
|
||||
**Note:** The online reference of
|
||||
[Supported TeX Functions](https://katex.org/docs/supported.html) is a helpful resource.
|
||||
|
||||
### Examples
|
||||
|
||||
- Block math:
|
||||
|
||||
$$
|
||||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
||||
$$
|
||||
|
||||
- Inline math:
|
||||
|
||||
This is an inline polynomial: $5x^2 + 2y -7$.
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
author: Hugo Authors
|
||||
title: Placeholder Text
|
||||
date: 2023-02-07
|
||||
description: A post with placeholder text
|
||||
---
|
||||
|
||||
Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
|
||||
|
||||
1. Exierant elisi ambit vivere dedere
|
||||
2. Duce pollice
|
||||
3. Eris modo
|
||||
4. Spargitque ferrea quos palude
|
||||
|
||||
Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.
|
||||
|
||||
1. Comas hunc haec pietate fetum procerum dixit
|
||||
2. Post torum vates letum Tiresia
|
||||
3. Flumen querellas
|
||||
4. Arcanaque montibus omnes
|
||||
5. Quidem et
|
||||
|
||||
# Vagus elidunt
|
||||
|
||||
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
|
||||
|
||||
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
|
||||
|
||||
## Mane refeci capiebant unda mulcebat
|
||||
|
||||
Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
|
||||
|
||||
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.
|
||||
|
||||
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.
|
||||
|
||||
{{< css.inline >}}
|
||||
<style>
|
||||
.canon { background: white; width: 100%; height: auto; }
|
||||
</style>
|
||||
{{< /css.inline >}}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
author: Hugo Authors
|
||||
title: Rich Content
|
||||
date: 2023-02-09
|
||||
description: A brief description of Hugo Shortcodes
|
||||
---
|
||||
|
||||
Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
|
||||
<!--more-->
|
||||
---
|
||||
|
||||
## YouTube Privacy Enhanced Shortcode
|
||||
|
||||
{{< youtube ZJthWmvUzzc >}}
|
||||
|
||||
<br>
|
||||
|
||||
---
|
||||
|
||||
## Twitter Simple Shortcode
|
||||
|
||||
{{< twitter_simple DesignReviewed 1085870671291310081 >}}
|
||||
|
||||
<br>
|
||||
|
||||
---
|
||||
|
||||
## Vimeo Simple Shortcode
|
||||
|
||||
{{< vimeo_simple 48912912 >}}
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
---
|
||||
title: Table of content
|
||||
date: 2023-05-02
|
||||
description: Setup table of content in Hugo blog awesome theme
|
||||
---
|
||||
|
||||
## Table of content
|
||||
|
||||
This theme supports displaying table of content (ToC) in blog posts.
|
||||
|
||||
## Enable table of content on all posts
|
||||
|
||||
To enable ToC on all posts (globally) set parameter `toc` to `true` in `config.toml`.
|
||||
|
||||
```toml
|
||||
[params]
|
||||
toc = true
|
||||
```
|
||||
|
||||
To disable ToC globally, simply ignore the `toc` parameter or set it to `false`.
|
||||
|
||||
## Disable table of content on certain posts
|
||||
|
||||
To disable ToC on certain posts, you have to follow two steps.
|
||||
|
||||
1. Set parameter `toc` to `true` in `config.toml`.
|
||||
|
||||
```toml
|
||||
[params]
|
||||
toc = true
|
||||
```
|
||||
|
||||
2. Add `toc = false` to the front matter of the post for which you wish to disable ToC.
|
||||
|
||||
```yaml
|
||||
---
|
||||
title: How to enable table of content
|
||||
date: 2023-05-02
|
||||
toc: false
|
||||
---
|
||||
```
|
||||
|
||||
## Open table of content
|
||||
|
||||
By default, ToC is closed. To open it by default, set parameter `tocOpen` to `true` in `config.toml`.
|
||||
|
||||
```toml
|
||||
[params]
|
||||
tocOpen = true
|
||||
```
|
||||
|
||||
Or simply add the `tocOpen` parameter to the front matter of the post.
|
||||
|
||||
```yaml
|
||||
---
|
||||
title: How to enable table of content
|
||||
date: 2023-05-02
|
||||
tocOpen: true
|
||||
---
|
||||
```
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: "Home"
|
||||
author : "Hugo Authors"
|
||||
---
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
title: Chi Sono
|
||||
description: 'Hugo, the world''s fastest framework for building websites'
|
||||
author: Hugo Authors
|
||||
---
|
||||
|
||||
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
|
||||
|
||||
Hugo makes use of a variety of open source projects including:
|
||||
|
||||
* https://github.com/yuin/goldmark
|
||||
* https://github.com/alecthomas/chroma
|
||||
* https://github.com/muesli/smartcrop
|
||||
* https://github.com/spf13/cobra
|
||||
* https://github.com/spf13/viper
|
||||
|
||||
Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
|
||||
|
||||
Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
|
||||
|
||||
Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
|
||||
|
||||
Learn more and contribute on [GitHub](https://github.com/gohugoio).
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "Articoli"
|
||||
---
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
title: Supporto Alle Emoji
|
||||
date: 2023-02-01
|
||||
author: Hugo Authors
|
||||
description: Guide to emoji usage in Hugo
|
||||
tags:
|
||||
- emoji
|
||||
---
|
||||
|
||||
Le emoji possono essere abilitate in un progetto Hugo in diversi modi.
|
||||
<!--more-->
|
||||
La funzione [`emojify`](https://gohugo.io/functions/emojify/) può essere richiamata direttamente nei modelli oppure negli [Shortcodes Inline](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
|
||||
|
||||
Per abilitare le emoji globalmente, impostate `enableEmoji` a `true` nel file `config.toml` del vostro sito. Potete digitare a mano le scorciatoie per le emoji direttamente nei file di contenuto; es.
|
||||
|
||||
`:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil:
|
||||
|
||||
Io :heart: Hugo! 😁
|
||||
|
||||
La [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) è un utile documento di riferimento per le codici di scorciatoia alle emoji.
|
||||
|
||||
***
|
||||
|
||||
**N.B.** I passi sopra menzionati abilitano gli emoji standard Unicode e le sequenze in Hugo, tuttavia il modo in cui questi glifi vengono rappresentati dipende dal browser e dalla piattaforma. Per applicare il vostro stile personale alle emoji potete a scelta utilizzare un font di terze parti per Emoji oppure un font stack; es.
|
||||
|
||||
{{< highlight css >}}
|
||||
.emoji {
|
||||
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
||||
}
|
||||
{{< /highlight >}}
|
||||
|
||||
{{< css.inline >}}
|
||||
<style>
|
||||
.emojify {
|
||||
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
||||
font-size: 2rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
@media screen and (max-width:650px) {
|
||||
.nowrap {
|
||||
display: block;
|
||||
margin: 25px 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
{{< /css.inline >}}
|
||||
|
After Width: | Height: | Size: 18 KiB |
|
|
@ -0,0 +1,164 @@
|
|||
---
|
||||
title: Guida Alla Sintassi Markdown
|
||||
date: 2023-02-11
|
||||
author: Hugo Authors
|
||||
description: Sample article showcasing basic Markdown syntax and formatting for HTML elements.
|
||||
---
|
||||
|
||||
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
|
||||
<!--more-->
|
||||
|
||||
## Headings
|
||||
|
||||
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
|
||||
|
||||
# H1
|
||||
|
||||
## H2
|
||||
|
||||
### H3
|
||||
|
||||
#### H4
|
||||
|
||||
##### H5
|
||||
|
||||
###### H6
|
||||
|
||||
## Paragraph
|
||||
|
||||
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
|
||||
|
||||
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
|
||||
|
||||
## Image
|
||||
|
||||
You can use the following syntax to include an image. Path of the image should be relative to the `index.md` file.
|
||||
|
||||
```markdown
|
||||

|
||||
```
|
||||
|
||||

|
||||
|
||||
You can also include image from external sources.
|
||||
|
||||
```markdown
|
||||

|
||||
```
|
||||
|
||||

|
||||
|
||||
## Blockquotes
|
||||
|
||||
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
|
||||
|
||||
### Blockquote without attribution
|
||||
|
||||
> You can use Markdown syntax within a blockquote, like **bold**, _italics_, [links](https://gohugo.io/), `code`.
|
||||
|
||||
### Blockquote with attribution
|
||||
|
||||
> Don't communicate by sharing memory, share memory by communicating.<br>
|
||||
> — <cite>Rob Pike[^1]</cite>
|
||||
|
||||
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
|
||||
|
||||
## Tables
|
||||
|
||||
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
|
||||
|
||||
Name | Age
|
||||
--------|------
|
||||
Bob | 27
|
||||
Alice | 23
|
||||
|
||||
### Markdown within tables
|
||||
|
||||
| Italics | Bold | Code |
|
||||
| -------- | -------- | ------ |
|
||||
| *italics* | **bold** | `code` |
|
||||
|
||||
## Code Blocks
|
||||
|
||||
### Code block with backticks
|
||||
|
||||
```html
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
### Code block indented with four spaces
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
### Code block with Hugo's internal highlight shortcode
|
||||
|
||||
{{< highlight html >}}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
{{< /highlight >}}
|
||||
|
||||
### Inline code
|
||||
|
||||
Use the backtick to refer to a `variable` within a sentence.
|
||||
|
||||
## List Types
|
||||
|
||||
### Ordered List
|
||||
|
||||
1. First item
|
||||
2. Second item
|
||||
3. Third item
|
||||
|
||||
### Unordered List
|
||||
|
||||
* List item
|
||||
* Another item
|
||||
* And another item
|
||||
|
||||
### Nested list
|
||||
|
||||
* Fruit
|
||||
* Apple
|
||||
* Orange
|
||||
* Banana
|
||||
* Dairy
|
||||
* Milk
|
||||
* Cheese
|
||||
|
||||
## Other Elements — abbr, sub, sup, kbd, mark
|
||||
|
||||
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
|
||||
|
||||
H<sub>2</sub>O
|
||||
|
||||
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
|
||||
|
||||
Press <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd> to end the session.
|
||||
|
||||
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
---
|
||||
author: Hugo Authors
|
||||
title: Impaginazione Delle Formule Matematiche
|
||||
date: 2023-04-01
|
||||
description: A brief guide to setup KaTeX
|
||||
math: true
|
||||
---
|
||||
|
||||
La notazione matematica in un progetto Hugo può essere abilitata utilizzando delle
|
||||
[librerie JavaScript di terze parti](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/layouts/partials/helpers/katex.html).
|
||||
|
||||
<!--more-->
|
||||
|
||||
In questo esempio utilizzeremo [KaTeX](https://katex.org/).
|
||||
|
||||
- Per abilitare KaTeX a livello globale, impostate il parametro `math` a `true` nella configurazione di un progretto come segue.
|
||||
|
||||
- `config.toml`
|
||||
```toml
|
||||
[params]
|
||||
math = true
|
||||
```
|
||||
- `config.yaml`
|
||||
```yaml
|
||||
params:
|
||||
math: true
|
||||
```
|
||||
- Per abilitare KaTeX solamente in alcune pagine, includete il parametro `math: true` nel
|
||||
Front Matter del file markdown come segue.
|
||||
|
||||
```
|
||||
---
|
||||
math: true
|
||||
---
|
||||
```
|
||||
|
||||
**Nota:** La guida di riferimento online
|
||||
[Supported TeX Functions](https://katex.org/docs/supported.html) è un'utile risorsa di informazioni.
|
||||
|
||||
### Esempi
|
||||
|
||||
- Blocco matematico:
|
||||
|
||||
$$
|
||||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
||||
$$
|
||||
|
||||
- Matematica inline:
|
||||
|
||||
Questo è un polinomiale inline: $5x^2 + 2y -7$.
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
author: Hugo Authors
|
||||
title: Testo Segnaposto
|
||||
date: 2023-02-07
|
||||
description: A post with placeholder text
|
||||
---
|
||||
|
||||
Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
|
||||
|
||||
1. Exierant elisi ambit vivere dedere
|
||||
2. Duce pollice
|
||||
3. Eris modo
|
||||
4. Spargitque ferrea quos palude
|
||||
|
||||
Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.
|
||||
|
||||
1. Comas hunc haec pietate fetum procerum dixit
|
||||
2. Post torum vates letum Tiresia
|
||||
3. Flumen querellas
|
||||
4. Arcanaque montibus omnes
|
||||
5. Quidem et
|
||||
|
||||
# Vagus elidunt
|
||||
|
||||
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
|
||||
|
||||
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
|
||||
|
||||
## Mane refeci capiebant unda mulcebat
|
||||
|
||||
Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
|
||||
|
||||
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.
|
||||
|
||||
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.
|
||||
|
||||
{{< css.inline >}}
|
||||
<style>
|
||||
.canon { background: white; width: 100%; height: auto; }
|
||||
</style>
|
||||
{{< /css.inline >}}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
author: Hugo Authors
|
||||
title: Gli Shortcode di Hugo
|
||||
date: 2023-02-09
|
||||
description: A brief description of Hugo Shortcodes
|
||||
---
|
||||
|
||||
Hugo viene distribuito con alcuni [Shortcode integrati](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) per il rich content, assieme a una [Configurazione Per La Privacy](https://gohugo.io/about/hugo-and-gdpr/) ed un'insieme di semplici Shortcode che consentono di incorporare alcune versioni statiche e senza-JS di alcuni social media.
|
||||
<!--more-->
|
||||
---
|
||||
|
||||
## Shortcode Con Miglioramento Della Privacy Per YouTube
|
||||
|
||||
{{< youtube ZJthWmvUzzc >}}
|
||||
|
||||
<br>
|
||||
|
||||
---
|
||||
|
||||
## Semplice Shortcode Per Twitter
|
||||
|
||||
{{< twitter_simple DesignReviewed 1085870671291310081 >}}
|
||||
|
||||
<br>
|
||||
|
||||
---
|
||||
|
||||
## Semplice Shortcode Per Vimeo
|
||||
|
||||
{{< vimeo_simple 48912912 >}}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
title: I Sommari
|
||||
date: 2023-05-02
|
||||
description: Setup table of content in Hugo blog awesome theme
|
||||
---
|
||||
|
||||
## Sommario
|
||||
|
||||
Questo tema supporta la visualizzazione di un sommario (Table Of Content - ToC) all'interno degli articoli.
|
||||
|
||||
## Abilitare il sommario in tutti gli articoli
|
||||
|
||||
Per abilitare il sommario in tutti gli articoli (globalmente) è necessario impostare il parametro `toc` a `true` in `config.toml`.
|
||||
|
||||
```toml
|
||||
[params]
|
||||
toc = true
|
||||
```
|
||||
|
||||
Per disabilitare il sommario globalmente invece, basta semplicemente cancellare il parametro `toc` oppure impostarlo a `false`.
|
||||
|
||||
## Disabilitare il sommario solo in alcuni articoli
|
||||
|
||||
Per disabilitare il sommario solamente in alcuni articoli selezionati, è necessario seguire questi due passi.
|
||||
|
||||
1. Impostate il parametro `toc` a `true` in `config.toml`.
|
||||
|
||||
```toml
|
||||
[params]
|
||||
toc = true
|
||||
```
|
||||
|
||||
2. Aggiungete `toc = false` al front matter dell'articolo nel quale volete disabilitare il sommario.
|
||||
|
||||
```yaml
|
||||
---
|
||||
title: Come abilitare il sommario
|
||||
date: 2023-05-02
|
||||
toc: false
|
||||
---
|
||||
```
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
## HOME ##
|
||||
- id: "home.home"
|
||||
translation: "Home"
|
||||
|
||||
- id: "home.recent_posts"
|
||||
translation: "Recent Posts"
|
||||
|
||||
- id: "home.see_all_posts"
|
||||
translation: "See all posts"
|
||||
|
||||
## SINGLE ##
|
||||
- id: "single.table_of_contents"
|
||||
translation: "Table of Contents"
|
||||
|
||||
## FOOTER ##
|
||||
- id: "footer.go_to_top"
|
||||
translation: "Go to top"
|
||||
|
||||
- id: "footer.disclaimer"
|
||||
translation: "Powered by <a href=\"https://github.com/hugo-sid/hugo-blog-awesome\" target=\"_blank\" rel=\"noopener\">Hugo blog awesome</a>."
|
||||
|
||||
## ERRORS ##
|
||||
- id: "errors.404"
|
||||
translation: "404 NOT FOUND"
|
||||
|
||||
- id: "errors.404_description"
|
||||
translation: "You just hit a route that doesn't exist."
|
||||