Track theme updates, get generated files out of repo.

This commit is contained in:
Anna Rose 2023-09-13 14:58:09 +00:00
parent 8d564228dc
commit 37e96c4293
108 changed files with 4 additions and 10702 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "themes/mainroad"]
path = themes/mainroad
url = https://github.com/vimux/mainroad.git

1
themes/mainroad Submodule

@ -0,0 +1 @@
Subproject commit af0dc2e1207f7676bc2abf878f3671ff32b02c32

View File

@ -1,4 +0,0 @@
> 0.25%
not dead
IE >= 11
iOS >= 7

View File

@ -1,19 +0,0 @@
# editorconfig.org
root = true
[*]
charset = utf-8
indent_style = tab
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
[*.{json,yaml,yml,toml,md,babelrc,eslintrc,postcssrc,stylelintrc}]
indent_style = space
indent_size = 2
[layouts/**.{html,svg}]
insert_final_newline = false

View File

@ -1,9 +0,0 @@
{
"extends": "airbnb-base/legacy",
"rules": {
"indent": [2, "tab"],
"no-tabs": 0,
"no-unused-vars": 0,
"no-shadow-restricted-names": 0
}
}

View File

@ -1,66 +0,0 @@
name: Test
on:
push:
branches:
- master
paths-ignore:
- "README.md"
pull_request:
paths-ignore:
- "README.md"
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node:
- '14.x'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install npm dependencies
run: npm ci
- name: Lint
run: npm run lint
test-hugo:
runs-on: ubuntu-latest
strategy:
matrix:
hugo:
- '0.48' # min version
- '0.58.2' # https://github.com/gohugoio/hugoThemes/issues/682
- '0.59.1' # last major version without goldmark renderer
- '0.60.1' # first major version with goldmark renderer
- '0.76.5' # https://github.com/gohugoio/hugo/issues/7822
# - '0.80.0' # https://github.com/gohugoio/hugo/issues/8340
- '0.86.1' # https://github.com/gohugoio/hugo/issues/9150
- '0.93.3' # https://github.com/gohugoio/hugo/commit/837fdfdf45014e3d5ef3b00b01548b68a4489c5f
- 'latest'
fail-fast: true
steps:
- uses: actions/checkout@v3
# https://github.com/peaceiris/actions-hugo (community action)
- name: Run Hugo ${{ matrix.hugo }}
uses: peaceiris/actions-hugo@v2
with:
hugo-version: ${{ matrix.hugo }}
# extended: true
- name: Build with Hugo ${{ matrix.hugo }}
working-directory: exampleSite
run: |
function ver { printf "%03d%03d%03d" $(echo "$1" | tr '.' ' '); }
HUGO_VERSION=$(hugo version | grep -Eo '[0-9]+\.[0-9]+((\.[0-9]+)?)')
# The option changed in 0.93.0: https://github.com/gohugoio/hugo/releases/tag/v0.93.0
I18N_OPT=$([ $(ver $HUGO_VERSION) -lt $(ver 0.93.0) ] && echo "--i18n-warnings" || echo "--printI18nWarnings")
HUGO_THEME="Mainroad" hugo --themesDir ../.. $I18N_OPT -v

View File

@ -1,19 +0,0 @@
# NPM
node_modules/
npm-debug.log
# IDE
.idea
*.sublime-project
*.sublime-workspace
.vscode/*
# OS
._*
Thumbs.db
.DS_Store
.Trashes
.Spotlight-V100
.AppleDouble
.LSOverride
Desktop.ini

View File

@ -1,7 +0,0 @@
{
"plugins": {
"autoprefixer": {
cascade: false
}
}
}

View File

@ -1,319 +0,0 @@
{
"plugins": [
"stylelint-order"
],
"rules": {
"at-rule-empty-line-before": [
"always",
{
"except": [
"blockless-after-same-name-blockless",
"first-nested"
],
"ignore": [
"after-comment"
]
}
],
"at-rule-name-case": "lower",
"at-rule-name-space-after": "always-single-line",
"at-rule-semicolon-newline-after": "always",
"block-closing-brace-newline-after": "always",
"block-closing-brace-empty-line-before": "never",
"block-no-empty": true,
"block-opening-brace-newline-after": "always-multi-line",
"color-hex-case": "lower",
"color-hex-length": "short",
"color-no-invalid-hex": true,
"comment-no-empty": true,
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-block-no-duplicate-properties": [
true,
{
"ignore": [
"consecutive-duplicates-with-different-values"
]
}
],
"declaration-block-no-shorthand-property-overrides": true,
"declaration-block-semicolon-newline-after": "always-multi-line",
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-semicolon-space-before": "never",
"declaration-block-single-line-max-declarations": 1,
"declaration-block-trailing-semicolon": "always",
"declaration-colon-newline-after": "always-multi-line",
"declaration-colon-space-after": "always-single-line",
"declaration-colon-space-before": "never",
"font-family-no-duplicate-names": true,
"function-calc-no-unspaced-operator": true,
"function-comma-newline-after": "always-multi-line",
"function-comma-space-after": "always-single-line",
"function-comma-space-before": "never",
"function-linear-gradient-no-nonstandard-direction": true,
"function-max-empty-lines": 0,
"function-name-case": "lower",
"function-parentheses-newline-inside": "always-multi-line",
"function-parentheses-space-inside": "never-single-line",
"function-whitespace-after": "always",
"indentation": "tab",
"keyframe-declaration-no-important": true,
"length-zero-no-unit": true,
"max-empty-lines": 1,
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-name-case": "lower",
"media-feature-name-no-unknown": true,
"media-feature-parentheses-space-inside": "never",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-list-comma-newline-after": "always-multi-line",
"media-query-list-comma-space-after": "always-single-line",
"media-query-list-comma-space-before": "never",
"no-empty-source": true,
"no-eol-whitespace": true,
"no-extra-semicolons": true,
"no-invalid-double-slash-comments": true,
"no-missing-end-of-source-newline": true,
"number-no-trailing-zeros": true,
"property-case": "lower",
"property-no-unknown": true,
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-descendant-combinator-no-non-space": true,
"selector-list-comma-newline-after": "always",
"selector-list-comma-space-before": "never",
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-case": "lower",
"selector-pseudo-element-colon-notation": "double",
"selector-pseudo-element-no-unknown": true,
"selector-type-case": "lower",
"selector-type-no-unknown": true,
"shorthand-property-no-redundant-values": true,
"string-no-newline": true,
"unit-case": "lower",
"unit-no-unknown": true,
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
"value-list-max-empty-lines": 0,
"order/properties-order": [
"position",
"top",
"right",
"bottom",
"left",
"z-index",
"box-sizing",
"display",
"flex",
"flex-align",
"flex-basis",
"flex-direction",
"flex-wrap",
"flex-flow",
"flex-shrink",
"flex-grow",
"flex-wrap",
"align-content",
"align-items",
"align-self",
"justify-content",
"order",
"float",
"width",
"min-width",
"max-width",
"height",
"min-height",
"max-height",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"overflow",
"overflow-x",
"overflow-y",
"-webkit-overflow-scrolling",
"-ms-overflow-x",
"-ms-overflow-y",
"-ms-overflow-style",
"columns",
"column-count",
"column-fill",
"column-gap",
"column-rule",
"column-rule-width",
"column-rule-style",
"column-rule-color",
"column-span",
"column-width",
"orphans",
"widows",
"clip",
"clear",
"font",
"font-family",
"font-size",
"font-style",
"font-weight",
"font-variant",
"font-size-adjust",
"font-stretch",
"font-effect",
"font-emphasize",
"font-emphasize-position",
"font-emphasize-style",
"font-smooth",
"src",
"hyphens",
"line-height",
"color",
"text-align",
"text-align-last",
"text-emphasis",
"text-emphasis-color",
"text-emphasis-style",
"text-emphasis-position",
"text-decoration",
"text-indent",
"text-justify",
"text-outline",
"-ms-text-overflow",
"text-overflow",
"text-overflow-ellipsis",
"text-overflow-mode",
"text-shadow",
"text-transform",
"text-wrap",
"-webkit-text-size-adjust",
"-ms-text-size-adjust",
"letter-spacing",
"-ms-word-break",
"word-break",
"word-spacing",
"-ms-word-wrap",
"word-wrap",
"overflow-wrap",
"tab-size",
"white-space",
"vertical-align",
"direction",
"unicode-bidi",
"list-style",
"list-style-position",
"list-style-type",
"list-style-image",
"pointer-events",
"-ms-touch-action",
"touch-action",
"cursor",
"visibility",
"zoom",
"table-layout",
"empty-cells",
"caption-side",
"border-spacing",
"border-collapse",
"content",
"quotes",
"counter-reset",
"counter-increment",
"resize",
"user-select",
"nav-index",
"nav-up",
"nav-right",
"nav-down",
"nav-left",
"background",
"background-color",
"background-image",
"filter",
"background-repeat",
"background-attachment",
"background-position",
"background-position-x",
"background-position-y",
"background-clip",
"background-origin",
"background-size",
"border",
"border-color",
"border-style",
"border-width",
"border-top",
"border-top-color",
"border-top-style",
"border-top-width",
"border-right",
"border-right-color",
"border-right-style",
"border-right-width",
"border-bottom",
"border-bottom-color",
"border-bottom-style",
"border-bottom-width",
"border-left",
"border-left-color",
"border-left-style",
"border-left-width",
"border-radius",
"border-top-left-radius",
"border-top-right-radius",
"border-bottom-right-radius",
"border-bottom-left-radius",
"border-image",
"border-image-source",
"border-image-slice",
"border-image-width",
"border-image-outset",
"border-image-repeat",
"outline",
"outline-width",
"outline-style",
"outline-color",
"outline-offset",
"box-shadow",
"opacity",
"-ms-interpolation-mode",
"page-break-after",
"page-break-before",
"page-break-inside",
"transition",
"transition-delay",
"transition-timing-function",
"transition-duration",
"transition-property",
"transform",
"transform-origin",
"perspective",
"appearance",
"animation",
"animation-name",
"animation-duration",
"animation-play-state",
"animation-timing-function",
"animation-delay",
"animation-iteration-count",
"animation-direction",
"animation-fill-mode",
"quotes",
"will-change",
"fill",
"fill-rule",
"stroke"
]
}
}

View File

@ -1,125 +0,0 @@
# Contributing to Mainroad
**Mainroad** welcomes contributions and corrections. Before contributing, please make sure you have read the guidelines
below. If you're a newcomer to open source and you haven't contributed to other projects or used
[Git](https://git-scm.com/) before, you should make yourself familiar before proceeding.
## Issues
The [issue tracker](https://github.com/vimux/mainroad/issues) is the preferred channel for bug reports and features
requests, but please respect the following restrictions:
### General requirements
* Issue must be written in English.
* Please **do not** combine a few problems or feature requests in one issue. Create separate issues if needed.
* Please **do not** create an issue that contains only title. Write a clear title and useful description.
* Please **do not** use the issue tracker for personal support requests.
* Please **do not** post comments consisting solely of "+1" or emoji. The project maintainer reserve the right to delete
such comments. Use
[GitHub's reactions feature](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments) instead.
* Search first before filing a new issue. Please check existing open or recently closed issues to make sure somebody
else hasn't already reported the issue.
### Reporting bugs
When creating a new bug issue make sure to include the following information:
* Your environment e.g. OS version, Hugo version, theme is up to date? Anything unusual about your environment or
deployment.
* Specify the exact steps to reproduce the bug in as many details as possible with code examples. Include links to files
or demo projects, or copy/pasteable snippets, which you use in those examples.
* Any message or error you get from Hugo, if you do.
* A screenshot of any visual bug.
Please, take in consideration the next template to report your bug:
> **Hugo version**\
> _Run `hugo version` and paste output here._
>
> **Theme is up to date?**\
> _No | Yes_
>
> **Expected behavior**\
> _A short and expressive description of what behavior you're expecting._
>
> **Current behavior**\
> _A short sentence explaining what's actually happening, possibly containing screenshots._
>
> **Steps to reproduce / Code to reproduce**\
> _A step by step description of how to trigger this bug. / Provide link to a demo project which reproduces this bug._
>
> **Additional info**\
> _Anything unusual about your environment or deployment process? Anything else do we need to know? Optional._
**Note:** If you find a **Closed** issue that seems like it is the same bug that you're experiencing, open a new issue
and include a link to the original issue in the body of your new one.
### Proposing features
* Explain the proposed feature, what it should do, why it is useful, and alternatives considered if possible. Please
note that the project maintainer may close this issue or ask you to create a Pull Request if this is not something that
the project maintainer sees as a sufficiently high priority.
Following these guidelines helps maintainer and the community understand your suggestion and find related suggestions.
## Pull Requests (PR)
**Please ask first** before embarking on any significant pull request (e.g. implementing features or refactoring code),
otherwise, you risk spending a lot of time working on something that the project maintainer might not want to merge into
the project.
Please respect our Pull Request Acceptance Criteria. For larger changes, you will likely receive multiple rounds of
comments and it may take some time to complete.
### Pull Request Acceptance Criteria
* Keep the change in a single PR as small as possible
* 1 PR = 1 FIX or FEATURE (do not combine things, send separate PR if needed)
* PR with irrelevant changes won't be merged. If you do want to fix formatting or style, do that in a separate PR
* Use a clear and descriptive branch name (e.g. **NOT** "patch-1" or "update")
* Don't create a Pull Request from master branch
* Provide a reasonable PR title and description
* PR must be written in English
* If the PR changes the UI it should include before-and-after screenshots or a link to a video
* Keep PR up to date with upstream/master
* Pay attention to any automated CI failures reported in the Pull Request
* PR solves a common use case that several users will need in their real-life projects, not only your specific problems
* If you've added or modify SVG, ensure that each SVG file:
* Be less than 2048 bytes
* Be minified to a single line with no formatting
* Not contain any JS or CSS section inside it
* Not contain any additional transformations (matrix, translate, scale) or negative viewBox position values
* Сompatible with [GPLv2 License](LICENSE.md)
* Maintain clean commit history and use meaningful commit messages. Pull Requests with messy commit history (with
commit messages like "update", "another update", etc) are difficult to review and won't be merged, even if the changes
are good enough
* Be prepared to answer questions and make code changes. The project maintainer expect you to be reasonably responsive
to those feedback, otherwise the PR will be closed after 2-4 weeks of inactivity
### Pull Request Contribution Prerequisites
* You have Node & npm installed
* You have Hugo installed at v0.48.0+
* You are familiar with Git
### Pull Request Process
1. Fork the repository
1. Clone down the repository to your local system
1. Run `npm i` in the repository root
1. Create a new *dedicated branch* with descriptive name from `master`
1. Make your change and commit to the new branch from the previous step
1. Write a clear commit message
1. If you've added code that need documentation, update the README.md
1. Make sure your code lints (`npm test`)
1. Push to your fork
1. Submit a Pull Request (PR) to the upstream
---
**⚠️ IMPORTANT: No guarantees can be made that your pull request will be accepted.**
## License
By contributing to Mainroad, you agree that your contributions will be licensed under [GPLv2 License](LICENSE.md).

View File

@ -1,361 +0,0 @@
### GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
### Preamble
The licenses for most software are designed to take away your freedom
to share and change it. By contrast, the GNU General Public License is
intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on,
we want its recipients to know that what they have is not the
original, so that any problems introduced by others will not reflect
on the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at
all.
The precise terms and conditions for copying, distribution and
modification follow.
### TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
**0.** This License applies to any program or other work which
contains a notice placed by the copyright holder saying it may be
distributed under the terms of this General Public License. The
"Program", below, refers to any such program or work, and a "work
based on the Program" means either the Program or any derivative work
under copyright law: that is to say, a work containing the Program or
a portion of it, either verbatim or with modifications and/or
translated into another language. (Hereinafter, translation is
included without limitation in the term "modification".) Each licensee
is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the Program
(independent of having been made by running the Program). Whether that
is true depends on what the Program does.
**1.** You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a
fee.
**2.** You may modify your copy or copies of the Program or any
portion of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
**a)** You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
**b)** You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any part
thereof, to be licensed as a whole at no charge to all third parties
under the terms of this License.
**c)** If the modified program normally reads commands interactively
when run, you must cause it, when started running for such interactive
use in the most ordinary way, to print or display an announcement
including an appropriate copyright notice and a notice that there is
no warranty (or else, saying that you provide a warranty) and that
users may redistribute the program under these conditions, and telling
the user how to view a copy of this License. (Exception: if the
Program itself is interactive but does not normally print such an
announcement, your work based on the Program is not required to print
an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
**3.** You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
**a)** Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections 1
and 2 above on a medium customarily used for software interchange; or,
**b)** Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your cost of
physically performing source distribution, a complete machine-readable
copy of the corresponding source code, to be distributed under the
terms of Sections 1 and 2 above on a medium customarily used for
software interchange; or,
**c)** Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is allowed
only for noncommercial distribution and only if you received the
program in object code or executable form with such an offer, in
accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
**4.** You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt otherwise
to copy, modify, sublicense or distribute the Program is void, and
will automatically terminate your rights under this License. However,
parties who have received copies, or rights, from you under this
License will not have their licenses terminated so long as such
parties remain in full compliance.
**5.** You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
**6.** Each time you redistribute the Program (or any work based on
the Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
**7.** If, as a consequence of a court judgment or allegation of
patent infringement or for any other reason (not limited to patent
issues), conditions are imposed on you (whether by court order,
agreement or otherwise) that contradict the conditions of this
License, they do not excuse you from the conditions of this License.
If you cannot distribute so as to satisfy simultaneously your
obligations under this License and any other pertinent obligations,
then as a consequence you may not distribute the Program at all. For
example, if a patent license would not permit royalty-free
redistribution of the Program by all those who receive copies directly
or indirectly through you, then the only way you could satisfy both it
and this License would be to refrain entirely from distribution of the
Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
**8.** If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
**9.** The Free Software Foundation may publish revised and/or new
versions of the General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Program does not specify a
version number of this License, you may choose any version ever
published by the Free Software Foundation.
**10.** If you wish to incorporate parts of the Program into other
free programs whose distribution conditions are different, write to
the author to ask for permission. For software which is copyrighted by
the Free Software Foundation, write to the Free Software Foundation;
we sometimes make exceptions for this. Our decision will be guided by
the two goals of preserving the free status of all derivatives of our
free software and of promoting the sharing and reuse of software
generally.
**NO WARRANTY**
**11.** BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
**12.** IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
### END OF TERMS AND CONDITIONS
### How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
one line to give the program's name and an idea of what it does.
Copyright (C) yyyy name of author
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Also add information on how to contact you by electronic and paper
mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
type `show w'. This is free software, and you are welcome
to redistribute it under certain conditions; type `show c'
for details.
The hypothetical commands \`show w' and \`show c' should show the
appropriate parts of the General Public License. Of course, the
commands you use may be called something other than \`show w' and
\`show c'; they could even be mouse-clicks or menu items--whatever
suits your program.
You should also get your employer (if you work as a programmer) or
your school, if any, to sign a "copyright disclaimer" for the program,
if necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright
interest in the program `Gnomovision'
(which makes passes at compilers) written
by James Hacker.
signature of Ty Coon, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library,
you may consider it more useful to permit linking proprietary
applications with the library. If this is what you want to do, use the
[GNU Lesser General Public
License](http://www.gnu.org/licenses/lgpl.html) instead of this
License.

View File

@ -1,201 +0,0 @@
# Mainroad
**Mainroad** is a responsive, simple, clean and content-focused [Hugo](https://gohugo.io/) theme based on the
[MH Magazine lite](https://wordpress.org/themes/mh-magazine-lite/) theme.
**[Demo](https://mainroad-demo.netlify.app/)** • **[Docs](https://mainroad-demo.netlify.app/docs/)**
![screenshot](https://raw.githubusercontent.com/Vimux/Mainroad/master/images/screenshot.png)
**Features:**
+ Responsive design
+ Main & secondary menus
+ Widgetized sidebar
+ Translations. Over 15 languages and counting
+ Configurable theme settings (sidebar position, author box, post navigation, highlight color) via `config.toml`
+ Hugo internal templates (Open Graph, Schema, Twitter Cards, Disqus, Google Analytics)
+ Wide cross-browser compatibility
+ *Desktop: IE11+, Chrome, Firefox, Safari*
+ *Mobile: Android browser (on Android 4.4+), Safari (on iOS 7+), Google Chrome, Opera mini*
+ Custom Google Fonts support, MathJax, Table of Contents, SVG icons and much more…
## Installation
*Before starting, please be sure that you have
[installed Hugo](https://gohugo.io/getting-started/quick-start/#step-1-install-hugo) and
[created a new site](https://gohugo.io/getting-started/quick-start/#step-2-create-a-new-site). After that, you are ready
to install **Mainroad**.*
From your project's root directory, run:
```
git clone https://github.com/vimux/mainroad.git themes/mainroad
```
Or, if you don't plan to make any significant changes but want to track and update the theme, you can add it as a git
submodule via the following command:
```
git submodule add https://github.com/vimux/mainroad.git themes/mainroad
```
Next, open `config.toml` in the base of the Hugo site and ensure the theme option is set to `mainroad`:
```
theme = "mainroad"
```
## Configuration
### Config.toml example
```toml
baseurl = "/"
title = "Mainroad"
languageCode = "en-us"
paginate = "10" # Number of posts per page
theme = "mainroad"
disqusShortname = "" # Enable Disqus comments by entering your Disqus shortname
googleAnalytics = "" # Enable Google Analytics by entering your tracking id
[Author] # Used in authorbox
name = "John Doe"
bio = "John Doe's true identity is unknown. Maybe he is a successful blogger or writer. Nobody knows it."
avatar = "img/avatar.png"
[Params]
description = "John Doe's Personal blog about everything" # Site description. Used in meta description
copyright = "John Doe" # Footer copyright holder, otherwise will use site title
opengraph = true # Enable OpenGraph if true
schema = true # Enable Schema
twitter_cards = true # Enable Twitter Cards if true
readmore = false # Show "Read more" button in list if true
authorbox = true # Show authorbox at bottom of pages if true
toc = true # Enable Table of Contents
pager = true # Show pager navigation (prev/next links) at the bottom of pages if true
post_meta = ["author", "date", "categories", "translations"] # Order of post meta information
mainSections = ["post", "blog", "news"] # Specify section pages to show on home page and the "Recent articles" widget
dateformat = "2006-01-02" # Change the format of dates
mathjax = true # Enable MathJax
mathjaxPath = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js" # Specify MathJax path
mathjaxConfig = "TeX-AMS-MML_HTMLorMML" # Specify MathJax config
googleFontsLink = "https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" # Load Google Fonts
customCSS = ["css/custom.css"] # Include custom CSS files
customJS = ["js/custom.js"] # Include custom JS files
# DEPRECATED PARAMS
subtitle = "" # Deprecated in favor of .Site.Params.logo.subtitle
highlightColor = "" # Deprecated in favor of .Site.Params.style.vars.highlightColor
[Params.style.vars]
highlightColor = "#e22d30" # Override highlight color
# Override font-family sets
# Take care of different quotes OR escaping symbols in these params if necessary
fontFamilyPrimary = "'Open Sans', Helvetica, Arial, sans-serif"
# Secondary font-family set responsible for pre, code, kbd, and samp tags font
fontFamilySecondary = "SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace"
[Params.logo]
image = "img/placeholder.png" # Logo image. Path relative to "static"
title = "Mainroad" # Logo title, otherwise will use site title
subtitle = "Just another site" # Logo subtitle
[Params.thumbnail]
visibility = ["list", "post"] # Control thumbnail visibility
[Params.sidebar]
home = "right" # Configure layout for home page
list = "left" # Configure layout for list pages
single = false # Configure layout for single pages
# Enable widgets in given order
widgets = ["search", "recent", "categories", "taglist", "social", "languages"]
[Params.widgets]
recent_num = 5 # Set the number of articles in the "Recent articles" widget
categories_counter = false # Enable counter for each category in "Categories" widget
tags_counter = false # Enable counter for each tag in "Tags" widget
[Params.widgets.social]
cached = false # activate cache if true
# Enable parts of social widget
facebook = "username"
twitter = "username"
instagram = "username"
linkedin = "username"
telegram = "username"
github = "username"
gitlab = "username"
bitbucket = "username"
email = "example@example.com"
# Custom social links
[[Params.widgets.social.custom]]
title = "Youtube"
url = "https://youtube.com/user/username"
icon = "youtube.svg" # Optional. Path relative to "layouts/partials"
rel = "noopener noreferrer" # Set to false to remove the rel attribute
[[Params.widgets.social.custom]]
title = "My Home Page"
url = "https://example.com"
[Params.widgets.search]
cached = false # activate cache if true
url = "https://google.com/search"
[Params.widgets.search.input]
name = "sitesearch"
pre = ""
```
**Do not copy example config as-is**. Use only those parameters that you need.
For more information about all available standard configuration settings, please read
[All Hugo Configuration Settings](https://gohugo.io/getting-started/configuration/#all-configuration-settings).
### Front Matter example
```yaml
---
# Common-Defined params
title: "Example article title"
date: "2017-08-21"
description: "Example article description"
categories:
- "Category 1"
- "Category 2"
tags:
- "Test"
- "Another test"
menu: main # Optional, add page to a menu. Options: main, side, footer
# Theme-Defined params
thumbnail: "img/placeholder.png" # Thumbnail image
lead: "Example lead - highlighted near the title" # Lead text
comments: false # Enable Disqus comments for specific page
authorbox: true # Enable authorbox for specific page
pager: true # Enable pager navigation (prev/next) for specific page
toc: true # Enable Table of Contents for specific page
mathjax: true # Enable MathJax for specific page
sidebar: "right" # Enable sidebar (on the right side) per page
widgets: # Enable sidebar widgets in given order per page
- "search"
- "recent"
- "taglist"
---
```
For more information about all available standard front matter variables, please read
[Hugo Front Matter](https://gohugo.io/content-management/front-matter).
## Contributing
Have you found a bug or got an idea for a new feature? Feel free to use the
[issue tracker](https://github.com/Vimux/mainroad/issues) to let me know. Or make directly a
[pull request](https://github.com/Vimux/mainroad/pulls), but please respect the following
[contributing guide](https://github.com/Vimux/mainroad/blob/master/CONTRIBUTING.md).
## License
This theme is released under the [GPLv2 license](https://github.com/Vimux/mainroad/blob/master/LICENSE.md).

View File

@ -1,10 +0,0 @@
---
title: "{{ replace .TranslationBaseName '-' ' ' | title }}"
description: ""
date: "{{ .Date }}"
thumbnail: ""
categories:
- ""
tags:
- ""
---

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +0,0 @@
public/
themes

View File

@ -1,36 +0,0 @@
baseurl = "/"
title = "Mainroad"
languageCode = "en-us"
paginate = "10" # Number of posts per page
theme = "mainroad"
disqusShortname = "" # Enable comments by entering your Disqus shortname
googleAnalytics = "" # Enable Google Analytics by entering your tracking id
[Author]
name = "John Doe"
bio = "John Doe's true identity is unknown. Maybe he is a successful blogger or writer. Nobody knows it."
avatar = "img/avatar.png"
[Params]
description = "John Doe's Personal blog about everything" # Description of your site
opengraph = true
twitter_cards = false
readmore = false # Show "Read more" button in list if true
authorbox = true
pager = true
post_meta = ["date", "categories"] # Order of post meta information
mainSections = ["post", "docs"]
[Params.logo]
subtitle = "Just another site" # Logo subtitle
[Params.sidebar]
home = "right" # Configure layout for home page
list = "right" # Configure layout for list pages
single = "right" # Configure layout for single pages
# Enable widgets in given order
widgets = ["search", "recent", "categories", "taglist"]
[Params.widgets]
recent_num = 5 # Set the number of articles in the "Recent articles" widget
tags_counter = false # Enable counter for each tag in "Tags" widget (disabled by default)

View File

@ -1,41 +0,0 @@
---
title: About
date: 2022-01-25T14:00:00.000Z
authorbox: false
sidebar: false
menu: main
---
Our website builds with [Hugo](https://gohugo.io/) static site generator and
[Mainroad](https://github.com/vimux/mainroad) theme. This demo allows you to see what Mainroad based website looks like
before deciding to go with it. Just keep in mind that the current demo shows the basics, a small part of what the
combination of Hugo and Mainroad can do.
## About Mainroad
Mainroad is a responsive, simple, clean and content-focused Hugo theme based on the MH Magazine lite WordPress theme.
Main features:
* Responsive design
* Main & secondary menus
* Widgetized sidebar
* Translations. Over 15 languages and counting
* Configurable theme settings (sidebar position, author box, post navigation, highlight color) via config.toml
* Hugo internal templates (Open Graph, Schema, Twitter Cards, Disqus, Google Analytics)
* Wide cross-browser compatibility
* Desktop: IE11+, Chrome, Firefox, Safari
* Mobile: Android browser (on Android 4.4+), Safari (on iOS 7+), Google Chrome, Opera mini
* Custom Google Fonts support, MathJax, Table of Contents, SVG icons and much more…
Learn more on [GitHub](https://github.com/vimux/mainroad). Mainroad theme is released under the
[GPLv2 license](https://github.com/vimux/mainroad/blob/master/LICENSE.md).
## About Hugo
Hugo is a static HTML and CSS website generator written in Go. It is optimized for speed, ease of use, and
configurability. Hugo takes a directory with content and templates and renders them into a full HTML website. With its
amazing speed and flexibility, Hugo makes building websites fun again.
Learn more on [GitHub](https://github.com/gohugoio/hugo). Complete documentation is available at
[Hugo Documentation](https://gohugo.io/getting-started/).

View File

@ -1,4 +0,0 @@
---
title: Documentation
description: Mainroad theme documentation, including getting started, customization guides, and FAQ.
---

View File

@ -1,405 +0,0 @@
---
title: Customization
description: Describes common Mainroad theme configuration parameters that can be adjusted via config file or via Front
Matter section.
lead: Describes common Mainroad theme configuration parameters that can be adjusted via config file or via Front Matter
section.
date: 2022-01-24T14:00:00.000Z
thumbnail:
src: "img/placeholder.png"
visibility:
- list
authorbox: false
sidebar: false
pager: false
weight: 2
menu: main
---
Customization page describes common Mainroad configuration parameters which can be specified via configuration file or
via Front Matter section. That includes logo section tuning, adding a sidebar with widgets, adjusting highlight color,
and more.
<!--more-->
This section will mainly cover customization settings that are unique to this theme. If something is not covered here,
there's a good chance it is covered somewhere in [Hugo docs](https://gohugo.io/documentation/).
### Logo
**Mainroad** allows you to set a custom logo in the site header. You may use text, or image, or both. Use the following
options in your site config:
```toml
[Params.logo]
image = "img/placeholder.png"
title = "Mainroad"
subtitle = "Just another site"
```
**Note:** logo image will display at a maximum width of 128 pixels and a maximum height of 128 pixels
when you use text and image simultaneously. When the only logo image is active, it will display at a maximum height of
256 pixels. Ideally, your logo image should be SVG.
---
If you don't set any of these variables, the theme uses the site title as a logo title. Don't need a logo section?
Disable it this way:
```toml
[Params.logo]
image = false
title = false
subtitle = false
```
### Highlight color
Mainroad uses `#e22d30` as a default highlight color, but you may choose and set any other color.
```toml
[Params.style.vars]
highlightColor = "#e22d30"
```
### Post meta
Post meta is a feature that refers to including additional meta information (such as author name, categories, date,
translations, etc.) on pages. It can be enabled via config using the `post_meta` key with a list of meta field names as
value. Order matters here: rearrange fields if you want to.
```toml
[Params]
post_meta = ["author", "date", "categories", "translations"]
```
Full list of available default post meta fields:
* `author`, `categories`, `date`, `translations`
In addition to the default meta fields, you can add your own by placing a custom partial under
`layouts/partials/post_meta/<name>.html`.
#### Post meta: `date` localization
With [Hugo v0.87.0](https://gohugo.io/news/0.87.0-relnotes/) (or later), `date` meta field shows localized dates (with
weekdays and months in the current language) by default. In most cases, such a transition is painless, but owners of
multilingual sites should be careful and check that everything translates as expected after the upgrade.
You can also use a predefined layout, like `:date_full`, and it will output localized dates or times. For additional
information about localized dates and possible date/time formatting layouts, please see
[Hugo: time.Format](https://gohugo.io/functions/dateformat/).
### Thumbnail visibility
By default, a thumbnail image has shown for a list and single pages simultaneously. In some cases, you may want to show
a thumbnail for list-like pages only and hide it on single pages (or vice versa). Control global thumbnail visibility
via config, use the key `visibility` with combination of valid values `"list"` and `"post"`.
```toml
[Params.thumbnail]
# Show thumbnail only for list items
visibility = ["list"]
```
Besides global configuration, you can change thumbnail visibility individually with extended thumbnail notation via
front matter block.
```yaml
thumbnail:
src: "img/placeholder.png"
visibility:
- list
- post
```
This page is an example of list-only thumbnail visibility.
### Sidebar
**Mainroad** comes with a configurable sidebar that can be on the left, on the right, or disabled. The default layout
can be specified in the `[Params.sidebar]` section of the configuration. The position can be specified for home, list
and single pages individually. Use the keys `home`, `list` and `single` with values `"left"`, `"right"` or `false`.
```toml
[Params.sidebar]
home = "right"
list = "right"
single = "right"
```
The layout can be configured per page, by setting the `sidebar` parameter with one of the same values (`"left"`,
`"right"` or `false`) in the page's front matter.
```yaml
sidebar: "left" # Enable sidebar (on the left side) per page
```
The sidebar consists of multiple widgets. Widgets can be enabled individually using the `widgets` key with a list of
widget names as value. You can add your own widgets, by placing a template under `layouts/partials/widgets/<name>.html`.
```toml
[Params.sidebar]
# Enable widgets in given order
widgets = ["search", "recent", "categories", "taglist", "social", "languages"]
```
The list of widgets can be overwritten from a page's front matter.
```yaml
# Enable sidebar widgets in given order
widgets:
- "search"
- "recent"
- "taglist"
```
Full list of available default widgets:
* `search`, `ddg-search`, `recent`, `categories`, `taglist`, `social`, `languages`
**Note**: DuckDuckGo widget (`ddg-search`) deprecated in favor of `search` widget.
---
Some of our widgets respect optional configuration. Have a look at the `[Params.widgets]` and `[Params.widgets.social]`
sections in the example below.
```toml
[Params.widgets]
recent_num = 5 # Set the number of articles in the "Recent articles" widget
categories_counter = false # Enable counter for each category in "Categories" widget
tags_counter = false # Enable counter for each tag in "Tags" widget
```
```toml
[Params.widgets.social]
# Enable parts of social widget
facebook = "username"
twitter = "username"
instagram = "username"
linkedin = "username"
telegram = "username"
github = "username"
gitlab = "username"
bitbucket = "username"
email = "example@example.com"
```
### Widget caching
Sidebar strongly affects overall build time, especially if you are using all of our widgets or even more. Widget caching
can significantly improve the generation time. Cached partials remain the same for all affected pages and are not
generated multiple times by Hugo. All built-in widgets (`search`, `recent`, `categories`, `taglist`, `social`,
`languages`) support caching.
Add `cached = true` inside the corresponding widget's dictionary table to activate caching. For example, to cache the
`recent` widget:
```toml
[Params.widgets.recent]
cached = true
```
The following sample configuration extract shows how to cache all standard widgets and generate your website faster:
```toml
[Params.widgets.search]
cached = true
[Params.widgets.recent]
cached = true
[Params.widgets.categories]
cached = true
[Params.widgets.taglist]
cached = true
[Params.widgets.social]
cached = true
[Params.widgets.languages]
cached = true
```
Not all widgets are cacheable. If a widget contains (can contain) different data for different pages (e.g., for TOC
generation), then it should not be cached. Always check that your modified/customized widget is cached correctly.
### Social Widget: custom links
**Mainroad** contains built-in social links in the social widget. In addition to default social links, you may set
custom links by adding `Params.widgets.social.custom` to your `config.toml`. Here is an example:
```toml
[[Params.widgets.social.custom]]
title = "My Home Page"
url = "https://example.com"
```
If you want to display an icon of your social link, you need to put SVG icon file in `layouts/partials` directory under
your site's root. The `icon` key filed, which is optional, should be a path relative to `layouts/partials`.
```toml
[[Params.widgets.social.custom]]
title = "Youtube"
url = "https://youtube.com/user/username"
icon = "youtube.svg"
```
**Note:** *Only* SVG files are supported to be used as custom social icons. If you use any other files, PNG for example,
a compile error will be raised by Hugo. Moreover, not every SVG icon can be used. For better results, it should be
one-color SVG file with a special class attribute `{{ with .class }}{{ . }} {{ end }}` and 24x24 size. At a minimum,
custom SVG icon needs these attributes:
```html
<svg class="{{ with .class }}{{ . }} {{ end }} icon" width="24" height="24">...</svg>
```
You can also specify the `rel` attribute for the link. By default, the attribute value is `"noopener noreferrer"`. You can remove the attribute completely by setting its value to `false`.
```toml
[[Params.widgets.social.custom]]
title = "My Home Page"
url = "https://example.com"
rel = "me"
[[Params.widgets.social.custom]]
title = "Youtube"
url = "https://youtube.com/user/username"
rel = false
```
### Search box widget
The search box widget can refer to the results of Google, Bing, and DuckDuckGo searches. By default, Mainroad uses
Google search if no additional configuration options are specified.
To use a different search engine, first of all, check that the search widget is enabled. Then set the search parameters
(`Site.Params.widgets.search` section) according to the data below.
**Google (default)**:
```toml
[Params.widgets.search]
url = "https://google.com/search"
[Params.widgets.search.input]
name = "sitesearch"
pre = ""
```
**DuckDuckGo**:
```toml
[Params.widgets.search]
url = "https://duckduckgo.com/"
[Params.widgets.search.input]
name = "sites"
pre = ""
```
**Bing**:
```toml
[Params.widgets.search]
url = "https://www.bing.com/search"
[Params.widgets.search.input]
name = "q1"
pre = "site:"
```
**Google PSE**:
```toml
[Params.widgets.search]
url = "/search/"
[Params.widgets.search.input]
name = false
pre = ""
```
Note that Google PSE requires additional steps to work correctly.
See [Creating a Programmable Search Engine](https://developers.google.com/custom-search/docs/tutorial/creatingcse) and
especially our [FAQ]({{< relref "/docs/faq.md" >}} "Mainroad FAQ") for more instructions.
### Menus
**Mainroad** supports multiple menus. The `main` menu is fully responsive and displayed right under the site header. The
secondary menus `side` and `footer` are displayed in a sidebar widget and the page footer respectively. To add a page to
a menu, add a `menu: <menu>` parameter to the page's front matter:
```yaml
menu: main # Add page to a main menu
```
**Note:** Don't forget to enable the `sidemenu` widget in the `widgets` configuration param if you want to use the
`side` menu.
---
You can also add a page to multiple menus by providing a list:
```yaml
# Add page to a main, side, and footer menu
menu:
- main
- side
- footer
```
**Note:** Please keep in mind that Mainroad menus don't support nested items i.e. submenus.
See [Menus](https://gohugo.io/content-management/menus/#readout) from official Hugo documentation for more info.
### Custom Google Fonts support
Mainroad uses Open Sans from Google Fonts as a main font. But you can use any other font from Google Fonts if you'd
like. Beware, in most cases, such changes require manual CSS adjustment because every set of fonts is different and
might not look as good as our default font.
Follow the procedure below.
1. Open Google Fonts, choose font(s) that you prefer and copy href font link. For this particular example, we choose
[Roboto with 3 different styles](https://fonts.google.com/share?selection.family=Roboto:ital,wght@0,400;0,700;1,400;1,700).
Our href font link:
```
https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap
```
1. Set `googleFontsLink` site's config param value to your href font link. For example:
```toml
[Params]
googleFontsLink = "https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap"
```
1. Override default font-family set(s):
```toml
[Params.style.vars]
fontFamilyPrimary = "'Roboto', sans-serif"
```
---
It is possible to disable Google Fonts and use system font stack instead.
1. Disable Google Fonts include. Set `googleFontsLink` site's config param value to `false`:
```toml
[Params]
googleFontsLink = false
```
1. Override font-family sets:
```toml
[Params.style.vars]
# Override font-family sets. Take care of different quotes OR escaping symbols in these params if necessary
fontFamilyPrimary = "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'"
# Secondary font-family set responsible for pre, code, kbd, and samp tags font
fontFamilySecondary = "SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace"
```
[Edit this page on GitHub](https://github.com/vimux/mainroad/blob/master/exampleSite/content/docs/customization.md)

View File

@ -1,132 +0,0 @@
---
title: Frequently asked questions (FAQ)
description: Browse this FAQ page to find answers to frequently asked questions that have not been covered elsewhere in
the documentation.
date: 2022-01-24T14:00:00.000Z
authorbox: false
sidebar: false
pager: false
weight: 3
menu:
main:
name: FAQ
---
Browse this FAQ page to find answers to frequently asked questions that have not been covered elsewhere
in the documentation.
<!--more-->
The answers have been categorized into two groups:
1. Answers to general questions without any lines of code.
2. Answers to technical questions with code snippets, step-by-step instructions, etc.
## General questions
### Do I need to have prior experience before proceeding with the Mainroad theme?
**Yes.** You'll need to be familiar with Hugo before proceeding.
[Our docs section]({{< ref "/docs/_index.md" >}} "Mainroad theme documentation") is intended for intermediate to
advanced users and developers. Our documentation may still be helpful to users with minimal experience, but are not
comprehensive.
### Do I need to use the extended version of Hugo?
**No.** Mainroad theme intentionally does not use any features of the extended version. As such, the extended version of
Hugo is not required (but applicable).
### Is there a list of all possible configuration options?
**Configuration:**
* See [All Configuration Settings](https://gohugo.io/getting-started/configuration/#all-configuration-settings)
for the full list of Hugo-defined variables with their default values.
* See [Mainroad config.toml example](https://github.com/Vimux/Mainroad#configtoml-example) for the full list of
Mainroad-specific variables.
**Front Matter:**
* See [Front Matter Variables](https://gohugo.io/content-management/front-matter#front-matter-variables) for the
list of Hugo-defined Front Matter variables.
* See [Mainroad Front Matter example](https://github.com/Vimux/Mainroad#front-matter-example) for the list of
Mainroad-specific Front Matter variables.
### What if I have more questions? Should I create an issue?
**We don't provide personal technical support.** As stated in our
[contributing guidelines](https://github.com/Vimux/Mainroad/blob/master/CONTRIBUTING.md), please do not use the issue
tracker for personal support. This includes reports like: “How do I do this", “Everything is broken; help me”, “I
changed something, and it doesn't work anymore”, “It's not a personal issue, but I just want to ask how X or Y works”,
“I forked your theme, then something broke; fix this immediately”, and so on.
**The issue tracker should only be used for bug reports, feature requests, and discussions that comply with our
contributing rules**. All other issues will be closed and marked as invalid.
## Technical questions
### I want to get the `favicon.ico` and `apple-touch-icon.png` to match my `hightlightColor`. What should I do?
There is no way to do this on the fly with Hugo, but you can use the one-liners below with some preparations:
1. Copy:
* `./themes/mainroad/static/favicon.ico` to `./static/favicon.ico`
* `./themes/mainroad/static/apple-touch-icon.png` to `./static/apple-touch-icon.png`
1. At the beginning of each script, replace the color in the variable with your preferred color. You must use
six-digit hex triplet notation (e.g., `#E22D30`) to make it work properly.
Go to the root of your project directory in the terminal and execute these two commands accordingly.
```
a=#E22D30;a=\\x${a:5:2}\\x${a:3:2}\\x${a:1:2};for i in 98 274 578;do printf $a|dd of=static/favicon.ico bs=1 seek=$i conv=notrunc;done
```
```
a=#E22D30;a=$(echo 504C54452A2A2A${a:1:6}|sed -e 's/../\\x&/g');printf $a|gzip|tail -c8|od -tx4 -N4 -An|xargs|sed -e 's/../\\x&/g'|printf $a$(cat -)|dd of=static/apple-touch-icon.png bs=1 seek=37 conv=notrunc
```
### I want to use Google Programmable Search Engine as a site search engine. Is it possible?
**Yes, it is possible to use [Google PSE (CSE)](https://developers.google.com/custom-search/docs/overview) as a site
search engine.**
1. Create a new search engine with [Google PSE](https://programmablesearchengine.google.com/about/). Google account
required.
1. Add a new layout.
Create file `./layouts/search/index.html` with the following content:
```
{{ define "main" }}
<script async src="https://cse.google.com/cse.js?cx=YOUR_PSE_ENGINE_ID"></script>
<div class="gcse-search"></div>
{{ end }}
```
Don't forget to paste your Google PSE ID.
1. Add search page by creating file `./content/search.md` with the following content:
```
---
title: Search
authorbox: false
sidebar: false
pager: false
---
```
1. Optional. If you use the search widget, don't forget to change the search box parameters:
```toml
[Params.widgets.search]
url = "/search/"
input.name = false
input.pre = ""
```
Google PSE (CSE) should work when it's done. Look and feel will be far from perfect, but you have to solve this problem
with [Google PSE Control Panel](https://programmablesearchengine.google.com/controlpanel/all) and additional CSS.
[Edit this page on GitHub](https://github.com/vimux/mainroad/blob/master/exampleSite/content/docs/faq.md)

View File

@ -1,86 +0,0 @@
---
title: Getting started
description: This article helps you get started with the Mainroad theme, including installation and minimal
configuration.
lead: This article helps you get started with the Mainroad theme, including installation and minimal configuration.
date: 2022-01-24T14:00:00.000Z
tags:
- "Installation"
authorbox: false
sidebar: false
pager: false
weight: 1
menu: main
---
Welcome to the Mainroad theme documentation. This quick start guide covers Mainroad theme installation and minimal
configuration and is intended for intermediate to advanced users. To understand this guide, you need to be familiar
with the [Hugo](https://gohugo.io/) static site generator.
<!--more-->
## Installation
Before installing the **Mainroad** theme, make sure that you've
[installed **Hugo** (version 0.48 or later)](https://gohugo.io/getting-started/quick-start/#step-1-install-hugo) and
[created a new site](https://gohugo.io/getting-started/quick-start/#step-2-create-a-new-site). To learn how to install
Hugo, visit [Hugo Documentation](https://gohugo.io/getting-started/installing/).
There are a few ways to install a theme in Hugo. This can be done via git submodule, git clone, Hugo modules, or
by downloading the archive and manually copying the files. Three installation options are described below.
### Option A: `git submodule`
*Additional requirements: git*
If you don't plan to make significant changes to the theme but still want to track and update it, you can add it as a
[git submodule](https://git-scm.com/docs/git-submodule) by running the following command from the root directory of
your Hugo site:
```sh
git submodule add https://github.com/vimux/mainroad.git themes/mainroad
```
**Note:**
[Netlify expects git submodule](https://docs.netlify.com/configure-builds/common-configurations/hugo/#hugo-themes)
instead of git clone.
### Option B: `git clone`
*Additional requirements: git*
Run this [git clone](https://git-scm.com/docs/git-clone) command from the root of your Hugo site:
```sh
git clone https://github.com/vimux/mainroad.git themes/mainroad
```
### Option C: Manual install
If you do not want to use git, you can manually
**[download ZIP](https://github.com/vimux/mainroad/archive/master.zip)** and extract it into the `themes/mainroad`
within your Hugo site.
---
### Activate theme
Whichever installation option you choose, don't forget to edit `theme` param of the site configuration `config.toml`:
```toml
theme = "mainroad"
```
To check it out, build the site via `hugo` command or make it available on a local server via `hugo server`.
## Minimal configuration
**Do not copy the [example config](https://github.com/vimux/mainroad#configtoml-example) as-is.**
Use only the parameters that you need. The Mainroad theme contains required defaults, so you don't need to add all of
the configuration parameters to run the theme for the first time. Before adding any theme-specific parameters, make
sure to edit the `theme` param inside the config file and check that the theme works.
For information about common customization settings, see [Customization page]({{< relref "/docs/customization.md" >}} "Mainroad theme customization").
To view our example configuration, visit [demo config](https://github.com/vimux/mainroad/blob/master/exampleSite/config.toml).
[Edit this page on GitHub](https://github.com/vimux/mainroad/blob/master/exampleSite/content/docs/getting-started.md)

View File

@ -1,170 +0,0 @@
---
title: Basic HTML Elements
description: Example test article that contains basic HTML elements for text formatting on the Web.
date: 2018-04-16
categories:
- "Development"
tags:
- "HTML"
- "CSS"
- "Basic Elements"
menu:
main:
name: Basic Elements
weight: 4
---
The main purpose of this article is to make sure that all basic HTML Elements are decorated with CSS so as to not miss any possible elements when creating new themes for Hugo.
<!--more-->
## Headings
Let's start with all possible headings. The HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level and `<h6>` is the lowest.
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
***
## Paragraph
According to the [HTML5 specification](https://www.w3.org/TR/html5/dom.html#elements) by [W3C](https://www.w3.org/), **HTML documents consist of a tree of elements and text**. Each element is denoted in the source by a [start tag](https://www.w3.org/TR/html5/syntax.html#syntax-start-tags), such as `<body>`, and an [end tag](https://www.w3.org/TR/html5/syntax.html#syntax-end-tags), such as `</body>`. (*Certain start tags and end tags can in certain cases be omitted and are implied by other tags.*)
Elements can have attributes, which control how the elements work. For example, hyperlink are formed using the `a` element and its `href` attribute.
## List Types
### Ordered List
1. First item
2. Second item
3. Third item
### Unordered List
* List item
* Another item
* And another item
### Nested list
<ul>
<li>First item</li>
<li>Second item
<ul>
<li>Second item First subitem</li>
<li>Second item second subitem
<ul>
<li>Second item Second subitem First sub-subitem</li>
<li>Second item Second subitem Second sub-subitem</li>
<li>Second item Second subitem Third sub-subitem</li>
</ul>
</li>
<li>Second item Third subitem
<ol>
<li>Second item Third subitem First sub-subitem</li>
<li>Second item Third subitem Second sub-subitem</li>
<li>Second item Third subitem Third sub-subitem</li>
</ol>
</ul>
</li>
<li>Third item</li>
</ul>
### Definition List
HTML also supports definition lists.
<dl>
<dt>Blanco tequila</dt>
<dd>The purest form of the blue agave spirit...</dd>
<dt>Reposado tequila</dt>
<dd>Typically aged in wooden barrels for between two and eleven months...</dd>
</dl>
## Blockquotes
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
> Quoted text.
> This line is part of the same quote.
> Also you can *put* **Markdown** into a blockquote.
Blockquote with a citation.
<blockquote>
<p>My goal wasn't to make a ton of money. It was to build good computers. I only started the company when I realized I could be an engineer forever.</p>
<footer><cite>Steve Wozniak</cite></footer>
</blockquote>
According to Mozilla's website, <q cite="https://www.mozilla.org/en-US/about/history/details/">Firefox 1.0 was released in 2004 and became a big success.</q>
## Tables
Tables aren't part of the core Markdown spec, but Hugo supports them.
| ID | Make | Model | Year |
| --- | --------- | ------- | ---- |
| 1 | Honda | Accord | 2009 |
| 2 | Toyota | Camry | 2012 |
| 3 | Hyundai | Elantra | 2010 |
Colons can be used to align columns.
| Tables | Are | Cool |
|:----------- |:-------------:| ------------:|
| align: left | align: center | align: right |
| align: left | align: center | align: right |
| align: left | align: center | align: right |
You can also use inline Markdown.
| Inline | Markdown | In | Table |
| ---------- | --------- | ----------------- | ---------- |
| *italics* | **bold** | ~~strikethrough~~ | `code` |
## Code
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
{{< highlight html >}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
{{< /highlight >}}
## Other stuff — abbr, sub, sup, kbd, etc.
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
H<sub>2</sub>O
C<sub>6</sub>H<sub>12</sub>O<sub>6</sub>
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd>X</kbd> to win. Or press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>F</kbd></kbd> to show FPS counter.
<mark>As a unit of information in information theory, the bit has alternatively been called a shannon</mark>, named after Claude Shannon, the founder of field of information theory.

View File

@ -1,85 +0,0 @@
---
title: Getting Started with Hugo
date: 2014-04-02
tags:
- "go"
- "golang"
- "hugo"
- "development"
categories:
- "Development"
- "golang"
---
## Step 1. Install Hugo
Go to [Hugo releases](https://github.com/spf13/hugo/releases) and download the
appropriate version for your OS and architecture.
Save it somewhere specific as we will be using it in the next step.
More complete instructions are available at [Install Hugo](https://gohugo.io/getting-started/installing/)
## Step 2. Build the Docs
Hugo has its own example site which happens to also be the documentation site
you are reading right now.
Follow the following steps:
1. Clone the [Hugo repository](https://github.com/spf13/hugo)
2. Go into the repo
3. Run hugo in server mode and build the docs
4. Open your browser to http://localhost:1313
Corresponding pseudo commands:
git clone https://github.com/spf13/hugo
cd hugo
/path/to/where/you/installed/hugo server --source=./docs
> 29 pages created
> 0 tags index created
> in 27 ms
> Web Server is available at http://localhost:1313
> Press ctrl+c to stop
Once you've gotten here, follow along the rest of this page on your local build.
## Step 3. Change the docs site
Stop the Hugo process by hitting Ctrl+C.
Now we are going to run hugo again, but this time with hugo in watch mode.
/path/to/hugo/from/step/1/hugo server --source=./docs --watch
> 29 pages created
> 0 tags index created
> in 27 ms
> Web Server is available at http://localhost:1313
> Watching for changes in /Users/spf13/Code/hugo/docs/content
> Press ctrl+c to stop
Open your [favorite editor](http://vim.spf13.com) and change one of the source
content pages. How about changing this very file to *fix the typo*. How about changing this very file to *fix the typo*.
Content files are found in `docs/content/`. Unless otherwise specified, files
are located at the same relative location as the url, in our case
`docs/content/overview/quickstart.md`.
Change and save this file.. Notice what happened in your terminal.
> Change detected, rebuilding site
> 29 pages created
> 0 tags index created
> in 26 ms
Refresh the browser and observe that the typo is now fixed.
Notice how quick that was. Try to refresh the site before it's finished building. I double dare you.
Having nearly instant feedback enables you to have your creativity flow without waiting for long builds.
## Step 4. Have fun
The best way to learn something is to play with it.

View File

@ -1,343 +0,0 @@
---
title: "(Hu)go Template Primer"
date: 2014-04-02
thumbnail: "img/placeholder.png"
tags:
- "go"
- "golang"
- "templates"
- "themes"
- "development"
categories:
- "Development"
- "golang"
---
Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for
its template engine. It is an extremely lightweight engine that provides a very
small amount of logic. In our experience that it is just the right amount of
logic to be able to create a good static website. If you have used other
template systems from different languages or frameworks you will find a lot of
similarities in Go templates.
<!--more-->
This document is a brief primer on using Go templates. The [Go docs][gohtmltemplate]
provide more details.
## Introduction to Go Templates
Go templates provide an extremely simple template language. It adheres to the
belief that only the most basic of logic belongs in the template or view layer.
One consequence of this simplicity is that Go templates parse very quickly.
A unique characteristic of Go templates is they are content aware. Variables and
content will be sanitized depending on the context of where they are used. More
details can be found in the [Go docs][gohtmltemplate].
## Basic Syntax
Golang templates are HTML files with the addition of variables and
functions.
**Go variables and functions are accessible within {{ }}**
Accessing a predefined variable "foo":
{{ foo }}
**Parameters are separated using spaces**
Calling the add function with input of 1, 2:
{{ add 1 2 }}
**Methods and fields are accessed via dot notation**
Accessing the Page Parameter "bar"
{{ .Params.bar }}
**Parentheses can be used to group items together**
{{ if or (isset .Params "alt") (isset .Params "caption") }} Caption {{ end }}
## Variables
Each Go template has a struct (object) made available to it. In hugo each
template is passed either a page or a node struct depending on which type of
page you are rendering. More details are available on the
[variables](/layout/variables) page.
A variable is accessed by referencing the variable name.
<title>{{ .Title }}</title>
Variables can also be defined and referenced.
{{ $address := "123 Main St."}}
{{ $address }}
## Functions
Go template ship with a few functions which provide basic functionality. The Go
template system also provides a mechanism for applications to extend the
available functions with their own. [Hugo template
functions](/layout/functions) provide some additional functionality we believe
are useful for building websites. Functions are called by using their name
followed by the required parameters separated by spaces. Template
functions cannot be added without recompiling hugo.
**Example:**
{{ add 1 2 }}
## Includes
When including another template you will pass to it the data it will be
able to access. To pass along the current context please remember to
include a trailing dot. The templates location will always be starting at
the /layout/ directory within Hugo.
**Example:**
{{ template "chrome/header.html" . }}
## Logic
Go templates provide the most basic iteration and conditional logic.
### Iteration
Just like in Go, the Go templates make heavy use of range to iterate over
a map, array or slice. The following are different examples of how to use
range.
**Example 1: Using Context**
{{ range array }}
{{ . }}
{{ end }}
**Example 2: Declaring value variable name**
{{range $element := array}}
{{ $element }}
{{ end }}
**Example 2: Declaring key and value variable name**
{{range $index, $element := array}}
{{ $index }}
{{ $element }}
{{ end }}
### Conditionals
If, else, with, or, & and provide the framework for handling conditional
logic in Go Templates. Like range, each statement is closed with `end`.
Go Templates treat the following values as false:
* false
* 0
* any array, slice, map, or string of length zero
**Example 1: If**
{{ if isset .Params "title" }}<h4>{{ index .Params "title" }}</h4>{{ end }}
**Example 2: If -> Else**
{{ if isset .Params "alt" }}
{{ index .Params "alt" }}
{{else}}
{{ index .Params "caption" }}
{{ end }}
**Example 3: And & Or**
{{ if and (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}}
**Example 4: With**
An alternative way of writing "if" and then referencing the same value
is to use "with" instead. With rebinds the context `.` within its scope,
and skips the block if the variable is absent.
The first example above could be simplified as:
{{ with .Params.title }}<h4>{{ . }}</h4>{{ end }}
**Example 5: If -> Else If**
{{ if isset .Params "alt" }}
{{ index .Params "alt" }}
{{ else if isset .Params "caption" }}
{{ index .Params "caption" }}
{{ end }}
## Pipes
One of the most powerful components of Go templates is the ability to
stack actions one after another. This is done by using pipes. Borrowed
from unix pipes, the concept is simple, each pipeline's output becomes the
input of the following pipe.
Because of the very simple syntax of Go templates, the pipe is essential
to being able to chain together function calls. One limitation of the
pipes is that they only can work with a single value and that value
becomes the last parameter of the next pipeline.
A few simple examples should help convey how to use the pipe.
**Example 1 :**
{{ if eq 1 1 }} Same {{ end }}
is the same as
{{ eq 1 1 | if }} Same {{ end }}
It does look odd to place the if at the end, but it does provide a good
illustration of how to use the pipes.
**Example 2 :**
{{ index .Params "disqus_url" | html }}
Access the page parameter called "disqus_url" and escape the HTML.
**Example 3 :**
{{ if or (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}}
Stuff Here
{{ end }}
Could be rewritten as
{{ isset .Params "caption" | or isset .Params "title" | or isset .Params "attr" | if }}
Stuff Here
{{ end }}
## Context (aka. the dot)
The most easily overlooked concept to understand about Go templates is that {{ . }}
always refers to the current context. In the top level of your template this
will be the data set made available to it. Inside of a iteration it will have
the value of the current item. When inside of a loop the context has changed. .
will no longer refer to the data available to the entire page. If you need to
access this from within the loop you will likely want to set it to a variable
instead of depending on the context.
**Example:**
{{ $title := .Site.Title }}
{{ range .Params.tags }}
<li> <a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a> - {{ $title }} </li>
{{ end }}
Notice how once we have entered the loop the value of {{ . }} has changed. We
have defined a variable outside of the loop so we have access to it from within
the loop.
# Hugo Parameters
Hugo provides the option of passing values to the template language
through the site configuration (for sitewide values), or through the meta
data of each specific piece of content. You can define any values of any
type (supported by your front matter/config format) and use them however
you want to inside of your templates.
## Using Content (page) Parameters
In each piece of content you can provide variables to be used by the
templates. This happens in the [front matter](/content/front-matter).
An example of this is used in this documentation site. Most of the pages
benefit from having the table of contents provided. Sometimes the TOC just
doesn't make a lot of sense. We've defined a variable in our front matter
of some pages to turn off the TOC from being displayed.
Here is the example front matter:
```
---
title: "Permalinks"
date: "2013-11-18"
aliases:
- "/doc/permalinks/"
groups: ["extras"]
groups_weight: 30
notoc: true
---
```
Here is the corresponding code inside of the template:
{{ if not .Params.notoc }}
<div id="toc" class="well col-md-4 col-sm-6">
{{ .TableOfContents }}
</div>
{{ end }}
## Using Site (config) Parameters
In your top-level configuration file (eg, `config.yaml`) you can define site
parameters, which are values which will be available to you in chrome.
For instance, you might declare:
```yaml
params:
CopyrightHTML: "Copyright &#xA9; 2013 John Doe. All Rights Reserved."
TwitterUser: "spf13"
SidebarRecentLimit: 5
```
Within a footer layout, you might then declare a `<footer>` which is only
provided if the `CopyrightHTML` parameter is provided, and if it is given,
you would declare it to be HTML-safe, so that the HTML entity is not escaped
again. This would let you easily update just your top-level config file each
January 1st, instead of hunting through your templates.
```
{{if .Site.Params.CopyrightHTML}}<footer>
<div class="text-center">{{.Site.Params.CopyrightHTML | safeHtml}}</div>
</footer>{{end}}
```
An alternative way of writing the "if" and then referencing the same value
is to use "with" instead. With rebinds the context `.` within its scope,
and skips the block if the variable is absent:
```
{{with .Site.Params.TwitterUser}}<span class="twitter">
<a href="https://twitter.com/{{.}}" rel="author">
<img src="/images/twitter.png" width="48" height="48" title="Twitter: {{.}}"
alt="Twitter"></a>
</span>{{end}}
```
Finally, if you want to pull "magic constants" out of your layouts, you can do
so, such as in this example:
```
<nav class="recent">
<h1>Recent Posts</h1>
<ul>{{range first .Site.Params.SidebarRecentLimit .Site.Recent}}
<li><a href="{{.RelPermalink}}">{{.Title}}</a></li>
{{end}}</ul>
</nav>
```
[go]: https://golang.org/
[gohtmltemplate]: https://golang.org/pkg/html/template/

View File

@ -1,94 +0,0 @@
# General
- id: read_more
translation: "Чети нататък…"
- id: menu_label
translation: "Меню"
- id: sidemenu_title
translation: "Меню"
# Post meta
- id: meta_lastmod
translation: "Последна промяна"
- id: meta_translations
translation: "Преводи"
# Table of Contents
- id: toc_title
translation: "Съдържание"
# Post nav
- id: post_nav_prev
translation: "Предишна"
- id: post_nav_next
translation: "Следваща"
# Authorbox
- id: authorbox_name
translation: "За {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "ПРЕДУПРЕЖДЕНИЕ"
- id: sidebar_recommendation
translation: "Моля, активирай поне един блок в страничния панел."
# Search widget
- id: search_placeholder
translation: "ТЪРСЕНЕ…"
# Languages widget
- id: languages_title
translation: "Езици"
# Categories widget
- id: categories_title
translation: "Категории"
# Recent Posts widget
- id: recent_title
translation: "Последни писания"
# Social widget
- id: social_title
translation: "Социални"
# Tags List widget
- id: tags_title
translation: "Тагове"
# Footer
- id: footer_credits
translation:
"Генерирано с <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> и тема \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>."
# 404
- id: 404_title
translation: "404. Страницата не е намерена"
- id: 404_text
translation:
"Страницата, която търсите, изглежда е била преместена, изтрита, или не съществува. Моля, използвайте полето за \
търсене или отидете на"
- id: 404_linktext
translation: "главна страница"
# No posts empty state
- id: noposts_warning_title
translation: "Все още нямаш никакви писания!"
- id: noposts_warning_description
translation:
"След като запишеш нещо в коя да е поддиректория (секция) на директория <b>content</b>, то ще се появи тук. По \
подразбиране само една секция (с най-многото писания) ще се показва на главната страница."
- id: noposts_warning_tip
translation:
"<b>Tip:</b> Можеш да покажеш колкото искаш на брой секции, като ги укажеш в конфигурационния параметър \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b>."

View File

@ -1,94 +0,0 @@
# General
- id: read_more
translation: "আরও পড়ুন…"
- id: menu_label
translation: "মেনু"
- id: sidemenu_title
translation: "মেনু"
# Post meta
- id: meta_lastmod
translation: "সর্বশেষ পরিবর্তন"
- id: meta_translations
translation: "অনুবাদ"
# Table of Contents
- id: toc_title
translation: "সূচী"
# Post nav
- id: post_nav_prev
translation: "পূর্ববর্তী"
- id: post_nav_next
translation: "পরবর্তী"
# Authorbox
- id: authorbox_name
translation: "{{ .Name }} সম্পর্কে"
# Sidebar
- id: sidebar_warning
translation: "সতর্কবার্তা"
- id: sidebar_recommendation
translation: "অনুগ্রহ করে কমপক্ষে একটি সাইডবার উইজেট সক্রিয় করুন।"
# Search widget
- id: search_placeholder
translation: "অনুসন্ধান…"
# Languages widget
- id: languages_title
translation: "ভাষা"
# Categories widget
- id: categories_title
translation: "বিভাগ"
# Recent Posts widget
- id: recent_title
translation: "সাম্প্রতিক পোস্ট"
# Social widget
- id: social_title
translation: "সোসিয়াল"
# Tags List widget
- id: tags_title
translation: "ট্যাগ"
# Footer
- id: footer_credits
translation:
"<a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> এবং \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a> থিম দ্বারা তৈরি।"
# 404
- id: 404_title
translation: "404. পাতাটি পাওয়া যায়নি"
- id: 404_text
translation:
"আপনার কাংখিত পাতাটি মুছে ফেলা হয়েছে, সরানো হয়েছে বা পাতাটি নেই। অনুগ্রহ করে অনুসন্ধান করুন অথবা ফিরে যান"
- id: 404_linktext
translation: "প্রধান পাতায়"
# No posts empty state
- id: noposts_warning_title
translation: "আপনার এখনও কোন পোস্ট নেই!"
- id: noposts_warning_description
translation:
"যখনই আপনি content ফোল্ডারের ভেতর যেকোনো ফোল্ডারে (সেকশনে) কিছু পোস্ট করবেন, তা \
এখানে দেখা যাবে। প্রধান পাতায় শুধুমাত্র একটি সেকশন (যাতে সর্বাধিক পোস্ট রয়েছে) ডিফল্ট ভাবে প্রদর্শিত হবে।"
- id: noposts_warning_tip
translation:
"<b>পরামর্শ:</b> আপনি \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b> \
কনফিগ প্যারামিটার দিয়ে যতগুলো সেকশন দেখাতে চান তা দেখাতে পারেন।"

View File

@ -1,94 +0,0 @@
# General
- id: read_more
translation: "Číst více…"
- id: menu_label
translation: "Menu"
- id: sidemenu_title
translation: "Menu"
# Post meta
- id: meta_lastmod
translation: "Naposledy upraveno"
- id: meta_translations
translation: "Překlady"
# Table of Contents
- id: toc_title
translation: "Obsah stránky"
# Post nav
- id: post_nav_prev
translation: "Předchozí"
- id: post_nav_next
translation: "Následující"
# Authorbox
- id: authorbox_name
translation: "O {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "POZOR"
- id: sidebar_recommendation
translation: "Prosím aktivujte aspoň jeden widget postranní lišty."
# Search widget
- id: search_placeholder
translation: "Hledat…"
# Languages widget
- id: languages_title
translation: "Jazyky"
# Categories widget
- id: categories_title
translation: "Kategorie"
# Recent Posts widget
- id: recent_title
translation: "Poslední příspěvky"
# Social widget
- id: social_title
translation: "Sociální sítě"
# Tags List widget
- id: tags_title
translation: "Štítky"
# Footer
- id: footer_credits
translation:
"Vytvořeno pomocí <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> a tématu \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>."
# 404
- id: 404_title
translation: "404. Stránka nebyla nalezena"
- id: 404_text
translation:
"Požadovaná stránka neexistuje, nebo byla přesunuta či smazána. Využijte, prosím, vyhledávání, nebo pokračujte na"
- id: 404_linktext
translation: "hlavní stránka"
# No posts empty state
- id: noposts_warning_title
translation: "Zatím nemáte žádné příspěvky!"
- id: noposts_warning_description
translation:
"Jakmile vytvoříte příspěvek v libovolném podadresáři (sekci) adresáře <b>content</b>, objeví se zde. Ve výchozím \
nastavení je na hlavní stránce zobrazena pouze jedna sekce (s největším množstvím příspěvků)."
- id: noposts_warning_tip
translation:
"<b>Tip:</b> Pomocí parametru \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b> \
můžete zobrazit libovolný počet sekcí."

View File

@ -1,94 +0,0 @@
# General
- id: read_more
translation: "Weiterlesen…"
- id: menu_label
translation: "Menü"
- id: sidemenu_title
translation: "Menü"
# Post meta
- id: meta_lastmod
translation: "Zuletzt geändert"
- id: meta_translations
translation: "Übersetzungen"
# Table of Contents
- id: toc_title
translation: "Inhaltsverzeichnis"
# Post nav
- id: post_nav_prev
translation: "Zurück"
- id: post_nav_next
translation: "Weiter"
# Authorbox
- id: authorbox_name
translation: "Über {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "WARNUNG"
- id: sidebar_recommendation
translation: "Bitte aktivieren sie mindestens ein Widget."
# Search widget
- id: search_placeholder
translation: "Suche…"
# Languages widget
- id: languages_title
translation: "Sprachen"
# Categories widget
- id: categories_title
translation: "Kategorien"
# Recent Posts widget
- id: recent_title
translation: "Letzte Beiträge"
# Social widget
- id: social_title
translation: "Soziale Netzwerke"
# Tags List widget
- id: tags_title
translation: "Tags"
# Footer
- id: footer_credits
translation:
"Erstellt mit <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> und \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a> Theme."
# 404
- id: 404_title
translation: "404. Seite nicht gefunden"
- id: 404_text
translation:
"Die gesuchte Seite existiert nicht, wurde verschoben oder gelöscht. Bitte nutzen Sie die Suche oder gehen Sie zur"
- id: 404_linktext
translation: "Startseite"
# No posts empty state
- id: noposts_warning_title
translation: "Es gibt noch keine Posts!"
- id: noposts_warning_description
translation:
"Hier erscheinen Posts, die in einem Unterordner des <b>content/</b> Ordners abgelegt werden (z.B. in \
<b>content/post</b>). Standardmäßig werden nur Posts der Gruppe mit den meisten Einträgen angezeigt."
- id: noposts_warning_tip
translation:
"<b>Tipp:</b> Mit dem \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b> \
Parameter lassen sich beliebig viele weitere Gruppen konfigurieren."

View File

@ -1,94 +0,0 @@
# General
- id: read_more
translation: "Read more…"
- id: menu_label
translation: "Menu"
- id: sidemenu_title
translation: "Menu"
# Post meta
- id: meta_lastmod
translation: "Last Modified"
- id: meta_translations
translation: "Translations"
# Table of Contents
- id: toc_title
translation: "Page content"
# Post nav
- id: post_nav_prev
translation: "Previous"
- id: post_nav_next
translation: "Next"
# Authorbox
- id: authorbox_name
translation: "About {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "WARNING"
- id: sidebar_recommendation
translation: "Please activate at least one sidebar widget."
# Search widget
- id: search_placeholder
translation: "SEARCH…"
# Languages widget
- id: languages_title
translation: "Languages"
# Categories widget
- id: categories_title
translation: "Categories"
# Recent Posts widget
- id: recent_title
translation: "Recent Posts"
# Social widget
- id: social_title
translation: "Social"
# Tags List widget
- id: tags_title
translation: "Tags"
# Footer
- id: footer_credits
translation:
"Generated with <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> and \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a> theme."
# 404
- id: 404_title
translation: "404. Page not found"
- id: 404_text
translation:
"The page you were looking for appears to have been moved, deleted or does not exist. Please, use search or go to"
- id: 404_linktext
translation: "main page"
# No posts empty state
- id: noposts_warning_title
translation: "You don't have any posts yet!"
- id: noposts_warning_description
translation:
"Once you post something in any folder (section) under the <b>content</b> directory, it will appear here. Only one \
section (with the most posts) will be displayed on the main page by default."
- id: noposts_warning_tip
translation:
"<b>Tip:</b> You can show as many sections as you like with \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b> \
config parameter."

View File

@ -1,92 +0,0 @@
# General
- id: read_more
translation: "Leer más"
- id: menu_label
translation: "Menú"
- id: sidemenu_title
translation: "Menú"
# Post meta
- id: meta_lastmod
translation: "Última modificación"
- id: meta_translations
translation: "Traducciones"
# Table of Contents
- id: toc_title
translation: "Índice"
# Post nav
- id: post_nav_prev
translation: "Anterior"
- id: post_nav_next
translation: "Siguiente"
# Authorbox
- id: authorbox_name
translation: "Sobre el autor {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "Atención"
- id: sidebar_recommendation
translation: "Activa al menos un widget en la barra lateral."
# Search widget
- id: search_placeholder
translation: "Buscar…"
# Languages widget
- id: languages_title
translation: "Idiomas"
# Categories widget
- id: categories_title
translation: "Categorías"
# Recent Posts widget
- id: recent_title
translation: "Más Recientes"
# Social widget
- id: social_title
translation: "Social"
# Tags List widget
- id: tags_title
translation: "Etiquetas"
# Footer
- id: footer_credits
translation:
"Generado con <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> y \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>."
# 404
- id: 404_title
translation: "404. Página no encontrada"
- id: 404_text
translation: "La página que estás buscando no aparece, no existe o se ha movido a otro lugar."
- id: 404_linktext
translation: "Página principal"
# No posts empty state
- id: noposts_warning_title
translation: "¡Todavía no hay publicaciones!"
- id: noposts_warning_description
translation:
"Una vez que publiques algo en cualquier carpeta (sección) dentro del directorio <b>content</b>, se verá aquí. \
Sólo una sección (la que tenga más publicaciones) se mostrará por defecto en la página principal."
- id: noposts_warning_tip
translation:
"<b>Aviso:</b> Puedes mostrar tantas secciones como gustes con el parámetro de configuración \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b>."

View File

@ -1,93 +0,0 @@
# General
- id: read_more
translation: "Lire la suite…"
- id: menu_label
translation: "Menu"
- id: sidemenu_title
translation: "Menu"
# Post meta
- id: meta_lastmod
translation: "Dernière modification"
- id: meta_translations
translation: "Traductions"
# Table of Contents
- id: toc_title
translation: "Sommaire"
# Post nav
- id: post_nav_prev
translation: "Précédent"
- id: post_nav_next
translation: "Suivant"
# Authorbox
- id: authorbox_name
translation: "À propos de {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "Attention"
- id: sidebar_recommendation
translation: "Activez au moins un widget pour la barre latérale."
# Search widget
- id: search_placeholder
translation: "Rechercher…"
# Languages widget
- id: languages_title
translation: "Langues"
# Categories widget
- id: categories_title
translation: "Catégories"
# Recent Posts widget
- id: recent_title
translation: "Articles récents"
# Social widget
- id: social_title
translation: "Social"
# Tags List widget
- id: tags_title
translation: "Mots-clefs"
# Footer
- id: footer_credits
translation:
"Produit par <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> et le thème \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>."
# 404
- id: 404_title
translation: "404. Page introuvable."
- id: 404_text
translation: "La page que vous recherchez a apparemment été supprimée, déplacée, ou n'existe pas."
- id: 404_linktext
translation: "Accueil"
# No posts empty state
- id: noposts_warning_title
translation: "Vous n'avez pas encore de posts!"
- id: noposts_warning_description
translation:
"Une fois que vous avez publié quelque chose dans n'importe quel sous-dossier (section) du dossier <b>content</b>, \
cela apparaîtra ici. Par défaut, une seule section (celle avec le plus de posts) sera affichée sur la page \
principale."
- id: noposts_warning_tip
translation:
"<b>Astuce:</b> Vous pouvez afficher autant de sections que vous voulez avec le paramètre de configuration \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b>."

View File

@ -1,94 +0,0 @@
# General
- id: read_more
translation: "Više…"
- id: menu_label
translation: "Meni"
- id: sidemenu_title
translation: "Meni"
# Post meta
- id: meta_lastmod
translation: "Ažurirano"
- id: meta_translations
translation: "Prijevodi"
# Table of Contents
- id: toc_title
translation: "Podnaslovi"
# Post nav
- id: post_nav_prev
translation: "Prethodni"
- id: post_nav_next
translation: "Slijedeći"
# Authorbox
- id: authorbox_name
translation: "O {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "PAŽNJA"
- id: sidebar_recommendation
translation: "Aktivirajte barem jedan widget bočne trake."
# Search widget
- id: search_placeholder
translation: "Upišite traženi pojam"
# Languages widget
- id: languages_title
translation: "Jezici"
# Categories widget
- id: categories_title
translation: "Kategorije"
# Recent Posts widget
- id: recent_title
translation: "Najnoviji postovi"
# Social widget
- id: social_title
translation: "Društvene mreže"
# Tags List widget
- id: tags_title
translation: "Ključne riječi"
# Footer
- id: footer_credits
translation:
"Generirao <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> Tema \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>."
# 404
- id: 404_title
translation: "404. stranica nije pronađena"
- id: 404_text
translation:
"Tražena stranica ne postoji ili je premještena ili izbrisana. Koristite pretragu ili idite na "
- id: 404_linktext
translation: "na početnu stranicu"
# No posts empty state
- id: noposts_warning_title
translation: "Još nemate objava!!"
- id: noposts_warning_description
translation:
"Nakon što stvorite objavu u bilo kojem poddirektoriju direktorija <b>content</b>, će se pojaviti ovdje. Prema zadanim postavkama, \
na naslovnici se prikazuje samo jedan odjeljak (s najvećim brojem postova)."
- id: noposts_warning_tip
translation:
"<b>Savjet:</b> Korištenje parametra \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b> \
možete vidjeti bilo koji broj odjeljaka."

View File

@ -1,95 +0,0 @@
# General
- id: read_more
translation: "Tovább olvas…"
- id: menu_label
translation: "Menu"
- id: sidemenu_title
translation: "Menu"
# Post meta
- id: meta_lastmod
translation: "Utoljára módosítva"
- id: meta_translations
translation: "Fordítások"
# Table of Contents
- id: toc_title
translation: "Az oldal tartalma"
# Post nav
- id: post_nav_prev
translation: "Előző"
- id: post_nav_next
translation: "Következő"
# Authorbox
- id: authorbox_name
translation: "A {{ .Name }} -ról"
# Sidebar
- id: sidebar_warning
translation: "FIGYELMEZTETÉS"
- id: sidebar_recommendation
translation: "Kérjük, aktiváljon legalább egy oldalsáv-modult."
# Search widget
- id: search_placeholder
translation: "KERES…"
# Languages widget
- id: languages_title
translation: "Nyelvek"
# Categories widget
- id: categories_title
translation: "Kategóriák"
# Recent Posts widget
- id: recent_title
translation: "Legutóbbi bejegyzések"
# Social widget
- id: social_title
translation: "Közösség"
# Tags List widget
- id: tags_title
translation: "Cimkék"
# Footer
- id: footer_credits
translation:
"Létrehozva <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> és \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a> témával."
# 404
- id: 404_title
translation: "404. Az oldal nem található"
- id: 404_text
translation:
"Úgy tűnik, hogy a kívánt oldalt áthelyezték, törölték vagy nem létezik. Kérjük, használja a keresést, vagy lépjen \
ide"
- id: 404_linktext
translation: "főoldal"
# No posts empty state
- id: noposts_warning_title
translation: "Még nincs bejegyzésed!"
- id: noposts_warning_description
translation:
"Ha valamit a <b>content</b> könyvtár alatti mappába (szakaszba) közzéteszel, az itt jelenik meg. Csak egy szakasz \
(a legtöbb hozzászólással) jelenik meg a főoldalon alapértelmezés szerint."
- id: noposts_warning_tip
translation:
"<b>Tipp:</b> Megjeleníthet annyi szakaszt, amennyit csak akar a \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b> \
konfigurációs paraméterrel."

View File

@ -1,93 +0,0 @@
# General
- id: read_more
translation: "Selanjutnya…"
- id: menu_label
translation: "Menu"
- id: sidemenu_title
translation: "Menu"
# Post meta
- id: meta_lastmod
translation: "Terakhir Diubah"
- id: meta_translations
translation: "Terjemahan"
# Table of Contents
- id: toc_title
translation: "Konten Halaman"
# Post nav
- id: post_nav_prev
translation: "Sebelumnya"
- id: post_nav_next
translation: "Selanjutnya"
# Authorbox
- id: authorbox_name
translation: "Tentang {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "PERINGATAN"
- id: sidebar_recommendation
translation: "Aktifkan setidaknya satu widget sidebar."
# Search widget
- id: search_placeholder
translation: "CARI…"
# Languages widget
- id: languages_title
translation: "Bahasa"
# Categories widget
- id: categories_title
translation: "Kategori"
# Recent Posts widget
- id: recent_title
translation: "Postingan Terbaru"
# Social widget
- id: social_title
translation: "Sosmed"
# Tags List widget
- id: tags_title
translation: "Tag"
# Footer
- id: footer_credits
translation:
"Dibuat dengan <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> dan Tema \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>."
# 404
- id: 404_title
translation: "404. Halaman tidak ditemukan"
- id: 404_text
translation:
"Halaman yang Kamu cari tampaknya telah dipindahkan, dihapus atau tidak ada. Silakan gunakan pencarian atau pergi ke"
- id: 404_linktext
translation: "Beranda"
# No posts empty state
- id: noposts_warning_title
translation: "Kamu belum memiliki postingan apa pun!"
- id: noposts_warning_description
translation:
"Setelah kamu memposting sesuatu ke dalam folder manapun di folder <b>content</b>, Postingan itu akan muncul \
disini. Hanya satu bagian (dengan postingan terbanyak) yang akan ditampilkan di beranda secara default."
- id: noposts_warning_tip
translation:
"<b>Tip:</b> Kamu dapat menampilkan sebanyak mungkin bagian dengan parameter konfigurasi \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b>."

View File

@ -1,94 +0,0 @@
# General
- id: read_more
translation: "Continua a leggere…"
- id: menu_label
translation: "Menu"
- id: sidemenu_title
translation: "Menu"
# Post meta
- id: meta_lastmod
translation: "Ultima modifica"
- id: meta_translations
translation: "Traduzioni"
# Table of Contents
- id: toc_title
translation: "Indice"
# Post nav
- id: post_nav_prev
translation: "Precedente"
- id: post_nav_next
translation: "Prossimo"
# Authorbox
- id: authorbox_name
translation: "Riguardo {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "ATTENZIONE"
- id: sidebar_recommendation
translation: "Si prega di attivare almeno un widget della barra laterale."
# Search widget
- id: search_placeholder
translation: "CERCA…"
# Languages widget
- id: languages_title
translation: "Lingue"
# Categories widget
- id: categories_title
translation: "Categorie"
# Recent Posts widget
- id: recent_title
translation: "Post recenti"
# Social widget
- id: social_title
translation: "Social"
# Tags List widget
- id: tags_title
translation: "Tag"
# Footer
- id: footer_credits
translation:
"Generato con <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> e il tema \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>."
# 404
- id: 404_title
translation: "404. Pagina non trovata"
- id: 404_text
translation:
"La pagina che stai cercando sembra essere stata spostata, rimossa o non esiste. Si prega di usare la ricerca o \
andare alla"
- id: 404_linktext
translation: "pagina principale"
# No posts empty state
- id: noposts_warning_title
translation: "Non hai ancora nessun post!"
- id: noposts_warning_description
translation:
"Una volta pubblicato qualcosa in una qualsiasi cartella (sezione) dentro la directory <b>content</b>, apparirà \
qui. Solo una sezione (quella con più post) verrà mostrata in modo predefinito nella pagina principale."
- id: noposts_warning_tip
translation:
"<b>Suggerimento:</b> Puoi mostrare quante sezioni vuoi con il parametro \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b>."

View File

@ -1,95 +0,0 @@
# General
- id: read_more
translation: "続きを読む…"
- id: menu_label
translation: "メニュー"
- id: sidemenu_title
translation: "メニュー"
# Post meta
- id: meta_lastmod
translation: "最終更新"
- id: meta_translations
translation: "翻訳"
# Table of Contents
- id: toc_title
translation: "目次"
# Post nav
- id: post_nav_prev
translation: "前の投稿"
- id: post_nav_next
translation: "次の投稿"
# Authorbox
- id: authorbox_name
translation: "{{ .Name }}について"
# Sidebar
- id: sidebar_warning
translation: "警告"
- id: sidebar_recommendation
translation: "1つ以上のサイドバーウィジェットを有効にしてください。"
# Search widget
- id: search_placeholder
translation: "検索…"
# Languages widget
- id: languages_title
translation: "言語"
# Categories widget
- id: categories_title
translation: "カテゴリー"
# Recent Posts widget
- id: recent_title
translation: "最近の投稿"
# Social widget
- id: social_title
translation: "ソーシャル"
# Tags List widget
- id: tags_title
translation: "タグ"
# Footer
- id: footer_credits
translation:
"このサイトは <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> と \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a> \
テーマで生成されています。"
# 404
- id: 404_title
translation: "404. ページが見つかりません"
- id: 404_text
translation:
"お探しのページは移動されたか削除された、もしくは存在しないようです。検索するか、こちらのページに移動してください: "
- id: 404_linktext
translation: "メインページ"
# No posts empty state
- id: noposts_warning_title
translation: "まだ何も投稿していません!"
- id: noposts_warning_description
translation:
"<b>content</b> 以下のどこかのディレクトリに投稿を追加するとここに表示されます。デフォルトでは(最も投稿の多い)1つのセクション \
だけがメインページに表示されます。"
- id: noposts_warning_tip
translation:
"<b>ヒント:</b> 設定のパラメーター \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b> \
を使って好きな数だけセクションを表示させることもできます。"

View File

@ -1,94 +0,0 @@
# General
- id: read_more
translation: "Ары қарай оқу…"
- id: menu_label
translation: "Мәзір"
- id: sidemenu_title
translation: "Мәзір"
# Post meta
- id: meta_lastmod
translation: "Соңғы өзгеріс"
- id: meta_translations
translation: "Аудармалар"
# Table of Contents
- id: toc_title
translation: "Беттің мазмұны"
# Post nav
- id: post_nav_prev
translation: "Артқа"
- id: post_nav_next
translation: "Алға"
# Authorbox
- id: authorbox_name
translation: "Автор туралы {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "Назар аударыңыз"
- id: sidebar_recommendation
translation: "Бүйірлік тақтаның кем дегенде бір виджетін іске қосыңыз."
# Search widget
- id: search_placeholder
translation: "Іздеу…"
# Languages widget
- id: languages_title
translation: "Тілдер"
# Categories widget
- id: categories_title
translation: "Санаттар"
# Recent Posts widget
- id: recent_title
translation: "Соңғы жарияланымдар"
# Social widget
- id: social_title
translation: "Әлеуметтік желілер"
# Tags List widget
- id: tags_title
translation: "Тегтер"
# Footer
- id: footer_credits
translation:
"<a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> және \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a> тақырыптар \
көмегімен жасалған."
# 404
- id: 404_title
translation: "404. Бет табылмады"
- id: 404_text
translation:
"Сіз іздеген бет жылжытылған, жойылған немесе мүлдем жоқ сияқты. Өтінемін, іздеуді қолданыңыз немесе өтіңіз"
- id: 404_linktext
translation: "Басты бет"
# No posts empty state
- id: noposts_warning_title
translation: "Сізде бірде-бір жарияланым жоқ!"
- id: noposts_warning_description
translation:
"Сіз кез-келген қалтада (бөлімде) <b>content</b > каталогының ішінде бірдеңе жариялағаннан кейін ол пайда болады \
мындасыз. Әдепкі бойынша, басты бетте тек бір бөлім көрсетіледі (ең көп саны бар жарияланым)."
- id: noposts_warning_tip
translation:
"<b>Кеңес:</b> конфигурация опциясы арқылы қалаған бөлімдерді көрсетуге болады \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b>."

View File

@ -1,94 +0,0 @@
# General
- id: read_more
translation: "Читај повеќе…"
- id: menu_label
translation: "Мени"
- id: sidemenu_title
translation: "Мени"
# Post meta
- id: meta_lastmod
translation: "Последна промена"
- id: meta_translations
translation: "Преводи"
# Table of Contents
- id: toc_title
translation: "Содржина"
# Post nav
- id: post_nav_prev
translation: "Претходна"
- id: post_nav_next
translation: "Следна"
# Authorbox
- id: authorbox_name
translation: "За {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "ВНИМАНИЕ"
- id: sidebar_recommendation
translation: "Ве молам, активирајте најмалку еден страничен елемент."
# Search widget
- id: search_placeholder
translation: "Пребарувај…"
# Languages widget
- id: languages_title
translation: "Јазици"
# Categories widget
- id: categories_title
translation: "Категории"
# Recent Posts widget
- id: recent_title
translation: "Скорешни написи"
# Social widget
- id: social_title
translation: "Социјални"
# Tags List widget
- id: tags_title
translation: "Ознаки"
# Footer
- id: footer_credits
translation:
"Направено со <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> и тема \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>."
# 404
- id: 404_title
translation: "404. Страницата не е најдена"
- id: 404_text
translation:
"Страницата која ја баравте личи дека е поместена, избришана или не постои. Ве молам, користите го полето Барај \
или Оди"
- id: 404_linktext
translation: "главна страница"
# No posts empty state
- id: noposts_warning_title
translation: "Сѐ уште немате написи!"
- id: noposts_warning_description
translation:
"Штом објавите напис во било кој директориум (секција) под директориумот <b>content</b>, тој ќе се појави тука. \
Предефинирано само една секција (со најмногу написи) ќе се прикаже на главната страница."
- id: noposts_warning_tip
translation:
"<b>Препорака:</b> Може да прикажете колку сакате секции со конфигурацискиот параметар \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b>."

View File

@ -1,93 +0,0 @@
# General
- id: read_more
translation: "Meer lezen…"
- id: menu_label
translation: "Menu"
- id: sidemenu_title
translation: "Menu"
# Post meta
- id: meta_lastmod
translation: "Laatst gewijzigd"
- id: meta_translations
translation: "Vertalingen"
# Table of Contents
- id: toc_title
translation: "Inhoud"
# Post nav
- id: post_nav_prev
translation: "Vorige"
- id: post_nav_next
translation: "Volgende"
# Authorbox
- id: authorbox_name
translation: "Over {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "WAARSCHUWING"
- id: sidebar_recommendation
translation: "Activeer minstens één sidebar widget."
# Search widget
- id: search_placeholder
translation: "ZOEKEN…"
# Languages widget
- id: languages_title
translation: "Talen"
# Categories widget
- id: categories_title
translation: "Categorieën"
# Recent Posts widget
- id: recent_title
translation: "Recente posts"
# Social widget
- id: social_title
translation: "Social"
# Tags List widget
- id: tags_title
translation: "Tags"
# Footer
- id: footer_credits
translation:
"Gegenereerd met <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> en het \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a> theme."
# 404
- id: 404_title
translation: "404. Pagina niet gevonden"
- id: 404_text
translation: "De pagina is mogelijk verplaatst, verwijderd of bestaat niet. Gebruik de zoekfunctie of \"ga naar\""
- id: 404_linktext
translation: "hoofdpagina"
# No posts empty state
- id: noposts_warning_title
translation: "Er zijn nog geen posts!"
- id: noposts_warning_description
translation:
"Zodra je iets post in welke map (sectie) dan ook onder de <b>content</b> directory, zal het hier verschijnen. \
Slechts één sectie (met de meeste posts) zal standaard getoond worden op de hoofdpagina."
- id: noposts_warning_tip
translation:
"<b>Tip:</b> Je kunt zoveel secties laten zien als je wilt met de \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b> \
config parameter."

View File

@ -1,93 +0,0 @@
# General
- id: read_more
translation: "Leia mais…"
- id: menu_label
translation: "Menu"
- id: sidemenu_title
translation: "Menu"
# Post meta
- id: meta_lastmod
translation: "Última modificação"
- id: meta_translations
translation: "Traduções"
# Table of Contents
- id: toc_title
translation: "Conteúdo da página"
# Post nav
- id: post_nav_prev
translation: "Anterior"
- id: post_nav_next
translation: "Próximo"
# Authorbox
- id: authorbox_name
translation: "Sobre {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "ATENÇÃO"
- id: sidebar_recommendation
translation: "Ative pelo menos um widget da barra lateral."
# Search widget
- id: search_placeholder
translation: "BUSCAR…"
# Languages widget
- id: languages_title
translation: "Línguas"
# Categories widget
- id: categories_title
translation: "Categorias"
# Recent Posts widget
- id: recent_title
translation: "Postagens recentes"
# Social widget
- id: social_title
translation: "Social"
# Tags List widget
- id: tags_title
translation: "Tags"
# Footer
- id: footer_credits
translation:
"Gerado com <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> com o tema \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>."
# 404
- id: 404_title
translation: "404. Página não encontrada"
- id: 404_text
translation:
"A página que você estava procurando parece ter sido excluída ou não existe. Por favor, use a pesquisa ou vá para"
- id: 404_linktext
translation: "página principal"
# No posts empty state
- id: noposts_warning_title
translation: "Você ainda não tem nenhuma postagem!"
- id: noposts_warning_description
translation:
"Quando você criar uma postagem em qualquer pasta (seção) dentro do diretório <b>content</b>, ele vai aparecer aqui. \
Apenas uma seção (a que conter mais postagens) será exibida na página principal por padrão."
- id: noposts_warning_tip
translation:
"<b>Dica:</b> Você pode mostrar quantas seções você quiser com o parâmetro de configuração \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b>."

View File

@ -1,93 +0,0 @@
# General
- id: read_more
translation: "Leia mais…"
- id: menu_label
translation: "Menu"
- id: sidemenu_title
translation: "Menu"
# Post meta
- id: meta_lastmod
translation: "Última modificação"
- id: meta_translations
translation: "Traduções"
# Table of Contents
- id: toc_title
translation: "Conteúdo da página"
# Post nav
- id: post_nav_prev
translation: "Anterior"
- id: post_nav_next
translation: "Próximo"
# Authorbox
- id: authorbox_name
translation: "Sobre {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "ATENÇÃO"
- id: sidebar_recommendation
translation: "Ative pelo menos um widget da barra lateral."
# Search widget
- id: search_placeholder
translation: "BUSCAR…"
# Languages widget
- id: languages_title
translation: "Línguas"
# Categories widget
- id: categories_title
translation: "Categorias"
# Recent Posts widget
- id: recent_title
translation: "Postagens recentes"
# Social widget
- id: social_title
translation: "Social"
# Tags List widget
- id: tags_title
translation: "Tags"
# Footer
- id: footer_credits
translation:
"Gerado com <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> com o tema \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>."
# 404
- id: 404_title
translation: "404. Página não encontrada"
- id: 404_text
translation:
"A página que você estava procurando parece ter sido excluída ou não existe. Por favor, use a pesquisa ou vá para"
- id: 404_linktext
translation: "página principal"
# No posts empty state
- id: noposts_warning_title
translation: "Você ainda não tem nenhuma postagem!"
- id: noposts_warning_description
translation:
"Quando você criar uma postagem em qualquer pasta (seção) dentro do diretório <b>content</b>, ele vai aparecer aqui. \
Apenas uma seção (a que conter mais postagens) será exibida na página principal por padrão."
- id: noposts_warning_tip
translation:
"<b>Dica:</b> Você pode mostrar quantas seções você quiser com o parâmetro de configuração \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b>."

View File

@ -1,95 +0,0 @@
# General
- id: read_more
translation: "Читать далее…"
- id: menu_label
translation: "Меню"
- id: sidemenu_title
translation: "Меню"
# Post meta
- id: meta_lastmod
translation: "Последнее изменение"
- id: meta_translations
translation: "Переводы"
# Table of Contents
- id: toc_title
translation: "Содержимое страницы"
# Post nav
- id: post_nav_prev
translation: "Назад"
- id: post_nav_next
translation: "Вперед"
# Authorbox
- id: authorbox_name
translation: "Об авторе {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "ВНИМАНИЕ"
- id: sidebar_recommendation
translation: "Пожалуйста, активируйте как минимум один виджет боковой панели."
# Search widget
- id: search_placeholder
translation: "ПОИСК…"
# Languages widget
- id: languages_title
translation: "Языки"
# Categories widget
- id: categories_title
translation: "Категории"
# Recent Posts widget
- id: recent_title
translation: "Недавние публикации"
# Social widget
- id: social_title
translation: "Социальные сети"
# Tags List widget
- id: tags_title
translation: "Теги"
# Footer
- id: footer_credits
translation:
"Сгенерировано с использованием <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> \
и темы <a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>."
# 404
- id: 404_title
translation: "404. Страница не найдена"
- id: 404_text
translation:
"Страница, которую вы искали, по-видимому, была перемещена, удалена или не существовала вообще. Пожалуйста, \
используйте поиск или перейдите на"
- id: 404_linktext
translation: "главную страницу"
# No posts empty state
- id: noposts_warning_title
translation: "У вас нет ни одной публикации!"
- id: noposts_warning_description
translation:
"Как только вы опубликуете что-нибудь в любой папке (разделе) внутри директории <b>content</b>, оно появится \
здесь. По-умолчанию на главной странице будет отображаться только один раздел (с наибольшим количеством \
публикаций)."
- id: noposts_warning_tip
translation:
"<b>Совет:</b> Вы можете отображать сколько угодно разделов с помощью параметра конфигурации \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b>."

View File

@ -1,94 +0,0 @@
# General
- id: read_more
translation: "Läs mer…"
- id: menu_label
translation: "Meny"
- id: sidemenu_title
translation: "Meny"
# Post meta
- id: meta_lastmod
translation: "Senast ändrad"
- id: meta_translations
translation: "Översättningar"
# Table of Contents
- id: toc_title
translation: "Sidinnehåll"
# Post nav
- id: post_nav_prev
translation: "Föregående"
- id: post_nav_next
translation: "Nästa"
# Authorbox
- id: authorbox_name
translation: "Om {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "VARNING"
- id: sidebar_recommendation
translation: "Vänligen aktivera minst en sidopanel-widget."
# Search widget
- id: search_placeholder
translation: "SÖK…"
# Languages widget
- id: languages_title
translation: "Språk"
# Categories widget
- id: categories_title
translation: "Kategorier"
# Recent Posts widget
- id: recent_title
translation: "Senaste inlägg"
# Social widget
- id: social_title
translation: "Sociala medier"
# Tags List widget
- id: tags_title
translation: "Taggar"
# Footer
- id: footer_credits
translation:
"Genererad med <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> och \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a> tema."
# 404
- id: 404_title
translation: "404. Sidan hittades inte"
- id: 404_text
translation:
"Sidan du letade efter verkar ha flyttats, raderats eller finns inte. Vänligen använd sökning eller gå till"
- id: 404_linktext
translation: "huvudsidan"
# No posts empty state
- id: noposts_warning_title
translation: "Du har inga inlägg än!"
- id: noposts_warning_description
translation:
"När du publicerar något i någon mapp (sektion) under <b>content</b> katalogen kommer det att visas här. Endast en \
sektion (med flest inlägg) visas på huvudsidan som standard."
- id: noposts_warning_tip
translation:
"<b>Tips:</b> Du kan visa så många sektioner du vill med \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b> \
konfigurationsparametern."

View File

@ -1,93 +0,0 @@
# General
- id: read_more
translation: "Đọc tiếp…"
- id: menu_label
translation: "Menu"
- id: sidemenu_title
translation: "Menu"
# Post meta
- id: meta_lastmod
translation: "Cập nhật lần cuối"
- id: meta_translations
translation: "Bản dịch"
# Table of Contents
- id: toc_title
translation: "Mục lục"
# Post nav
- id: post_nav_prev
translation: "Trước"
- id: post_nav_next
translation: "Sau"
# Authorbox
- id: authorbox_name
translation: "Về {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "CÁNH BÁO"
- id: sidebar_recommendation
translation: "Vui lòng tạo hoặc kích hoạt tối thiểu một thành phần trong thanh bên."
# Search widget
- id: search_placeholder
translation: "TÌM KIẾM…"
# Languages widget
- id: languages_title
translation: "Ngôn ngữ"
# Categories widget
- id: categories_title
translation: "Chủ đề"
# Recent Posts widget
- id: recent_title
translation: "Bài viết gần đây"
# Social widget
- id: social_title
translation: "Xã hội"
# Tags List widget
- id: tags_title
translation: "Thẻ"
# Footer
- id: footer_credits
translation:
"Được tạo từ <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> sử dụng với \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>."
# 404
- id: 404_title
translation: "404. Không tìm thấy trang này"
- id: 404_text
translation:
"Trang bạn đang tìm kiếm đã bị xoá hoặc không tồn tại. Vui lòng sử dụng chức năng tìm kiếm"
- id: 404_linktext
translation: "trang chủ"
# No posts empty state
- id: noposts_warning_title
translation: "Bạn chưa có bài viết nào!"
- id: noposts_warning_description
translation:
"Khi bạn xuất bản bất kì bài viết nào trong bất kì thư mục nào trong thư mục <b>content</b>, nó sẽ xuất hiện tại đây.\
Mặc định chỉ một phần của bài viết sẽ được xuất hiện trong trang chủ cho hầu hết các bài viết."
- id: noposts_warning_tip
translation:
"<b>Gợi ý:</b> Bạn có thể hiện bao nhiêu phần tuỳ ý bằng tham số parameter \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b>."

View File

@ -1,92 +0,0 @@
# General
- id: read_more
translation: "阅读全文…"
- id: menu_label
translation: "菜单"
- id: sidemenu_title
translation: "菜单"
# Post meta
- id: meta_lastmod
translation: "最后修改"
- id: meta_translations
translation: "翻译"
# Table of Contents
- id: toc_title
translation: "目录"
# Post nav
- id: post_nav_prev
translation: "上一篇"
- id: post_nav_next
translation: "下一篇"
# Authorbox
- id: authorbox_name
translation: "关于 {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "警告"
- id: sidebar_recommendation
translation: "请至少选择一个侧边栏组件"
# Search widget
- id: search_placeholder
translation: "搜索…"
# Languages widget
- id: languages_title
translation: "语言"
# Categories widget
- id: categories_title
translation: "分类"
# Recent Posts widget
- id: recent_title
translation: "近期文章"
# Social widget
- id: social_title
translation: "社交"
# Tags List widget
- id: tags_title
translation: "标签"
# Footer
- id: footer_credits
translation: "基于 <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> 引擎和 \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a> 主题"
# 404
- id: 404_title
translation: "404. 抱歉,找不到您要找的页面"
- id: 404_text
translation: "您要找的页面可能已经被移除、删除或不存在,不妨去首页搜索一下吧。"
- id: 404_linktext
translation: "回到首页"
# No posts empty state
- id: noposts_warning_title
translation: "目前还没有任何内容!"
- id: noposts_warning_description
translation:
"在 <b>content</b> 目录下的任意文件夹(板块)中发布内容后,它就会显示在这里。\
只有一个板块的内容(默认文章最多的文件夹)会显示在主页面上"
- id: noposts_warning_tip
translation:
"<b>提示:</b> 您可以通过 \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b> \
参数来控制展示您想要展示的板块内容。"

View File

@ -1,93 +0,0 @@
# General
- id: read_more
translation: "閱讀全文…"
- id: menu_label
translation: "選單"
- id: sidemenu_title
translation: "選單"
# Post meta
- id: meta_lastmod
translation: "最後修改"
- id: meta_translations
translation: "翻譯"
# Table of Contents
- id: toc_title
translation: "內文"
# Post nav
- id: post_nav_prev
translation: "前一則"
- id: post_nav_next
translation: "下一則"
# Authorbox
- id: authorbox_name
translation: "關於 {{ .Name }}"
# Sidebar
- id: sidebar_warning
translation: "警告"
- id: sidebar_recommendation
translation: "請至少選擇一個側邊欄元件"
# Search widget
- id: search_placeholder
translation: "搜尋…"
# Languages widget
- id: languages_title
translation: "語言"
# Categories widget
- id: categories_title
translation: "分類"
# Recent Posts widget
- id: recent_title
translation: "近期文章"
# Social widget
- id: social_title
translation: "社群"
# Tags List widget
- id: tags_title
translation: "標籤"
# Footer
- id: footer_credits
translation:
"使用 <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> 技術與 \
<a href=\"https://github.com/Vimux/Mainroad/\" rel=\"nofollow noopener\" target=\"_blank\">Mainroad</a>主題"
# 404
- id: 404_title
translation: "404. 糟糕!我們似乎無法找到您要找的頁面。"
- id: 404_text
translation: "您要找的頁面可能已經被移除、刪除或是不存在。請回到首頁或是使用搜尋功能。"
- id: 404_linktext
translation: "回到首頁"
# No posts empty state
- id: noposts_warning_title
translation: "目前還沒有任何内容!"
- id: noposts_warning_description
translation:
"在 <b>content</b> 目錄下的任意資料夾(區塊)中發布内容後,就會被顯示在此處。\
其中只有一個區塊的内容(預設是擁有文章數量最多的資料夾)會被顯示在主要頁面上"
- id: noposts_warning_tip
translation:
"<b>提示:</b> 您可以透過 \
<b><a href=\"https://gohugo.io/functions/where/#mainsections\" rel=\"nofollow noopener\" target=\"_blank\">mainSections</a></b> \
參數來控制所要展示的區塊內容。"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

View File

@ -1,8 +0,0 @@
{{ define "main" }}
<main class="main" role="main">
<div class="warning">
<h1 class="warning__headline">{{ T "404_title" }}</h1>
<p class="warning__text">{{ T "404_text" }} <a href="{{ "" | relLangURL }}">{{ T "404_linktext" }}</a>.</p>
</div>
</main>
{{ end }}

View File

@ -1,70 +0,0 @@
<!DOCTYPE html>
<html class="no-js" lang="{{ .Site.Language.Lang }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ block "title" . }}{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}{{ end }}</title>
<script>(function(d,e){d[e]=d[e].replace("no-js","js");})(document.documentElement,"className");</script>
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Params.Description }}{{ end }}">
{{- if .Site.Params.opengraph }}
{{ template "_internal/opengraph.html" . }}
{{- end }}
{{- if .Site.Params.schema }}
{{ template "_internal/schema.html" . }}
{{- end }}
{{- if .Site.Params.twitter_cards }}
{{ template "_internal/twitter_cards.html" . }}
{{- end }}
{{- $googleFontsLink := .Site.Params.googleFontsLink | default "https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" }}
{{- if hasPrefix $googleFontsLink "https://fonts.googleapis.com/" }}
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link rel="stylesheet" {{ printf `href="%s"` $googleFontsLink | safeHTMLAttr }}>
{{- end }}
{{ $style := resources.Get "css/style.css" | resources.ExecuteAsTemplate "css/style.css" . -}}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ . | relURL }}">
{{- end }}
{{- with .OutputFormats.Get "rss" }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{- end }}
<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}">
{{- if not .Site.IsServer }}
{{- if hasPrefix .Site.GoogleAnalytics "G-" }}
{{ template "_internal/google_analytics.html" . }}
{{- else }}
{{ template "_internal/google_analytics_async.html" . }}
{{- end }}
{{- end }}
</head>
<body class="body">
<div class="container container--outer">
{{ block "header" . }}{{ partial "header.html" . }}{{ end }}
<div class="wrapper flex">
<div class="primary">
{{ block "main" . }}
{{ with .Content }}
<div class="content main__content clearfix">
{{ . }}
</div>
{{ end }}
{{ end }}
</div>
{{ block "sidebar" . }}{{ partial "sidebar.html" . }}{{ end }}
</div>
{{ block "footer" . }}{{ partial "footer.html" . }}{{ end }}
</div>
<script async defer src="{{ "js/menu.js" | relURL }}"></script>
{{ range .Site.Params.customJS -}}
<script src="{{ . | relURL }}"></script>
{{- end }}
{{- partial "mathjax.html" . -}}
</body>
</html>

View File

@ -1,18 +0,0 @@
{{ define "main" }}
<main class="main list" role="main">
{{- with .Title }}
<header class="main__header">
<h1 class="main__title">{{ . }}</h1>
</header>
{{- end }}
{{- with .Content }}
<div class="content main__content clearfix">
{{ . }}
</div>
{{- end }}
{{- range .Paginator.Pages }}
{{- .Render "summary" }}
{{- end }}
</main>
{{ partial "pagination.html" . }}
{{ end }}

View File

@ -1,28 +0,0 @@
{{ define "main" }}
<main class="main" role="main">
<article class="post">
<header class="post__header">
<h1 class="post__title">{{ .Title }}</h1>
{{- with .Params.lead }}
<p class="post__lead">{{ . }}</p>
{{- end }}
{{ with partial "post_meta.html" . -}}
<div class="post__meta meta">{{ . }}</div>
{{- end }}
</header>
{{ partial "post_thumbnail.html" (dict "class" "post" "page" .) }}
{{- partial "post_toc.html" . -}}
<div class="content post__content clearfix">
{{ .Content }}
</div>
{{- if .Params.tags }}
<footer class="post__footer">
{{ partial "post_tags.html" . }}
</footer>
{{- end }}
</article>
</main>
{{ partial "authorbox.html" . }}
{{ partial "pager.html" . }}
{{ partial "comments.html" . }}
{{ end }}

View File

@ -1,26 +0,0 @@
<article class="list__item post">
{{ partial "post_thumbnail.html" (dict "class" "list" "page" .) }}
<header class="list__header">
<h2 class="list__title post__title">
<a href="{{ .RelPermalink }}" rel="bookmark">
{{ .Title }}
</a>
</h2>
{{- with .Params.lead }}
<p class="list__lead post__lead">{{ . }}</p>
{{- end }}
{{ with partial "post_meta.html" . -}}
<div class="list__meta meta">{{ . }}</div>
{{- end }}
</header>
<div class="content list__excerpt post__content clearfix">
{{ .Summary }}
</div>
{{- if .Site.Params.readmore }}
{{- if .Truncated }}
<div class="list__footer clearfix">
<a class="list__footer-readmore btn" href="{{ .RelPermalink }}">{{ T "read_more" }}</a>
</div>
{{- end }}
{{- end }}
</article>

View File

@ -1,24 +0,0 @@
{{ define "main" }}
<main class="main list" role="main">
{{- with .Content }}
<div class="content main__content clearfix">
{{ . }}
</div>
{{- end }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{- range $paginator.Pages }}
{{- .Render "summary" }}
{{- end }}
{{- if and (eq $paginator.TotalNumberOfElements 0) (not $.Content) }}
<div class="warning">
{{ partial "svg/files.svg" (dict "class" "warning__icon") }}
<h3 class="warning__headline">{{ T "noposts_warning_title" | safeHTML }}</h3>
<div class="warning__text">
<p class="warning__description">{{ T "noposts_warning_description" | safeHTML }}</p>
<p class="warning__tip">{{ T "noposts_warning_tip" | safeHTML }}</p>
</div>
</div>
{{ end }}
</main>
{{ partial "pagination.html" . }}
{{ end }}

View File

@ -1,24 +0,0 @@
{{- if .Param "authorbox" }}
<div class="authorbox clearfix">
{{- if and (not .Site.Author.avatar) (not .Site.Author.name) (not .Site.Author.bio) }}
<p class="authorbox__warning">
<strong>WARNING:</strong> Authorbox is activated, but [Author] parameters are not specified.
</p>
{{- end }}
{{- with .Site.Author.avatar }}
<figure class="authorbox__avatar">
<img alt="{{ $.Site.Author.name }} avatar" src="{{ $.Site.Author.avatar | relURL }}" class="avatar" height="90" width="90">
</figure>
{{- end }}
{{- with .Site.Author.name }}
<div class="authorbox__header">
<span class="authorbox__name">{{ T "authorbox_name" (dict "Name" .) }}</span>
</div>
{{- end }}
{{- with .Site.Author.bio }}
<div class="authorbox__description">
{{ . | markdownify }}
</div>
{{- end }}
</div>
{{- end }}

View File

@ -1,5 +0,0 @@
{{ if and .Site.DisqusShortname (index .Params "comments" | default "true") (not .Site.IsServer) }}
<section class="comments">
{{ template "_internal/disqus.html" . }}
</section>
{{ end }}

View File

@ -1,9 +0,0 @@
<footer class="footer">
<div class="container footer__container flex">
{{ partial "footer_links.html" . }}
<div class="footer__copyright">
&copy; {{ now.Format "2006" }} {{ .Site.Params.copyright | default .Site.Title }}.
<span class="footer__copyright-credits">{{ T "footer_credits" | safeHTML }}</span>
</div>
</div>
</footer>

View File

@ -1,8 +0,0 @@
{{- with .Site.Menus.footer }}
<div class="footer__links">
{{ range $key, $value := . }}
{{- if ne $key 0 }} | {{ end -}}
<a class="footer__link" href="{{ $value.URL }}">{{ $value.Name }}</a>
{{- end }}
</div>
{{- end }}

View File

@ -1,6 +0,0 @@
<header class="header">
<div class="container header__container">
{{ partial "logo.html" . }}
{{ partial "menu.html" . }}
</div>
</header>

View File

@ -1,24 +0,0 @@
{{- $logoTitle := .Site.Params.logo.title | default .Site.Title -}}
{{- $logoSubtitle := .Site.Params.logo.subtitle | default .Site.Params.subtitle -}}
{{- $logoImage := .Site.Params.logo.image -}}
{{- if or $logoTitle $logoImage }}
{{/* Defined when logo is mixed (image + text) */}}
{{- $logoMix := and $logoImage $logoTitle -}}
<div class="logo{{ with $logoMix }} logo--mixed{{ end }}">
<a class="logo__link" href="{{ "" | relLangURL }}"{{ with $logoTitle }} title="{{ . }}"{{ end }} rel="home">
{{ with $logoImage -}}
<div class="logo__item logo__imagebox">
<img class="logo__img" src="{{ . | relURL }}">
</div>
{{- end -}}
{{ with $logoTitle -}}
<div class="logo__item logo__text">
<div class="logo__title">{{ . }}</div>
{{ with $logoSubtitle }}<div class="logo__tagline">{{ . }}</div>{{ end }}
</div>
{{- end }}
</a>
</div>
{{- end }}

