Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/qqhann/hugo-primer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-25Merge pull request #49 from dodowhat/masterHEADmasterQiushi Pan
Let icon urls contain baseURL
2021-02-25Let icon urls contain baseURLdodowhat
Let the icon urls generated by useIcon start with baseURL
2020-06-15Merge pull request #45 from ContainerSolutions/gc/document-page-level-paramsQiushi Pan
Update documentation for page-level params
2020-06-11Add documentation for page-level paramsGerry
There previously wasn't documentation for things such as disabling comments on a page or removing the table of contents despite these features existing. This commit documents all the page-level params I could find as well as their defaults. I've also updated the example config so that it shows all params.
2020-06-11Fix the toc boolean so it's actually a booleanGerry
All other boolean values allowed passing `true` or `false` however the `toc` page-level param was only checking for the string "false". This was inconstent will all other variables so I've addressed that here.
2020-06-08Merge pull request #44 from ContainerSolutions/gc/allow-custom-stylingQiushi Pan
Allow custom styling
2020-06-08Improve the wording of custom_style.css commentGerry
Co-authored-by: Qiushi Pan <17402261+qqhann@users.noreply.github.com>
2020-06-07Merge pull request #43 from gerrywastaken/gc/fix-menu-children-urlQiushi Pan
Fix invalid variable in child menu
2020-06-07Merge pull request #42 from ress997/patch-1Qiushi Pan
ヘッダーナビの選択条件を変更
2020-06-02Add the ability to include custom cssGerry
Without this there is no simple way to add custom styling to the theme.
2020-05-28Fix invalid variable in child menuGerry
There is no `.RelPermalink` available for the menu: https://gohugo.io/variables/menus/ Instead we need to use `.URL`
2020-05-09ヘッダーナビの選択条件を変更Ress
2020-04-09Merge pull request #41 from andreyorst/patch-1Qiushi Pan
mention favicon names
2020-04-06mention favicon namesAndrey Orst
fix #39
2019-12-03Update: reasonqqhann
2019-12-02Fix: disable share on exampleSitev1.1.1qqhann
2019-12-02Update: screenshotsv1.1.0qqhann
2019-12-02Add: readme for exampleSiteqqhann
2019-12-02Fix: ruby png linkqqhann
2019-12-02Update: formatqqhann
2019-12-02Merge branch 'master' of github.com:qqhann/hugo-primerqqhann
2019-12-02Merge pull request #37 from qqhann/add/example-siteQiushi Pan
Add/example site
2019-12-02Refactor: format configqqhann
2019-12-02Update: renameqqhann
2019-12-02Update: frontmatter and config for primerqqhann
2019-12-02Update: instruction md and directory nameqqhann
2019-12-02Update: _index.md for primer; example structureqqhann
2019-12-02Update: homepageqqhann
2019-12-02Add: exampleSite from hugoBasicExampleqqhann
2019-11-30Merge pull request #35 from cntrump/masterv1.0.2Qiushi Pan
add variable enableMathJax and fix a build error.
2019-11-30Update: default true math optionqqhann
2019-11-30Merge pull request #34 from hakusaro/patch-tocQiushi Pan
Add workaround for TableOfContents h1/h2 hierarchy issue
2019-11-30Update: more detailed re patternqqhann
2019-11-27Add: other pr templateqqhann
2019-10-27add variable enableMathJaxvvveiii
fix hugo build error: execute of template failed: template: index.html:32:22: executing "main" at <.RelPermalink>: can't evaluate field RelPermalink in type *page.Pager.
2019-10-15Add workaround for TableOfContents h1/h2 hierarchy issueLucas Nicodemus
First, some background is necessary. As noted at the hugo documentation site, https://gohugo.io/content-management/toc/, the table of contents module does not currently let you change which heading levels should be rendered. This creates a slight issue as follows. Let's say you have a markdown document and you use this template. The <h1> tag is the title for each page, as set in the frontmatter. In markdown, that's also the single hash/octothorpe/number sign marker for a top level heading. By convention, it's typical to have a single h1> element of the same font size on each page. Naturally, the ideal behavior is to then make all elements <h2> or lower. As noted by Mozilla, this is even a loosely defined convention: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements Now, this is all well and good, until you read more into the issue above. Essentially, Hugo generates the table of contents starting with <h1> elements from the markdown output. If you don't have an <h1> element, Hugo will render the level associated with <h1> anyway and then indent all subsequent levels based on this non-existent hierarchy. You can make the table of contents look better by adding an <h1> element to the page, but this creates the conflict as described above. You end up with two <h1> elements, which is antithetical to the spec, only to create a correct looking table of contents. And one again, those two <h1> elements will make your page look bad because they have the same font size. This is easily shown graphically, as is documented in the pull request. A discussion exists on gohugoio/hugo talking about the heading level issue in the table of contents system, here: https://github.com/gohugoio/hugo/issues/1778 This is a slightly maddening issue, because it's closed, but in it many people have identified this issue as a problem and patched it with one way or another. My commit introduces the patch from @HenrySkup, which is located here: https://github.com/gohugoio/hugo/issues/1778#issuecomment-522222658 This commit specifically will parse and remove empty headings in the generated output from the `TableOfContents` module, thus creating the proper indentation level as expected, and not requiring breaking the html spec, nor making pages look nasty. It's backwards compatible with existing markdown written under the broken assumption, by way of rendering correctly with existing <h1> elements, while simultaneously fixing any table of contents generated with only <h2> and subsequent heading levels by indenting them the correct amount each time. This was tested against Hugo v0.58.0.
2019-10-10Add: PR templateqqhann
2019-10-10Update issue templatesQiushi Pan
2019-10-09Fix: change some .RelPermalink back to .URLqqhann
2019-10-09Merge pull request #32 from qqhann/fix/url-depricaitonQiushi Pan
Fix: change only needed .URL
2019-10-09Merge branch 'master' into fix/url-depricaitonQiushi Pan
2019-10-09Fix: change only needed .URLqqhann
2019-10-09Merge pull request #31 from hakusaro/fix-deprecation-warningsQiushi Pan
Fix deprecation of .URL in Paginator in theme
2019-10-08Fix deprecation of .URL in Paginator in themeLucas Nicodemus
2019-05-21Merge pull request #29 from keaising/masterQiushi Pan
Add support for ruby annotation
2019-05-20add README for ruby's usage.keaising
2019-05-20add support for ruby tag in HTMLkeaising
2019-04-11Update README.mdQiushi Pan
2019-02-17Merge pull request #23 from qqhann/qqhann/fix/copyrightv1.0.1Qiushi Pan
Update copyright to use config
2019-02-17Update readmeQiushi Pan