I built this theme which is a unique and modern website design created for authors and writers. As the author of this theme, I aimed to provide a clean and minimalistic look that highlights the content, making it the center of attention.
Project structure
.
βββ assets
β βββ js
β β βββ scripts.js
β βββ scss
β βββ _author.scss
β βββ _breakpoints.scss
β βββ _content.scss
β βββ _footer.scss
β βββ _header.scss
β βββ _intro.scss
β βββ _main-menu-mobile.scss
β βββ _main-menu.scss
β βββ _normalize.scss
β βββ _pagination.scss
β βββ _summary.scss
β βββ style.scss
βββ layouts
β βββ _default
β β βββ baseof.html
β β βββ list.html
β β βββ single.html
β β βββ summary.html
β βββ partials
β β βββ author-large.html
β β βββ author.html
β β βββ footer.html
β β βββ google-analytics.html
β β βββ header.html
β β βββ menu-main-mobile.html
β β βββ paginator.html
β βββ posts
β β βββ list.html
β β βββ single.html
β βββ tags
β β βββ list.html
β βββ index.html
βββ README.md
βββ theme.toml
Example
$(window).scroll(function () {
var scroll = $(window).scrollTop();
if (scroll > 100) {
$(".header").addClass("header-scrolled");
} else {
$(".header").removeClass("header-scrolled");
}
});
Markdown Flavours
There are several different versions of markdown
CommonMark
From 2012, a group of people including Jeff Atwood and John MacFarlane launched what Atwood characterized as a standardization effort. A community website now aims to βdocument various tools and resources available to document authors and developers, as well as implementors of the various markdown implementationsβ.
GitHub Flavored Markdown (GFM)
In 2017, GitHub released a formal specification of their GitHub Flavored Markdown (GFM) that is based on CommonMark. It follows the CommonMark specification exactly except for tables, strikethrough, autolinks and task lists, which the GitHub spec has added as extensions. GitHub also changed the parser used on their sites accordingly, which required that some documents be changed. For instance, GFM now requires that the hash symbol that creates a heading be separated from the heading text by a space character.he user to create their own.
Markdown Extra
Markdown Extra is a lightweight markup language based on Markdown implemented in PHP (originally), Python and Ruby. It adds features not available with plain Markdown syntax. Markdown Extra is supported in some content management systems such as, for example, Drupal.
Markdown Extra adds the following features to Markdown:
- markdown markup inside HTML blocks
- elements with id/class attribute
- βfenced code blocksβ that span multiple lines of code
- tables
- definition lists
- footnotes
- abbreviations