View File

@ -1,3 +0,0 @@
{{ if and .IsPage (eq (.Param "mathjax") true) }}
<script src="{{ .Param "mathjaxPath" | default "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js" }}{{ with .Param "mathjaxConfig" | default "TeX-AMS-MML_HTMLorMML" }}?config={{ . }}{{ end }}" async></script>
{{ end }}

View File

@ -1,23 +0,0 @@
{{- if .Site.Menus.main }}
<nav class="menu">
<button class="menu__btn" aria-haspopup="true" aria-expanded="false" tabindex="0">
<span class="menu__btn-title" tabindex="-1">{{ T "menu_label" }}</span>
</button>
<ul class="menu__list">
{{- $currentNode := . }}
{{- range .Site.Menus.main }}
{{- if .Name }}
<li class="menu__item{{ if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .) }} menu__item--active{{ end }}">
<a class="menu__link" href="{{ .URL }}">
{{ .Pre }}
<span class="menu__text">{{ .Name }}</span>
{{ .Post }}
</a>
</li>
{{- end }}
{{- end }}
</ul>
</nav>
{{ else -}}
<div class="divider"></div>
{{- end }}

View File

@ -1,22 +0,0 @@
{{- if .Param "pager" }}
{{- if or (.PrevInSection) (.NextInSection) }}
<nav class="pager flex">
{{- if .PrevInSection }}
<div class="pager__item pager__item--prev">
<a class="pager__link" href="{{ .PrevInSection.RelPermalink }}" rel="prev">
<span class="pager__subtitle">«&thinsp;{{ T "post_nav_prev" }}</span>
<p class="pager__title">{{ .PrevInSection.Title }}</p>
</a>
</div>
{{- end }}
{{- if .NextInSection }}
<div class="pager__item pager__item--next">
<a class="pager__link" href="{{ .NextInSection.RelPermalink }}" rel="next">
<span class="pager__subtitle">{{ T "post_nav_next" }}&thinsp;»</span>
<p class="pager__title">{{ .NextInSection.Title }}</p>
</a>
</div>
{{- end }}
</nav>
{{- end }}
{{- end }}

