├── .devcontainer ├── Dockerfile └── devcontainer.json ├── .editorconfig ├── .gitattributes ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── config.yml │ └── new-blank-issue.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── pr-labeler.yml │ ├── release.yml │ ├── scorecard.yml │ └── stale.yml ├── .gitignore ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── archetypes └── default.md ├── assets ├── code-highlight.css ├── icons │ ├── android-chrome-192x192.png │ ├── android-chrome-512x512.png │ ├── apple-touch-icon-precomposed.png │ ├── apple-touch-icon.png │ ├── book-icon-dark.svg │ ├── book-icon-light.svg │ ├── browserconfig.xml │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── favicon.ico │ ├── favicon.svg │ ├── mstile-144x144.png │ ├── mstile-150x150.png │ ├── mstile-310x150.png │ ├── mstile-310x310.png │ ├── mstile-70x70.png │ ├── safari-pinned-tab.svg │ └── site.webmanifest ├── js │ ├── goToTop.js │ ├── main.js │ └── theme.js └── sass │ ├── _base.scss │ ├── _code.scss │ ├── _custom.scss │ ├── _dark.scss │ ├── _fonts.scss │ ├── _goToTop.scss │ ├── _layout.scss │ ├── _listpage.scss │ ├── _miscellaneous.scss │ ├── _navbar.scss │ ├── _post.scss │ ├── _tableOfContent.scss │ └── main.scss ├── exampleSite ├── assets │ └── avatar.jpg ├── content │ ├── br │ │ ├── _index.md │ │ ├── pages │ │ │ └── about.md │ │ └── posts │ │ │ ├── _index.md │ │ │ ├── emoji-support │ │ │ └── index.md │ │ │ ├── markdown-syntax │ │ │ ├── 1.jpg │ │ │ └── index.md │ │ │ ├── math-typesetting │ │ │ └── index.md │ │ │ ├── placeholder-text │ │ │ └── index.md │ │ │ ├── rich-content │ │ │ └── index.md │ │ │ └── table-of-content │ │ │ └── index.md │ ├── de │ │ ├── _index.md │ │ ├── pages │ │ │ └── about.md │ │ └── posts │ │ │ ├── _index.md │ │ │ ├── emoji-support │ │ │ └── index.md │ │ │ ├── markdown-syntax │ │ │ ├── 1.jpg │ │ │ └── index.md │ │ │ ├── math-typesetting │ │ │ └── index.md │ │ │ ├── placeholder-text │ │ │ └── index.md │ │ │ ├── rich-content │ │ │ └── index.md │ │ │ └── table-of-content │ │ │ └── index.md │ ├── en │ │ ├── _index.md │ │ ├── pages │ │ │ └── about.md │ │ └── posts │ │ │ ├── _index.md │ │ │ ├── emoji-support │ │ │ └── index.md │ │ │ ├── markdown-syntax │ │ │ ├── 1.jpg │ │ │ └── index.md │ │ │ ├── math-typesetting │ │ │ └── index.md │ │ │ ├── placeholder-text │ │ │ └── index.md │ │ │ ├── rich-content │ │ │ └── index.md │ │ │ └── table-of-content │ │ │ └── index.md │ ├── fr │ │ ├── _index.md │ │ ├── pages │ │ │ └── about.md │ │ └── posts │ │ │ ├── _index.md │ │ │ ├── emoji-support │ │ │ └── index.md │ │ │ ├── markdown-syntax │ │ │ ├── 1.jpg │ │ │ └── index.md │ │ │ ├── math-typesetting │ │ │ └── index.md │ │ │ ├── placeholder-text │ │ │ └── index.md │ │ │ ├── rich-content │ │ │ └── index.md │ │ │ └── table-of-content │ │ │ └── index.md │ ├── it │ │ ├── _index.md │ │ ├── pages │ │ │ └── about.md │ │ └── posts │ │ │ ├── _index.md │ │ │ ├── emoji-support │ │ │ └── index.md │ │ │ ├── markdown-syntax │ │ │ ├── 1.jpg │ │ │ └── index.md │ │ │ ├── math-typesetting │ │ │ └── index.md │ │ │ ├── placeholder-text │ │ │ └── index.md │ │ │ ├── rich-content │ │ │ └── index.md │ │ │ └── table-of-content │ │ │ └── index.md │ ├── ja │ │ ├── _index.md │ │ ├── pages │ │ │ └── about.md │ │ └── posts │ │ │ ├── _index.md │ │ │ ├── emoji-support │ │ │ └── index.md │ │ │ ├── markdown-syntax │ │ │ ├── 1.jpg │ │ │ └── index.md │ │ │ ├── math-typesetting │ │ │ └── index.md │ │ │ ├── placeholder-text │ │ │ └── index.md │ │ │ ├── rich-content │ │ │ └── index.md │ │ │ └── table-of-content │ │ │ └── index.md │ ├── ru │ │ ├── _index.md │ │ ├── pages │ │ │ └── about.md │ │ └── posts │ │ │ ├── _index.md │ │ │ ├── emoji-support │ │ │ └── index.md │ │ │ ├── markdown-syntax │ │ │ ├── 1.jpg │ │ │ └── index.md │ │ │ ├── math-typesetting │ │ │ └── index.md │ │ │ ├── placeholder-text │ │ │ └── index.md │ │ │ ├── rich-content │ │ │ └── index.md │ │ │ └── table-of-content │ │ │ └── index.md │ └── zh │ │ ├── _index.md │ │ ├── pages │ │ └── about.md │ │ └── posts │ │ ├── _index.md │ │ ├── emoji-support │ │ └── index.md │ │ ├── markdown-syntax │ │ ├── 1.jpg │ │ └── index.md │ │ ├── math-typesetting │ │ └── index.md │ │ ├── placeholder-text │ │ └── index.md │ │ ├── rich-content │ │ └── index.md │ │ └── table-of-content │ │ └── index.md ├── go.mod ├── go.sum ├── hugo-blog-awesome.work └── hugo.toml ├── go.mod ├── i18n ├── de-de.yaml ├── en-gb.yaml ├── en-us.yaml ├── fr-fr.yaml ├── it.yaml ├── ja.yaml ├── pt-br.yaml ├── ru-ru.yaml └── zh-cn.yaml ├── images ├── dark.png ├── light.png ├── pagespeed.png ├── screenshot.png └── tn.png ├── layouts ├── 404.html ├── _default │ ├── baseof.html │ ├── list.html │ ├── rss.xml │ └── single.html ├── index.html └── partials │ ├── bio.html │ ├── browserconfig.html │ ├── comments.html │ ├── footer.html │ ├── head.html │ ├── header.html │ ├── helpers │ └── katex.html │ ├── meta │ ├── main.html │ ├── post.html │ └── standard.html │ ├── postCard.html │ ├── scriptsBodyEnd.html │ ├── scriptsBodyStart.html │ ├── socialIcons.html │ ├── svgs │ ├── arrowUp.svg │ ├── home.svg │ ├── menu.svg │ ├── sun.svg │ └── svgs.html │ ├── toc.html │ └── webmanifest.html ├── netlify.toml ├── renovate.json ├── static └── fonts │ └── Roboto │ ├── roboto-v30-latin-regular.eot │ ├── roboto-v30-latin-regular.svg │ ├── roboto-v30-latin-regular.ttf │ ├── roboto-v30-latin-regular.woff │ └── roboto-v30-latin-regular.woff2 └── theme.toml /.devcontainer/Dockerfile: -------------------------------------------------------------------------------- 1 | # Set the Node.js version you want to use. You can change this in docker-compose.yml. 2 | ARG NODE_VERSION=18 3 | # Use the base image for Node.js development from Microsoft's repository. 4 | FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${NODE_VERSION} 5 | 6 | # Choose between 'hugo' (standard) or 'hugo_extended' (extended) version of Hugo. 7 | ARG VARIANT=hugo_extended 8 | # Choose either 'latest' or a specific version number for Hugo. 9 | ARG VERSION=latest 10 | 11 | # Install necessary tools and dependencies, and download Hugo. 12 | # Download and extract the specified version of Hugo. 13 | # Move Hugo executable to /usr/bin/ to make it globally accessible. 14 | RUN apt-get update && apt-get install -y ca-certificates openssl git curl && \ 15 | rm -rf /var/lib/apt/lists/* && \ 16 | case ${VERSION} in \ 17 | latest) \ 18 | export VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') ;;\ 19 | esac && \ 20 | echo ${VERSION} && \ 21 | wget -O ${VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${VERSION}/${VARIANT}_${VERSION}_Linux-64bit.tar.gz && \ 22 | tar xf ${VERSION}.tar.gz && \ 23 | mv hugo /usr/bin/hugo 24 | 25 | # Expose the port that the Hugo development server will use. 26 | EXPOSE 1313 27 | 28 | # [Optional] Uncomment this section to install additional OS packages you may want. 29 | # 30 | # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ 31 | # && apt-get -y install --no-install-recommends 32 | 33 | # [Optional] Uncomment if you want to install more global Node.js packages. 34 | # RUN sudo -u node npm install -g 35 | -------------------------------------------------------------------------------- /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: 2 | // https://github.com/microsoft/vscode-dev-containers/tree/v0.202.3/containers/hugo 3 | { 4 | "name": "Hugo (Community)", 5 | "build": { 6 | "dockerfile": "Dockerfile", 7 | "args": { 8 | // Update VARIANT to pick hugo variant. 9 | // Example variants: hugo, hugo_extended 10 | // Rebuild the container if it already exists to update. 11 | "VARIANT": "hugo_extended", 12 | // Update VERSION to pick a specific hugo version. 13 | // Example versions: latest, 0.73.0, 0,71.1 14 | // Rebuild the container if it already exists to update. 15 | "VERSION": "0.139.4", 16 | // Update NODE_VERSION to pick the Node.js version 17 | "NODE_VERSION": "20", 18 | } 19 | }, 20 | 21 | "customizations": { 22 | // Configure properties specific to VS Code. 23 | // See https://containers.dev/supporting#visual-studio-code for more details 24 | "vscode": { 25 | // Set *default* container specific settings.json values on container create. 26 | "settings": { 27 | "html.format.templating": true, 28 | }, 29 | // Add the IDs of extensions you want installed when the container is created. 30 | "extensions": [ 31 | "tamasfe.even-better-toml", 32 | "davidanson.vscode-markdownlint", 33 | "budparr.language-hugo-vscode", 34 | ] 35 | } 36 | }, 37 | 38 | // Use 'forwardPorts' to make a list of ports inside the container available locally. 39 | "forwardPorts": [ 40 | 1313 41 | ], 42 | 43 | // Use 'postAttachCommand' to run each time a tool has successfully attached to the container. 44 | // Note that, postCreateCommand, postStartCommand, postAttachCommand, and initializeCommand all have 3 types: 45 | // Array: Passed to the OS for execution without going through a shell 46 | // String: Goes through a shell (it needs to be parsed into command and arguments) 47 | // Object: All lifecycle scripts have been extended to support object types to allow for parallel execution 48 | // See https://containers.dev/implementors/json_reference/#formatting-string-vs-array-properties for more details. 49 | // The following line uses string format. 50 | "postAttachCommand": "echo 🌲 Git version: $(git --version) && echo 🌲 Hugo version: $(hugo version) && echo 🌲 Node.js version: $(node -v) && echo 🌲 Golang version: $(go version)", 51 | 52 | // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. 53 | "remoteUser": "node", 54 | "features": { 55 | "golang": "latest" 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org 2 | 3 | # Declare this as the top-level EditorConfig file 4 | root = true 5 | 6 | # Set defaults (applicable for all files) 7 | [*] 8 | indent_style = space 9 | indent_size = 4 10 | end_of_line = lf 11 | charset = utf-8 12 | trim_trailing_whitespace = true 13 | insert_final_newline = true 14 | 15 | # [*.md] 16 | # trim_trailing_whitespace = false 17 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Common settings that generally should always be used with your language specific settings 2 | 3 | # Auto detect text files and perform LF normalization 4 | * text=auto 5 | 6 | # 7 | # The above will handle all files NOT mentioned below 8 | # 9 | 10 | # Documents 11 | *.bibtex text diff=bibtex 12 | *.doc diff=astextplain 13 | *.DOC diff=astextplain 14 | *.docx diff=astextplain 15 | *.DOCX diff=astextplain 16 | *.dot diff=astextplain 17 | *.DOT diff=astextplain 18 | *.pdf diff=astextplain 19 | *.PDF diff=astextplain 20 | *.rtf diff=astextplain 21 | *.RTF diff=astextplain 22 | *.md text diff=markdown 23 | *.mdx text diff=markdown 24 | *.tex text diff=tex 25 | *.adoc text 26 | *.textile text 27 | *.mustache text 28 | *.csv text eol=crlf 29 | *.tab text 30 | *.tsv text 31 | *.txt text 32 | *.sql text 33 | *.epub diff=astextplain 34 | 35 | # Graphics 36 | *.png binary 37 | *.jpg binary 38 | *.jpeg binary 39 | *.gif binary 40 | *.tif binary 41 | *.tiff binary 42 | *.ico binary 43 | # SVG treated as text by default. 44 | *.svg text 45 | # If you want to treat it as binary, 46 | # use the following line instead. 47 | # *.svg binary 48 | *.eps binary 49 | 50 | # Scripts 51 | *.bash text eol=lf 52 | *.fish text eol=lf 53 | *.sh text eol=lf 54 | *.zsh text eol=lf 55 | # These are explicitly windows files and should use crlf 56 | *.bat text eol=crlf 57 | *.cmd text eol=crlf 58 | *.ps1 text eol=crlf 59 | 60 | # Serialisation 61 | *.json text 62 | *.toml text 63 | *.xml text 64 | *.yaml text 65 | *.yml text 66 | 67 | # Archives 68 | *.7z binary 69 | *.gz binary 70 | *.tar binary 71 | *.tgz binary 72 | *.zip binary 73 | 74 | # Text files where line endings should be preserved 75 | *.patch -text 76 | 77 | # 78 | # /////////Exclude files from exporting//////// 79 | # You can tell Git not to export certain files or directories when generating an archive. 80 | # If there is a subdirectory or file that you don’t want to include in your archive file but that, 81 | # you do want checked into your project, you can determine those files via the export-ignore attribute. 82 | 83 | # .gitattributes export-ignore 84 | # .gitignore export-ignore 85 | # .gitkeep export-ignore 86 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | # github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | # patreon: # Replace with a single Patreon username 5 | # open_collective: # Replace with a single Open Collective username 6 | ko_fi: sidharth 7 | # tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | # community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | # liberapay: # Replace with a single Liberapay username 10 | # issuehunt: # Replace with a single IssueHunt username 11 | # otechie: # Replace with a single Otechie username 12 | # lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Report a bug to help us improve. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **Steps to reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Device information** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. firefox, safari] 29 | - Version [e.g. 22] 30 | 31 | **Additional context** 32 | Add any other context about the problem here. 33 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Questions or support 4 | url: https://github.com/hugo-sid/hugo-blog-awesome/discussions/ 5 | about: Please use GitHub discussions to ask and answer questions. 6 | - name: Feature request 7 | url: https://github.com/hugo-sid/hugo-blog-awesome/discussions/categories/feature-requests 8 | about: Please use the feature requests section in GitHub discussions to propose new features or ideas. 9 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/new-blank-issue.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: New blank issue 3 | about: Use this to mention anything other than bug report. 4 | title: "" 5 | labels: "" 6 | assignees: "" 7 | --- -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | ## What problem does this PR solve? 13 | 14 | 17 | 18 | ## Is this PR adding a new feature? 19 | 20 | 23 | 24 | ## Is this PR related to any issue or discussion? 25 | 26 | 31 | 32 | 33 | ## PR Checklist 34 | 35 | - [ ] I have verified that the code works as described/as intended. 36 | - [ ] This change adds a social icon which has a permissive license to use it. 37 | - [ ] This change **does not** include any external library/resources. 38 | - [ ] This change **does not** include any unrelated scripts (e.g. bash and python scripts). 39 | - [ ] 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). 40 | -------------------------------------------------------------------------------- /.github/workflows/pr-labeler.yml: -------------------------------------------------------------------------------- 1 | name: "Pull Request auto-label" 2 | 3 | on: 4 | # Including 'on push' trigger, so that PRs touching the same files as push are checked for conflicts. 5 | # PR can be rebased (against main brnach) to resolve conflicts. 6 | push: 7 | branches: [ main ] 8 | pull_request_target: 9 | types: [ opened, synchronize ] 10 | 11 | jobs: 12 | conflicts: 13 | runs-on: ubuntu-latest 14 | permissions: 15 | contents: read 16 | pull-requests: write 17 | steps: 18 | - name: Update PRs with conflict labels 19 | uses: eps1lon/actions-label-merge-conflict@1df065ebe6e3310545d4f4c4e862e43bdca146f0 # releases/2.1.0 20 | with: 21 | dirtyLabel: "conflicts" 22 | #removeOnDirtyLabel: "PR: ready to ship" 23 | repoToken: "${{ secrets.GITHUB_TOKEN }}" 24 | commentOnDirty: "This pull request has conflicts with the base branch, please resolve those so that we can review the pull request." 25 | commentOnClean: "Conflicts have been resolved! 🎉 A maintainer will soon review the pull request." 26 | 27 | size: 28 | if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' 29 | permissions: 30 | issues: write 31 | pull-requests: write 32 | runs-on: ubuntu-latest 33 | steps: 34 | - uses: codelytv/pr-size-labeler@1c3422395d899286d5ee2c809fd5aed264d5eb9b # v1.10.2 35 | with: 36 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 37 | xs_label: 'size/xs' 38 | xs_max_size: 35 39 | s_label: 'size/s' 40 | s_max_size: 75 41 | m_label: 'size/m' 42 | m_max_size: 150 43 | l_label: 'size/l' 44 | l_max_size: 300 45 | xl_label: 'size/xl' 46 | message_if_xl: > 47 | This PR exceeds the recommended size of 300 lines (counting both additions & deletions). 48 | Kindly ensure that you are NOT addressing multiple issues in one PR. 49 | We recommend you to create atomic PRs which focus on a single change. 50 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | branches: 4 | - main 5 | 6 | permissions: 7 | contents: write 8 | pull-requests: write 9 | 10 | name: Create release PR 11 | 12 | jobs: 13 | release-please: 14 | runs-on: ubuntu-latest 15 | steps: 16 | - uses: google-github-actions/release-please-action@db8f2c60ee802b3748b512940dde88eabd7b7e01 # v3.7.13 17 | with: 18 | release-type: simple 19 | token: ${{ secrets.HBA_RELEASE_PLEASE_TOKEN }} 20 | pull-request-header: ":rocket: New release" 21 | 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}]' 22 | -------------------------------------------------------------------------------- /.github/workflows/scorecard.yml: -------------------------------------------------------------------------------- 1 | # This workflow uses actions that are not certified by GitHub. They are provided 2 | # by a third-party and are governed by separate terms of service, privacy 3 | # policy, and support documentation. 4 | 5 | name: Scorecard supply-chain security 6 | on: 7 | # For Branch-Protection check. Only the default branch is supported. See 8 | # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection 9 | branch_protection_rule: 10 | # To guarantee Maintained check is occasionally updated. See 11 | # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained 12 | schedule: 13 | - cron: '25 10 * * 3' 14 | push: 15 | branches: [ "main" ] 16 | 17 | # Declare default permissions as read only. 18 | permissions: read-all 19 | 20 | jobs: 21 | analysis: 22 | name: Scorecard analysis 23 | runs-on: ubuntu-latest 24 | permissions: 25 | # Needed to upload the results to code-scanning dashboard. 26 | security-events: write 27 | # Needed to publish results and get a badge (see publish_results below). 28 | id-token: write 29 | # Uncomment the permissions below if installing in a private repository. 30 | # contents: read 31 | # actions: read 32 | 33 | steps: 34 | - name: "Checkout code" 35 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 36 | with: 37 | persist-credentials: false 38 | 39 | - name: "Run analysis" 40 | uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 41 | with: 42 | results_file: results.sarif 43 | results_format: sarif 44 | # (Optional) "write" PAT token. Uncomment the `repo_token` line below if: 45 | # - you want to enable the Branch-Protection check on a *public* repository, or 46 | # - you are installing Scorecard on a *private* repository 47 | # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat. 48 | # repo_token: ${{ secrets.SCORECARD_TOKEN }} 49 | 50 | # Public repositories: 51 | # - Publish results to OpenSSF REST API for easy access by consumers 52 | # - Allows the repository to include the Scorecard badge. 53 | # - See https://github.com/ossf/scorecard-action#publishing-results. 54 | # For private repositories: 55 | # - `publish_results` will always be set to `false`, regardless 56 | # of the value entered here. 57 | publish_results: true 58 | 59 | # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF 60 | # format to the repository Actions tab. 61 | - name: "Upload artifact" 62 | uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 63 | with: 64 | name: SARIF file 65 | path: results.sarif 66 | retention-days: 5 67 | 68 | # Upload the results to GitHub's code scanning dashboard. 69 | - name: "Upload to code-scanning" 70 | uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16 71 | with: 72 | sarif_file: results.sarif 73 | -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- 1 | # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. 2 | # 3 | # You can adjust the behavior by modifying this file. 4 | # For more information, see: 5 | # https://github.com/actions/stale 6 | name: Mark stale issues and pull requests 7 | 8 | on: workflow_dispatch 9 | 10 | jobs: 11 | stale: 12 | 13 | runs-on: ubuntu-latest 14 | permissions: 15 | issues: write 16 | pull-requests: write 17 | 18 | steps: 19 | - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 20 | with: 21 | repo-token: ${{ secrets.GITHUB_TOKEN }} 22 | days-before-issue-stale: 21 23 | days-before-pr-stale: 21 24 | days-before-close: 7 25 | stale-issue-message: 'This issue has been marked stale due to inactivity. It will auto-close in 7 days without an update.' 26 | close-issue-message: 'This issue was auto-closed due to inactivity.' 27 | 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.' 28 | close-pr-message: 'This pull request was auto-closed due to inactivity.' 29 | exempt-all-assignees: true 30 | exempt-issue-labels: accepted 31 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .hugo_build.lock 2 | .hvm 3 | exampleSite/public/ 4 | exampleSite/resources/ 5 | exampleSite/.hugo_build.lock 6 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Welcome to contribution guidelines 2 | 3 | Thank you for taking time to contribute to Hugo blog awesome! 4 | 5 | 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. 6 | 7 | ## When to use issues? 8 | 9 | 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. 10 | For questions you can visit [Q&A section](https://github.com/hugo-sid/hugo-blog-awesome/discussions/categories/q-a) of Discussions. 11 | 12 | ## Pull requests (PR) 13 | 14 | - Please ensure that you have filled answers to as many questions as applicable, while creating a PR. 15 | - We recommend you to create atomic PRs which focus on a single change. 16 | - We do recommend PRs to not exceed 200 lines (includes additions and deletions) of code. 17 | - Kindly ensure that you are **NOT** addressing multiple issues in one PR. 18 | 19 | ## Adding a new language 20 | 21 | If you are adding support for a new language, you have to do the following: 22 | 23 | 1. Add language specific configuration and parameters in `exampleSite/hugo.toml` 24 | 2. Translate specific terms by creating a new language-specific file in the `i18n` directory 25 | 3. Add translated content in `exampleSite/content` directory 26 | 27 | You can take a look at this [Pull request](https://github.com/hugo-sid/hugo-blog-awesome/pull/145) for reference. 28 | 29 | ## Commits 30 | 31 | This project adheres to [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/). 32 | 33 | ## Releases 34 | 35 | We use [Semantic Versioning](https://semver.org/) for releases. 36 | 37 | ## Changelog 38 | 39 | You don't have to edit the `CHANGELOG.md` file. The changelong is auto generated. A GitHub action workflow is in place, which: 40 | 41 | - analyses the commits (from last release) 42 | - determines the version to bump (it's doable since this project adheres to conventional commit specification) 43 | - updates the changelog 44 | - creates a git tag corresponding to the version 45 | 46 | Finally it creates a PR with the above changes. So, there is no manual editing required. 47 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2023 Sidharth R. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 3 | date: {{ .Date }} 4 | draft: true 5 | description: 6 | isStarred: false 7 | --- 8 | 9 | -------------------------------------------------------------------------------- /assets/code-highlight.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/code-highlight.css -------------------------------------------------------------------------------- /assets/icons/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/icons/android-chrome-192x192.png -------------------------------------------------------------------------------- /assets/icons/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/icons/android-chrome-512x512.png -------------------------------------------------------------------------------- /assets/icons/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/icons/apple-touch-icon-precomposed.png -------------------------------------------------------------------------------- /assets/icons/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/icons/apple-touch-icon.png -------------------------------------------------------------------------------- /assets/icons/book-icon-dark.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/icons/book-icon-light.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/icons/browserconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | {{ .TileColor | default "#2d89ef" }} 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /assets/icons/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/icons/favicon-16x16.png -------------------------------------------------------------------------------- /assets/icons/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/icons/favicon-32x32.png -------------------------------------------------------------------------------- /assets/icons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/icons/favicon.ico -------------------------------------------------------------------------------- /assets/icons/favicon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /assets/icons/mstile-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/icons/mstile-144x144.png -------------------------------------------------------------------------------- /assets/icons/mstile-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/icons/mstile-150x150.png -------------------------------------------------------------------------------- /assets/icons/mstile-310x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/icons/mstile-310x150.png -------------------------------------------------------------------------------- /assets/icons/mstile-310x310.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/icons/mstile-310x310.png -------------------------------------------------------------------------------- /assets/icons/mstile-70x70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/icons/mstile-70x70.png -------------------------------------------------------------------------------- /assets/icons/safari-pinned-tab.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | Created by potrace 1.14, written by Peter Selinger 2001-2017 9 | 10 | 12 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /assets/icons/site.webmanifest: -------------------------------------------------------------------------------- 1 | { 2 | "name": "{{ .name }}", 3 | "short_name": "{{ .short_name }}", 4 | "start_url": "{{ .start_url }}", 5 | "theme_color": "{{ .theme_color }}", 6 | "background_color": "{{ .background_color }}", 7 | "display": "{{ .display }}", 8 | "icons": [ 9 | { 10 | "src": "{{ (resources.Get "/icons/android-chrome-192x192.png").RelPermalink }}", 11 | "sizes": "192x192", 12 | "type": "image/png" 13 | }, 14 | { 15 | "src": "{{ (resources.Get "/icons/android-chrome-512x512.png").RelPermalink }}", 16 | "sizes": "512x512", 17 | "type": "image/png" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /assets/js/goToTop.js: -------------------------------------------------------------------------------- 1 | window.addEventListener('load', () => { 2 | const gttButton = document.getElementById("totop"); 3 | if (!gttButton) return; 4 | window.onscroll = () => { 5 | if ( 6 | document.body.scrollTop > 300 || 7 | document.documentElement.scrollTop > 300 8 | ) { 9 | gttButton.style.visibility = "visible"; 10 | gttButton.style.opacity = "1"; 11 | } else { 12 | gttButton.style.visibility = "hidden"; 13 | gttButton.style.opacity = "0"; 14 | } 15 | }; 16 | }); 17 | -------------------------------------------------------------------------------- /assets/js/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | -------------------------------------------------------------------------------- /assets/js/theme.js: -------------------------------------------------------------------------------- 1 | (() => { 2 | "use strict"; 3 | const LS_THEME_KEY = "theme"; 4 | const THEMES = { 5 | LIGHT: "light", 6 | DARK: "dark", 7 | AUTO: "auto", 8 | }; 9 | 10 | const body = document.body; 11 | const config = body.getAttribute("data-theme"); 12 | 13 | const getThemeState = () => { 14 | const lsState = localStorage.getItem(LS_THEME_KEY); 15 | if (lsState) return lsState; 16 | 17 | let state; 18 | switch (config) { 19 | case THEMES.DARK: 20 | state = THEMES.DARK; 21 | break; 22 | case THEMES.LIGHT: 23 | state = THEMES.LIGHT; 24 | break; 25 | case THEMES.AUTO: 26 | default: 27 | state = window.matchMedia("(prefers-color-scheme: dark)") 28 | .matches 29 | ? THEMES.DARK 30 | : THEMES.LIGHT; 31 | break; 32 | } 33 | return state; 34 | }; 35 | 36 | const initTheme = (state) => { 37 | if (state === THEMES.DARK) { 38 | document.documentElement.classList.add(THEMES.DARK); 39 | document.documentElement.classList.remove(THEMES.LIGHT); 40 | } else if (state === THEMES.LIGHT) { 41 | document.documentElement.classList.remove(THEMES.DARK); 42 | document.documentElement.classList.add(THEMES.LIGHT); 43 | } 44 | }; 45 | 46 | // init theme ASAP, then do the rest. 47 | initTheme(getThemeState()); 48 | requestAnimationFrame(() => body.classList.remove("notransition")) 49 | const toggleTheme = () => { 50 | const state = getThemeState(); 51 | if (state === THEMES.DARK) { 52 | localStorage.setItem(LS_THEME_KEY, THEMES.LIGHT); 53 | initTheme(THEMES.LIGHT); 54 | } else if (state === THEMES.LIGHT) { 55 | localStorage.setItem(LS_THEME_KEY, THEMES.DARK); 56 | initTheme(THEMES.DARK); 57 | } 58 | }; 59 | 60 | window.addEventListener("DOMContentLoaded", () => { 61 | // Theme switch 62 | const lamp = document.getElementById("mode"); 63 | 64 | lamp.addEventListener("click", () => toggleTheme()); 65 | 66 | // Blur the content when the menu is open 67 | const cbox = document.getElementById("menu-trigger"); 68 | 69 | cbox.addEventListener("change", function () { 70 | const area = document.querySelector(".wrapper"); 71 | if (this.checked) return area.classList.add("blurry"); 72 | area.classList.remove("blurry"); 73 | }); 74 | }); 75 | })(); 76 | -------------------------------------------------------------------------------- /assets/sass/_code.scss: -------------------------------------------------------------------------------- 1 | // Code 2 | code { 3 | font-family: $mono-family; 4 | text-rendering: optimizeLegibility; 5 | font-feature-settings: "calt" 1; 6 | font-variant-ligatures: normal; 7 | white-space: pre; 8 | word-spacing: normal; 9 | word-break: normal; 10 | word-wrap: normal; 11 | font-size: inherit; 12 | } 13 | // Inline code 14 | li>code, 15 | p > code { 16 | white-space: pre-wrap; 17 | font-size: 0.9em; 18 | padding: 1px 3px; 19 | position: relative; 20 | top: -1px; 21 | color: $inline-code-text; 22 | background-color: $inline-code-bg; 23 | border-radius: 2px; 24 | border: 1px solid rgba(128,128,128,0.1); 25 | } 26 | // Codeblock Theme 27 | pre { 28 | background-color: #1a1b21; 29 | border-radius: .3rem; 30 | padding: .5rem 1rem; 31 | display: block; 32 | overflow-x: auto; 33 | 34 | @include media-query($on-mobile) { 35 | margin: 0 calc(51% - 51vw); 36 | } 37 | 38 | // Configure scrollbars for code blocks 39 | &::-webkit-scrollbar { 40 | height: .5rem; 41 | } 42 | // Set scrollbar background, track and thumb colors 43 | &::-webkit-scrollbar-track { 44 | background: #606071; 45 | border-radius: .1rem; 46 | } 47 | &::-webkit-scrollbar-thumb { 48 | background: #999ea2; 49 | border-radius: .3rem; 50 | } 51 | &::-webkit-scrollbar-thumb:hover { 52 | background: #424546; 53 | } 54 | 55 | > code { 56 | color: white; 57 | max-width: 50rem; 58 | margin-left: auto; 59 | margin-right: auto; 60 | line-height: 1.5; 61 | display: block; 62 | border: 0; 63 | } 64 | } 65 | 66 | .highlight table td { 67 | padding: 5px; 68 | } 69 | 70 | .highlight table pre { 71 | margin: 0; 72 | } 73 | 74 | .highlight, 75 | .highlight .w { 76 | color: #fbf1c7; 77 | // background-color: #1a1b21; 78 | } 79 | 80 | .highlight .err { 81 | color: #fb4934; 82 | // background-color: #1a1b21; 83 | font-weight: bold; 84 | } 85 | 86 | .highlight .c, 87 | .highlight .cd, 88 | .highlight .cm, 89 | .highlight .c1, 90 | .highlight .cs { 91 | color: #928374; 92 | font-style: italic; 93 | } 94 | 95 | .highlight .cp { 96 | color: #8ec07c; 97 | } 98 | 99 | .highlight .nt { 100 | color: #fb4934; 101 | } 102 | 103 | .highlight .o, 104 | .highlight .ow { 105 | color: #fbf1c7; 106 | } 107 | 108 | .highlight .p, 109 | .highlight .pi { 110 | color: #fbf1c7; 111 | } 112 | 113 | .highlight .gi { 114 | color: #b8bb26; 115 | background-color: #282828; 116 | } 117 | 118 | .highlight .gd { 119 | color: #fb4934; 120 | background-color: #282828; 121 | } 122 | 123 | .highlight .gh { 124 | color: #b8bb26; 125 | font-weight: bold; 126 | } 127 | 128 | .highlight .k, 129 | .highlight .kn, 130 | .highlight .kp, 131 | .highlight .kr, 132 | .highlight .kv { 133 | color: #fb4934; 134 | } 135 | 136 | .highlight .kc { 137 | color: #d3869b; 138 | } 139 | 140 | .highlight .kt { 141 | color: #fabd2f; 142 | } 143 | 144 | .highlight .kd { 145 | color: #fe8019; 146 | } 147 | 148 | .highlight .s, 149 | .highlight .sb, 150 | .highlight .sc, 151 | .highlight .sd, 152 | .highlight .s2, 153 | .highlight .sh, 154 | .highlight .sx, 155 | .highlight .s1 { 156 | color: #b8bb26; 157 | font-style: italic; 158 | } 159 | 160 | .highlight .si { 161 | color: #b8bb26; 162 | font-style: italic; 163 | } 164 | 165 | .highlight .sr { 166 | color: #b8bb26; 167 | font-style: italic; 168 | } 169 | 170 | .highlight .se { 171 | color: #fe8019; 172 | } 173 | 174 | .highlight .nn { 175 | color: #8ec07c; 176 | } 177 | 178 | .highlight .nc { 179 | color: #8ec07c; 180 | } 181 | 182 | .highlight .no { 183 | color: #d3869b; 184 | } 185 | 186 | .highlight .na { 187 | color: #b8bb26; 188 | } 189 | 190 | .highlight .m, 191 | .highlight .mf, 192 | .highlight .mh, 193 | .highlight .mi, 194 | .highlight .il, 195 | .highlight .mo, 196 | .highlight .mb, 197 | .highlight .mx { 198 | color: #d3869b; 199 | } 200 | 201 | .highlight .ss { 202 | color: #83a598; 203 | } 204 | -------------------------------------------------------------------------------- /assets/sass/_custom.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/assets/sass/_custom.scss -------------------------------------------------------------------------------- /assets/sass/_fonts.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* roboto-regular - latin */ 3 | @font-face { 4 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ 5 | font-family: 'Roboto'; 6 | font-style: normal; 7 | font-weight: 400; 8 | src: url(fonts/Roboto/roboto-v30-latin-regular.eot); /* IE9 Compat Modes */ 9 | src: url(fonts/Roboto/roboto-v30-latin-regular.eot?#iefix) format('embedded-opentype'), /* IE6-IE8 */ 10 | url(fonts/Roboto/roboto-v30-latin-regular.woff2) format('woff2'), /* Super Modern Browsers */ 11 | url(fonts/Roboto/roboto-v30-latin-regular.woff) format('woff'), /* Modern Browsers */ 12 | url(fonts/Roboto/roboto-v30-latin-regular.ttf) format('truetype'), /* Safari, Android, iOS */ 13 | url(fonts/Roboto/roboto-v30-latin-regular.svg#Roboto) format('svg'); /* Legacy iOS */ 14 | } 15 | -------------------------------------------------------------------------------- /assets/sass/_goToTop.scss: -------------------------------------------------------------------------------- 1 | /* Scroll to top button */ 2 | html { 3 | scroll-behavior: smooth; 4 | } 5 | 6 | #totop { 7 | visibility: hidden; 8 | color: $text-base-color; 9 | position: fixed; 10 | bottom: 60px; 11 | right: 30px; 12 | z-index: 1; 13 | border-radius: 10%; 14 | background-color: $go-top-bg; 15 | transition: visibility .5s,opacity .8s linear; 16 | 17 | &:hover { 18 | background-color: $go-top-bg-hover; 19 | } 20 | 21 | // center align icon vertically 22 | svg { 23 | margin: auto; 24 | display: block; 25 | height: 40px; 26 | width: 40px; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /assets/sass/_listpage.scss: -------------------------------------------------------------------------------- 1 | .list-page .post-year { 2 | padding-bottom: .5rem; 3 | } 4 | 5 | .icon-star { 6 | color: orange; 7 | height: 16px; 8 | margin-right: 1rem; 9 | width: 16px; 10 | display: block; 11 | } 12 | 13 | .post-item-right { 14 | margin-left: auto; 15 | margin-right: 0; 16 | } -------------------------------------------------------------------------------- /assets/sass/_miscellaneous.scss: -------------------------------------------------------------------------------- 1 | // Animation fade-in 2 | @keyframes fadein { 3 | 0% { 4 | opacity: 0.2; 5 | } 6 | 7 | 100% { 8 | opacity: 1; 9 | } 10 | } 11 | 12 | // Animation blur 13 | @keyframes blur { 14 | 0% { 15 | filter: blur(0px); 16 | } 17 | 18 | 100% { 19 | filter: blur(4px); 20 | } 21 | } 22 | 23 | // Responsive embed video 24 | .embed-responsive { 25 | height: 0; 26 | max-width: 100%; 27 | overflow: hidden; 28 | position: relative; 29 | padding-bottom: 56.25%; 30 | margin-top: 20px; 31 | 32 | iframe, 33 | object, 34 | embed { 35 | top: 0; 36 | left: 0; 37 | width: 100%; 38 | height: 100%; 39 | position: absolute; 40 | } 41 | } 42 | 43 | // 404 page 44 | .main-404 { 45 | padding: 9rem 0; 46 | text-align: center; 47 | } 48 | -------------------------------------------------------------------------------- /assets/sass/_navbar.scss: -------------------------------------------------------------------------------- 1 | // Navbar 2 | .navbar { 3 | height: auto; 4 | max-width: calc(#{$wide-size} - (#{$spacing-full} * 2)); 5 | max-width: -webkit-calc(#{$wide-size} - (#{$spacing-full} * 2)); 6 | position: relative; 7 | margin-right: auto; 8 | margin-left: auto; 9 | border-bottom: 1px solid $light; 10 | padding: .5rem .3rem; 11 | @extend %clearfix; 12 | } 13 | .logo { 14 | float: left; 15 | margin: .5rem 0 0 1rem; 16 | > svg { 17 | opacity: 0.7; 18 | } 19 | &:hover { 20 | > svg { 21 | opacity: 1; 22 | } 23 | } 24 | @include media-query($on-mobile) { 25 | padding-top: .3rem; 26 | 27 | } 28 | } 29 | // Navigation 30 | .menu { 31 | user-select: none; 32 | -ms-user-select: none; 33 | -webkit-user-select: none; 34 | 35 | ul { 36 | margin: 0; 37 | } 38 | 39 | .menu-separator { 40 | margin-right: .7rem; 41 | @include media-query($on-mobile) { 42 | display: none; 43 | } 44 | } 45 | 46 | 47 | a#mode { 48 | -webkit-transform: scale(1, 1); 49 | transform: scale(1, 1); 50 | opacity: 0.7; 51 | z-index: 1; 52 | 53 | &:hover { 54 | cursor: pointer; 55 | opacity: 1; 56 | } 57 | &:active { 58 | -webkit-transform: scale(0.9, 0.9); 59 | transform: scale(0.9, 0.9); 60 | } 61 | .mode-moon { 62 | display: block; 63 | line { 64 | stroke: $black; 65 | fill: none; 66 | } 67 | 68 | circle { 69 | fill: $black; 70 | stroke: $black; 71 | } 72 | } 73 | .mode-sunny { 74 | display: none; 75 | line { 76 | stroke: $dark-white; 77 | fill: none; 78 | } 79 | circle { 80 | fill: none; 81 | stroke: $dark-white; 82 | } 83 | } 84 | } 85 | 86 | .trigger { 87 | float: right; 88 | display: flex; 89 | align-items: center; 90 | } 91 | 92 | .menu-trigger { 93 | display: none; 94 | } 95 | 96 | .menu-icon { 97 | display: none; 98 | } 99 | 100 | li { 101 | display: inline-block; 102 | margin: 0; 103 | padding: 0; 104 | list-style: none; 105 | 106 | @include media-query($on-mobile) { 107 | display: block; 108 | margin: 0; 109 | padding: 0; 110 | list-style: none; 111 | } 112 | } 113 | 114 | .menu-link { 115 | color: $black; 116 | line-height: $base-line-height + 0.4; 117 | text-decoration: none; 118 | padding: .3rem .5rem; 119 | opacity: 0.7; 120 | letter-spacing: 0.015rem; 121 | 122 | &:hover { 123 | opacity: 1; 124 | } 125 | 126 | &:not(:last-child) { 127 | margin-right: 5px; 128 | } 129 | 130 | @include media-query($on-mobile) { 131 | opacity: 0.8; 132 | } 133 | } 134 | 135 | .menu-link.active { 136 | opacity: 1; 137 | font-weight: 600; 138 | } 139 | 140 | @include media-query($on-mobile) { 141 | position: fixed; 142 | top: 0; 143 | left: 0; 144 | right: 0; 145 | z-index: 2; 146 | text-align: center; 147 | height: 50px; 148 | background-color: $white; 149 | border-bottom: 1px solid $light; 150 | 151 | a#mode { 152 | left: 10px; 153 | top: 12px; 154 | } 155 | 156 | .menu-icon { 157 | display: block; 158 | position: absolute; 159 | right: 0; 160 | margin: .7rem .3rem 0 0; 161 | cursor: pointer; 162 | text-align: center; 163 | z-index: 1; 164 | > svg { 165 | opacity: 0.7; 166 | } 167 | &:hover { 168 | > svg { 169 | opacity: 1; 170 | } 171 | } 172 | &:active { 173 | -webkit-transform: scale(0.9, 0.9); 174 | transform: scale(0.9, 0.9); 175 | } 176 | } 177 | 178 | input[type="checkbox"]:not(:checked) ~ .trigger { 179 | clear: both; 180 | visibility: hidden; 181 | } 182 | 183 | input[type="checkbox"]:checked ~ .trigger { 184 | position: fixed; 185 | animation: 0.2s ease-in forwards fadein; 186 | -webkit-animation: 0.2s ease-in forwards fadein; 187 | flex-direction: column; 188 | justify-content: center; 189 | height: 100vh; 190 | width: 100%; 191 | top: 0; 192 | } 193 | 194 | .menu-link { 195 | display: block; 196 | box-sizing: border-box; 197 | font-size: 1.1em; 198 | 199 | &:not(:last-child) { 200 | margin: 0; 201 | padding: 2px 0; 202 | } 203 | } 204 | } 205 | } 206 | -------------------------------------------------------------------------------- /assets/sass/_post.scss: -------------------------------------------------------------------------------- 1 | // Post wrapper 2 | .wrapper.post { 3 | @include media-query($on-mobile) { 4 | padding-left: $spacing-half; 5 | padding-right: $spacing-half; 6 | } 7 | } 8 | 9 | // Post title 10 | .header { 11 | margin-top: 7.8em; 12 | 13 | .header-title { 14 | font-size: 2em; 15 | line-height: 1.2; 16 | margin-top: 10px; 17 | margin-bottom: 20px; 18 | 19 | &.center { 20 | text-align: center; 21 | } 22 | 23 | @include media-query($on-mobile) { 24 | font-size: 1.9em; 25 | } 26 | } 27 | } 28 | 29 | // Post meta 30 | .post-meta { 31 | padding-top: 3px; 32 | line-height: 1.3; 33 | color: $gray; 34 | 35 | time { 36 | position: relative; 37 | margin-right: 1.5em; 38 | } 39 | 40 | span[itemprop="author"] { 41 | border-bottom: 1px dotted $light; 42 | } 43 | } 44 | 45 | // Post content 46 | .page-content { 47 | padding-top: 8px; 48 | 49 | iframe { 50 | text-align: center; 51 | } 52 | 53 | figure { 54 | img { 55 | border-radius: 2px; 56 | } 57 | 58 | figcaption { 59 | margin-top: 5px; 60 | font-style: italic; 61 | font-size: $small-font-size; 62 | } 63 | } 64 | 65 | a { 66 | color: $text-link-blue; 67 | text-decoration: none; 68 | &[target="_blank"]::after { 69 | content: " \2197"; 70 | font-size: $small-font-size; 71 | line-height: 0; 72 | position: relative; 73 | bottom: 5px; 74 | vertical-align: baseline; 75 | } 76 | 77 | &:hover { 78 | color: $text-link-blue-active; 79 | } 80 | 81 | &:focus { 82 | color: $text-link-blue; 83 | } 84 | } 85 | 86 | > p { 87 | margin: 0; 88 | padding-top: $spacing-full - 15; 89 | padding-bottom: $spacing-full - 15; 90 | } 91 | 92 | ul.task-list { 93 | list-style: none; 94 | margin: 0; 95 | 96 | li::before { 97 | content: ""; 98 | } 99 | 100 | li input[type="checkbox"] { 101 | margin-right: 10px; 102 | } 103 | } 104 | 105 | dl dt { 106 | font-weight: $bold-weight; 107 | } 108 | 109 | h1, 110 | h2, 111 | h3, 112 | h4, 113 | h5, 114 | h6 { 115 | color: $black; 116 | font-weight: $bold-weight; 117 | margin-top: $spacing-full; 118 | margin-bottom: 0; 119 | letter-spacing: .03rem; 120 | 121 | &:hover { 122 | .anchor-head { 123 | color: $text-link-blue; 124 | opacity: 1; 125 | } 126 | } 127 | 128 | .anchor-head { 129 | position: relative; 130 | opacity: 0; 131 | outline: none; 132 | 133 | &::before { 134 | content: "#"; 135 | position: absolute; 136 | right: -3px; 137 | width: 1em; 138 | font-weight: $bold-weight; 139 | } 140 | } 141 | } 142 | 143 | h1 { 144 | @include relative-font-size(1.5); 145 | } 146 | 147 | h2 { 148 | @include relative-font-size(1.375); 149 | } 150 | 151 | h3 { 152 | @include relative-font-size(1.25); 153 | } 154 | 155 | h4 { 156 | @include relative-font-size(1.25); 157 | } 158 | 159 | h5 { 160 | @include relative-font-size(1); 161 | } 162 | 163 | h6 { 164 | @include relative-font-size(0.875); 165 | } 166 | } 167 | 168 | .post-nav { 169 | display: flex; 170 | position: relative; 171 | margin-top: 5em; 172 | border-top: 1px solid $light; 173 | line-height: 1.4; 174 | 175 | .post-nav-item { 176 | border-bottom: 0; 177 | font-weight: $bold-weight; 178 | padding-bottom: 10px; 179 | 180 | .post-title { 181 | color: $black; 182 | } 183 | 184 | &:hover, 185 | &:focus { 186 | .post-title { 187 | color: $text-link-blue-active; 188 | opacity: 0.9; 189 | } 190 | } 191 | 192 | .nav-arrow { 193 | font-weight: $normal-weight; 194 | font-size: $small-font-size; 195 | color: $gray; 196 | margin-bottom: 3px; 197 | } 198 | 199 | width: 50%; 200 | padding-top: 10px; 201 | text-decoration: none; 202 | box-sizing: border-box; 203 | 204 | &:nth-child(odd) { 205 | padding-left: 0; 206 | padding-right: 20px; 207 | } 208 | 209 | &:nth-child(even) { 210 | text-align: right; 211 | padding-right: 0; 212 | padding-left: 20px; 213 | } 214 | } 215 | 216 | @include media-query($on-mobile) { 217 | display: block; 218 | font-size: $small-font-size; 219 | 220 | .post-nav-item { 221 | display: block; 222 | width: 100%; 223 | } 224 | 225 | .post-nav-item:nth-child(even) { 226 | border-left: 0; 227 | padding-left: 0; 228 | border-top: 1px solid $light; 229 | } 230 | } 231 | } 232 | 233 | .post-updated-at { 234 | font-family: "Ubuntu mono", "monospace"; 235 | } 236 | -------------------------------------------------------------------------------- /assets/sass/_tableOfContent.scss: -------------------------------------------------------------------------------- 1 | /* Table of contents */ 2 | details { 3 | cursor: pointer; 4 | } 5 | 6 | .toc { 7 | margin: 1.1rem 0 1rem 0; 8 | padding: .5rem 1rem .5rem 1rem; 9 | border-radius: .3rem; 10 | background-color: $toc-bg; 11 | 12 | ul { 13 | padding-top: 1rem; 14 | margin-left: 1rem; 15 | padding-left: 1rem; 16 | 17 | li { 18 | margin-bottom: 0.5em; 19 | line-height: 1.4; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /assets/sass/main.scss: -------------------------------------------------------------------------------- 1 | //////////////// 1. Light Colors ///////////////// 2 | $text-base-color: #434648; 3 | $text-link-blue: #003fff; 4 | $text-link-blue-active: #0036c7; 5 | $bloquote-border: #c4c8cc; 6 | $blockquote-text: #525b66; 7 | $inline-code-text: #333638; 8 | $inline-code-bg: #d8dbe2; 9 | $toc-bg: #edecec; 10 | $go-top-bg: #dfe0e397; 11 | $go-top-bg-hover: #dfe0e3; 12 | 13 | $black: #0d122b; 14 | $light: #ececec; 15 | $smoke: #d2c7c7; 16 | $gray: #6b7886; 17 | $white: #fff; 18 | 19 | //////////////// 2. Dark Colors ///////////////// 20 | $dark-text-base-color: #babdc4; 21 | $dark-text-link-blue: #77a8fd; 22 | $dark-text-link-blue-active: #5292ff; 23 | $dark-bloquote-border: #4a4d56; 24 | $dark-blockquote-text: #9b9ba3; 25 | $dark-inline-code-text: #c2c4ca; 26 | $dark-inline-code-bg: #2d2d2d; 27 | $dark-toc-bg: #323232; 28 | $dark-go-top-bg: #676767b3; 29 | $dark-go-top-bg-hover: #676767; 30 | 31 | $dark-black: #131418; 32 | $dark-white: #eaeaea; 33 | $dark-light: #1b1d25; 34 | $dark-smoke: #4a4d56; 35 | $dark-gray: #767f87; 36 | 37 | //////////////// 3. Fonts preferences ///////////////// 38 | $sans-family: Roboto, sans-serif; 39 | $mono-family: Consolas, monospace; 40 | $base-font-size: 16px; 41 | $medium-font-size: $base-font-size * 0.938; 42 | $small-font-size: $base-font-size * 0.875; 43 | $base-line-height: 1.85; 44 | 45 | // Font weight 46 | // $light-weight: 300; // uncomment if necessary 47 | $normal-weight: 400; 48 | $bold-weight: 700; 49 | // $black-weight: 900; // uncomment if necessary 50 | 51 | //////////////// 4.Responsive design (media queries) ///////////////// 52 | $wide-size: 890px; 53 | $narrow-size: 720px; 54 | 55 | // Padding unit 56 | $spacing-full: 30px; 57 | $spacing-half: $spacing-full / 2; 58 | 59 | // Screen sizes 60 | $on-mobile: 768px; 61 | $on-tablet: 769px; 62 | $on-desktop: 1024px; 63 | $on-widescreen: 1152px; 64 | 65 | @mixin media-query($device) { 66 | @media screen and (max-width: $device) { 67 | @content; 68 | } 69 | } 70 | 71 | @mixin relative-font-size($ratio) { 72 | font-size: $base-font-size * $ratio; 73 | } 74 | 75 | //////////////// 5. Import all sass files ///////////////// 76 | 77 | @import "fonts"; 78 | @import "base"; 79 | @import "navbar"; 80 | @import "layout"; 81 | @import "post"; 82 | @import "code"; 83 | 84 | @import "tableOfContent"; 85 | @import "miscellaneous"; 86 | @import "dark"; 87 | @import "listpage"; 88 | @import "custom"; 89 | 90 | {{ with .Site.Params.goToTop }} 91 | @import "goToTop"; 92 | {{ end }} 93 | -------------------------------------------------------------------------------- /exampleSite/assets/avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/exampleSite/assets/avatar.jpg -------------------------------------------------------------------------------- /exampleSite/content/br/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Início" 3 | author : "Autor" 4 | --- 5 | -------------------------------------------------------------------------------- /exampleSite/content/br/pages/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Sobre 3 | description: 'Hugo, o framework mais rápido do mundo para contruir páginas da web' 4 | author: Nome do autor 5 | --- 6 | 7 | Escrito em Go, Hugo é um gerador de sites estáticos de código aberto disponível sob a [Licença Apache 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo suporta os tipos de arquivos de dados TOML, YAML e JSON, arquivos de conteúdo em Markdown e HTML, e usa shortcodes para adicionar conteúdo rico. Outras funcionalidades notáveis incluem taxonomias, modo multilíngue, processamento de imagens, formatos de saída personalizados, minificação de HTML/CSS/JS e suporte para fluxos de trabalho com Sass e SCSS. 8 | 9 | Hugo faz uso de uma variedade de projetos de código aberto, incluindo: 10 | 11 | * https://github.com/yuin/goldmark 12 | * https://github.com/alecthomas/chroma 13 | * https://github.com/muesli/smartcrop 14 | * https://github.com/spf13/cobra 15 | * https://github.com/spf13/viper 16 | 17 | Hugo é ideal para blogs, sites corporativos, portfólios criativos, revistas online, aplicações de uma só página ou até mesmo um site com milhares de páginas. 18 | 19 | Hugo é para pessoas que desejam codificar seu próprio site sem se preocupar em configurar runtimes complicados, dependências e bancos de dados. 20 | 21 | Sites construídos com Hugo são extremamente rápidos, seguros e podem ser implantados em qualquer lugar, incluindo AWS, GitHub Pages, Heroku, Netlify e qualquer outro provedor de hospedagem. 22 | 23 | Saiba mais e contribua no [GitHub](https://github.com/gohugoio). 24 | -------------------------------------------------------------------------------- /exampleSite/content/br/posts/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Publicações" 3 | --- 4 | -------------------------------------------------------------------------------- /exampleSite/content/br/posts/emoji-support/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Emoji Support 3 | date: 2023-02-01 4 | author: Hugo Authors 5 | description: Guide to emoji usage in Hugo 6 | tags: 7 | - emoji 8 | --- 9 | 10 | Os emojis podem ser habilitados em um projeto Hugo de várias maneiras. 11 | 12 | A função [`emojify`](https://gohugo.io/functions/emojify/) pode ser chamada diretamente em templates ou [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). 13 | 14 | Para habilitar emojis globalmente, defina `enableEmoji` como `true` no arquivo `hugo.toml` do seu site. 15 | Você pode digitar os códigos abreviados de emoji diretamente nos arquivos de conteúdo; por exemplo: 16 | 17 | `:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil: 18 | 19 | Eu :heart: Hugo! 😁 20 | 21 | O [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) é uma referência útil para os códigos abreviados de emoji. 22 | 23 | *** 24 | 25 | **N.B.** As etapas acima habilitam caracteres e sequências de emojis do Padrão Unicode no Hugo; no entanto, a renderização desses glifos depende do navegador e da plataforma. Para estilizar os emojis, você pode usar uma fonte de emoji de terceiros ou um pacote de fontes; por exemplo: 26 | 27 | {{< highlight css >}} 28 | .emoji { 29 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; 30 | } 31 | {{< /highlight >}} 32 | 33 | {{< css.inline >}} 34 | 47 | {{< /css.inline >}} 48 | -------------------------------------------------------------------------------- /exampleSite/content/br/posts/markdown-syntax/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/exampleSite/content/br/posts/markdown-syntax/1.jpg -------------------------------------------------------------------------------- /exampleSite/content/br/posts/math-typesetting/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Autor 3 | title: Notação Matemática - use a notação matemática em postagens de blog. 4 | date: 2023-04-01 5 | description: Um breve guia para configurar o KaTeX. 6 | math: true 7 | --- 8 | 9 | A notação matemática em um projeto Hugo pode ser habilitada usando 10 | [bibliotecas JavaScript de terceiros](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/layouts/partials/helpers/katex.html). 11 | 12 | 13 | 14 | Neste exemplo usaremos [KaTeX](https://katex.org/). 15 | 16 | - Para habilitar o KaTeX globalmente, defina o parâmetro `math` como `true` no arquivo de configuração do projeto da seguinte forma. 17 | - `hugo.toml` 18 | ```toml 19 | [params] 20 | math = true 21 | ``` 22 | - `hugo.yaml` 23 | ```yaml 24 | params: 25 | math: true 26 | ``` 27 | - Para habilitar o KaTeX em uma base por página, inclua o parâmetro `math: true` no Front Matter do arquivo de conteúdo Markdown da seguinte forma. 28 | 29 | ``` 30 | --- 31 | math: true 32 | --- 33 | ``` 34 | 35 | **Note:** A referencia online das 36 | [funções suportadas TeXs](https://katex.org/docs/supported.html) é um recurso valioso. 37 | 38 | ### Exemplos 39 | 40 | - Bloco Matemático: 41 | 42 | $$ 43 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } 44 | $$ 45 | 46 | - Matemática em linha: 47 | 48 | Este é um polinômio em linha:: $5x^2 + 2y -7$. 49 | -------------------------------------------------------------------------------- /exampleSite/content/br/posts/placeholder-text/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Autor 3 | title: Texto de Substituição 4 | date: 2023-02-07 5 | description: Uma postagem com texto de substituição 6 | --- 7 | 8 | Lorem est tota propiore conpellat pectoribus de pectora summo. 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. 9 | 10 | 1. Exierant elisi ambit vivere dedere 11 | 2. Duce pollice 12 | 3. Eris modo 13 | 4. Spargitque ferrea quos palude 14 | 15 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. 16 | 17 | 1. Comas hunc haec pietate fetum procerum dixit 18 | 2. Post torum vates letum Tiresia 19 | 3. Flumen querellas 20 | 4. Arcanaque montibus omnes 21 | 5. Quidem et 22 | 23 | # Vagus elidunt 24 | 25 | 26 | 27 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) 28 | 29 | ## Mane refeci capiebant unda mulcebat 30 | 31 | 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. 32 | 33 | 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. 34 | 35 | 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**. 36 | 37 | {{< css.inline >}} 38 | 41 | {{< /css.inline >}} 42 | -------------------------------------------------------------------------------- /exampleSite/content/br/posts/rich-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Autor 3 | title: Conteúdo Rico 4 | date: 2023-02-09 5 | description: Uma breve descrição dos Shortcodes do Hugo. 6 | --- 7 | 8 | O Hugo vem com vários [Shortcodes Integrados](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) para conteúdo rico, juntamente com uma [Configuração de Privacidade](https://gohugo.io/about/hugo-and-gdpr/) e um conjunto de Shortcodes Simples que permitem versões estáticas e sem JavaScript de diversas página embutidas de mídias sociais. 9 | 10 | --- 11 | 12 | ## Shortcode de Privacidade Aprimorada do YouTube 13 | 14 | {{< youtube ZJthWmvUzzc >}} 15 | 16 |
17 | 18 | --- 19 | 20 | ## Shortcode Simples do Twitter 21 | 22 | {{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}} 23 | 24 |
25 | 26 | --- 27 | 28 | ## Shortcode Simples do Vimeo 29 | 30 | {{< vimeo_simple 48912912 >}} 31 | -------------------------------------------------------------------------------- /exampleSite/content/br/posts/table-of-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Tabela de Conteúdo 3 | date: 2023-05-02 4 | description: Configurar a tabela de conteúdo no tema "Awesome" do blog Hugo. 5 | --- 6 | 7 | ## Tabela de Conteúdo 8 | 9 | Este tema suporta a exibição de um tabela de conteúdo (ToC) em postagens de blog. 10 | 11 | ## Parâmetros 12 | 13 | Você pode gerenciar o tabela de conteúdo com dois parâmetros: 14 | - parâmetro global `toc`; 15 | - parâmetro de postagem `toc`. 16 | 17 | O parâmetro `toc` da postagem tem prioridade mais alta que o parâmetro global `toc`. 18 | 19 | ## Habilitar a Tabela de Conteúdo em todas as postagens 20 | 21 | Para habilitar o tabela de conteúdo (ToC) em todas as postagens (globalmente), defina o parâmetro `toc` como `true` no arquivo `hugo.toml`. 22 | 23 | ```toml 24 | [params] 25 | toc = true 26 | ``` 27 | 28 | Para desativar o tabela de conteúdo globalmente, basta ignorar o parâmetro `toc` ou defini-lo como `false`. 29 | 30 | ## Habilitar a Tabela de Conteúdo em determinadas postagens 31 | 32 | Para habilitar o tabela de conteúdo (ToC) em certas postagens, defina o parâmetro `toc` como `true` nas configurações da postagem. 33 | 34 | ```yaml 35 | --- 36 | title: Como habilitar o tabela de conteúdo 37 | date: 2023-05-02 38 | toc: true 39 | --- 40 | ``` 41 | ## Desabilitar o tabela de conteúdo em determinadas postagens 42 | 43 | Para desabilitar o tabela de conteúdo (ToC) em certas postagens, você deve seguir dois passos. 44 | 45 | Observação: `.Params.toc` na postagem irá sobrescrever `.Site.Params.toc`. Após esses passos, o parâmetro `toc` na postagem será `false`. 46 | 47 | 1. Defina o parâmetro `toc` como `true` no `hugo.toml`. 48 | 49 | ```toml 50 | [params] 51 | toc = true 52 | ``` 53 | 54 | 2. Adicione `toc = false` à frente da postagem para a qual você deseja desabilitar o tabela de conteúdo. 55 | 56 | ```yaml 57 | --- 58 | title: Como habilitar o tabela de conteúdo 59 | date: 2023-05-02 60 | toc: false 61 | --- 62 | ``` 63 | 64 | ## Abrir o tabela de conteúdo 65 | 66 | Por padrão, o tabela de conteúdo (ToC) está fechado. Para abri-lo por padrão, defina o parâmetro `tocOpen` como `true` no arquivo `hugo.toml`. 67 | 68 | ```toml 69 | [params] 70 | tocOpen = true 71 | ``` 72 | 73 | Ou simplesmente adicione o parâmetro `tocOpen` à frente da postagem. 74 | 75 | ```yaml 76 | --- 77 | title: Como habilitar o tabela de conteúdo 78 | date: 2023-05-02 79 | tocOpen: true 80 | --- 81 | ``` 82 | -------------------------------------------------------------------------------- /exampleSite/content/de/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Home" 3 | author : "Hugo Authors" 4 | --- 5 | -------------------------------------------------------------------------------- /exampleSite/content/de/pages/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: About 3 | description: 'Hugo, the world''s fastest framework for building websites' 4 | author: Hugo Authors 5 | --- 6 | 7 | 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. 8 | 9 | Hugo makes use of a variety of open source projects including: 10 | 11 | * https://github.com/yuin/goldmark 12 | * https://github.com/alecthomas/chroma 13 | * https://github.com/muesli/smartcrop 14 | * https://github.com/spf13/cobra 15 | * https://github.com/spf13/viper 16 | 17 | Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. 18 | 19 | Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. 20 | 21 | Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. 22 | 23 | Learn more and contribute on [GitHub](https://github.com/gohugoio). 24 | -------------------------------------------------------------------------------- /exampleSite/content/de/posts/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Posts" 3 | --- 4 | -------------------------------------------------------------------------------- /exampleSite/content/de/posts/emoji-support/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Emoji Support 3 | date: 2023-02-01 4 | author: Hugo Authors 5 | description: Guide to emoji usage in Hugo 6 | tags: 7 | - emoji 8 | --- 9 | 10 | Emoji can be enabled in a Hugo project in a number of ways. 11 | 12 | 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). 13 | 14 | To enable emoji globally, set `enableEmoji` to `true` in your site's `hugo.toml`. You can type emoji shorthand codes directly in content files; e.g. 15 | 16 | `:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil: 17 | 18 | I :heart: Hugo! 😁 19 | 20 | The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. 21 | 22 | *** 23 | 24 | **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. 25 | 26 | {{< highlight css >}} 27 | .emoji { 28 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; 29 | } 30 | {{< /highlight >}} 31 | 32 | {{< css.inline >}} 33 | 46 | {{< /css.inline >}} 47 | -------------------------------------------------------------------------------- /exampleSite/content/de/posts/markdown-syntax/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/exampleSite/content/de/posts/markdown-syntax/1.jpg -------------------------------------------------------------------------------- /exampleSite/content/de/posts/markdown-syntax/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Markdown Syntax Guide 3 | date: 2023-02-11 4 | author: Hugo Authors 5 | description: Sample article showcasing basic Markdown syntax and formatting for HTML elements. 6 | --- 7 | 8 | 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. 9 | 10 | 11 | ## Headings 12 | 13 | The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. 14 | 15 | # H1 16 | 17 | ## H2 18 | 19 | ### H3 20 | 21 | #### H4 22 | 23 | ##### H5 24 | 25 | ###### H6 26 | 27 | ## Paragraph 28 | 29 | 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. 30 | 31 | Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. 32 | 33 | ## Image 34 | 35 | You can use the following syntax to include an image. Path of the image should be relative to the `index.md` file. 36 | 37 | ```markdown 38 | ![Landscape](1.jpg) 39 | ``` 40 | 41 | ![Landscape](1.jpg) 42 | 43 | You can also include image from external sources. 44 | 45 | ```markdown 46 | ![Image](https://source.unsplash.com/random/600x400/?tech) 47 | ``` 48 | 49 | ![Image](https://source.unsplash.com/random/600x400/?tech) 50 | 51 | ## Blockquotes 52 | 53 | 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. 54 | 55 | ### Blockquote without attribution 56 | 57 | > You can use Markdown syntax within a blockquote, like **bold**, _italics_, [links](https://gohugo.io/), `code`. 58 | 59 | ### Blockquote with attribution 60 | 61 | > Don't communicate by sharing memory, share memory by communicating.
62 | > — Rob Pike[^1] 63 | 64 | [^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. 65 | 66 | ## Tables 67 | 68 | Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-box. 69 | 70 | Name | Age 71 | --------|------ 72 | Bob | 27 73 | Alice | 23 74 | 75 | ### Markdown within tables 76 | 77 | | Italics | Bold | Code | 78 | | -------- | -------- | ------ | 79 | | *italics* | **bold** | `code` | 80 | 81 | ## Code Blocks 82 | 83 | ### Code block with backticks 84 | 85 | ```html 86 | 87 | 88 | 89 | 90 | Example HTML5 Document 91 | 92 | 93 |

Test

94 | 95 | 96 | ``` 97 | 98 | ### Code block indented with four spaces 99 | 100 | 101 | 102 | 103 | 104 | Example HTML5 Document 105 | 106 | 107 |

Test

108 | 109 | 110 | 111 | ### Code block with Hugo's internal highlight shortcode 112 | 113 | {{< highlight html >}} 114 | 115 | 116 | 117 | 118 | Example HTML5 Document 119 | 120 | 121 |

Test

122 | 123 | 124 | {{< /highlight >}} 125 | 126 | ### Inline code 127 | 128 | Use the backtick to refer to a `variable` within a sentence. 129 | 130 | ## List Types 131 | 132 | ### Ordered List 133 | 134 | 1. First item 135 | 2. Second item 136 | 3. Third item 137 | 138 | ### Unordered List 139 | 140 | * List item 141 | * Another item 142 | * And another item 143 | 144 | ### Nested list 145 | 146 | * Fruit 147 | * Apple 148 | * Orange 149 | * Banana 150 | * Dairy 151 | * Milk 152 | * Cheese 153 | 154 | ## Other Elements — abbr, sub, sup, kbd, mark 155 | 156 | GIF is a bitmap image format. 157 | 158 | H2O 159 | 160 | Xn + Yn = Zn 161 | 162 | Press CTRL+ALT+Delete to end the session. 163 | 164 | Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. 165 | -------------------------------------------------------------------------------- /exampleSite/content/de/posts/math-typesetting/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Math Typesetting - use Mathematical notation in blog posts 4 | date: 2023-04-01 5 | description: A brief guide to setup KaTeX 6 | math: true 7 | --- 8 | 9 | Mathematical notation in a Hugo project can be enabled by using 10 | [third party JavaScript libraries](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/layouts/partials/helpers/katex.html). 11 | 12 | 13 | 14 | In this example we will be using [KaTeX](https://katex.org/). 15 | 16 | - To enable KaTeX globally, set the parameter `math` to `true` in a project's 17 | configuration file as follows. 18 | - `hugo.toml` 19 | ```toml 20 | [params] 21 | math = true 22 | ``` 23 | - `hugo.yaml` 24 | ```yaml 25 | params: 26 | math: true 27 | ``` 28 | - To enable KaTeX on a per page basis, include the parameter `math: true` in 29 | Front Matter of Markdown content file as follows. 30 | 31 | ``` 32 | --- 33 | math: true 34 | --- 35 | ``` 36 | 37 | **Note:** The online reference of 38 | [Supported TeX Functions](https://katex.org/docs/supported.html) is a helpful resource. 39 | 40 | ### Examples 41 | 42 | - Block math: 43 | 44 | $$ 45 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } 46 | $$ 47 | 48 | - Inline math: 49 | 50 | This is an inline polynomial: $5x^2 + 2y -7$. 51 | -------------------------------------------------------------------------------- /exampleSite/content/de/posts/placeholder-text/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Placeholder Text 4 | date: 2023-02-07 5 | description: A post with placeholder text 6 | --- 7 | 8 | Lorem est tota propiore conpellat pectoribus de pectora summo. 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. 9 | 10 | 1. Exierant elisi ambit vivere dedere 11 | 2. Duce pollice 12 | 3. Eris modo 13 | 4. Spargitque ferrea quos palude 14 | 15 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. 16 | 17 | 1. Comas hunc haec pietate fetum procerum dixit 18 | 2. Post torum vates letum Tiresia 19 | 3. Flumen querellas 20 | 4. Arcanaque montibus omnes 21 | 5. Quidem et 22 | 23 | # Vagus elidunt 24 | 25 | 26 | 27 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) 28 | 29 | ## Mane refeci capiebant unda mulcebat 30 | 31 | 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. 32 | 33 | 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. 34 | 35 | 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**. 36 | 37 | {{< css.inline >}} 38 | 41 | {{< /css.inline >}} 42 | -------------------------------------------------------------------------------- /exampleSite/content/de/posts/rich-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Rich Content 4 | date: 2023-02-09 5 | description: A brief description of Hugo Shortcodes 6 | --- 7 | 8 | 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. 9 | 10 | --- 11 | 12 | ## YouTube Privacy Enhanced Shortcode 13 | 14 | {{< youtube ZJthWmvUzzc >}} 15 | 16 |
17 | 18 | --- 19 | 20 | ## Twitter Simple Shortcode 21 | 22 | {{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}} 23 | 24 |
25 | 26 | --- 27 | 28 | ## Vimeo Simple Shortcode 29 | 30 | {{< vimeo_simple 48912912 >}} 31 | -------------------------------------------------------------------------------- /exampleSite/content/de/posts/table-of-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Inhaltsverzeichnis 3 | date: 2024-03-04 4 | description: Konfiguration des Inhaltsverzeichnis im Theme 'Hugo Blog Awesome' 5 | --- 6 | 7 | ## Inhaltsverzeichnis 8 | 9 | Dieses Theme unterstützt die Anzeige eines Inhaltsverzeichnisses (IVZ) für Blog Posts. 10 | 11 | ## Parameter 12 | 13 | You can manage a ToC with two parameters: 14 | - global `toc` parameter; 15 | - post `toc` parameter. 16 | 17 | The post `toc` parameter has higher priority than the global `toc` parameter. 18 | 19 | ## Enable table of content on all posts 20 | 21 | To enable ToC on all posts (globally) set parameter `toc` to `true` in `hugo.toml`. 22 | 23 | ```toml 24 | [params] 25 | toc = true 26 | ``` 27 | 28 | To disable ToC globally, simply ignore the `toc` parameter or set it to `false`. 29 | 30 | ## Enable table of content on certain posts 31 | 32 | To enable ToC on certain posts set parameter `toc` to `true` in post settings. 33 | 34 | ```yaml 35 | --- 36 | title: How to enable table of content 37 | date: 2023-05-02 38 | toc: true 39 | --- 40 | ``` 41 | 42 | ## Disable table of content on certain posts 43 | 44 | To disable ToC on certain posts, you have to follow two steps. 45 | 46 | Notice: `.Params.toc` in the post will override `.Site.Params.toc`. After these steps, parameter `toc` in the post will be `false`. 47 | 48 | 1. Set parameter `toc` to `true` in `hugo.toml`. 49 | 50 | ```toml 51 | [params] 52 | toc = true 53 | ``` 54 | 55 | 2. Add `toc = false` to the front matter of the post for which you wish to disable ToC. 56 | 57 | ```yaml 58 | --- 59 | title: How to enable table of content 60 | date: 2023-05-02 61 | toc: false 62 | --- 63 | ``` 64 | 65 | ## Inhaltsverzeichnis aufklappen 66 | 67 | By default, ToC is closed. To open it by default, set parameter `tocOpen` to `true` in `hugo.toml`. 68 | 69 | ```toml 70 | [params] 71 | tocOpen = true 72 | ``` 73 | 74 | Or simply add the `tocOpen` parameter to the front matter of the post. 75 | 76 | ```yaml 77 | --- 78 | title: How to enable table of content 79 | date: 2023-05-02 80 | tocOpen: true 81 | --- 82 | ``` -------------------------------------------------------------------------------- /exampleSite/content/en/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Home" 3 | author : "Hugo Authors" 4 | --- 5 | -------------------------------------------------------------------------------- /exampleSite/content/en/pages/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: About 3 | description: 'Hugo, the world''s fastest framework for building websites' 4 | author: Hugo Authors 5 | --- 6 | 7 | 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. 8 | 9 | Hugo makes use of a variety of open source projects including: 10 | 11 | * https://github.com/yuin/goldmark 12 | * https://github.com/alecthomas/chroma 13 | * https://github.com/muesli/smartcrop 14 | * https://github.com/spf13/cobra 15 | * https://github.com/spf13/viper 16 | 17 | Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. 18 | 19 | Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. 20 | 21 | Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. 22 | 23 | Learn more and contribute on [GitHub](https://github.com/gohugoio). 24 | -------------------------------------------------------------------------------- /exampleSite/content/en/posts/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Posts" 3 | --- 4 | -------------------------------------------------------------------------------- /exampleSite/content/en/posts/emoji-support/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Emoji Support 3 | date: 2023-02-01 4 | author: Hugo Authors 5 | description: Guide to emoji usage in Hugo 6 | tags: 7 | - emoji 8 | --- 9 | 10 | Emoji can be enabled in a Hugo project in a number of ways. 11 | 12 | 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). 13 | 14 | To enable emoji globally, set `enableEmoji` to `true` in your site's `hugo.toml`. You can type emoji shorthand codes directly in content files; e.g. 15 | 16 | `:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil: 17 | 18 | I :heart: Hugo! 😁 19 | 20 | The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. 21 | 22 | *** 23 | 24 | **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. 25 | 26 | {{< highlight css >}} 27 | .emoji { 28 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; 29 | } 30 | {{< /highlight >}} 31 | 32 | {{< css.inline >}} 33 | 46 | {{< /css.inline >}} 47 | -------------------------------------------------------------------------------- /exampleSite/content/en/posts/markdown-syntax/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/exampleSite/content/en/posts/markdown-syntax/1.jpg -------------------------------------------------------------------------------- /exampleSite/content/en/posts/markdown-syntax/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Markdown Syntax Guide 3 | date: 2023-02-11 4 | author: Hugo Authors 5 | description: Sample article showcasing basic Markdown syntax and formatting for HTML elements. 6 | isStarred: true 7 | --- 8 | 9 | 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. 10 | 11 | 12 | ## Headings 13 | 14 | The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. 15 | 16 | # H1 17 | 18 | ## H2 19 | 20 | ### H3 21 | 22 | #### H4 23 | 24 | ##### H5 25 | 26 | ###### H6 27 | 28 | ## Paragraph 29 | 30 | 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. 31 | 32 | Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. 33 | 34 | ## Image 35 | 36 | You can use the following syntax to include an image. Path of the image should be relative to the `index.md` file. 37 | 38 | ```markdown 39 | ![Landscape](1.jpg) 40 | ``` 41 | 42 | ![Landscape](1.jpg) 43 | 44 | You can also include image from external sources. 45 | 46 | ```markdown 47 | ![Image](https://source.unsplash.com/random/600x400/?tech) 48 | ``` 49 | 50 | ![Image](https://source.unsplash.com/random/600x400/?tech) 51 | 52 | ## Blockquotes 53 | 54 | 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. 55 | 56 | ### Blockquote without attribution 57 | 58 | > You can use Markdown syntax within a blockquote, like **bold**, _italics_, [links](https://gohugo.io/), `code`. 59 | 60 | ### Blockquote with attribution 61 | 62 | > Don't communicate by sharing memory, share memory by communicating.
63 | > — Rob Pike[^1] 64 | 65 | [^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. 66 | 67 | ## Tables 68 | 69 | Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-box. 70 | 71 | Name | Age 72 | --------|------ 73 | Bob | 27 74 | Alice | 23 75 | 76 | ### Markdown within tables 77 | 78 | | Italics | Bold | Code | 79 | | -------- | -------- | ------ | 80 | | *italics* | **bold** | `code` | 81 | 82 | ## Code Blocks 83 | 84 | ### Code block with backticks 85 | 86 | ```html 87 | 88 | 89 | 90 | 91 | Example HTML5 Document 92 | 93 | 94 |

Test

95 | 96 | 97 | ``` 98 | 99 | ### Code block indented with four spaces 100 | 101 | 102 | 103 | 104 | 105 | Example HTML5 Document 106 | 107 | 108 |

Test

109 | 110 | 111 | 112 | ### Code block with Hugo's internal highlight shortcode 113 | 114 | {{< highlight html >}} 115 | 116 | 117 | 118 | 119 | Example HTML5 Document 120 | 121 | 122 |

Test

123 | 124 | 125 | {{< /highlight >}} 126 | 127 | ### Inline code 128 | 129 | Use the backtick to refer to a `variable` within a sentence. 130 | 131 | ## List Types 132 | 133 | ### Ordered List 134 | 135 | 1. First item 136 | 2. Second item with some `code` in it 137 | 3. Third item 138 | 139 | ### Unordered List 140 | 141 | * List item 142 | * Another item with some `code` in it 143 | * And another item 144 | 145 | ### Nested list 146 | 147 | * Fruit 148 | * Apple 149 | * Orange 150 | * Banana 151 | * Dairy 152 | * Milk 153 | * Cheese 154 | 155 | ## Other Elements — abbr, sub, sup, kbd, mark 156 | 157 | GIF is a bitmap image format. 158 | 159 | H2O 160 | 161 | Xn + Yn = Zn 162 | 163 | Press CTRL+ALT+Delete to end the session. 164 | 165 | Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. 166 | -------------------------------------------------------------------------------- /exampleSite/content/en/posts/math-typesetting/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Math Typesetting - use Mathematical notation in blog posts 4 | date: 2023-04-01 5 | description: A brief guide to setup KaTeX 6 | math: true 7 | --- 8 | 9 | Mathematical notation in a Hugo project can be enabled by using 10 | [third party JavaScript libraries](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/layouts/partials/helpers/katex.html). 11 | 12 | 13 | 14 | In this example we will be using [KaTeX](https://katex.org/). 15 | 16 | - To enable KaTeX globally, set the parameter `math` to `true` in a project's 17 | configuration file as follows. 18 | - `hugo.toml` 19 | ```toml 20 | [params] 21 | math = true 22 | ``` 23 | - `hugo.yaml` 24 | ```yaml 25 | params: 26 | math: true 27 | ``` 28 | - To enable KaTeX on a per page basis, include the parameter `math: true` in 29 | Front Matter of Markdown content file as follows. 30 | 31 | ``` 32 | --- 33 | math: true 34 | --- 35 | ``` 36 | 37 | **Note:** The online reference of 38 | [Supported TeX Functions](https://katex.org/docs/supported.html) is a helpful resource. 39 | 40 | ### Examples 41 | 42 | - Block math: 43 | 44 | $$ 45 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } 46 | $$ 47 | 48 | - Inline math: 49 | 50 | This is an inline polynomial: $5x^2 + 2y -7$. 51 | -------------------------------------------------------------------------------- /exampleSite/content/en/posts/placeholder-text/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Placeholder Text 4 | date: 2023-02-07 5 | description: A post with placeholder text 6 | --- 7 | 8 | Lorem est tota propiore conpellat pectoribus de pectora summo. 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. 9 | 10 | 1. Exierant elisi ambit vivere dedere 11 | 2. Duce pollice 12 | 3. Eris modo 13 | 4. Spargitque ferrea quos palude 14 | 15 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. 16 | 17 | 1. Comas hunc haec pietate fetum procerum dixit 18 | 2. Post torum vates letum Tiresia 19 | 3. Flumen querellas 20 | 4. Arcanaque montibus omnes 21 | 5. Quidem et 22 | 23 | # Vagus elidunt 24 | 25 | 26 | 27 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) 28 | 29 | ## Mane refeci capiebant unda mulcebat 30 | 31 | 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. 32 | 33 | 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. 34 | 35 | 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**. 36 | 37 | {{< css.inline >}} 38 | 41 | {{< /css.inline >}} 42 | -------------------------------------------------------------------------------- /exampleSite/content/en/posts/rich-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Rich Content 4 | date: 2023-02-09 5 | description: A brief description of Hugo Shortcodes 6 | --- 7 | 8 | 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. 9 | 10 | --- 11 | 12 | ## YouTube Privacy Enhanced Shortcode 13 | 14 | {{< youtube ZJthWmvUzzc >}} 15 | 16 |
17 | 18 | --- 19 | 20 | ## Twitter Simple Shortcode 21 | 22 | {{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}} 23 | 24 |
25 | 26 | --- 27 | 28 | ## Vimeo Simple Shortcode 29 | 30 | {{< vimeo_simple 48912912 >}} 31 | -------------------------------------------------------------------------------- /exampleSite/content/en/posts/table-of-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Table of content 3 | date: 2023-05-02 4 | description: Setup table of content in Hugo blog awesome theme 5 | --- 6 | 7 | ## Table of content 8 | 9 | This theme supports displaying table of content (ToC) in blog posts. 10 | 11 | ## Parameters 12 | 13 | You can manage a ToC with two parameters: 14 | - global `toc` parameter; 15 | - post `toc` parameter. 16 | 17 | The post `toc` parameter has higher priority than the global `toc` parameter. 18 | 19 | ## Enable table of content on all posts 20 | 21 | To enable ToC on all posts (globally) set parameter `toc` to `true` in `hugo.toml`. 22 | 23 | ```toml 24 | [params] 25 | toc = true 26 | ``` 27 | 28 | To disable ToC globally, simply ignore the `toc` parameter or set it to `false`. 29 | 30 | ## Enable table of content on certain posts 31 | 32 | To enable ToC on certain posts set parameter `toc` to `true` in post settings. 33 | 34 | ```yaml 35 | --- 36 | title: How to enable table of content 37 | date: 2023-05-02 38 | toc: true 39 | --- 40 | ``` 41 | 42 | ## Disable table of content on certain posts 43 | 44 | To disable ToC on certain posts, you have to follow two steps. 45 | 46 | Notice: `.Params.toc` in the post will override `.Site.Params.toc`. After these steps, parameter `toc` in the post will be `false`. 47 | 48 | 1. Set parameter `toc` to `true` in `hugo.toml`. 49 | 50 | ```toml 51 | [params] 52 | toc = true 53 | ``` 54 | 55 | 2. Add `toc = false` to the front matter of the post for which you wish to disable ToC. 56 | 57 | ```yaml 58 | --- 59 | title: How to enable table of content 60 | date: 2023-05-02 61 | toc: false 62 | --- 63 | ``` 64 | 65 | ## Open table of content 66 | 67 | By default, ToC is closed. To open it by default, set parameter `tocOpen` to `true` in `hugo.toml`. 68 | 69 | ```toml 70 | [params] 71 | tocOpen = true 72 | ``` 73 | 74 | Or simply add the `tocOpen` parameter to the front matter of the post. 75 | 76 | ```yaml 77 | --- 78 | title: How to enable table of content 79 | date: 2023-05-02 80 | tocOpen: true 81 | --- 82 | ``` -------------------------------------------------------------------------------- /exampleSite/content/fr/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Home" 3 | author : "Hugo Authors" 4 | --- 5 | -------------------------------------------------------------------------------- /exampleSite/content/fr/pages/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: À propos 3 | description: 'Hugo, the world''s fastest framework for building websites' 4 | author: Hugo Authors 5 | --- 6 | 7 | Écrit en Go, Hugo est un générateur de sites statiques open source disponible sous la licence Apache 2.0. Hugo prend en charge les types de fichiers de données TOML, YAML et JSON, les fichiers de contenu Markdown et HTML, et utilise des shortcodes pour ajouter du contenu riche. Parmi les autres fonctionnalités notables, on trouve les taxonomies, le mode multilingue, le traitement des images, les formats de sortie personnalisés, la minification HTML/CSS/JS et le support des workflows Sass SCSS. 8 | 9 | Hugo utilise divers projets open source, notamment : 10 | 11 | * https://github.com/yuin/goldmark 12 | * https://github.com/alecthomas/chroma 13 | * https://github.com/muesli/smartcrop 14 | * https://github.com/spf13/cobra 15 | * https://github.com/spf13/viper 16 | 17 | Hugo est idéal pour les blogs, les sites Web d'entreprise, les portfolios créatifs, les magazines en ligne, les applications à page unique ou même un site Web avec des milliers de pages. 18 | 19 | Hugo s'adresse aux personnes qui souhaitent coder elles-mêmes leur propre site Web sans se soucier de la mise en place de runtimes, de dépendances et de bases de données compliquées. 20 | 21 | Les sites Web construits avec Hugo sont extrêmement rapides, sécurisés et peuvent être déployés partout, y compris sur AWS, GitHub Pages, Heroku, Netlify et tout autre fournisseur d'hébergement. 22 | 23 | Apprenez-en plus et contribuez sur [GitHub](https://github.com/gohugoio). 24 | -------------------------------------------------------------------------------- /exampleSite/content/fr/posts/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Articles" 3 | --- 4 | -------------------------------------------------------------------------------- /exampleSite/content/fr/posts/emoji-support/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Support Emoji 3 | date: 2023-02-01 4 | author: Hugo Authors 5 | description: Guide sur l'utilisation des emoji dans Hugo 6 | tags: 7 | - emoji 8 | --- 9 | 10 | Les emoji peuvent être activées dans un projet Hugo de différentes manières. 11 | 12 | La fonction [`emojify`](https://gohugo.io/functions/emojify/) peut être appelée directement dans les modèles ou dans les[Shortcodes Inline](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). 13 | 14 | Pour activer les emoji globalement, réglez `enableEmoji` à `true` dans le fichier `hugo.toml` de votre site. Vous pouvez taper manuellement les raccourcis pour les emoji directement dans les fichiers de contenu ; ex. 15 | 16 | `:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil: 17 | 18 | Moi :heart: Hugo! 😁 19 | 20 | La [cheat sheet Emoji](http://www.emoji-cheat-sheet.com/) est un document de référence utile pour les codes de raccourci des emoji. 21 | 22 | *** 23 | 24 | **N.B.** Les étapes mentionnées ci-dessus activent les séquences et les emoji Unicode standard dans Hugo, cependant la façon dont ces glyphes sont affichés dépend du navigateur et de la plateforme. Pour appliquer votre style personnel aux emoji, vous pouvez choisir d'utiliser une police tierce pour les emoji ou une pile de polices ; exemple. 25 | 26 | {{< highlight css >}} 27 | .emoji { 28 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; 29 | } 30 | {{< /highlight >}} 31 | 32 | {{< css.inline >}} 33 | 46 | {{< /css.inline >}} 47 | -------------------------------------------------------------------------------- /exampleSite/content/fr/posts/markdown-syntax/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/exampleSite/content/fr/posts/markdown-syntax/1.jpg -------------------------------------------------------------------------------- /exampleSite/content/fr/posts/math-typesetting/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Mise en Page des Formules Mathématiques 4 | date: 2023-04-01 5 | description: Un guide rapide pour configurer KaTeX 6 | math: true 7 | --- 8 | 9 | La notation mathématique dans un projet Hugo peut être activée en utilisant des 10 | [bibliothèques JavaScript tierces](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/layouts/partials/helpers/katex.html). 11 | 12 | 13 | 14 | Dans cet exemple, nous utiliserons [KaTeX](https://katex.org/). 15 | 16 | - Pour activer KaTeX au niveau global, réglez le paramètre `math` sur `true` dans la configuration d'un projet comme suit. 17 | 18 | - `hugo.toml` 19 | ```toml 20 | [params] 21 | math = true 22 | ``` 23 | - `hugo.yaml` 24 | ```yaml 25 | params: 26 | math: true 27 | ``` 28 | - Pour activer KaTeX uniquement dans certaines pages, incluez le paramètre `math: true` dans 29 | le Front Matter du fichier markdown comme suit. 30 | 31 | ``` 32 | --- 33 | math: true 34 | --- 35 | ``` 36 | 37 | **Remarque :** Le guide de référence en ligne 38 | [Supported TeX Functions](https://katex.org/docs/supported.html) est une ressource utile. 39 | 40 | ### Exemples 41 | 42 | - Bloc math : 43 | 44 | $$ 45 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } 46 | $$ 47 | 48 | - Math en une ligne : 49 | 50 | Voici un polynôme en une ligne : $5x^2 + 2y -7$. -------------------------------------------------------------------------------- /exampleSite/content/fr/posts/placeholder-text/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Texte de Remplacement 4 | date: 2023-02-07 5 | description: Un article avec du texte de remplacement 6 | --- 7 | 8 | Lorem est tota propriore conpellat pectoribus de pectora summo. Il revient et divise les hommes de son sein, j'aurai peur des lumières, non sous le cou, il soulève l'usage et possède Arcton et des furies que les montagnes ne portent plus. Maintenant, les montagnes brûlent et le temps inhospitalier se confond ; cessez et il éclaire votre père avec la lumière que vous désirez pour reconnaître la fleur du nuage ! Le feuillage lui-même et Dryope, les dieux dévoilent. 9 | 10 | Ils étaient partis, étendus, ont donné vie 11 | Conduit par le pouce 12 | Tu seras bientôt 13 | Il jette du fer dans les marais 14 | 15 | De nouveau aucun murmure ; la lance raille comme si elle provenait d’une grave décision ! Nommé détenteur du silence du fleuve, il soutient ce qui plaît, tu demandes dans ce qui est tombé, c’était les grands espaces. 16 | 17 | Il dit à la progéniture des nobles avec piété 18 | Après le lit, le devin Tiresias 19 | Fleuve des plaintes 20 | Et les secrets de toutes les montagnes 21 | En effet et 22 | 23 | # Vagus elidunt 24 | 25 | 26 | 27 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) 28 | 29 | ## Mane refeci capiebant unda mulcebat 30 | 31 | 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. 32 | 33 | 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. 34 | 35 | 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**. 36 | 37 | {{< css.inline >}} 38 | 41 | {{< /css.inline >}} 42 | -------------------------------------------------------------------------------- /exampleSite/content/fr/posts/rich-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Les Shortcodes de Hugo Framework 4 | date: 2023-02-09 5 | description: Une brève description des Shortcodes de Hugo 6 | --- 7 | 8 | Hugo est livré avec plusieurs Shortcodes intégrés pour le contenu riche, ainsi qu'une Configuration pour la Vie Privée et un ensemble de simples Shortcodes qui permettent d'incorporer certaines versions statiques et sans JS de certains médias sociaux. 9 | 10 | --- 11 | 12 | ## Shortcode Améliorant la Vie Privée pour YouTube 13 | 14 | {{< youtube ZJthWmvUzzc >}} 15 | 16 |
17 | 18 | --- 19 | 20 | ## Simple Shortcode pour Twitter 21 | 22 | {{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}} 23 | 24 |
25 | 26 | --- 27 | 28 | ## Simple Shortcode pour Vimeo 29 | 30 | {{< vimeo_simple 48912912 >}} 31 | -------------------------------------------------------------------------------- /exampleSite/content/fr/posts/table-of-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Les Sommaires 3 | date: 2023-05-02 4 | description: Configuration de la table des matières dans le thème awesome de Hugo 5 | --- 6 | 7 | ## Sommaire 8 | 9 | Ce thème prend en charge l'affichage d'un sommaire (Table of Contents - ToC) au sein des articles. 10 | 11 | ## Activer le sommaire dans tous les articles 12 | 13 | Pour activer le sommaire dans tous les articles (globalement), il est nécessaire de définir le paramètre `toc` a `true` dans `hugo.toml`. 14 | 15 | ```toml 16 | [params] 17 | toc = true 18 | ``` 19 | 20 | Pour désactiver le sommaire globalement, il suffit de supprimer le paramètre `toc` ou de le définir `false`. 21 | 22 | ## Désactiver le sommaire uniquement dans certains articles 23 | 24 | Pour désactiver le sommaire seulement dans certains articles sélectionnés, il faut suivre ces deux étapes. 25 | 26 | 1. Définisser le paramètre `toc` a `true` dans `hugo.toml`. 27 | 28 | ```toml 29 | [params] 30 | toc = true 31 | ``` 32 | 33 | 2. Ajouter `toc = false` dans le front matter de l'article où vous souhaitez désactiver le sommaire. 34 | 35 | ```yaml 36 | --- 37 | title: Comment activer le sommaire 38 | date: 2023-05-02 39 | toc: false 40 | --- 41 | ``` 42 | -------------------------------------------------------------------------------- /exampleSite/content/it/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Home" 3 | author : "Hugo Authors" 4 | --- 5 | -------------------------------------------------------------------------------- /exampleSite/content/it/pages/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Chi Sono 3 | description: 'Hugo, the world''s fastest framework for building websites' 4 | author: Hugo Authors 5 | --- 6 | 7 | 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. 8 | 9 | Hugo makes use of a variety of open source projects including: 10 | 11 | * https://github.com/yuin/goldmark 12 | * https://github.com/alecthomas/chroma 13 | * https://github.com/muesli/smartcrop 14 | * https://github.com/spf13/cobra 15 | * https://github.com/spf13/viper 16 | 17 | Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. 18 | 19 | Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. 20 | 21 | Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. 22 | 23 | Learn more and contribute on [GitHub](https://github.com/gohugoio). 24 | -------------------------------------------------------------------------------- /exampleSite/content/it/posts/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Articoli" 3 | --- 4 | -------------------------------------------------------------------------------- /exampleSite/content/it/posts/emoji-support/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Supporto Alle Emoji 3 | date: 2023-02-01 4 | author: Hugo Authors 5 | description: Guide to emoji usage in Hugo 6 | tags: 7 | - emoji 8 | --- 9 | 10 | Le emoji possono essere abilitate in un progetto Hugo in diversi modi. 11 | 12 | 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). 13 | 14 | Per abilitare le emoji globalmente, impostate `enableEmoji` a `true` nel file `hugo.toml` del vostro sito. Potete digitare a mano le scorciatoie per le emoji direttamente nei file di contenuto; es. 15 | 16 | `:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil: 17 | 18 | Io :heart: Hugo! 😁 19 | 20 | La [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) è un utile documento di riferimento per le codici di scorciatoia alle emoji. 21 | 22 | *** 23 | 24 | **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. 25 | 26 | {{< highlight css >}} 27 | .emoji { 28 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; 29 | } 30 | {{< /highlight >}} 31 | 32 | {{< css.inline >}} 33 | 46 | {{< /css.inline >}} 47 | -------------------------------------------------------------------------------- /exampleSite/content/it/posts/markdown-syntax/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/exampleSite/content/it/posts/markdown-syntax/1.jpg -------------------------------------------------------------------------------- /exampleSite/content/it/posts/markdown-syntax/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Guida Alla Sintassi Markdown 3 | date: 2023-02-11 4 | author: Hugo Authors 5 | description: Sample article showcasing basic Markdown syntax and formatting for HTML elements. 6 | --- 7 | 8 | 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. 9 | 10 | 11 | ## Headings 12 | 13 | The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. 14 | 15 | # H1 16 | 17 | ## H2 18 | 19 | ### H3 20 | 21 | #### H4 22 | 23 | ##### H5 24 | 25 | ###### H6 26 | 27 | ## Paragraph 28 | 29 | 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. 30 | 31 | Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. 32 | 33 | ## Image 34 | 35 | You can use the following syntax to include an image. Path of the image should be relative to the `index.md` file. 36 | 37 | ```markdown 38 | ![Landscape](1.jpg) 39 | ``` 40 | 41 | ![Landscape](1.jpg) 42 | 43 | You can also include image from external sources. 44 | 45 | ```markdown 46 | ![Image](https://source.unsplash.com/random/600x400/?tech) 47 | ``` 48 | 49 | ![Image](https://source.unsplash.com/random/600x400/?tech) 50 | 51 | ## Blockquotes 52 | 53 | 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. 54 | 55 | ### Blockquote without attribution 56 | 57 | > You can use Markdown syntax within a blockquote, like **bold**, _italics_, [links](https://gohugo.io/), `code`. 58 | 59 | ### Blockquote with attribution 60 | 61 | > Don't communicate by sharing memory, share memory by communicating.
62 | > — Rob Pike[^1] 63 | 64 | [^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. 65 | 66 | ## Tables 67 | 68 | Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box. 69 | 70 | Name | Age 71 | --------|------ 72 | Bob | 27 73 | Alice | 23 74 | 75 | ### Markdown within tables 76 | 77 | | Italics | Bold | Code | 78 | | -------- | -------- | ------ | 79 | | *italics* | **bold** | `code` | 80 | 81 | ## Code Blocks 82 | 83 | ### Code block with backticks 84 | 85 | ```html 86 | 87 | 88 | 89 | 90 | Example HTML5 Document 91 | 92 | 93 |

Test

94 | 95 | 96 | ``` 97 | 98 | ### Code block indented with four spaces 99 | 100 | 101 | 102 | 103 | 104 | Example HTML5 Document 105 | 106 | 107 |

Test

108 | 109 | 110 | 111 | ### Code block with Hugo's internal highlight shortcode 112 | 113 | {{< highlight html >}} 114 | 115 | 116 | 117 | 118 | Example HTML5 Document 119 | 120 | 121 |

Test

122 | 123 | 124 | {{< /highlight >}} 125 | 126 | ### Inline code 127 | 128 | Use the backtick to refer to a `variable` within a sentence. 129 | 130 | ## List Types 131 | 132 | ### Ordered List 133 | 134 | 1. First item 135 | 2. Second item 136 | 3. Third item 137 | 138 | ### Unordered List 139 | 140 | * List item 141 | * Another item 142 | * And another item 143 | 144 | ### Nested list 145 | 146 | * Fruit 147 | * Apple 148 | * Orange 149 | * Banana 150 | * Dairy 151 | * Milk 152 | * Cheese 153 | 154 | ## Other Elements — abbr, sub, sup, kbd, mark 155 | 156 | GIF is a bitmap image format. 157 | 158 | H2O 159 | 160 | Xn + Yn = Zn 161 | 162 | Press CTRL+ALT+Delete to end the session. 163 | 164 | Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. 165 | -------------------------------------------------------------------------------- /exampleSite/content/it/posts/math-typesetting/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Impaginazione Delle Formule Matematiche 4 | date: 2023-04-01 5 | description: A brief guide to setup KaTeX 6 | math: true 7 | --- 8 | 9 | La notazione matematica in un progetto Hugo può essere abilitata utilizzando delle 10 | [librerie JavaScript di terze parti](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/layouts/partials/helpers/katex.html). 11 | 12 | 13 | 14 | In questo esempio utilizzeremo [KaTeX](https://katex.org/). 15 | 16 | - Per abilitare KaTeX a livello globale, impostate il parametro `math` a `true` nella configurazione di un progretto come segue. 17 | 18 | - `hugo.toml` 19 | ```toml 20 | [params] 21 | math = true 22 | ``` 23 | - `hugo.yaml` 24 | ```yaml 25 | params: 26 | math: true 27 | ``` 28 | - Per abilitare KaTeX solamente in alcune pagine, includete il parametro `math: true` nel 29 | Front Matter del file markdown come segue. 30 | 31 | ``` 32 | --- 33 | math: true 34 | --- 35 | ``` 36 | 37 | **Nota:** La guida di riferimento online 38 | [Supported TeX Functions](https://katex.org/docs/supported.html) è un'utile risorsa di informazioni. 39 | 40 | ### Esempi 41 | 42 | - Blocco matematico: 43 | 44 | $$ 45 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } 46 | $$ 47 | 48 | - Matematica inline: 49 | 50 | Questo è un polinomiale inline: $5x^2 + 2y -7$. 51 | -------------------------------------------------------------------------------- /exampleSite/content/it/posts/placeholder-text/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Testo Segnaposto 4 | date: 2023-02-07 5 | description: A post with placeholder text 6 | --- 7 | 8 | Lorem est tota propiore conpellat pectoribus de pectora summo. 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. 9 | 10 | 1. Exierant elisi ambit vivere dedere 11 | 2. Duce pollice 12 | 3. Eris modo 13 | 4. Spargitque ferrea quos palude 14 | 15 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. 16 | 17 | 1. Comas hunc haec pietate fetum procerum dixit 18 | 2. Post torum vates letum Tiresia 19 | 3. Flumen querellas 20 | 4. Arcanaque montibus omnes 21 | 5. Quidem et 22 | 23 | # Vagus elidunt 24 | 25 | 26 | 27 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) 28 | 29 | ## Mane refeci capiebant unda mulcebat 30 | 31 | 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. 32 | 33 | 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. 34 | 35 | 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**. 36 | 37 | {{< css.inline >}} 38 | 41 | {{< /css.inline >}} 42 | -------------------------------------------------------------------------------- /exampleSite/content/it/posts/rich-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Gli Shortcode di Hugo 4 | date: 2023-02-09 5 | description: A brief description of Hugo Shortcodes 6 | --- 7 | 8 | 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. 9 | 10 | --- 11 | 12 | ## Shortcode Con Miglioramento Della Privacy Per YouTube 13 | 14 | {{< youtube ZJthWmvUzzc >}} 15 | 16 |
17 | 18 | --- 19 | 20 | ## Semplice Shortcode Per Twitter 21 | 22 | {{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}} 23 | 24 |
25 | 26 | --- 27 | 28 | ## Semplice Shortcode Per Vimeo 29 | 30 | {{< vimeo_simple 48912912 >}} 31 | -------------------------------------------------------------------------------- /exampleSite/content/it/posts/table-of-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: I Sommari 3 | date: 2023-05-02 4 | description: Setup table of content in Hugo blog awesome theme 5 | --- 6 | 7 | ## Sommario 8 | 9 | Questo tema supporta la visualizzazione di un sommario (Table Of Content - ToC) all'interno degli articoli. 10 | 11 | ## Abilitare il sommario in tutti gli articoli 12 | 13 | Per abilitare il sommario in tutti gli articoli (globalmente) è necessario impostare il parametro `toc` a `true` in `hugo.toml`. 14 | 15 | ```toml 16 | [params] 17 | toc = true 18 | ``` 19 | 20 | Per disabilitare il sommario globalmente invece, basta semplicemente cancellare il parametro `toc` oppure impostarlo a `false`. 21 | 22 | ## Disabilitare il sommario solo in alcuni articoli 23 | 24 | Per disabilitare il sommario solamente in alcuni articoli selezionati, è necessario seguire questi due passi. 25 | 26 | 1. Impostate il parametro `toc` a `true` in `hugo.toml`. 27 | 28 | ```toml 29 | [params] 30 | toc = true 31 | ``` 32 | 33 | 2. Aggiungete `toc = false` al front matter dell'articolo nel quale volete disabilitare il sommario. 34 | 35 | ```yaml 36 | --- 37 | title: Come abilitare il sommario 38 | date: 2023-05-02 39 | toc: false 40 | --- 41 | ``` 42 | -------------------------------------------------------------------------------- /exampleSite/content/ja/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "ホーム" 3 | author : "Hugo Authors" 4 | --- 5 | -------------------------------------------------------------------------------- /exampleSite/content/ja/pages/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: このサイトについて 3 | description: 'Hugoは世界で最も高速にウェブサイトが構築できるフレームワークです。' 4 | author: Hugo Authors 5 | --- 6 | 7 | Hugoは[Apache License 2.0](https://github.com/gohugoio/hugo/blob/master/LICENSE)で提供される、Go製のオープンソース静的サイトジェネレーターです。 HugoはTOML、YAML、およびJSON形式に対応しており、MarkdownやHTMLもリッチコンテンツの作成にご利用いただけます。さらに、タクソノミー、多言語モード、画像処理、カスタム出力形式、さらにHTML/CSS/JSの最小化やSass SCSSのワークフローもご利用いただけます。 8 | 9 | Hugoは以下に示すようなオープンソースプロジェクトを活用して作成されています: 10 | 11 | * https://github.com/yuin/goldmark 12 | * https://github.com/alecthomas/chroma 13 | * https://github.com/muesli/smartcrop 14 | * https://github.com/spf13/cobra 15 | * https://github.com/spf13/viper 16 | 17 | Hugoはブログや、コーポレートサイト、ポートフォリオ、オンラインマガジンをはじめとして、単一ページアプリケーションから何千ページもあるサイトまで幅広くご利用いただくことができます。 18 | 19 | Hugoはご自身のコードをご自身で管理しつつも、複雑なランタイムや依存関係、データベースなどを気にしたくない方に最適です。 20 | 21 | Hugoで構築されたウェブサイトは超高速、安全で、AWS、GitHub Pages、Heroku、Netlify、またはご自身の好きなホスティングプロバイダにデプロイすることが可能です。 22 | 23 | 詳細や、貢献方法については[GitHubをご覧ください](https://github.com/gohugoio)。 24 | -------------------------------------------------------------------------------- /exampleSite/content/ja/posts/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "投稿" 3 | --- 4 | -------------------------------------------------------------------------------- /exampleSite/content/ja/posts/emoji-support/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 絵文字のサポート 3 | date: 2023-02-01 4 | author: Hugo Authors 5 | description: Hugoの中で絵文字を使う方法について 6 | tags: 7 | - emoji 8 | --- 9 | 10 | Hugoの中で絵文字を有効化する方法はいくつかあります。 11 | 12 | 13 | 14 | [`emojify`](https://gohugo.io/functions/emojify/)関数をテンプレートから直接呼び出すか、[インラインショートコード](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes)から呼び出すこともできます。 15 | 16 | サイト全体で絵文字を利用したい場合、`hugo.toml`内にある`enableEmoji`の値を`true`に変更してください。その後は絵文字のショートハンドコードをコンテンツファイルの中で直接ご利用いただけます。例えば以下のように: 17 | 18 | `:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil: 19 | 20 | I :heart: Hugo! 😁 21 | 22 | [絵文字チートシート](http://www.emoji-cheat-sheet.com/)は絵文字のショートハンドコードを確認するのに便利なツールです。 23 | 24 | --- 25 | 26 | **注意: ** 上記で示した手順はUnicode標準の絵文字およびシーケンスを有効にしますが、その文字はブラウザやプラットフォームにより、表示が異なる可能性があります。もし表示を統一したい場合、サードパーティー製の絵文字フォントを利用するか、あるいはサードパーティー製のフォントスタックを利用することもできます。例えば以下のようなCSSを書くことになります: 27 | 28 | {{< highlight css >}} 29 | .emoji { 30 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; 31 | } 32 | {{< /highlight >}} 33 | 34 | {{< css.inline >}} 35 | 36 | 49 | 50 | {{< /css.inline >}} 51 | -------------------------------------------------------------------------------- /exampleSite/content/ja/posts/markdown-syntax/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/exampleSite/content/ja/posts/markdown-syntax/1.jpg -------------------------------------------------------------------------------- /exampleSite/content/ja/posts/markdown-syntax/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Markdownの文法について 3 | date: 2023-02-11 4 | author: Hugo Authors 5 | description: この投稿では、基本的なマークダウンの文法と、HTML要素の整形について説明しています。 6 | isStarred: true 7 | --- 8 | 9 | この投稿ではHugoのコンテンツファイルでご利用いただける基本的なマークダウンの文法の説明と、HugoのテーマによってCSSで整形される一部のHTML要素についてご説明いたします。 10 | 11 | 12 | 13 | ## 見出し 14 | 15 | 以下に示す`

-

` までのHTML要素は6段階のセクション見出しを意味しています。`

`が一番大きな見出しで、`

`が一番小さな見出しです。 16 | 17 | # H1 18 | 19 | ## H2 20 | 21 | ### H3 22 | 23 | #### H4 24 | 25 | ##### H5 26 | 27 | ###### H6 28 | 29 | ## 段落 30 | 31 | 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. 32 | 33 | Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. 34 | 35 | ## 画像 36 | 37 | 以下の文法を利用することで画像を添付することが可能です。パスは`index.md`ファイルからの相対で表記することをお勧めします。 38 | 39 | ```markdown 40 | ![Landscape](1.jpg) 41 | ``` 42 | 43 | ![Landscape](1.jpg) 44 | 45 | また、外部のリソースから画像を読み込むことも可能です。 46 | 47 | ```markdown 48 | ![Image](https://source.unsplash.com/random/600x400/?tech) 49 | ``` 50 | 51 | ![Image](https://source.unsplash.com/random/600x400/?tech) 52 | 53 | ## 引用 54 | 55 | blockquote要素は他から引用してきたコンテンツについて言及していることを示します。`footer`あるいは`cite`要素を利用して出典を示すこともできます。また、文章内で注記や略称について変更することもできます。 56 | 57 | ### 注記のないblockquote 58 | 59 | > blockquote内で**bold**, _italics_, [links](https://gohugo.io/), `code`のようなMarkdown文法を利用することもできます。 60 | 61 | ### 注記のあるblockquote 62 | 63 | > Don't communicate by sharing memory, share memory by communicating.
64 | > — Rob Pike[^1] 65 | 66 | [^1]: 上記は2015年11月18日にGopherfestでRob Pike氏が[発言した内容](https://www.youtube.com/watch?v=PAAkCSZUG1c)から引用しています。 67 | 68 | ## テーブル 69 | 70 | テーブルはMarkdownのコアスペックにはありませんが、Hugoは標準でサポートしています。 71 | 72 | Name | Age 73 | --------|------ 74 | Bob | 27 75 | Alice | 23 76 | 77 | ### テーブルの中でMarkdownを利用する 78 | 79 | | Italics | Bold | Code | 80 | | -------- | -------- | ------ | 81 | | *italics* | **bold** | `code` | 82 | 83 | ## コードブロック 84 | 85 | ### バックティックでコードを表記する 86 | 87 | ```html 88 | 89 | 90 | 91 | 92 | Example HTML5 Document 93 | 94 | 95 |

Test

96 | 97 | 98 | ``` 99 | 100 | ### 4文字スペースでインデントしたコードブロック 101 | 102 | 103 | 104 | 105 | 106 | Example HTML5 Document 107 | 108 | 109 |

Test

110 | 111 | 112 | 113 | ### Hugoの内部ハイライトショートコードを利用したコードブロック 114 | 115 | {{< highlight html >}} 116 | 117 | 118 | 119 | 120 | Example HTML5 Document 121 | 122 | 123 |

Test

124 | 125 | 126 | {{< /highlight >}} 127 | 128 | ### インラインコード 129 | 130 | バックティックを利用することで`variable`を表現することができます。 131 | 132 | ## リストタイプ 133 | 134 | ### 順番のあるリスト 135 | 136 | 1. First item 137 | 2. Second item with some `code` in it 138 | 3. Third item 139 | 140 | ### 順番のないリスト 141 | 142 | * List item 143 | * Another item with some `code` in it 144 | * And another item 145 | 146 | ### 入れ子リスト 147 | 148 | * Fruit 149 | * Apple 150 | * Orange 151 | * Banana 152 | * Dairy 153 | * Milk 154 | * Cheese 155 | 156 | ## そのほかの要素 — abbr, sub, sup, kbd, mark 157 | 158 | GIFはビットマップの画像形式です。 159 | 160 | H2O 161 | 162 | Xn + Yn = Zn 163 | 164 | CTRL+ALT+Deleteを押してセッションを終了してください。 165 | 166 | ほとんどのサラマンダーは夜行性で、昆虫や蠕虫、そのほかの小動物を捕食します。 167 | -------------------------------------------------------------------------------- /exampleSite/content/ja/posts/math-typesetting/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: 数式の組版 - ブログ投稿内で数式を表記する方法 4 | date: 2023-04-01 5 | description: KaTeXの簡単なセットアップ方法 6 | math: true 7 | --- 8 | 9 | Hugoでは[サードパーティーJavaScriptライブラリ](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/layouts/partials/helpers/katex.html)を利用することで数式を表記することができます。 10 | 11 | 12 | 13 | ここでは、[KaTeX](https://katex.org/)を利用して説明します。 14 | 15 | - サイト全体でKaTeXを利用する場合、以下に示す通り、`math`引数を`true`に設定してください。 16 | - `hugo.toml` 17 | ```toml 18 | [params] 19 | math = true 20 | ``` 21 | - `hugo.yaml` 22 | ```yaml 23 | params: 24 | math: true 25 | ``` 26 | - ページごとにKaTeXを有効にしたい場合、以下に示す通り`math: true`をMarkdownのFront Matterに追加してください。 27 | 28 | ``` 29 | --- 30 | math: true 31 | --- 32 | ``` 33 | 34 | **注意:** [サポートされているTeX関数](https://katex.org/docs/supported.html)のオンラインリファレンスが参考になります。 35 | 36 | ### 例 37 | 38 | - ブロック数式: 39 | 40 | $$ 41 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } 42 | $$ 43 | 44 | - インライン数式: 45 | 46 | これはインラインで示す多項式です: $5x^2 + 2y -7$。 47 | -------------------------------------------------------------------------------- /exampleSite/content/ja/posts/placeholder-text/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: プレースホルダーテキスト 4 | date: 2023-02-07 5 | description: プレースホルダーテキストを含んだ投稿 6 | --- 7 | 8 | Lorem est tota propiore conpellat pectoribus de pectora summo. 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. 9 | 10 | 1. Exierant elisi ambit vivere dedere 11 | 2. Duce pollice 12 | 3. Eris modo 13 | 4. Spargitque ferrea quos palude 14 | 15 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. 16 | 17 | 1. Comas hunc haec pietate fetum procerum dixit 18 | 2. Post torum vates letum Tiresia 19 | 3. Flumen querellas 20 | 4. Arcanaque montibus omnes 21 | 5. Quidem et 22 | 23 | # Vagus elidunt 24 | 25 | 26 | 27 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) 28 | 29 | ## Mane refeci capiebant unda mulcebat 30 | 31 | 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. 32 | 33 | 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. 34 | 35 | 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**. 36 | 37 | {{< css.inline >}} 38 | 41 | {{< /css.inline >}} 42 | -------------------------------------------------------------------------------- /exampleSite/content/ja/posts/rich-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: リッチコンテンツ 4 | date: 2023-02-09 5 | description: Hugoのショートコードについてご説明いたします。 6 | --- 7 | 8 | Hugoはリッチコンテンツにご利用いただける多くの[標準ショートコード](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes)を提供しています。また、[プライバシー設定](https://gohugo.io/about/hugo-and-gdpr/)および静的やJSを利用しないSNSの埋め込みに利用するシンプルなショートコードもご用意しております。 9 | 10 | --- 11 | 12 | ## プライバシー強化版YouTubeショートコード 13 | 14 | {{< youtube ZJthWmvUzzc >}} 15 | 16 |
17 | 18 | --- 19 | 20 | ## Twitter シンプルショートコード 21 | 22 | {{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}} 23 | 24 |
25 | 26 | --- 27 | 28 | ## Vimeo シンプルショートコード 29 | 30 | {{< vimeo_simple 48912912 >}} 31 | -------------------------------------------------------------------------------- /exampleSite/content/ja/posts/table-of-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 目次 3 | date: 2023-05-02 4 | description: Hugo blog awesomeテーマの中で目次を設定しましょう 5 | --- 6 | 7 | ## 目次 8 | 9 | ものテーマは目次(ToC)の表示に対応しています。 10 | 11 | ## 引数 12 | 13 | 以下の2つの引数で目次を管理できます: 14 | 15 | - グローバル `toc` 引数; 16 | - 投稿の `toc` 引数。 17 | 18 | 投稿の`toc`はグローバルの`toc`より優先されます。 19 | 20 | ## 目次をすべての投稿で有効にする 21 | 22 | 目次をすべての投稿(グローバル)で有効にするには、`hugo.toml`内の`toc`引数を`true`に設定してください。 23 | 24 | ```toml 25 | [params] 26 | toc = true 27 | ``` 28 | 29 | すべての投稿で目次を使用したくない場合、`toc`引数を記述しないか`false`に設定してください。 30 | 31 | ## 特定投稿で目次を有効にする 32 | 33 | 目次を特定の投稿でのみ有効にする場合、投稿設定で`toc`引数に`true`を設定してください。 34 | 35 | ```yaml 36 | --- 37 | title: 目次を有効にする方法 38 | date: 2023-05-02 39 | toc: true 40 | --- 41 | ``` 42 | 43 | ## 特定の投稿で目次を無効にする 44 | 45 | 特定の投稿でのみ目次を無効にする場合、2段階を経る必要があります。 46 | 47 | 注意: 投稿内にある`.Params.toc`は`.Site.Params.toc`を上書きします。以下の手順を経ると、その投稿内の`toc`引数は`false`になります。 48 | 49 | 1. `hugo.toml`内の`toc`引数を`true`に設定してください。 50 | 51 | ```toml 52 | [params] 53 | toc = true 54 | ``` 55 | 56 | 2. `toc = false`を目次を無効にしたい投稿内のfront matterに追加してください。 57 | 58 | ```yaml 59 | --- 60 | title: 目次を有効にする方法 61 | date: 2023-05-02 62 | toc: false 63 | --- 64 | ``` 65 | 66 | ## 目次を開いておく方法 67 | 68 | 既定の設定では、目次は閉じられた状態で表示されます。開いた状態で表示したい場合、`hugo.toml`内の`tocOpen`引数を`true`に設定してください。 69 | 70 | ```toml 71 | [params] 72 | tocOpen = true 73 | ``` 74 | 75 | あるいは、投稿内のfront matterに`tocOpen`引数を追加することもできます。 76 | 77 | ```yaml 78 | --- 79 | title: 目次を有効にする方法 80 | date: 2023-05-02 81 | tocOpen: true 82 | --- 83 | ``` 84 | -------------------------------------------------------------------------------- /exampleSite/content/ru/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Домашняя" 3 | author : "Hugo Authors" 4 | --- 5 | -------------------------------------------------------------------------------- /exampleSite/content/ru/pages/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: О проекте 3 | description: 'Hugo - самый быстрый фреймворк для создания сайтов' 4 | author: Hugo Authors 5 | --- 6 | 7 | Написанный на Go, Hugo - это генератор статических сайтов с открытом исходным кодом и лицензией [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE). Hugo поддерживает TOML, YAML и JSON типы файлов с данными, Markdown, HTML файлы и использует шорт коды для добавления богатого содержания. Другие возможности: таксономия, режим нескольких языков, обработка изображений, настраиваемые выходные форматы, сжатие HTML/CSS/JS и поддержка Sass SCSS рабочих процессов. 8 | 9 | Hugo использует множество проектов с исходным кодом, такие как: 10 | 11 | * https://github.com/yuin/goldmark 12 | * https://github.com/alecthomas/chroma 13 | * https://github.com/muesli/smartcrop 14 | * https://github.com/spf13/cobra 15 | * https://github.com/spf13/viper 16 | 17 | Использование Hugo идеально для блогов, корпоративных вебсайтов, творческих портфолио, on-line журналов, одностраничных приложений или вебсайтов с тысячью страниц. 18 | 19 | Hugo для людей, которые хотят иметь контроль на кодов их веб сайтов и не беспокоиться о настройке полноценного окружения, зависимостей и баз данных. 20 | 21 | Вебсайты, которые созданы с помощью Hugo, очень быстры, безопасны и могут быть загружены куда угодно, включая AWS, GitHub Pages, Heroku, Netlify и любые другие хостинг провайдеры. 22 | 23 | Узнайте больше и сотрудничайте на [GitHub](https://github.com/gohugoio). 24 | -------------------------------------------------------------------------------- /exampleSite/content/ru/posts/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Записи" 3 | --- 4 | -------------------------------------------------------------------------------- /exampleSite/content/ru/posts/emoji-support/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Поддержка смайликов 3 | date: 2023-02-01 4 | author: Hugo Authors 5 | description: Инструкция для использования смайликов в Hugo 6 | tags: 7 | - emoji 8 | --- 9 | 10 | Смайлики могут быть задействован в проекте Hugo несколькими способами. 11 | 12 | [`emojify`](https://gohugo.io/functions/emojify/) функция может быть напрямую вызвана в шаблоне или [встроенный короткий код](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). 13 | 14 | Для включения смайликов на весь проект, установите значение `enableEmoji = true` в файле `hugo.toml` вашего сайта. Вы можете набрать смайлик shorthand codes непосредственно в файле с содержимым; К примеру, 15 | 16 | `:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil: 17 | 18 | Я :heart: Hugo! 😁 19 | 20 | [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) полезное руководство по коротким кодам для смайликов. 21 | 22 | *** 23 | 24 | **Заметка** Следующие шаги включат стандартные Unicode символы смайликов и последовательно в Hugo, однако отрисовка этих глифов зависит от браузера и платформы. Для добавления стиля к смайликам Вы можете использовать сторонние шрифты или наборы шрифтов; К примеру: 25 | 26 | {{< highlight css >}} 27 | .emoji { 28 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; 29 | } 30 | {{< /highlight >}} 31 | 32 | {{< css.inline >}} 33 | 46 | {{< /css.inline >}} 47 | -------------------------------------------------------------------------------- /exampleSite/content/ru/posts/markdown-syntax/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/exampleSite/content/ru/posts/markdown-syntax/1.jpg -------------------------------------------------------------------------------- /exampleSite/content/ru/posts/markdown-syntax/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Инструкция по использованию Markdown 3 | date: 2023-02-11 4 | author: Hugo Authors 5 | description: Пример статьи, демонстрирующей базовый синтаксис Markdown и форматирование элементов HTML. 6 | --- 7 | 8 | В этой статье предлагается образец базового синтаксиса Markdown, который можно использовать в файлах контента Hugo, а также показано как расширенна разметка базовые элементы HTML CSS в теме Hugo. 9 | 10 | 11 | ## Headings 12 | 13 | Следующий HTML `

`—`

` элементы показывают шесть уровней заголовков разделов. От самого большого уровня `

` до самого малого `

`. 14 | 15 | # H1 16 | 17 | ## H2 18 | 19 | ### H3 20 | 21 | #### H4 22 | 23 | ##### H5 24 | 25 | ###### H6 26 | 27 | ## Параграф 28 | 29 | 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. 30 | 31 | Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. 32 | 33 | ## Изображение 34 | 35 | Вы можете использовать следующий синтаксис для добавления изображения. Путь до изображения должна быть относителен к файлу `index.md`. 36 | 37 | ```markdown 38 | ![Landscape](1.jpg) 39 | ``` 40 | 41 | ![Landscape](1.jpg) 42 | 43 | Вы так же можете использовать изображение из внешних источников. 44 | 45 | ```markdown 46 | ![Image](https://source.unsplash.com/random/600x400/?tech) 47 | ``` 48 | 49 | ![Image](https://source.unsplash.com/random/600x400/?tech) 50 | 51 | ## Blockquote 52 | 53 | Blockquote может подсветить контент который был процитирован из других источников. Опционально, необязательно с цитатой, которая должна находиться в пределах `footer` или `cite` элементов, и опционально, со встроенными изменениями, такими как аннотации и сокращения. 54 | 55 | ### Blockquote без атрибутов 56 | 57 | > Вы можете использовать синтаксис Markdown совместно с blockquote, к примеру, **bold**, _italics_, [links](https://gohugo.io/), `code`. 58 | 59 | ### Blockquote с атрибутов 60 | 61 | > Don't communicate by sharing memory, share memory by communicating.
62 | > — Rob Pike[^1] 63 | 64 | [^1]: Приведенная выше цитата взята из выступления Роба Пайка [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) на Gopherfest, 18 ноября 2015. 65 | 66 | ## Таблицы 67 | 68 | Таблицы не часть основных спецификаций Markdown. Но Hugo поддерживает их из коробки. 69 | 70 | Name | Age 71 | --------|------ 72 | Bob | 27 73 | Alice | 23 74 | 75 | ### Markdown в таблицах 76 | 77 | | Italics | Bold | Code | 78 | | -------- | -------- | ------ | 79 | | *italics* | **bold** | `code` | 80 | 81 | ## Блок кода 82 | 83 | ### Блок кода с обратными кавычками 84 | 85 | ```html 86 | 87 | 88 | 89 | 90 | Example HTML5 Document 91 | 92 | 93 |

Test

94 | 95 | 96 | ``` 97 | 98 | ### Блок кода с отступом в четыре пробела 99 | 100 | 101 | 102 | 103 | 104 | Example HTML5 Document 105 | 106 | 107 |

Test

108 | 109 | 110 | 111 | ### Блок кода с коротким кодом внутренней подсветки Hugo 112 | 113 | {{< highlight html >}} 114 | 115 | 116 | 117 | 118 | Example HTML5 Document 119 | 120 | 121 |

Test

122 | 123 | 124 | {{< /highlight >}} 125 | 126 | ### Встроенный код 127 | 128 | Используйте обратные кавычки для отсылки к `variable` в пределах предложения. 129 | 130 | ## Списки 131 | 132 | ### Упорядоченный список 133 | 134 | 1. First item 135 | 2. Second item 136 | 3. Third item 137 | 138 | ### Неупорядоченный список 139 | 140 | * List item 141 | * Another item 142 | * And another item 143 | 144 | ### Вложенные списки 145 | 146 | * Fruit 147 | * Apple 148 | * Orange 149 | * Banana 150 | * Dairy 151 | * Milk 152 | * Cheese 153 | 154 | ## Остальные элементы — abbr, sub, sup, kbd, mark 155 | 156 | GIF bitmap формат изображений. 157 | 158 | H2O 159 | 160 | Xn + Yn = Zn 161 | 162 | Нажмите CTRL+ALT+Delete для завершения сессии. 163 | 164 | Большинство саламандр ведут ночной образ жизни и охотятся на насекомых, червей и других мелких существ. 165 | -------------------------------------------------------------------------------- /exampleSite/content/ru/posts/math-typesetting/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Текст с математическими символами 4 | date: 2023-04-01 5 | description: Краткое руководство по настройке KaTeX 6 | math: true 7 | --- 8 | 9 | Математические обозначения в проекте Hugo можно включить с помощью 10 | [сторонние библиотеки JavaScript](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/layouts/partials/helpers/katex.html). 11 | 12 | 13 | 14 | В этом примере, мы будем использовать [KaTeX](https://katex.org/). 15 | 16 | - Для включения KaTeX глобально, установите параметр `math` в `true` в конфигурационный файл проекта в формате, который вы используете. 17 | - `hugo.toml` 18 | ```toml 19 | [params] 20 | math = true 21 | ``` 22 | - `hugo.yaml` 23 | ```yaml 24 | params: 25 | math: true 26 | ``` 27 | - Для включения KaTeX для каждой страницы, добавьте параметр `math: true` в 28 | Markdown настройки файла с контентом как показано. 29 | 30 | ``` 31 | --- 32 | math: true 33 | --- 34 | ``` 35 | 36 | **Заметка:** Онлайн заметка 37 | [Supported TeX Functions](https://katex.org/docs/supported.html) полезный ресурс. 38 | 39 | ### Пример 40 | 41 | - Блок с математикой: 42 | 43 | $$ 44 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } 45 | $$ 46 | 47 | - Встроенная математика: 48 | 49 | Это полином: $5x^2 + 2y -7$. 50 | -------------------------------------------------------------------------------- /exampleSite/content/ru/posts/placeholder-text/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Плейсхолдер текст 4 | date: 2023-02-07 5 | description: Запись с плейсхолдер тестом 6 | --- 7 | 8 | Lorem est tota propiore conpellat pectoribus de pectora summo. 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. 9 | 10 | 1. Exierant elisi ambit vivere dedere 11 | 2. Duce pollice 12 | 3. Eris modo 13 | 4. Spargitque ferrea quos palude 14 | 15 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. 16 | 17 | 1. Comas hunc haec pietate fetum procerum dixit 18 | 2. Post torum vates letum Tiresia 19 | 3. Flumen querellas 20 | 4. Arcanaque montibus omnes 21 | 5. Quidem et 22 | 23 | # Vagus elidunt 24 | 25 | 26 | 27 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) 28 | 29 | ## Mane refeci capiebant unda mulcebat 30 | 31 | 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. 32 | 33 | 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. 34 | 35 | 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**. 36 | 37 | {{< css.inline >}} 38 | 41 | {{< /css.inline >}} 42 | -------------------------------------------------------------------------------- /exampleSite/content/ru/posts/rich-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Обогащённый контент 4 | date: 2023-02-09 5 | description: Краткое описание шорт кодов Hugo 6 | --- 7 | 8 | Hugo поставляется с несколькими [встроенными шорт кодами](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) для обогащённого контента, вместе с [конфигурационным файлом для настройки конфиденциальности](https://gohugo.io/about/hugo-and-gdpr/) и списком простых шорт кодов для включения статичных не JS версий различных встраиваемых медиа. 9 | 10 | --- 11 | 12 | ## Шорт код для вставки видео с YouTube с расширенной приватностью 13 | 14 | {{< youtube ZJthWmvUzzc >}} 15 | 16 |
17 | 18 | --- 19 | 20 | ## Простой шорт код для Twitter 21 | 22 | {{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}} 23 | 24 |
25 | 26 | --- 27 | 28 | ## Простой шорт код для Vimeo 29 | 30 | {{< vimeo_simple 48912912 >}} 31 | -------------------------------------------------------------------------------- /exampleSite/content/ru/posts/table-of-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Содержание 3 | date: 2023-05-02 4 | description: Установка содержания для Hugo темы awesome 5 | --- 6 | 7 | ## Содержание 8 | 9 | Эта тема поддерживает отображение содержания для записей в блоге. 10 | 11 | ## Параметры 12 | 13 | Выв можете управлять содержимом с помощью двух параметров: 14 | - глобальный `toc` параметр; 15 | - параметр `toc` записи. 16 | 17 | Параметр `toc` записи имеет более высокий приоритет чем глобальный `toc` параметр. 18 | 19 | ## Включение содержания для всех записей 20 | 21 | Для включения содержания для всех записей (глобально) установите параметр`toc` в значение `true` в `hugo.toml`. 22 | 23 | ```toml 24 | [params] 25 | toc = true 26 | ``` 27 | 28 | Для отключения содержания глобально, просто проигнорируйте параметр `toc` или установите значение `false`. 29 | 30 | ## Включение содержания для определённых записей 31 | 32 | Для включения содержания для определённых записей, установите параметр `toc` в значение `true` в настройках записи. 33 | 34 | ```yaml 35 | --- 36 | title: Как включить содержание 37 | date: 2023-05-02 38 | toc: true 39 | --- 40 | ``` 41 | 42 | ## Отключение содержания для определённых записей 43 | 44 | Для отключения содержания для определённых записей, Вам необходимо выполнить два шага. 45 | 46 | 1. Установить параметр `toc` в значение `true` в `hugo.toml`. 47 | 48 | ```toml 49 | [params] 50 | toc = true 51 | ``` 52 | 53 | 2. И `toc = false` в настройках поста для которого Вы хотите отключить содержание. 54 | 55 | ```yaml 56 | --- 57 | title: Как включить содержание 58 | date: 2023-05-02 59 | toc: false 60 | --- 61 | ``` 62 | 63 | ## Раскрыть содержание 64 | 65 | По умолчанию, содержание свёрнуто. Для раскрытия содержания по умолчанию, установите параметр `tocOpen` в значение `true` в `hugo.toml`. 66 | 67 | ```toml 68 | [params] 69 | tocOpen = true 70 | ``` 71 | 72 | Или просто добавьте параметр `tocOpen` в настройках конкретной записи. 73 | 74 | ```yaml 75 | --- 76 | title: Как включить содержание 77 | date: 2023-05-02 78 | tocOpen: true 79 | --- 80 | ``` -------------------------------------------------------------------------------- /exampleSite/content/zh/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "首页" 3 | author : "Hugo Authors" 4 | --- 5 | -------------------------------------------------------------------------------- /exampleSite/content/zh/pages/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 关于 3 | description: 'Hugo,世界上最快的网站构建框架' 4 | author: Hugo Authors 5 | --- 6 | 7 | Hugo 是用 Go 语言编写的开源静态网站生成器,遵循 [Apache Licence 2.0](https://github.com/gohugoio/hugo/blob/master/LICENSE) 许可证。Hugo 支持 TOML、YAML 和 JSON 数据文件类型,以及 Markdown 和 HTML 内容文件,并使用短代码来添加丰富的内容。其他显著功能包括分类法、多语言模式、图像处理、自定义输出格式、HTML/CSS/JS 压缩以及对 Sass SCSS 工作流的支持。 8 | 9 | Hugo 使用了多种开源项目,包括: 10 | 11 | * https://github.com/yuin/goldmark 12 | * https://github.com/alecthomas/chroma 13 | * https://github.com/muesli/smartcrop 14 | * https://github.com/spf13/cobra 15 | * https://github.com/spf13/viper 16 | 17 | Hugo 非常适合博客、企业网站、创意作品集、在线杂志、单页应用程序,甚至是拥有数千页的网站。 18 | 19 | Hugo 适合那些希望手动编写自己的网站,而不必担心设置复杂的运行时环境、依赖项和数据库的人。 20 | 21 | 使用 Hugo 构建的网站速度极快、安全性高,并且可以部署在任何地方,包括 AWS、GitHub Pages、Heroku、Netlify 以及任何其他托管提供商。 22 | 23 | 在 [GitHub](https://github.com/gohugoio) 上了解更多信息并参与贡献。 24 | -------------------------------------------------------------------------------- /exampleSite/content/zh/posts/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "文章" 3 | --- 4 | -------------------------------------------------------------------------------- /exampleSite/content/zh/posts/emoji-support/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Emoji 支持 3 | date: 2023-02-01 4 | author: Hugo Authors 5 | description: 在 Hugo 中使用 Emoji 的指南 6 | tags: 7 | - emoji 8 | --- 9 | 10 | 在 Hugo 项目中有多种方式可以启用 Emoji。 11 | 12 | 13 | 14 | 可以在模板中直接调用 [`emojify`](https://gohugo.io/functions/emojify/) 函数,或者使用 [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes)。 15 | 16 | 要全局启用 Emoji,请在站点的 `hugo.toml` 中将 `enableEmoji` 设置为 `true`。您可以直接在内容文件中输入 Emoji 的简写代码,例如: 17 | 18 | `:see_no_evil:` :see_no_evil: `:hear_no_evil:` :hear_no_evil: `:speak_no_evil:` :speak_no_evil: 19 | 20 | 我 :heart: Hugo! 😁 21 | 22 | [Emoji 速查表](http://www.emoji-cheat-sheet.com/) 是一个非常有用的 Emoji 简写代码参考。 23 | 24 | --- 25 | 26 | **注意:** 上述步骤启用了 Hugo 中的 Unicode 标准 Emoji 字符和序列,但这些字符的渲染效果取决于浏览器和平台。要为 Emoji 设置样式,您可以使用第三方 Emoji 字体或字体堆栈,例如: 27 | 28 | {{< highlight css >}} 29 | .emoji { 30 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; 31 | } 32 | {{< /highlight >}} 33 | 34 | {{< css.inline >}} 35 | 36 | 49 | 50 | {{< /css.inline >}} 51 | -------------------------------------------------------------------------------- /exampleSite/content/zh/posts/markdown-syntax/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/exampleSite/content/zh/posts/markdown-syntax/1.jpg -------------------------------------------------------------------------------- /exampleSite/content/zh/posts/markdown-syntax/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Markdown 语法指南 3 | date: 2023-02-11 4 | author: Hugo Authors 5 | description: 展示基本 Markdown 语法和 HTML 元素格式化的示例文章。 6 | isStarred: true 7 | --- 8 | 9 | 本文提供了 Hugo 内容文件中可以使用的 Markdown 语法示例,同时展示了 Hugo 主题中是否对基本 HTML 元素进行了 CSS 装饰。 10 | 11 | 12 | ## 标题 13 | 14 | 以下 HTML `

`—`

` 元素表示六个级别的标题。`

` 是最高级别的标题,而 `

` 是最低级别的标题。 15 | 16 | # H1 17 | 18 | ## H2 19 | 20 | ### H3 21 | 22 | #### H4 23 | 24 | ##### H5 25 | 26 | ###### H6 27 | 28 | ## 段落 29 | 30 | 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. 31 | 32 | Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. 33 | 34 | ## 图片 35 | 36 | 您可以使用以下语法来包含图片。图片的路径应相对于 `index.md` 文件。 37 | 38 | ```markdown 39 | ![Landscape](1.jpg) 40 | ``` 41 | 42 | ![Landscape](1.jpg) 43 | 44 | 您还可以包含来自外部来源的图片。 45 | 46 | ```markdown 47 | ![Image](https://source.unsplash.com/random/600x400/?tech) 48 | ``` 49 | 50 | ![Image](https://source.unsplash.com/random/600x400/?tech) 51 | 52 | ## 引用 53 | 54 | 引用元素表示从其他来源引用的内容,可以选择包含引用来源,引用来源必须位于 `footer` 或 `cite` 元素中,还可以选择包含注释和缩写等内联更改。 55 | 56 | ### 无来源的引用 57 | 58 | > 您可以在引用中使用 Markdown 语法,例如 **bold**, _italics_, [links](https://gohugo.io/), `code`。 59 | 60 | ### 带来源的引用 61 | 62 | > Don't communicate by sharing memory, share memory by communicating.
63 | > — Rob Pike[^1] 64 | 65 | [^1]: 上述引用摘自 Rob Pike 在 2015 年 11 月 18 日 Gopherfest 上的[演讲](https://www.youtube.com/watch?v=PAAkCSZUG1c)。 66 | 67 | ## 表格 68 | 69 | 表格不是 Markdown 核心规范的一部分,但 Hugo 原生支持它们。 70 | 71 | Name | Age 72 | --------|------ 73 | Bob | 27 74 | Alice | 23 75 | 76 | ### 表格中的 Markdown 77 | 78 | | Italics | Bold | Code | 79 | | -------- | -------- | ------ | 80 | | *italics* | **bold** | `code` | 81 | 82 | ## 代码块 83 | 84 | ### 使用反引号的代码块 85 | 86 | ```html 87 | 88 | 89 | 90 | 91 | Example HTML5 Document 92 | 93 | 94 |

Test

95 | 96 | 97 | ``` 98 | 99 | ### 缩进四个空格的代码块 100 | 101 | 102 | 103 | 104 | 105 | Example HTML5 Document 106 | 107 | 108 |

Test

109 | 110 | 111 | 112 | ### 使用 Hugo 内置高亮短代码的代码块 113 | 114 | {{< highlight html >}} 115 | 116 | 117 | 118 | 119 | Example HTML5 Document 120 | 121 | 122 |

Test

123 | 124 | 125 | {{< /highlight >}} 126 | 127 | ### 内联代码 128 | 129 | 使用反引号在句子中引用 `variable`。 130 | 131 | ## 列表类型 132 | 133 | ### 有序列表 134 | 135 | 1. First item 136 | 2. Second item with some `code` in it 137 | 3. Third item 138 | 139 | ### 无序列表 140 | 141 | * List item 142 | * Another item with some `code` in it 143 | * And another item 144 | 145 | ### 嵌套列表 146 | 147 | * Fruit 148 | * Apple 149 | * Orange 150 | * Banana 151 | * Dairy 152 | * Milk 153 | * Cheese 154 | 155 | ## 其他元素 — abbr, sub, sup, kbd, mark 156 | 157 | GIF 是一种位图图像格式。 158 | 159 | H2O 160 | 161 | Xn + Yn = Zn 162 | 163 | 按下 CTRL+ALT+Delete 结束会话。 164 | 165 | 大多数 蝾螈 是夜行动物,捕食昆虫、蠕虫和其他小生物。 166 | -------------------------------------------------------------------------------- /exampleSite/content/zh/posts/math-typesetting/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: 数学排版 - 在博客文章中使用数学符号 4 | date: 2023-04-01 5 | description: KaTeX 设置简要指南 6 | math: true 7 | --- 8 | 9 | 在 Hugo 项目中,可以通过使用 [第三方 JavaScript 库](https://github.com/hugo-sid/hugo-blog-awesome/blob/main/layouts/partials/helpers/katex.html) 来启用数学符号。 10 | 11 | 12 | 13 | 在本示例中,我们将使用 [KaTeX](https://katex.org/)。 14 | 15 | - 要全局启用 KaTeX,请在项目的配置文件中将参数 `math` 设置为 `true`,如下所示。 16 | - `hugo.toml` 17 | ```toml 18 | [params] 19 | math = true 20 | ``` 21 | - `hugo.yaml` 22 | ```yaml 23 | params: 24 | math: true 25 | ``` 26 | - 要在每页基础上启用 KaTeX,请在 Markdown 内容文件的 Front Matter 中包含参数 `math: true`,如下所示。 27 | 28 | ``` 29 | --- 30 | math: true 31 | --- 32 | ``` 33 | 34 | **注意:** [支持的 TeX 函数](https://katex.org/docs/supported.html) 在线参考是一个有用的资源。 35 | 36 | ### 示例 37 | 38 | - 块级数学公式: 39 | 40 | $$ 41 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } 42 | $$ 43 | 44 | - 行内数学公式: 45 | 46 | 这是一个行内多项式:$5x^2 + 2y -7$。 47 | -------------------------------------------------------------------------------- /exampleSite/content/zh/posts/placeholder-text/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: 占位文本 4 | date: 2023-02-07 5 | description: 一篇包含占位文本的文章 6 | --- 7 | 8 | Lorem est tota propiore conpellat pectoribus de pectora summo. 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. 9 | 10 | 1. Exierant elisi ambit vivere dedere 11 | 2. Duce pollice 12 | 3. Eris modo 13 | 4. Spargitque ferrea quos palude 14 | 15 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. 16 | 17 | 1. Comas hunc haec pietate fetum procerum dixit 18 | 2. Post torum vates letum Tiresia 19 | 3. Flumen querellas 20 | 4. Arcanaque montibus omnes 21 | 5. Quidem et 22 | 23 | # Vagus elidunt 24 | 25 | 26 | 27 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) 28 | 29 | ## Mane refeci capiebant unda mulcebat 30 | 31 | 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. 32 | 33 | 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. 34 | 35 | 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**. 36 | 37 | {{< css.inline >}} 38 | 41 | {{< /css.inline >}} 42 | -------------------------------------------------------------------------------- /exampleSite/content/zh/posts/rich-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: 富内容 4 | date: 2023-02-09 5 | description: Hugo 短代码的简要介绍 6 | --- 7 | 8 | Hugo 提供了多个[内置短代码](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes)来支持富内容,同时还提供了[隐私配置](https://gohugo.io/about/hugo-and-gdpr/)和一组简单短代码,以实现各种社交媒体嵌入的静态和无 JS 版本。 9 | 10 | --- 11 | 12 | ## YouTube 隐私增强短代码 13 | 14 | {{< youtube ZJthWmvUzzc >}} 15 | 16 |
17 | 18 | --- 19 | 20 | ## Twitter 简单短代码 21 | 22 | {{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}} 23 | 24 |
25 | 26 | --- 27 | 28 | ## Vimeo 简单短代码 29 | 30 | {{< vimeo_simple 48912912 >}} 31 | -------------------------------------------------------------------------------- /exampleSite/content/zh/posts/table-of-content/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 目录 3 | date: 2023-05-02 4 | description: 在 Hugo 博客 awesome 主题中设置目录 5 | --- 6 | 7 | ## 目录 8 | 9 | 本主题支持在博客文章中显示目录(ToC)。 10 | 11 | ## 参数 12 | 13 | 您可以通过两个参数管理目录: 14 | 15 | - 全局 `toc` 参数; 16 | - 文章的 `toc` 参数。 17 | 18 | 文章的 `toc` 参数优先级高于全局 `toc` 参数。 19 | 20 | ## 在所有文章中启用目录 21 | 22 | 要在所有文章(全局)中启用目录,请在 `hugo.toml` 中将参数 `toc` 设置为 `true`。 23 | 24 | ```toml 25 | [params] 26 | toc = true 27 | ``` 28 | 29 | 要全局禁用目录,只需忽略 `toc` 参数或将其设置为 `false`。 30 | 31 | ## 在特定文章中启用目录 32 | 33 | 要在特定文章中启用目录,请在文章设置中将参数 `toc` 设置为 `true`。 34 | 35 | ```yaml 36 | --- 37 | title: 如何启用目录 38 | date: 2023-05-02 39 | toc: true 40 | --- 41 | ``` 42 | 43 | ## 在特定文章中禁用目录 44 | 45 | 要在特定文章中禁用目录,您需要遵循两个步骤。 46 | 47 | 注意:文章中的 `.Params.toc` 会覆盖 `.Site.Params.toc`。完成这些步骤后,文章中的 `toc` 参数将为 `false`。 48 | 49 | 1. 在 `hugo.toml` 中将参数 `toc` 设置为 `true`。 50 | 51 | ```toml 52 | [params] 53 | toc = true 54 | ``` 55 | 56 | 2. 在希望禁用目录的文章的 front matter 中添加 `toc = false`。 57 | 58 | ```yaml 59 | --- 60 | title: 如何启用目录 61 | date: 2023-05-02 62 | toc: false 63 | --- 64 | ``` 65 | 66 | ## 默认打开目录 67 | 68 | 默认情况下,目录是关闭的。要默认打开它,请在 `hugo.toml` 中将参数 `tocOpen` 设置为 `true`。 69 | 70 | ```toml 71 | [params] 72 | tocOpen = true 73 | ``` 74 | 75 | 或者直接在文章的 front matter 中添加 `tocOpen` 参数。 76 | 77 | ```yaml 78 | --- 79 | title: 如何启用目录 80 | date: 2023-05-02 81 | tocOpen: true 82 | --- 83 | ``` 84 | -------------------------------------------------------------------------------- /exampleSite/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hugo-sid/hugo-blog-awesome/exampleSite 2 | 3 | go 1.22.0 4 | -------------------------------------------------------------------------------- /exampleSite/go.sum: -------------------------------------------------------------------------------- 1 | github.com/hugo-sid/hugo-blog-awesome v1.13.1-0.20240307121217-f321f1c1d5f0 h1:1Ed+wKZkOlptWQia2wyZsSSDlL+EQDbV3xZ6ZC8ixJg= 2 | github.com/hugo-sid/hugo-blog-awesome v1.13.1-0.20240307121217-f321f1c1d5f0/go.mod h1:oRoqH9/bJDdyQqBoxI77O1oWAwVtn+fTng9MD3vR8A0= 3 | -------------------------------------------------------------------------------- /exampleSite/hugo-blog-awesome.work: -------------------------------------------------------------------------------- 1 | go 1.22.0 2 | 3 | use . 4 | use .. // Local theme clone resides in parent folder of example site 5 | // use ./themes/hugo-blog-awesome/ // Local theme clone resides in themes folder -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hugo-sid/hugo-blog-awesome 2 | 3 | go 1.22.0 4 | -------------------------------------------------------------------------------- /i18n/de-de.yaml: -------------------------------------------------------------------------------- 1 | ## HOME ## 2 | - id: "home.home" 3 | translation: "Startseite" 4 | 5 | - id: "home.recent_posts" 6 | translation: "Letzte Beiträge" 7 | 8 | - id: "home.see_all_posts" 9 | translation: "Alle Beiträge anzeigen" 10 | 11 | ## SINGLE ## 12 | - id: "single.table_of_contents" 13 | translation: "Inhaltsverzeichnis" 14 | 15 | ## FOOTER ## 16 | - id: "footer.go_to_top" 17 | translation: "Zum Seitenanfang" 18 | 19 | - id: "footer.disclaimer" 20 | translation: "Unterstützt durch Hugo blog awesome." 21 | 22 | ## ERRORS ## 23 | - id: "errors.404" 24 | translation: "404 NICHT GEFUNDEN" 25 | 26 | - id: "errors.404_description" 27 | translation: "Die Seite konnte nicht gefunden werden." -------------------------------------------------------------------------------- /i18n/en-gb.yaml: -------------------------------------------------------------------------------- 1 | ## HOME ## 2 | - id: "home.home" 3 | translation: "Home" 4 | 5 | - id: "home.recent_posts" 6 | translation: "Recent Posts" 7 | 8 | - id: "home.see_all_posts" 9 | translation: "See all posts" 10 | 11 | ## SINGLE ## 12 | - id: "single.table_of_contents" 13 | translation: "Table of Contents" 14 | 15 | ## FOOTER ## 16 | - id: "footer.go_to_top" 17 | translation: "Go to top" 18 | 19 | - id: "footer.disclaimer" 20 | translation: "Powered by Hugo blog awesome." 21 | 22 | ## ERRORS ## 23 | - id: "errors.404" 24 | translation: "404 NOT FOUND" 25 | 26 | - id: "errors.404_description" 27 | translation: "You just hit a route that doesn't exist." -------------------------------------------------------------------------------- /i18n/en-us.yaml: -------------------------------------------------------------------------------- 1 | ## HOME ## 2 | - id: "home.home" 3 | translation: "Home" 4 | 5 | - id: "home.recent_posts" 6 | translation: "Recent Posts" 7 | 8 | - id: "home.see_all_posts" 9 | translation: "See all posts" 10 | 11 | ## SINGLE ## 12 | - id: "single.table_of_contents" 13 | translation: "Table of Contents" 14 | 15 | ## FOOTER ## 16 | - id: "footer.go_to_top" 17 | translation: "Go to top" 18 | 19 | - id: "footer.disclaimer" 20 | translation: "Powered by Hugo blog awesome." 21 | 22 | ## ERRORS ## 23 | - id: "errors.404" 24 | translation: "404 NOT FOUND" 25 | 26 | - id: "errors.404_description" 27 | translation: "You just hit a route that doesn't exist." -------------------------------------------------------------------------------- /i18n/fr-fr.yaml: -------------------------------------------------------------------------------- 1 | ## HOME ## 2 | - id: "home.home" 3 | translation: "Accueil" 4 | 5 | - id: "home.recent_posts" 6 | translation: "Articles récents" 7 | 8 | - id: "home.see_all_posts" 9 | translation: "Voir tous les articles" 10 | 11 | ## SINGLE ## 12 | - id: "single.table_of_contents" 13 | translation: "Table des matières" 14 | 15 | ## FOOTER ## 16 | - id: "footer.go_to_top" 17 | translation: "Aller en haut" 18 | 19 | - id: "footer.disclaimer" 20 | translation: "Propulsé par Hugo blog awesome." 21 | 22 | ## ERRORS ## 23 | - id: "errors.404" 24 | translation: "404 PAGE NON TROUVÉE" 25 | 26 | - id: "errors.404_description" 27 | translation: "Vous avez suivi une adresse qui n'existe pas." -------------------------------------------------------------------------------- /i18n/it.yaml: -------------------------------------------------------------------------------- 1 | ## HOME ## 2 | - id: "home.home" 3 | translation: "Inizio" 4 | 5 | - id: "home.recent_posts" 6 | translation: "Articoli Recenti" 7 | 8 | - id: "home.see_all_posts" 9 | translation: "Visualizza tutti gli articoli" 10 | 11 | ## SINGLE ## 12 | - id: "single.table_of_contents" 13 | translation: "Sommario" 14 | 15 | ## FOOTER ## 16 | - id: "footer.go_to_top" 17 | translation: "Torna all'inizio" 18 | 19 | - id: "footer.disclaimer" 20 | translation: "Generato dal tema Hugo blog awesome." 21 | 22 | ## ERRORS ## 23 | - id: "errors.404" 24 | translation: "404 NON TROVATO" 25 | 26 | - id: "errors.404_description" 27 | translation: "Hai appena svoltato in una strada che non esiste." -------------------------------------------------------------------------------- /i18n/ja.yaml: -------------------------------------------------------------------------------- 1 | ## HOME ## 2 | - id: "home.home" 3 | translation: "ホーム" 4 | 5 | - id: "home.recent_posts" 6 | translation: "最新の投稿" 7 | 8 | - id: "home.see_all_posts" 9 | translation: "すべての投稿を見る" 10 | 11 | ## SINGLE ## 12 | - id: "single.table_of_contents" 13 | translation: "目次" 14 | 15 | ## FOOTER ## 16 | - id: "footer.go_to_top" 17 | translation: "トップに戻る" 18 | 19 | - id: "footer.disclaimer" 20 | translation: "このサイトではHugo blog awesomeを利用しています。" 21 | 22 | ## ERRORS ## 23 | - id: "errors.404" 24 | translation: "404 ページが見つかりません" 25 | 26 | - id: "errors.404_description" 27 | translation: "存在しないページにたどり着きました。" 28 | -------------------------------------------------------------------------------- /i18n/pt-br.yaml: -------------------------------------------------------------------------------- 1 | ## HOME ## 2 | - id: "home.home" 3 | translation: "Início" 4 | 5 | - id: "home.recent_posts" 6 | translation: "Publicações recentes" 7 | 8 | - id: "home.see_all_posts" 9 | translation: "Todas as publicações" 10 | 11 | ## SINGLE ## 12 | - id: "single.table_of_contents" 13 | translation: "Tabela de Conteúdo" 14 | 15 | ## FOOTER ## 16 | - id: "footer.go_to_top" 17 | translation: "Ir para cima" 18 | 19 | - id: "footer.disclaimer" 20 | translation: "Criado por Hugo blog awesome." 21 | 22 | ## ERRORS ## 23 | - id: "errors.404" 24 | translation: "404 PÁGINA NÃO ENCONTRADA" 25 | 26 | - id: "errors.404_description" 27 | translation: "O caminho que você acessou não existe" -------------------------------------------------------------------------------- /i18n/ru-ru.yaml: -------------------------------------------------------------------------------- 1 | ## HOME ## 2 | - id: "home.home" 3 | translation: "Домой" 4 | 5 | - id: "home.recent_posts" 6 | translation: "Последние записи" 7 | 8 | - id: "home.see_all_posts" 9 | translation: "Посмотреть все записи" 10 | 11 | ## SINGLE ## 12 | - id: "single.table_of_contents" 13 | translation: "Содержание" 14 | 15 | ## FOOTER ## 16 | - id: "footer.go_to_top" 17 | translation: "Перейти наверх" 18 | 19 | - id: "footer.disclaimer" 20 | translation: "Создано с помощью Hugo blog awesome." 21 | 22 | ## ERRORS ## 23 | - id: "errors.404" 24 | translation: "Запись не найдена" 25 | 26 | - id: "errors.404_description" 27 | translation: "Вы перешли по ссылке, которая не существует." -------------------------------------------------------------------------------- /i18n/zh-cn.yaml: -------------------------------------------------------------------------------- 1 | ## HOME ## 2 | - id: "home.home" 3 | translation: "首页" 4 | 5 | - id: "home.recent_posts" 6 | translation: "最新文章" 7 | 8 | - id: "home.see_all_posts" 9 | translation: "查看全部" 10 | 11 | ## SINGLE ## 12 | - id: "single.table_of_contents" 13 | translation: "目录" 14 | 15 | ## FOOTER ## 16 | - id: "footer.go_to_top" 17 | translation: "回到顶部" 18 | 19 | - id: "footer.disclaimer" 20 | translation: "Powered by Hugo blog awesome." 21 | 22 | ## ERRORS ## 23 | - id: "errors.404" 24 | translation: "404 页面不存在" 25 | 26 | - id: "errors.404_description" 27 | translation: "您访问的路径不存在。" 28 | -------------------------------------------------------------------------------- /images/dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/images/dark.png -------------------------------------------------------------------------------- /images/light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/images/light.png -------------------------------------------------------------------------------- /images/pagespeed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/images/pagespeed.png -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/images/screenshot.png -------------------------------------------------------------------------------- /images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/images/tn.png -------------------------------------------------------------------------------- /layouts/404.html: -------------------------------------------------------------------------------- 1 | {{ define "title"}} 2 | 404 | NOT FOUND 3 | {{ end }} 4 | 5 | {{ define "main"}} 6 |
7 |
8 |

{{ T "errors.404" }}

9 |

{{ T "errors.404_description" }}

10 |
11 |
12 | {{ end }} 13 | -------------------------------------------------------------------------------- /layouts/_default/baseof.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{- partial "head.html" . -}} 4 | 5 | {{- partial "scriptsBodyStart.html" . -}} 6 | {{- partial "header.html" . -}} 7 | {{- block "main" . }}{{- end }} 8 | {{- partial "footer.html" . -}} 9 | {{- partial "scriptsBodyEnd.html" . -}} 10 | 11 | 12 | -------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{- define "main" -}} 2 |
3 |
4 |

{{ .Title }}

5 |
6 |
7 | {{ range .Pages.GroupByDate "2006" }} 8 | {{ $year := .Key }} 9 |

{{ $year }}

10 | 11 | {{/* create a list of posts for each month, with month as heading */}} 12 | 13 | {{ range .Pages }} 14 | 15 | {{ partial "postCard" . }} 16 | 17 | {{ end }} {{/* end range .Pages */}} 18 | 19 | {{ end }} {{/* end range .Pages.GroupByDate "2006" */}} 20 | 21 |
22 |
23 | {{- end -}} 24 | -------------------------------------------------------------------------------- /layouts/_default/rss.xml: -------------------------------------------------------------------------------- 1 | 2 | {{- $pctx := . -}} 3 | {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} 4 | {{- $pages := slice -}} 5 | {{- if or $.IsHome $.IsSection -}} 6 | {{- $pages = $pctx.RegularPages -}} 7 | {{- else -}} 8 | {{- $pages = $pctx.Pages -}} 9 | {{- end -}} 10 | {{- $limit := .Site.Config.Services.RSS.Limit -}} 11 | {{- if ge $limit 1 -}} 12 | {{- $pages = $pages | first $limit -}} 13 | {{- end -}} 14 | {{- $rssFeedDescription := .Site.Params.rssFeedDescription | default "summary" -}} 15 | {{- printf "" | safeHTML }} 16 | 17 | 18 | {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} 19 | {{ .Permalink }} 20 | Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} 21 | Hugo -- gohugo.io 22 | {{ site.Language.LanguageCode }}{{ with .Site.Author.email }} 23 | {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} 24 | {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} 25 | {{.}}{{end}}{{ if not .Date.IsZero }} 26 | {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} 27 | {{- with .OutputFormats.Get "RSS" -}} 28 | {{ printf "" .Permalink .MediaType | safeHTML }} 29 | {{- end -}} 30 | {{ range $pages }} 31 | 32 | {{ .Title }} 33 | {{ .Permalink }} 34 | {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} 35 | {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} 36 | {{ .Permalink }} 37 | {{ if eq $rssFeedDescription "summary"}} 38 | {{ .Summary | html }} 39 | {{ else if (eq $rssFeedDescription "full")}} 40 | {{ .Content | html }} 41 | {{ else }} {{ errorf "Error in RSS feed generation %q" .Path }} 42 | {{ end }} 43 | 44 | {{ end }} 45 | 46 | 47 | -------------------------------------------------------------------------------- /layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 |
3 |
4 |
5 |
6 |

{{ .Title }}

7 | {{ $configDateFormat := .Site.Params.dateFormat | default ":date_medium" }} 8 | {{ with .Date }} 9 | {{ $ISO_time := dateFormat "2006-01-02T15:04:05-07:00" . }} 10 | 13 | {{ end }} 14 |
15 | {{ partial "toc.html" .}} 16 |
17 | {{ .Content }} 18 |
19 |
20 | {{- partial "comments.html" . -}} 21 |
22 |
23 | {{ end }} 24 | -------------------------------------------------------------------------------- /layouts/index.html: -------------------------------------------------------------------------------- 1 | 2 | {{- $defaultColor := .Site.Params.defaultColor | default "auto" -}} 3 | 4 | {{/* allow website developer to enforce default dark mode */}} 5 | {{- if eq $defaultColor "dark" -}} 6 | 7 | {{- else if eq $defaultColor "light" -}} 8 | 9 | {{- else -}} 10 | 11 | {{- end -}} 12 | 13 | {{- partial "head.html" . -}} 14 | 15 | 16 | {{- partial "scriptsBodyStart.html" . -}} 17 | {{- partial "header.html" . -}} 18 |
19 | {{ partial "bio" . }} 20 |
21 |

{{ T "home.recent_posts" }}

22 | {{/* Show last 5 posts in reverse date order */}} 23 | {{ $pagesToShow := where .Site.RegularPages "Type" "in" site.Params.mainSections }} 24 | {{ $posts := $pagesToShow.ByDate.Reverse }} 25 | {{ range first 5 $posts }} 26 | {{ partial "postCard" . }} 27 | {{ end }} 28 | {{ if gt (len $posts) 5 }} 29 |

30 | {{ range $firstSection := (where .Site.Sections "Section" "in" (first 1 (.Site.Params.mainSections))) }} 31 | {{ T "home.see_all_posts" }} 32 | {{ end }} 33 |

34 | {{ end }} 35 |
36 |
37 | {{- partial "footer.html" . -}} 38 | {{- partial "scriptsBodyEnd.html" . -}} 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /layouts/partials/bio.html: -------------------------------------------------------------------------------- 1 | {{ $avatar_img := .Site.Params.author.avatar }} 2 | {{ $avatar_img_alt := .Site.Params.author.name }} 3 | {{ $image := resources.Get $avatar_img }} 4 |
5 | {{ with $image }} 6 | {{ if eq .MediaType.SubType "svg" }} 7 | 8 | 9 | 10 | {{ else }} 11 | {{ $image1x := $image.Fill "70x70 center webp" }} 12 | {{ $image2x := $image.Fill "140x140 center webp" }} 13 | {{ $image3x := $image.Fill "210x210 center webp" }} 14 | {{ $avatar_img_alt }} 21 | {{ end }} 22 | {{ end }} 23 |

{{ .Site.Params.author.intro }}

24 |

{{ .Site.Params.author.description }}

25 |
26 | -------------------------------------------------------------------------------- /layouts/partials/browserconfig.html: -------------------------------------------------------------------------------- 1 | {{ 2 | $ctx := merge (.Site.Params.browserconfig | default dict) 3 | (dict 4 | "TileColor" (.Site.Params.browserconfig.TileColor | default "#2d89ef" ) 5 | ) 6 | }} 7 | 8 | 9 | -------------------------------------------------------------------------------- /layouts/partials/comments.html: -------------------------------------------------------------------------------- 1 | {{- if .Site.Config.Services.Disqus.Shortname -}} 2 |
3 | {{ template "_internal/disqus.html" . }} 4 | {{- end -}} 5 | -------------------------------------------------------------------------------- /layouts/partials/footer.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |   4 | 5 | 8 | 9 | © {{ now.Format "2006" }} {{ .Site.Params.author.name }}. 10 | {{ T "footer.disclaimer" | safeHTML }} 11 | 12 |
13 | 14 | {{- if .Site.Params.goToTop -}} 15 | 16 | {{ partial "svgs/arrowUp.svg" (dict "height" 48 "width" 48) . }} 17 | 18 | {{- end -}} 19 | -------------------------------------------------------------------------------- /layouts/partials/head.html: -------------------------------------------------------------------------------- 1 | 2 | {{- partial "meta/main.html" . }} 3 | {{- hugo.Generator }} 4 | 5 | {{/* Open Graph tags */}} 6 | {{ template "_internal/opengraph.html" . }} 7 | 8 | {{/* Twitter Card tags */}} 9 | {{ template "_internal/twitter_cards.html" . }} 10 | 11 | {{/* Canonical link, RSS */}} 12 | 13 | 14 | {{- with .OutputFormats.Get "RSS" }} 15 | 16 | 17 | {{- end }} 18 | 19 | {{- /* Styles */ -}} 20 | 21 | {{- $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath" "style.css") | minify | fingerprint }} 22 | 23 | {{- $code_syntax_highlight_css := resources.Get "code-highlight.css" | minify | fingerprint }} 24 | 25 | 26 | {{/* Favicons */}} 27 | 28 | 29 | 30 | 31 | 32 | 33 | {{- partial "webmanifest.html" . -}} 34 | {{- partial "browserconfig.html" . -}} 35 | 36 | 37 | 38 | {{/* SVG favicon for the modern web */}} 39 | 40 | 41 | {{/* Katex support (enabled on specific pages). See 'helpers/katex.html' for more info. */}} 42 | 43 | {{- if or .Params.math .Site.Params.math }}{{ partial "helpers/katex.html" . -}}{{- end -}} 44 | 45 | {{/* Google analytics script. See hugo.toml to enable/disable this. */}} 46 | {{- if hugo.IsProduction | or (eq site.Params.env "production") }} 47 | {{ template "_internal/google_analytics.html" . }} 48 | {{- end -}} 49 | 50 | {{/* Extend head with user supplied partial */}} 51 | {{ if templates.Exists "partials/custom-head.html" }} 52 | {{ partial "custom-head.html" . }} 53 | {{ end }} 54 | 55 | -------------------------------------------------------------------------------- /layouts/partials/header.html: -------------------------------------------------------------------------------- 1 | 73 | -------------------------------------------------------------------------------- /layouts/partials/helpers/katex.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 8 | 9 | 10 | 17 | -------------------------------------------------------------------------------- /layouts/partials/meta/main.html: -------------------------------------------------------------------------------- 1 | {{ partial "meta/standard.html" . }} 2 | {{ partial "meta/post.html" . }} 3 | -------------------------------------------------------------------------------- /layouts/partials/meta/post.html: -------------------------------------------------------------------------------- 1 | {{/* These meta tags are rendered only in the posts section (i.e. in single/list page) */}} 2 | {{ if eq .Section "posts" }} 3 | {{ $ISO_date := dateFormat "2006-01-02T15:04:05Z0700" .Date | safeHTML }} 4 | 5 | {{ if ne .Page.Kind "page" }} 6 | {{ $paginator := .Paginate (where .Pages "Section" "blog") }} 7 | {{ if $paginator }} 8 | 9 | 10 | {{ if $paginator.HasPrev }} 11 | 12 | {{end }} 13 | {{ if $paginator.HasNext }} 14 | 15 | {{end }} 16 | {{end }} 17 | {{end }} 18 | 19 | 20 | 21 | 22 | 23 | 24 | {{ with.Site.Params.author }} 25 | 26 | 27 | 28 | {{ with.fediverseAccount }} 29 | {{/* ref https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/ */}} 30 | {{ end }} 31 | {{ end }} 32 | 33 | {{ with.Params.category }} 34 | 35 | 36 | {{ end }} 37 | 38 | 62 | {{ end }} 63 | -------------------------------------------------------------------------------- /layouts/partials/meta/standard.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{ .Title }} | {{ .Site.Title }} 6 | 7 | 8 | 9 | 10 | 11 | 12 | {{/* Define empty variable description */}} 13 | {{- $description := "" -}} 14 | 15 | {{/* If description is defined in front matter, use it */}} 16 | {{- if .Params.description -}} 17 | {{- $description = trim .Params.description "\n" -}} 18 | {{/* If description is not defined in front matter, use site description */}} 19 | {{- else if .Site.Params.description -}} 20 | {{- $description = trim .Site.Params.description "\n" -}} 21 | {{- end -}} 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | {{ range .AllTranslations }} 31 | 32 | {{ end }} 33 | 34 | {{/* Define empty variable image */}} 35 | {{- $image := "" -}} 36 | 37 | {{/* If image is defined in front matter, use it */}} 38 | {{- if .Params.image -}} 39 | {{- $image = .Params.image -}} 40 | {{/* If image is not defined in front matter, use site ogimage */}} 41 | {{- else if .Site.Params.ogimage -}} 42 | {{- $image = .Site.Params.ogimage -}} 43 | {{- end -}} 44 | 45 | {{- if $image -}} 46 | 47 | 48 | 49 | 50 | {{- end -}} 51 | -------------------------------------------------------------------------------- /layouts/partials/postCard.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | {{ .Title }} 4 |

5 | {{/* format date string to create an ISO 8601 string */}} 6 | {{ $ISO_date := "2006-01-02T15:04:05Z0700" }} 7 | {{ $configDateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }} 8 | {{ if .Params.isStarred }} 9 |
10 | 11 |
12 | {{ end }} 13 | 17 |
18 | -------------------------------------------------------------------------------- /layouts/partials/scriptsBodyEnd.html: -------------------------------------------------------------------------------- 1 | {{ $main := slice (resources.Get "js/main.js") }} 2 | 3 | {{ if .Site.Params.goToTop }} 4 | {{ $main = $main | append (resources.Get "js/goToTop.js") }} 5 | {{ end }} 6 | 7 | {{ $custom := slice }} 8 | {{ range $script := .Site.Params.additionalScripts }} 9 | {{ $script_res := resources.Get $script }} 10 | {{ if not $script_res}} 11 | {{ erroridf "additional-script-loading-error" "Failed to load script \"%s\"" $script }} 12 | {{ else }} 13 | {{ $custom = $custom | append (resources.Get .) }} 14 | {{ end }} 15 | {{ end }} 16 | 17 | {{ if hugo.IsProduction }} 18 | {{ $main = $main | resources.Concat "js/main.js" | resources.Minify | resources.Fingerprint }} 19 | 20 | 21 | {{ if gt (len $custom) 0 }} 22 | {{ $custom = $custom | resources.Concat "js/custom.js" | resources.Minify | resources.Fingerprint }} 23 | 24 | {{ end }} 25 | {{ else }} 26 | {{ $main = $main | resources.Concat "js/main.js" }} 27 | 28 | 29 | {{ if gt (len $custom) 0 }} 30 | {{ $custom = $custom | resources.Concat "js/custom.js" }} 31 | 32 | {{ end }} 33 | {{ end }} 34 | -------------------------------------------------------------------------------- /layouts/partials/scriptsBodyStart.html: -------------------------------------------------------------------------------- 1 | {{ if hugo.IsProduction }} 2 | {{ $theme_script := resources.Get "js/theme.js" | minify | fingerprint }} 3 | 4 | {{ else }} 5 | {{ $theme_script := resources.Get "js/theme.js" }} 6 | 7 | {{ end}} 8 | -------------------------------------------------------------------------------- /layouts/partials/socialIcons.html: -------------------------------------------------------------------------------- 1 | {{- range . }} 2 | 4 | {{ partial "svgs/svgs.html" . }} 5 | 6 | {{- end }} 7 | -------------------------------------------------------------------------------- /layouts/partials/svgs/arrowUp.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /layouts/partials/svgs/home.svg: -------------------------------------------------------------------------------- 1 | 4 | {{ T "home.home" }} 5 | 6 | 7 | -------------------------------------------------------------------------------- /layouts/partials/svgs/menu.svg: -------------------------------------------------------------------------------- 1 | Menu -------------------------------------------------------------------------------- /layouts/partials/svgs/sun.svg: -------------------------------------------------------------------------------- 1 | 2 | {{ .title }} -------------------------------------------------------------------------------- /layouts/partials/toc.html: -------------------------------------------------------------------------------- 1 | {{- $toc := .Site.Params.toc -}} 2 | 3 | {{- if isset .Params "toc" -}} 4 | {{ $toc = .Params.toc }} 5 | {{- end -}} 6 | 7 | {{- if $toc -}} 8 | {{ $tocOpen := "" }} 9 | {{ if or .Site.Params.tocOpen .Params.tocOpen }} 10 | {{ if not (eq .Params.tocOpen false) }} 11 | {{ $tocOpen = "open" }} 12 | {{ end }} 13 | {{ end }} 14 |
15 | {{ T "single.table_of_contents" }} 16 | {{ .TableOfContents }} 17 |
18 | {{- end -}} -------------------------------------------------------------------------------- /layouts/partials/webmanifest.html: -------------------------------------------------------------------------------- 1 | {{ define "partials/hugo-blog-awesome/manifest-background-color" }} 2 | {{ $bg := ""}} 3 | {{ if .Site.Params.webmanifest.background_color }} 4 | {{ $bg = .Site.Params.webmanifest.background_color }} 5 | {{ else if eq .Site.Params.defaultColor "dark" }} 6 | {{ $bg = "#131418" }} 7 | {{ else }} 8 | {{ $bg = "#ffffff"}} 9 | {{ end}} 10 | {{ return $bg }} 11 | {{ end }} 12 | 13 | {{ $background_color := partial "hugo-blog-awesome/manifest-background-color" . }} 14 | 15 | {{ 16 | $ctx := merge (.Site.Params.webmanifest | default dict) 17 | (dict 18 | "name" (.Site.Params.webmanifest.name | default .Site.Params.sitename | default .Site.Title) 19 | "short_name" (.Site.Params.webmanifest.short_name | default .Site.Params.sitename | default .Site.Title) 20 | "start_url" (.Site.Params.webmanifest.start_url | default .Site.Home.Permalink) 21 | "theme_color" (.Site.Params.webmanifest.theme_color | default "#434648") 22 | "background_color" $background_color 23 | "display" (.Site.Params.webmanifest.display | default "standalone") 24 | ) 25 | }} 26 | 27 | -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- 1 | # Settings in the [build] context are global and are applied to 2 | # all contexts unless otherwise overridden by more specific contexts. 3 | 4 | [build] 5 | base = "/" 6 | publish = "exampleSite/public" 7 | command = "cd exampleSite && hugo --gc --themesDir ../.." 8 | 9 | [build.environment] 10 | HUGO_VERSION = "0.123.8" 11 | GO_VERSION = "1.22.1" 12 | NODE_VERSION = "20" 13 | HUGO_THEME = "repo" 14 | 15 | # Deploy Preview context: all deploys generated from 16 | # a pull/merge request will inherit these settings. 17 | [context.deploy-preview] 18 | command = "cd exampleSite && hugo --gc --themesDir ../.. -b $DEPLOY_PRIME_URL" 19 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "config:recommended" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /static/fonts/Roboto/roboto-v30-latin-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/static/fonts/Roboto/roboto-v30-latin-regular.eot -------------------------------------------------------------------------------- /static/fonts/Roboto/roboto-v30-latin-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/static/fonts/Roboto/roboto-v30-latin-regular.ttf -------------------------------------------------------------------------------- /static/fonts/Roboto/roboto-v30-latin-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/static/fonts/Roboto/roboto-v30-latin-regular.woff -------------------------------------------------------------------------------- /static/fonts/Roboto/roboto-v30-latin-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hugo-sid/hugo-blog-awesome/841dff0d9c7566ea9176d4a16f03fb18f0db2219/static/fonts/Roboto/roboto-v30-latin-regular.woff2 -------------------------------------------------------------------------------- /theme.toml: -------------------------------------------------------------------------------- 1 | name = "Hugo blog awesome" 2 | license = "MIT" 3 | licenselink = "https://github.com/hugo-sid/hugo-blog-awesome/blob/main/LICENSE" 4 | description = "Minimal Hugo blog theme with light and dark mode support" 5 | 6 | # The home page of the theme, where the source can be found. 7 | homepage = "https://github.com/hugo-sid/hugo-blog-awesome/" 8 | 9 | # If you have a running demo of the theme. 10 | demosite = "https://hugo-blog-awesome.netlify.app/" 11 | 12 | tags = ["blog", "responsive", "minimal", "dark", "light", "multilingual"] 13 | features = ["blog", "sass", "dark"] 14 | 15 | min_version = "0.87.0" 16 | 17 | # If the theme has a single author 18 | [author] 19 | name = "Sidharth R" 20 | homepage = "https://sidh.dev" 21 | --------------------------------------------------------------------------------