├── exampleSite
├── data
│ └── .gitkeep
├── static
│ └── .gitkeep
├── content
│ ├── post
│ │ ├── featured-image
│ │ │ ├── featured.png
│ │ │ └── index.md
│ │ ├── mathjax.md
│ │ ├── hugoisforlovers.md
│ │ ├── basic-elements.md
│ │ ├── migrate-from-jekyll.md
│ │ ├── goisforlovers.md
│ │ └── creating-a-new-theme.md
│ └── about.md
└── config.toml
├── images
├── tn.png
└── screenshot.png
├── static
├── favicon.ico
├── icons
│ ├── 16.png
│ ├── 32.png
│ ├── 48.png
│ ├── 144.png
│ ├── 192.png
│ ├── 512.png
│ ├── 72x72.png
│ └── 96x96.png
└── js
│ └── menu.js
├── archetypes
└── default.md
├── layouts
├── partials
│ ├── header_logo.html
│ ├── body_custom.html
│ ├── head_custom.html
│ ├── header.html
│ ├── footer.html
│ ├── comments.html
│ ├── scripts.html
│ ├── svg
│ │ ├── facebook.svg
│ │ ├── gitlab.svg
│ │ ├── instagram.svg
│ │ ├── stackoverflow.svg
│ │ ├── email.svg
│ │ ├── linkedin.svg
│ │ ├── medium.svg
│ │ ├── telegram.svg
│ │ ├── twitter.svg
│ │ ├── pocket.svg
│ │ ├── pinterest.svg
│ │ ├── vk.svg
│ │ ├── mastodon.svg
│ │ ├── github.svg
│ │ └── reddit.svg
│ ├── mathjax.html
│ ├── entry
│ │ ├── meta.html
│ │ ├── tags.html
│ │ ├── meta
│ │ │ └── date.html
│ │ ├── share.html
│ │ └── featured.html
│ ├── footer_copyright.html
│ ├── widgets
│ │ ├── sidemenu.html
│ │ ├── categories.html
│ │ ├── tags.html
│ │ └── recent.html
│ ├── related.html
│ ├── footer_social.html
│ ├── header_menu.html
│ ├── pagination.html
│ ├── breadcrumb.html
│ └── sidebar.html
├── 404.html
├── _default
│ ├── summary.html
│ ├── list.html
│ ├── single.html
│ └── baseof.html
├── index.html
└── index.manifest.json
├── .gitignore
├── theme.toml
├── .editorconfig
├── LICENSE
├── data
├── share.toml
└── social.toml
├── i18n
└── en.yaml
├── package.json
├── .github
└── workflows
│ └── ci-test.yml
├── assets
└── css
│ ├── reboot.css
│ └── main.css
├── CONTRIBUTING.md
├── .stylelintrc
└── README.md
/exampleSite/data/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/exampleSite/static/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/tn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Vimux/Amnix/master/images/tn.png
--------------------------------------------------------------------------------
/static/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Vimux/Amnix/master/static/favicon.ico
--------------------------------------------------------------------------------
/static/icons/16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Vimux/Amnix/master/static/icons/16.png
--------------------------------------------------------------------------------
/static/icons/32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Vimux/Amnix/master/static/icons/32.png
--------------------------------------------------------------------------------
/static/icons/48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Vimux/Amnix/master/static/icons/48.png
--------------------------------------------------------------------------------
/images/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Vimux/Amnix/master/images/screenshot.png
--------------------------------------------------------------------------------
/static/icons/144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Vimux/Amnix/master/static/icons/144.png
--------------------------------------------------------------------------------
/static/icons/192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Vimux/Amnix/master/static/icons/192.png
--------------------------------------------------------------------------------
/static/icons/512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Vimux/Amnix/master/static/icons/512.png
--------------------------------------------------------------------------------
/static/icons/72x72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Vimux/Amnix/master/static/icons/72x72.png
--------------------------------------------------------------------------------
/static/icons/96x96.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Vimux/Amnix/master/static/icons/96x96.png
--------------------------------------------------------------------------------
/archetypes/default.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "{{ replace .Name "-" " " | title }}"
3 | date: "{{ .Date }}"
4 | ---
5 |
--------------------------------------------------------------------------------
/layouts/partials/header_logo.html:
--------------------------------------------------------------------------------
1 | {{ .Site.Params.logoText | default .Site.Title }}
--------------------------------------------------------------------------------
/exampleSite/content/post/featured-image/featured.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Vimux/Amnix/master/exampleSite/content/post/featured-image/featured.png
--------------------------------------------------------------------------------
/layouts/partials/body_custom.html:
--------------------------------------------------------------------------------
1 | {{/*
2 | Do not touch this file directly!
3 |
4 | Instead, create a `layouts/partials/body_custom.html` file in your site directory.
5 | */}}
--------------------------------------------------------------------------------
/layouts/partials/head_custom.html:
--------------------------------------------------------------------------------
1 | {{/*
2 | Do not touch this file directly!
3 |
4 | Instead, create a `layouts/partials/head_custom.html` file in your site directory.
5 | */}}
--------------------------------------------------------------------------------
/layouts/partials/header.html:
--------------------------------------------------------------------------------
1 |
{{ T "empty_text_start" | safeHTML }} ({{ delimit (apply $mainSections "printf" "content/%s" ".") ", " | safeHTML }}), {{ T "empty_text_end" }}.
{{ T "empty_tip" | safeHTML }}
23 |mainSection folders"
37 |
38 | - id: empty_text_end
39 | translation: "they'll appear here"
40 |
41 | - id: empty_tip
42 | translation: "Tip: You could change mainSection folders in your site config file."
43 |
44 | # 404
45 | - id: page404_title
46 | translation: "404 Page not found"
47 |
48 | - id: page404_lead
49 | translation: "Sorry, the page you were looking for doesn't exist."
50 |
51 | - id: page404_link
52 | translation: "Go back to main page"
53 |
--------------------------------------------------------------------------------
/exampleSite/content/about.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: About Hugo
3 | description: Hugo, the world’s fastest framework for building websites
4 | date: 2019-02-28
5 | author: Hugo Authors
6 | menu: main
7 | ---
8 |
9 | Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
10 |
11 | Hugo makes use of a variety of open source projects including:
12 |
13 | * https://github.com/russross/blackfriday
14 | * https://github.com/alecthomas/chroma
15 | * https://github.com/muesli/smartcrop
16 | * https://github.com/spf13/cobra
17 | * https://github.com/spf13/viper
18 |
19 | Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
20 |
21 | Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
22 |
23 | Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
24 |
25 | Learn more and contribute on [GitHub](https://github.com/gohugoio).
26 |
--------------------------------------------------------------------------------
/layouts/index.manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "{{ .Site.Params.Manifest.name | default .Site.Title }}",
3 | "short_name": "{{ .Site.Params.Manifest.shortName | default .Site.Title }}",
4 | "display": "{{ .Site.Params.Manifest.display | default "standalone" }}",
5 | "start_url": "{{ .Site.Params.Manifest.startUrl | default "/" }}",
6 | "background_color": "{{ .Site.Params.Manifest.backgroundColor | default "#33333a" }}",
7 | "theme_color": "{{ .Site.Params.Manifest.themeColor | default "#5b5b67" }}",
8 | {{- with .Site.Params.Manifest.description }}
9 | "description": "{{ . }}",
10 | {{- end }}
11 | {{- with .Site.Params.Manifest.orientation }}
12 | "orientation": "{{ . }}",
13 | {{- end }}
14 | {{- with .Site.Params.Manifest.scope }}
15 | "scope": "{{ . }}",
16 | {{- end }}
17 | "icons": [
18 | {
19 | "src": "icons/48.png",
20 | "sizes": "48x48",
21 | "type": "image/png"
22 | },
23 | {
24 | "src": "icons/72.png",
25 | "sizes": "72x72",
26 | "type": "image/png"
27 | },
28 | {
29 | "src": "icons/96.png",
30 | "sizes": "96x96",
31 | "type": "image/png"
32 | },
33 | {
34 | "src": "icons/144.png",
35 | "sizes": "144x144",
36 | "type": "image/png"
37 | },
38 | {
39 | "src": "icons/192.png",
40 | "sizes": "192x192",
41 | "type": "image/png"
42 | },
43 | {
44 | "src": "icons/512.png",
45 | "sizes": "512x512",
46 | "type": "image/png"
47 | }
48 | ]
49 | }
50 |
--------------------------------------------------------------------------------
/data/social.toml:
--------------------------------------------------------------------------------
1 | [[icons]]
2 | id = "email"
3 | url = "mailto:%s"
4 | icon = "svg/email.svg"
5 | weight = 10
6 |
7 | [[icons]]
8 | id = "facebook"
9 | url = "https://www.facebook.com/%s"
10 | icon = "svg/facebook.svg"
11 | weight = 20
12 |
13 | [[icons]]
14 | id = "twitter"
15 | url = "https://twitter.com/%s"
16 | icon = "svg/twitter.svg"
17 | weight = 30
18 |
19 | [[icons]]
20 | id = "telegram"
21 | url = "https://t.me/%s"
22 | icon = "svg/telegram.svg"
23 | weight = 40
24 |
25 | [[icons]]
26 | id = "instagram"
27 | url = "https://www.instagram.com/%s"
28 | icon = "svg/instagram.svg"
29 | weight = 50
30 |
31 | [[icons]]
32 | id = "pinterest"
33 | url = "https://www.pinterest.com/%s"
34 | icon = "svg/pinterest.svg"
35 | weight = 60
36 |
37 | [[icons]]
38 | id = "vk"
39 | url = "https://vk.com/%s"
40 | icon = "svg/vk.svg"
41 | weight = 70
42 |
43 | [[icons]]
44 | id = "linkedin"
45 | url = "https://linkedin.com/in/%s"
46 | icon = "svg/linkedin.svg"
47 | weight = 80
48 |
49 | [[icons]]
50 | id = "github"
51 | url = "https://github.com/%s"
52 | icon = "svg/github.svg"
53 | weight = 90
54 |
55 | [[icons]]
56 | id = "gitlab"
57 | url = "https://gitlab.com/%s"
58 | icon = "svg/gitlab.svg"
59 | weight = 100
60 |
61 | [[icons]]
62 | id = "stackoverflow"
63 | url = "https://stackoverflow.com/users/%s"
64 | icon = "svg/stackoverflow.svg"
65 | weight = 110
66 |
67 | [[icons]]
68 | id = "mastodon"
69 | url = "%s"
70 | icon = "svg/mastodon.svg"
71 | weight = 120
72 |
73 | [[icons]]
74 | id = "medium"
75 | url = "https://medium.com/@%s"
76 | icon = "svg/medium.svg"
77 | weight = 130
78 |
--------------------------------------------------------------------------------
/layouts/partials/entry/featured.html:
--------------------------------------------------------------------------------
1 | {{- with .page.Resources.ByType "image" }}
2 | {{- $link := $.link -}}
3 | {{- $IsSingle := $.IsSingle -}}
4 | {{- $match := $.page.Params.featured -}}
5 | {{- $featuredMap := "" -}}
6 |
7 | {{- $IsMap := reflect.IsMap $match -}}
8 | {{- if $IsMap }}
9 | {{- $featuredMap = $match -}}
10 | {{- $match = $match.url -}}
11 | {{- end }}
12 |
13 | {{- $featured := .GetMatch ($match | default "{featured.*,thumbnail.*}") -}}
14 | {{ if and $featured (not (and $IsSingle ($.page.Param "featured.previewOnly"))) }}
15 | {{ $featured320 := $featured.Resize "320x" }}
16 | {{ $featured600 := $featured.Resize "600x" }}
17 | {{ $featured900 := $featured.Resize "900x" }}
18 | 96 |99 | 100 | According to Mozilla's website,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.
97 | 98 |
Firefox 1.0 was released in 2004 and became a big success.101 | 102 | ## Tables 103 | 104 | Tables aren't part of the core Markdown spec, but Hugo supports them. 105 | 106 | | ID | Make | Model | Year | 107 | | --- | --------- | ------- | ---- | 108 | | 1 | Honda | Accord | 2009 | 109 | | 2 | Toyota | Camry | 2012 | 110 | | 3 | Hyundai | Elantra | 2010 | 111 | 112 | Colons can be used to align columns. 113 | 114 | | Tables | Are | Cool | 115 | |:----------- |:-------------:| ------------:| 116 | | align: left | align: center | align: right | 117 | | align: left | align: center | align: right | 118 | | align: left | align: center | align: right | 119 | 120 | You can also use inline Markdown. 121 | 122 | | Inline | Markdown | In | Table | 123 | | ---------- | --------- | ----------------- | ---------- | 124 | | *italics* | **bold** | ~~strikethrough~~ | `code` | 125 | 126 | ## Code 127 | 128 | ```html 129 | 130 | 131 | 132 | 133 |
Test
137 | 138 | 139 | ``` 140 | 141 | {{< highlight html >}} 142 | 143 | 144 | 145 | 146 |Test
150 | 151 | 152 | {{< /highlight >}} 153 | 154 | ## Other stuff — abbr, sub, sup, kbd, etc. 155 | 156 | GIF is a bitmap image format. 157 | 158 | H2O 159 | 160 | C6H12O6 161 | 162 | Xn + Yn = Zn 163 | 164 | Press X to win. Or press CTRL+ALT+F to show FPS counter. 165 | 166 | As a unit of information in information theory, the bit has alternatively been called a shannon, named after Claude Shannon, the founder of field of information theory. 167 | -------------------------------------------------------------------------------- /assets/css/reboot.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Based on Bootstrap Reboot v4.3.1 (https://github.com/twbs/bootstrap/blob/1770691b339b/dist/css/bootstrap-reboot.css) 3 | * Licensed under MIT 4 | */ 5 | *, 6 | *::before, 7 | *::after { 8 | box-sizing: border-box; 9 | } 10 | 11 | body { 12 | margin: 0; 13 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 14 | font-size: 1rem; 15 | font-weight: 400; 16 | line-height: 1.5; 17 | color: #212529; 18 | text-align: left; 19 | background-color: #fff; 20 | -webkit-text-size-adjust: 100%; 21 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 22 | } 23 | 24 | [tabindex="-1"]:focus:not(:focus-visible) { 25 | outline: 0 !important; 26 | } 27 | 28 | hr { 29 | margin: 1rem 0; 30 | color: inherit; 31 | background-color: currentColor; 32 | border: 0; 33 | } 34 | 35 | hr:not([size]) { 36 | height: 1px; 37 | } 38 | 39 | h1, 40 | h2, 41 | h3, 42 | h4, 43 | h5, 44 | h6 { 45 | margin-top: 0; 46 | margin-bottom: .5rem; 47 | font-weight: 600; 48 | } 49 | 50 | h1 { 51 | font-size: 2rem; 52 | } 53 | 54 | h2 { 55 | font-size: 1.75rem; 56 | } 57 | 58 | h3 { 59 | font-size: 1.5rem; 60 | } 61 | 62 | h4 { 63 | font-size: 1.375rem; 64 | } 65 | 66 | h5 { 67 | font-size: 1.25rem; 68 | } 69 | 70 | h6 { 71 | font-size: 1.125rem; 72 | } 73 | 74 | p { 75 | margin-top: 0; 76 | margin-bottom: 1rem; 77 | } 78 | 79 | abbr { 80 | text-decoration: none; 81 | cursor: help; 82 | -webkit-text-decoration-skip-ink: none; 83 | text-decoration-skip-ink: none; 84 | } 85 | 86 | address { 87 | margin-bottom: 1rem; 88 | font-style: normal; 89 | line-height: inherit; 90 | } 91 | 92 | ol, 93 | ul { 94 | padding-left: 2rem; 95 | } 96 | 97 | ol, 98 | ul, 99 | dl { 100 | margin-top: 0; 101 | margin-bottom: 1rem; 102 | } 103 | 104 | ol ol, 105 | ul ul, 106 | ol ul, 107 | ul ol { 108 | margin-bottom: 0; 109 | } 110 | 111 | dt { 112 | font-weight: 700; 113 | } 114 | 115 | dd { 116 | margin-bottom: .5rem; 117 | margin-left: 0; 118 | } 119 | 120 | blockquote { 121 | margin: 0 0 1rem; 122 | } 123 | 124 | b, 125 | strong { 126 | font-weight: bolder; 127 | } 128 | 129 | small { 130 | font-size: .875em; 131 | } 132 | 133 | sub, 134 | sup { 135 | position: relative; 136 | font-size: .75em; 137 | line-height: 0; 138 | vertical-align: baseline; 139 | } 140 | 141 | sub { 142 | bottom: -.25em; 143 | } 144 | 145 | sup { 146 | top: -.5em; 147 | } 148 | 149 | a { 150 | color: #006fc6; 151 | text-decoration: none; 152 | } 153 | 154 | a:hover { 155 | color: #0056b3; 156 | text-decoration: underline; 157 | } 158 | 159 | a:not([href]), 160 | a:not([href]):hover { 161 | color: inherit; 162 | text-decoration: none; 163 | } 164 | 165 | pre, 166 | code, 167 | kbd, 168 | samp { 169 | font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 170 | font-size: 1em; 171 | } 172 | 173 | pre { 174 | display: block; 175 | margin-top: 0; 176 | margin-bottom: 1rem; 177 | overflow: auto; 178 | } 179 | 180 | pre code { 181 | font-size: inherit; 182 | color: inherit; 183 | word-break: normal; 184 | } 185 | 186 | code { 187 | color: #c33; 188 | word-wrap: break-word; 189 | } 190 | 191 | a > code { 192 | color: inherit; 193 | } 194 | 195 | kbd { 196 | padding: .125rem .1875rem; 197 | color: #fff; 198 | background-color: #222; 199 | } 200 | 201 | kbd kbd { 202 | padding: 0; 203 | } 204 | 205 | figure { 206 | margin: 0 0 1rem; 207 | } 208 | 209 | img { 210 | vertical-align: middle; 211 | } 212 | 213 | svg { 214 | overflow: hidden; 215 | vertical-align: middle; 216 | } 217 | 218 | table { 219 | border-collapse: collapse; 220 | } 221 | 222 | caption { 223 | padding: 0 0 .5rem; 224 | text-align: left; 225 | caption-side: top; 226 | } 227 | 228 | label { 229 | display: inline-block; 230 | margin-bottom: .5rem; 231 | } 232 | 233 | button { 234 | border-radius: 0; 235 | } 236 | 237 | button:focus { 238 | outline: 1px dotted; 239 | outline: 5px auto -webkit-focus-ring-color; 240 | } 241 | 242 | input, 243 | button, 244 | select, 245 | optgroup, 246 | textarea { 247 | margin: 0; 248 | font-family: inherit; 249 | font-size: inherit; 250 | line-height: inherit; 251 | } 252 | 253 | button, 254 | input { 255 | overflow: visible; 256 | } 257 | 258 | button, 259 | select { 260 | text-transform: none; 261 | } 262 | 263 | select { 264 | word-wrap: normal; 265 | } 266 | 267 | [list]::-webkit-calendar-picker-indicator { 268 | display: none; 269 | } 270 | 271 | button, 272 | [type="button"], 273 | [type="reset"], 274 | [type="submit"] { 275 | -webkit-appearance: button; 276 | } 277 | 278 | button:not(:disabled), 279 | [type="button"]:not(:disabled), 280 | [type="reset"]:not(:disabled), 281 | [type="submit"]:not(:disabled) { 282 | cursor: pointer; 283 | } 284 | 285 | ::-moz-focus-inner { 286 | padding: 0; 287 | border-style: none; 288 | } 289 | 290 | input[type="date"], 291 | input[type="time"], 292 | input[type="datetime-local"], 293 | input[type="month"] { 294 | -webkit-appearance: textfield; 295 | } 296 | 297 | textarea { 298 | overflow: auto; 299 | resize: vertical; 300 | } 301 | 302 | fieldset { 303 | min-width: 0; 304 | padding: 0; 305 | margin: 0; 306 | border: 0; 307 | } 308 | 309 | legend { 310 | float: left; 311 | width: 100%; 312 | padding: 0; 313 | margin-bottom: .5rem; 314 | font-size: 1.5rem; 315 | line-height: inherit; 316 | color: inherit; 317 | white-space: normal; 318 | } 319 | 320 | mark { 321 | padding: .2em 0; 322 | background-color: #fc3; 323 | } 324 | 325 | progress { 326 | vertical-align: baseline; 327 | } 328 | 329 | ::-webkit-datetime-edit { 330 | overflow: visible; 331 | line-height: 0; 332 | } 333 | 334 | [type="search"] { 335 | outline-offset: -2px; 336 | -webkit-appearance: textfield; 337 | } 338 | 339 | ::-webkit-search-decoration { 340 | -webkit-appearance: none; 341 | } 342 | 343 | ::-webkit-color-swatch-wrapper { 344 | padding: 0; 345 | } 346 | 347 | ::-webkit-file-upload-button { 348 | font: inherit; 349 | -webkit-appearance: button; 350 | } 351 | 352 | output { 353 | display: inline-block; 354 | } 355 | 356 | summary { 357 | display: list-item; 358 | cursor: pointer; 359 | } 360 | 361 | template { 362 | display: none; 363 | } 364 | 365 | main { 366 | display: block; 367 | } 368 | 369 | [hidden] { 370 | display: none !important; 371 | } 372 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Amnix 2 | 3 | **Amnix** welcomes contributions and corrections. Before contributing, please make sure you have read the guidelines 4 | below. If you're a newcomer to open source and you haven't contributed to other projects or used 5 | [Git](https://git-scm.com/) before, you should make yourself familiar before proceeding. 6 | 7 | ## Issues 8 | 9 | The [issue tracker](https://github.com/vimux/amnix/issues) is the preferred channel for bug reports and features 10 | requests, but please respect the following restrictions: 11 | 12 | ### General requirements 13 | 14 | * Issue must be written in English. 15 | * Please **do not** combine a few problems or feature requests in one issue. Create separate issues if needed. 16 | * Please **do not** create an issue that contains only title. Write a clear title and useful description. 17 | * Please **do not** use the issue tracker for personal support requests. 18 | * Please **do not** post comments consisting solely of "+1" or emoji. The project maintainer reserve the right to delete 19 | such comments. Use 20 | [GitHub's reactions feature](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments) instead. 21 | * Search first before filing a new issue. Please check existing open or recently closed issues to make sure somebody 22 | else hasn't already reported the issue. 23 | 24 | ### Reporting bugs 25 | 26 | When creating a new bug issue make sure to include the following information: 27 | 28 | * Your environment e.g. OS version, Hugo version, theme is up to date? Anything unusual about your environment or 29 | deployment. 30 | * Specify the exact steps to reproduce the bug in as many details as possible with code examples. Include links to files 31 | or demo projects, or copy/pasteable snippets, which you use in those examples. 32 | * Any message or error you get from Hugo, if you do. 33 | * A screenshot of any visual bug. 34 | 35 | Please, take in consideration the next template to report your bug: 36 | 37 | > **Hugo version**\ 38 | > _Run `hugo version` and paste output here._ 39 | > 40 | > **Theme is up to date?**\ 41 | > _No | Yes_ 42 | > 43 | > **Expected behavior**\ 44 | > _A short and expressive description of what behavior you're expecting._ 45 | > 46 | > **Current behavior**\ 47 | > _A short sentence explaining what's actually happening, possibly containing screenshots._ 48 | > 49 | > **Steps to reproduce / Code to reproduce**\ 50 | > _A step by step description of how to trigger this bug. / Provide link to a demo project which reproduces this bug._ 51 | > 52 | > **Additional info**\ 53 | > _Anything unusual about your environment or deployment process? Anything else do we need to know? Optional._ 54 | 55 | **Note:** If you find a **Closed** issue that seems like it is the same bug that you're experiencing, open a new issue 56 | and include a link to the original issue in the body of your new one. 57 | 58 | ### Proposing features** 59 | 60 | * Explain the proposed feature, what it should do, why it is useful, and alternatives considered if possible. Please 61 | note that the project maintainer may close this issue or ask you to create a Pull Request if this is not something that 62 | the project maintainer sees as a sufficiently high priority. 63 | 64 | Following these guidelines helps maintainer and the community understand your suggestion and find related suggestions. 65 | 66 | ## Pull Requests (PR) 67 | 68 | **Please ask first** before embarking on any significant pull request (e.g. implementing features or refactoring code), 69 | otherwise, you risk spending a lot of time working on something that the project maintainer might not want to merge into 70 | the project. 71 | 72 | Please respect our Pull Request Acceptance Criteria. For larger changes, you will likely receive multiple rounds of 73 | comments and it may take some time to complete. 74 | 75 | ### Pull Request Acceptance Criteria 76 | 77 | * Keep the change in a single PR as small as possible 78 | * 1 PR = 1 FIX or FEATURE (do not combine things, send separate PR if needed) 79 | * PR with irrelevant changes won't be merged. If you do want to fix formatting or style, do that in a separate PR 80 | * Use a clear and descriptive branch name (e.g. **NOT** "patch-1" or "update") 81 | * Don't create a Pull Request from master branch 82 | * Provide a reasonable PR title and description 83 | * PR must be written in English 84 | * If the PR changes the UI it should include before-and-after screenshots or a link to a video 85 | * Keep PR up to date with upstream/master 86 | * Pay attention to any automated CI failures reported in the Pull Request 87 | * PR solves a common use case that several users will need in their real-life projects, not only your specific problems 88 | * If you've added or modify SVG, ensure that each SVG file: 89 | * Be less than 2048 bytes 90 | * Be minified to a single line with no formatting 91 | * Not contain any JS or CSS section inside it 92 | * Not contain any additional transformations (matrix, translate, scale) or negative viewBox position values 93 | * Сompatible with [MIT License](LICENSE) 94 | * Maintain clean commit history and use meaningful commit messages. Pull Requests with messy commit history (with 95 | commit messages like "update", "another update", etc) are difficult to review and won't be merged, even if the changes 96 | are good enough 97 | * Be prepared to answer questions and make code changes. The project maintainer expect you to be reasonably responsive 98 | to those feedback, otherwise the PR will be closed after 2-4 weeks of inactivity 99 | 100 | ### Pull Request Contribution Prerequisites 101 | 102 | * You have Node & npm installed 103 | * You have Hugo installed at v0.48.0+ 104 | * You are familiar with Git 105 | 106 | ### Pull Request Process 107 | 108 | 1. Fork the repository 109 | 1. Clone down the repository to your local system 110 | 1. Run `npm i` in the repository root 111 | 1. Create a new *dedicated branch* with descriptive name from `master` 112 | 1. Make your change and commit to the new branch from the previous step 113 | 1. Write a clear commit message 114 | 1. If you've added code that need documentation, update the README.md 115 | 1. Make sure your code lints (`npm test`) 116 | 1. Push to your fork 117 | 1. Submit a Pull Request (PR) to the upstream 118 | 119 | --- 120 | 121 | **⚠️ IMPORTANT: No guarantees can be made that your pull request will be accepted.** 122 | 123 | ## License 124 | 125 | By contributing to Amnix, you agree that your contributions will be licensed under [MIT License](LICENSE). 126 | -------------------------------------------------------------------------------- /exampleSite/content/post/migrate-from-jekyll.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Migrate to Hugo from Jekyll 3 | date: 2014-03-10 4 | linktitle: Migrating from Jekyll 5 | menu: 6 | main: 7 | name: Jekyll migration 8 | weight: 10 9 | --- 10 | 11 | ## Move static content to `static` 12 | Jekyll has a rule that any directory not starting with `_` will be copied as-is to the `_site` output. Hugo keeps all static content under `static`. You should therefore move it all there. 13 | With Jekyll, something that looked like 14 | 15 | ▾126 | {{ .Get "caption" }} 127 | {{ with .Get "attrlink"}} {{ end }} 128 | {{ .Get "attr" }} 129 | {{ if .Get "attrlink"}} {{ end }} 130 |
{{ end }} 131 |