View File

@ -1,13 +0,0 @@
{{- if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
<div class="pagination">
{{- if .Paginator.HasPrev }}
<a class="pagination__item pagination__item--prev btn" href="{{ .Paginator.Prev.URL }}">«</a>
{{- end }}
<span class="pagination__item pagination__item--current">
{{- .Paginator.PageNumber }}/{{ .Paginator.TotalPages -}}
</span>
{{- if .Paginator.HasNext }}
<a class="pagination__item pagination__item--next btn" href="{{ .Paginator.Next.URL }}">»</a>
{{- end }}
</div>
{{- end }}

View File

@ -1,7 +0,0 @@
{{- $root := . -}}
{{- with .Param "post_meta" -}}
{{- range $field := . -}}
{{- $p := printf "post_meta/%s.html" $field -}}
{{- partial $p $root -}}
{{- end -}}
{{- end -}}

View File

@ -1,6 +0,0 @@
{{- if .Site.Author.name -}}
<div class="meta__item-author meta__item">
{{ partial "svg/author.svg" (dict "class" "meta__icon") -}}
<span class="meta__text">{{ .Site.Author.name }}</span>
</div>
{{- end -}}

View File

@ -1,16 +0,0 @@
{{- $taxo := "categories" -}}
{{- with .Param $taxo -}}
<div class="meta__item-categories meta__item">
{{- partial "svg/category.svg" (dict "class" "meta__icon") -}}
<span class="meta__text">
{{- range $index, $category := . }}
{{- $url := urls.Parse ($category | urlize) -}}
{{- $path := $url.Path -}}
{{- with $.Site.GetPage (printf "/%s/%s" $taxo $path) }}
{{- if gt $index 0 }}, {{ end -}}
<a class="meta__link" href="{{ .RelPermalink }}" rel="category">{{ .Title }}</a>
{{- end }}
{{- end }}
</span>
</div>
{{- end }}

View File

@ -1,13 +0,0 @@
{{- if not .Date.IsZero }}
<div class="meta__item-datetime meta__item">
{{ partial "svg/time.svg" (dict "class" "meta__icon") -}}
<time class="meta__text" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{- .Date | dateFormat (.Site.Params.dateformat | default "January 02, 2006") -}}
</time>
{{- if ne .Date .Lastmod }}
<time class="meta__text" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">(
{{- T "meta_lastmod" }}: {{ .Lastmod | dateFormat (.Site.Params.dateformat | default "January 02, 2006") -}}
)</time>
{{- end -}}
</div>
{{- end }}

