diff --git a/404.md b/404.md new file mode 100644 index 0000000000..0137fd7234 --- /dev/null +++ b/404.md @@ -0,0 +1,7 @@ +--- +layout: default +title: 404 - Page not found +--- +404 - Page not found +==================== +Sorry, we couldn’t find the requested URL. You can try again by going [back to the homepage]({{ site.baseurl }}). diff --git a/_config.yml b/_config.yml index dd6ac88571..e6f5d62606 100644 --- a/_config.yml +++ b/_config.yml @@ -8,7 +8,7 @@ author: url: "http://www.jacoporabolini.com" # Build settings -baseurl: /emerald/ # Change this to your relative path (ex: /blog/), or leave just a / +baseurl: /emerald # Change this to your relative path (ex: /blog/), or leave just a / markdown: kramdown source: . destination: ./_site @@ -25,6 +25,10 @@ defaults: values: layout: "post" +# Plugins +gems: + - jekyll-paginate + # Custom variables version: "1.1.0" diff --git a/_includes/footer.html b/_includes/footer.html index 64b2017df3..d48c1c4755 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html index ba920cec28..4be94ddc66 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -7,8 +7,8 @@ {%if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %} - - + + diff --git a/_includes/header.html b/_includes/header.html index 0795cbbb5a..6fc93e607f 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,6 +1,6 @@ diff --git a/_includes/menu.html b/_includes/menu.html index 24b189059d..55dd16a40f 100644 --- a/_includes/menu.html +++ b/_includes/menu.html @@ -5,7 +5,7 @@ {% for page in site.pages %} {% if page.layout == "page" %} - {{ page.title }} + {{ page.title }} {% endif %} {% endfor %} diff --git a/_includes/script.html b/_includes/script.html index d67aeef3ab..b10f08b045 100644 --- a/_includes/script.html +++ b/_includes/script.html @@ -1 +1 @@ - + diff --git a/_layouts/default.html b/_layouts/default.html index bba5cb792b..9d3ba7a6dc 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -10,7 +10,7 @@ {% include menu.html %} - + diff --git a/_posts/2019-03-18-small-text.md b/_posts/2019-03-18-small-text.md new file mode 100644 index 0000000000..ff7f30d2e1 --- /dev/null +++ b/_posts/2019-03-18-small-text.md @@ -0,0 +1,4 @@ +--- +title: Small text +--- +This is an example of a blog post with small amount of text. \ No newline at end of file diff --git a/_sass/layout.scss b/_sass/layout.scss index 3843864718..3f02a2445a 100644 --- a/_sass/layout.scss +++ b/_sass/layout.scss @@ -1,5 +1,10 @@ /* -- General Layout -- */ +/* Required for footer to stick to the bottom */ +html, body { + height: 100%; +} + /* Navigation */ #nav, #nav-left { @@ -253,3 +258,19 @@ footer { text-align: center; padding: 0.6667em 0; } + +#wrap { + min-height:100%; + position:relative; + padding-bottom: 105px; +} + +.footer { + padding: 25px 0; + background-color: $main-color; + color: $background-color; + text-align: center; + position: absolute; + width: 100%; + bottom: 0; +} diff --git a/_sass/mixin.scss b/_sass/mixin.scss index d05b07b4af..cd13e896a8 100644 --- a/_sass/mixin.scss +++ b/_sass/mixin.scss @@ -4,7 +4,7 @@ @mixin icon-position($position) { display: block; - position: absolute; + position: fixed; top: 35px; #{$position}: 25px; z-index: 10; diff --git a/index.html b/index.html index 3c513bae60..c589aa4bf9 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ {% for post in paginator.posts %}
  • -

    {{ post.title }}

    +

    {{ post.title }}

    {{ post.content | strip_html | truncatewords:50 }}

  • diff --git a/readme.md b/readme.md index c1dfb775ff..462d93185c 100644 --- a/readme.md +++ b/readme.md @@ -10,6 +10,23 @@ After extracting the content from the folder into the selected directory, you ca Additionally it is possible to fork the repository and use Github Pages as hosting. By following this way it will be enough to change the ``baseurl`` value into the ``_config.yml`` file, with the directory name of your project (for example /blog) or simply with a "/" (slash) if you want install Emerald in the root. +### Options +Starting from the 1.1.0 version, you can customize Emerald thanks to a few options. Now it is possible to set a custom header tag by setting the related option in the ``_config.yml`` file to "true". Then insert your custom code into the ``header-custom.html`` file. +In the same way, you can customize the footer of the navigation menu, by setting to "true" the related option and put your code into the ``nav-footer-custom.html`` file. +Moreover it is now possible to select a reverse option that allows to move the navigation menu to the left side, by setting it to "true". + +### Colors +The basic colors are set into the ``base.scss`` file: +- $main-color: used for the menu, title, link and footer +- $background-color: used for background and links in the navigation menu +- $text-color: used for text and title in posts and pages + +To customize the colors, just set the values in HEX, RGB (or RGBa) or any other format accepted by CSS. + +### Navigation menu +Starting from the 1.1.0 version, the links inside the navigation menu are autogenerated from pages having the layout set to ``page``. +You can set custom links, by putting in the ```` tag into the ``link.html`` file. + ### Branch Emerald has two branch: - ``master``: is for developing pourpose. @@ -29,7 +46,7 @@ Last but not least: the [Jekyll documentation](http://jekyllrb.com) is the best ### Jacopo Rabolini - Web site: [www.jacoporabolini.com](http://www.jacoporabolini.com) -- Google+: [+JacopoRabolini](https://plus.google.com/u/0/+JacopoRabolini/posts) +- Linkedin: [linkedin.com/in/jacopo-rabolini/](https://www.linkedin.com/in/jacopo-rabolini/) ## License Emerald is released under [MIT License](license.md).