View File

@ -1,10 +0,0 @@
{{- if .IsTranslated }}
<div class="meta__item-translations meta__item">
<span class="meta__text">
{{- T "meta_translations" }}: {{ range $index, $translation := .Translations }}
{{- if gt $index 0 }}, {{ end -}}
<a class="meta__link" href="{{ .RelPermalink }}">{{ .Lang | upper }}</a>
{{- end }}
</span>
</div>
{{- end }}

View File

@ -1,14 +0,0 @@
{{- if .Params.tags }}
<div class="post__tags tags clearfix">
{{ partial "svg/tag.svg" (dict "class" "tags__badge") }}
<ul class="tags__list">
{{- range .Params.tags }}
<li class="tags__item">
<a class="tags__link btn" href="{{ "tags/" | relLangURL }}{{ . | urlize }}/" rel="tag">
{{- . -}}
</a>
</li>
{{- end }}
</ul>
</div>
{{- end }}

View File

@ -1,19 +0,0 @@
{{- if $thumbnail := .page.Params.thumbnail }}
{{- $class := .class }}
{{- $visibility := .page.Site.Params.thumbnail.visibility | default (slice "list" "post") }}
{{- $valueType := printf "%T" $thumbnail -}}
{{- $isMap := in $valueType "map" -}}
{{- if $isMap }}
{{ $visibility = default (slice "list" "post") (default .page.Site.Params.thumbnail.visibility $thumbnail.visibility) }}
{{ $thumbnail = $thumbnail.src }}
{{- end }}
{{- if in $visibility $class }}
<figure class="{{ with $class }}{{ . }}__thumbnail {{ end }}thumbnail">
{{ if eq $class "list" }}<a class="thumbnail__link" href="{{ .page.RelPermalink }}">{{ end }}
<img class="thumbnail__image" src="{{ $thumbnail | relURL }}" alt="{{ .page.Title }}">
{{ if eq $class "list" }}</a>{{ end }}
</figure>
{{- end }}
{{- end }}

View File

@ -1,10 +0,0 @@
{{- if .Param "toc" }}
{{- if gt (len .TableOfContents) 32 }}<!-- Issue #247 -->
<div class="post__toc toc">
<div class="toc__title">{{ T "toc_title" }}</div>
<div class="toc__menu">
{{ .TableOfContents }}
</div>
</div>
{{- end }}
{{- end }}

View File

@ -1,30 +0,0 @@
{{- $sidebar := false }}
{{- if eq .Kind "home" -}}
{{ $sidebar = (default .Site.Params.sidebar.home .Params.sidebar) }}
{{- else if eq .Kind "page" -}}
{{ $sidebar = (default .Site.Params.sidebar.single .Params.sidebar) }}
{{- else -}}
{{ $sidebar = (default .Site.Params.sidebar.list .Params.sidebar) }}
{{ end }}
{{- if $sidebar -}}
<aside class="sidebar{{ if eq $sidebar "left" }} sidebar--left{{ end }}">
{{- $root := . }}
{{- with (default .Site.Params.sidebar.widgets .Params.widgets) -}}
{{- range $widget := . }}
{{- $widgetPath := printf "widgets/%s.html" $widget }}
{{- $widgetCached := false }}
{{- if isset $.Site.Params "widgets" }}
{{- $widgetCached = (index $.Site.Params.widgets $widget).cached }}
{{- end }}
{{- if eq $widgetCached true }}
{{- partialCached $widgetPath $root }}
{{- else }}
{{- partial $widgetPath $root }}
{{- end }}
{{- end }}
{{- else }}
<p class="sidebar__warning"><strong>{{ T "sidebar_warning" }}:</strong><br>{{ T "sidebar_recommendation" }}</p>
{{- end }}
</aside>
{{- end }}

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-author" width="16" height="16" viewBox="0 0 12 16"><path d="M6 1c2.2 0 3.5 2 3.5 4.5C9.5 7 8.9 8.2 8 9c2.9.8 4 2.5 4 5v1H0v-1c0-2.5 1.1-4.2 4-5-.9-.8-1.5-2-1.5-3.5C2.5 3 3.8 1 6 1z"/></svg>

Before

Width:  |  Height:  |  Size: 245 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-bitbucket" width="24" height="24" viewBox="0 0 256 231"><path d="M8.308 0A8.202 8.202 0 0 0 .106 9.516l34.819 211.373a11.155 11.155 0 0 0 10.909 9.31h167.04a8.202 8.202 0 0 0 8.201-6.89l34.82-213.752a8.202 8.202 0 0 0-8.203-9.514L8.308 0zm146.616 152.768h-53.315l-14.436-75.42h80.67l-12.919 75.42z"/></svg>

Before

Width:  |  Height:  |  Size: 362 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-category" width="16" height="16" viewBox="0 0 16 16"><path d="m7 2l1 2h8v11h-16v-13z"/></svg>

Before

Width:  |  Height:  |  Size: 149 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-mail" width="24" height="24" viewBox="0 0 416 288"><path d="m0 16v256 16h16 384 16v-16-256-16h-16-384-16zm347 16-139 92.5-139-92.5zm-148 125.5 9 5.5 9-5.5 167-111.5v210h-352v-210z"/></svg>

Before

Width:  |  Height:  |  Size: 244 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-facebook" width="24" height="24" viewBox="0 0 352 352"><path d="m0 32v288c0 17.5 14.5 32 32 32h288c17.5 0 32-14.5 32-32v-288c0-17.5-14.5-32-32-32h-288c-17.5 0-32 14.5-32 32zm320 0v288h-83v-108h41.5l6-48h-47.5v-31c0-14 3.5-23.5 23.5-23.5h26v-43.5c-4.4-.6-19.8-1.5-37.5-1.5-36.9 0-62 22.2-62 63.5v36h-42v48h42v108h-155v-288z"/></svg>

Before

Width:  |  Height:  |  Size: 387 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-files" width="96" height="96" viewBox="0 0 384 384"><path d="m368 64h-224-16v16 288 16h16 224 16v-16-288-16zm-16 288h-192v-256h192zm-320-320h192v16h32v-32-16h-16-224-16v16 288 16h16 96v-32h-80zm144 272h160v-32h-160zm0-64h160v-32h-160zm0-64h160v-32h-160zm-128 64h64v-32h-64zm0-64h64v-32h-64zm0-64h64v-32h-64z"/></svg>

Before

Width:  |  Height:  |  Size: 372 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-github" width="24" height="24" viewBox="0 0 384 374"><path d="m192 0c-106.1 0-192 85.8-192 191.7 0 84.7 55 156.6 131.3 181.9 9.6 1.8 13.1-4.2 13.1-9.2 0-4.6-.2-16.6-.3-32.6-53.4 11.6-64.7-25.7-64.7-25.7-8.7-22.1-21.3-28-21.3-28-17.4-11.9 1.3-11.6 1.3-11.6 19.3 1.4 29.4 19.8 29.4 19.8 17.1 29.3 44.9 20.8 55.9 15.9 1.7-12.4 6.7-20.8 12.2-25.6-42.6-4.8-87.5-21.3-87.5-94.8 0-20.9 7.5-38 19.8-51.4-2-4.9-8.6-24.3 1.9-50.7 0 0 16.1-5.2 52.8 19.7 15.3-4.2 31.7-6.4 48.1-6.5 16.3.1 32.7 2.2 48.1 6.5 36.7-24.8 52.8-19.7 52.8-19.7 10.5 26.4 3.9 45.9 1.9 50.7 12.3 13.4 19.7 30.5 19.7 51.4 0 73.7-44.9 89.9-87.7 94.6 6.9 5.9 13 17.6 13 35.5 0 25.6-.2 46.3-.2 52.6 0 5.1 3.5 11.1 13.2 9.2 76.2-25.5 131.2-97.3 131.2-182 0-105.9-86-191.7-192-191.7z"/></svg>

Before

Width:  |  Height:  |  Size: 804 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-gitlab" width="24" height="24" viewBox="0 0 265 265"><path d="M128.075 236.075l47.104-144.97H80.97l47.104 144.97z M14.956 91.104L.642 135.16a9.752 9.752 0 0 0 3.542 10.903l123.891 90.012-113.12-144.97z M14.956 91.105H80.97L52.601 3.79c-1.46-4.493-7.816-4.492-9.275 0l-28.37 87.315z M241.194 91.104l14.314 44.056a9.752 9.752 0 0 1-3.543 10.903l-123.89 90.012 113.119-144.97z M241.194 91.105h-66.015l28.37-87.315c1.46-4.493 7.816-4.492 9.275 0l28.37 87.315z"/></svg>

Before

Width:  |  Height:  |  Size: 520 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-instagram" width="24" height="24" viewBox="0 0 256 256"><circle cx="193" cy="59" r="15"/><path fill-rule="evenodd" d="M101 0h54c41 0 58.4 3.9 74.5 17C256.2 37.5 256 74.8 256 97.7v60c0 26.7 0 60.4-26.5 81.4-16 13.4-33.5 16.9-74.5 16.9h-54c-41 0-57.5-3.5-74.5-16.9C1 218.9.5 186.3.1 160.5L0 155V97.7c0-23-.2-60.2 26.5-80.7C45 2 60 0 101 0zm4.9 23h44.3c45.8 0 58.3 3.5 70.3 17.5 11.8 13.2 12 30.1 12.5 62.9V156c.2 20.8.3 45.8-12.5 59.5-12 14-24.5 17.5-70.3 17.5h-44.3c-45.9 0-57.3-3.5-70.4-17.5-12.2-13-12.3-36.5-12.4-56.7v-55.6c.4-32.6.7-49.6 12.4-62.7C48 26.5 60 23 105.9 23zm19.6 144.5a42 42 0 1 0 0-84 42 42 0 0 0 0 84zm0 22.5a64.5 64.5 0 1 0 0-129 64.5 64.5 0 0 0 0 129z"/></svg>

Before

Width:  |  Height:  |  Size: 737 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-linkedin" width="24" height="24" viewBox="0 0 352 352"><path d="M0,40v272c0,21.9,18.1,40,40,40h272c21.9,0,40-18.1,40-40V40c0-21.9-18.1-40-40-40H40C18.1,0,0,18.1,0,40z M312,32 c4.6,0,8,3.4,8,8v272c0,4.6-3.4,8-8,8H40c-4.6,0-8-3.4-8-8V40c0-4.6,3.4-8,8-8H312z M59.5,87c0,15.2,12.3,27.5,27.5,27.5 c15.2,0,27.5-12.3,27.5-27.5c0-15.2-12.3-27.5-27.5-27.5C71.8,59.5,59.5,71.8,59.5,87z M187,157h-1v-21h-45v152h47v-75 c0-19.8,3.9-39,28.5-39c24.2,0,24.5,22.4,24.5,40v74h47v-83.5c0-40.9-8.7-72-56.5-72C208.5,132.5,193.3,145.1,187,157z M64,288h47.5 V136H64V288z"/></svg>

Before

Width:  |  Height:  |  Size: 612 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-tag" width="16" height="16" viewBox="0 0 32 32"><path d="M32 19c0 1-1 2-1 2L21 31s-1 1-2 1-2-1-2-1L2 16c-1-1-1.4-2-1.4-2S0 12.5 0 11V3C0 1.5.8.8.8.8S1.5 0 3 0h8c1.5 0 3 .6 3 .6S15 1 16 2l15 15s1 1 1 2zM7 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/></svg>

Before

Width:  |  Height:  |  Size: 300 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-telegram" width="24" height="24" viewBox="0 0 132 110"><path fill="#ddd" d="M50 103c-4 0-3-1-5-5L34 60l88-52"/><path fill="#aaa" d="M50 103c3 0 4-1 6-3l16-16-20-12"/><path fill="#fff" d="M52 72l48 36c6 3 10 2 11-5l20-93c2-8-3-11-8-9L7 45c-8 4-8 8-1 10l29 9 69-43c3-2 6-1 4 1"/></svg>

Before

Width:  |  Height:  |  Size: 339 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-time" width="16" height="14" viewBox="0 0 30 28"><path d="M15 0C7 0 1 6 1 14s6 14 14 14 14-6 14-14S23 0 15 0zm0 25C9 25 4 20 4 14S9 3 15 3s11 5 11 11-5 11-11 11zm1-18h-2v8.4l6.8 4.4L22 18l-6-3.8V7z"/></svg>

Before

Width:  |  Height:  |  Size: 262 B

View File

@ -1 +0,0 @@
<svg class="{{ with .class }}{{ . }} {{ end }}icon icon-twitter" width="24" height="24" viewBox="0 0 384 312"><path d="m384 36.9c-14.1 6.3-29.3 10.5-45.2 12.4 16.3-9.7 28.8-25.2 34.6-43.6-15.2 9-32.1 15.6-50 19.1-14.4-15.2-34.9-24.8-57.5-24.8-43.5 0-78.8 35.3-78.8 78.8 0 6.2.7 12.2 2 17.9-65.5-3.3-123.5-34.6-162.4-82.3-6.7 11.6-10.6 25.2-10.6 39.6 0 27.3 13.9 51.4 35 65.6-12.9-.4-25.1-4-35.7-9.9v1c0 38.2 27.2 70 63.2 77.2-6.6 1.8-13.6 2.8-20.8 2.8-5.1 0-10-.5-14.8-1.4 10 31.3 39.1 54.1 73.6 54.7-27 21.1-60.9 33.7-97.8 33.7-6.4 0-12.6-.4-18.8-1.1 34.9 22.4 76.3 35.4 120.8 35.4 144.9 0 224.1-120 224.1-224.1 0-3.4-.1-6.8-.2-10.2 15.4-11.1 28.7-25 39.3-40.8z"/></svg>

Before

Width:  |  Height:  |  Size: 671 B

View File

@ -1,20 +0,0 @@
{{- $categories := .Site.Taxonomies.categories }}
{{- if gt (len $categories) 0 }}
<div class="widget-categories widget">
<h4 class="widget__title">{{ T "categories_title" }}</h4>
<div class="widget__content">
<ul class="widget__list">
{{- range $name, $taxonomy := $categories }}
{{- with $.Site.GetPage (printf "/categories/%s" $name) }}
<li class="widget__item">
<a class="widget__link" href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- if .Site.Params.widgets.categories_counter }}&nbsp;
<span class="widget__counter widget__counter--bubble">{{ $taxonomy.Count }}</span>
{{ end -}}
</li>
{{- end }}
{{- end }}
</ul>
</div>
</div>
{{- end }}

View File

@ -1,10 +0,0 @@
<!-- DEPRECATED WIDGET! DON'T USE IT! -->
<div class="widget-search widget">
<form class="widget-search__form" role="search" method="get" action="https://duckduckgo.com/">
<label>
<input class="widget-search__field" type="search" placeholder="{{ T "search_placeholder" }}" value="" name="q" aria-label="{{ T "search_placeholder" }}">
</label>
<input class="widget-search__submit" type="submit" value="Search">
<input type="hidden" name="sites" value="{{ .Site.BaseURL }}"/>
</form>
</div>

View File

@ -1,20 +0,0 @@
{{- $translations := .Site.Home.AllTranslations }}
{{- if and .Site.IsMultiLingual (gt (len $translations) 0) }}
<div class="widget-languages widget">
<h4 class="widget__title">{{ T "languages_title" }}</h4>
<div class="widget__content">
<ul class="widget__list">
{{- range $translations }}
<li class="widget__item">
<a class="widget-languages__link widget__link" href="{{ .RelPermalink }}">
<span class="widget-languages__link-btn widget__link-btn btn">{{ .Language | upper }}</span>
{{- with .Language.LanguageName }}
<span class="widget-languages__link-text widget__link-text">{{ . | title | humanize }}</span>
{{- end }}
</a>
</li>
{{- end }}
</ul>
</div>
</div>
{{- end }}

View File

@ -1,15 +0,0 @@
{{- $recent := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{- $recent_num := (.Site.Params.widgets.recent_num | default 10) }}
{{- if $recent }}
<div class="widget-recent widget">
<h4 class="widget__title">{{ T "recent_title" }}</h4>
<div class="widget__content">
<ul class="widget__list">
{{- range first $recent_num $recent }}
<li class="widget__item"><a class="widget__link" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{- end }}
</ul>
</div>
</div>
{{- end }}

View File

@ -1,13 +0,0 @@
{{- $actionURL := .Site.Params.widgets.search.url | default "https://google.com/search" -}}
{{- $inputName := .Site.Params.widgets.search.input.name | default "sitesearch" -}}
{{- $inputPre := .Site.Params.widgets.search.input.pre -}}
<div class="widget-search widget">
<form class="widget-search__form" role="search" method="get" action="{{ $actionURL }}">
<label>
<input class="widget-search__field" type="search" placeholder="{{ T "search_placeholder" }}" value="" name="q" aria-label="{{ T "search_placeholder" }}">
</label>
<input class="widget-search__submit" type="submit" value="Search">
{{ if $inputName -}}<input type="hidden" name="{{ $inputName }}" value="{{ $inputPre }}{{ .Site.BaseURL }}">{{- end }}
</form>
</div>

View File

@ -1,14 +0,0 @@
{{ if .Site.Menus.side }}
<div class="widget-sidemenu widget">
<h4 class="widget__title">{{ T "sidemenu_title" }}</h4>
<nav class="widget__content">
<ul class="widget__list">
{{ range .Site.Menus.side }}
<li class="widget__item">
<a class="widget__link" href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
</nav>
</div>
{{ end }}

View File

@ -1,90 +0,0 @@
{{- if .Site.Params.widgets.social }}
<div class="widget-social widget">
<h4 class="widget-social__title widget__title">{{ T "social_title" }}</h4>
<div class="widget-social__content widget__content">
{{- with .Site.Params.widgets.social.facebook }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Facebook" rel="noopener noreferrer" href="https://facebook.com/{{ . }}" target="_blank">
{{ partial "svg/facebook.svg" (dict "class" "widget-social__link-icon") }}
<span>Facebook</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.twitter }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Twitter" rel="noopener noreferrer" href="https://twitter.com/{{ . }}" target="_blank">
{{ partial "svg/twitter.svg" (dict "class" "widget-social__link-icon") }}
<span>Twitter</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.instagram }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Instagram" rel="noopener noreferrer" href="https://www.instagram.com/{{ . }}" target="_blank">
{{ partial "svg/instagram.svg" (dict "class" "widget-social__link-icon") }}
<span>Instagram</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.linkedin }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="LinkedIn" rel="noopener noreferrer" href="https://linkedin.com/in/{{ . }}" target="_blank">
{{ partial "svg/linkedin.svg" (dict "class" "widget-social__link-icon") }}
<span>LinkedIn</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.telegram }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Telegram" rel="noopener noreferrer" href="https://t.me/{{ . }}" target="_blank">
{{ partial "svg/telegram.svg" (dict "class" "widget-social__link-icon") }}
<span>Telegram</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.github }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="GitHub" rel="noopener noreferrer" href="https://github.com/{{ . }}" target="_blank">
{{ partial "svg/github.svg" (dict "class" "widget-social__link-icon") }}
<span>GitHub</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.gitlab }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="GitLab" rel="noopener noreferrer" href="https://gitlab.com/{{ . }}" target="_blank">
{{ partial "svg/gitlab.svg" (dict "class" "widget-social__link-icon") }}
<span>GitLab</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.bitbucket }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Bitbucket" rel="noopener noreferrer" href="https://bitbucket.org/{{ . }}" target="_blank">
{{ partial "svg/bitbucket.svg" (dict "class" "widget-social__link-icon") }}
<span>Bitbucket</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.email }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Email" href="mailto:{{ . }}">
{{ partial "svg/email.svg" (dict "class" "widget-social__link-icon") }}
<span>{{ . }}</span>
</a>
</div>
{{- end }}
{{ range .Site.Params.widgets.social.custom }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="{{ .title }}" {{ with .rel | default "noopener noreferrer" }} rel="{{ . }}"{{ end }} href="{{ .url }}" target="_blank">
{{- if .icon }}
{{ partial .icon (dict "class" "widget-social__link-icon") }}
{{- end }}
<span>{{ .title }}</span>
</a>
</div>
{{ end }}
</div>
</div>
{{- end }}

View File

@ -1,15 +0,0 @@
{{- $tags := .Site.Taxonomies.tags }}
{{- if gt (len $tags) 0 }}
<div class="widget-taglist widget">
<h4 class="widget__title">{{ T "tags_title" }}</h4>
<div class="widget__content">
{{- range $name, $taxonomy := $tags }}
{{- with $.Site.GetPage (printf "/tags/%s" $name) }}
<a class="widget-taglist__link widget__link btn" href="{{ .RelPermalink }}" title="{{ .Title }}">
{{- .Title -}}{{- if .Site.Params.widgets.tags_counter }} ({{ $taxonomy.Count }}){{ end -}}
</a>
{{- end }}
{{- end }}
</div>
</div>
{{- end }}

Some files were not shown because too many files have changed in this diff Show More