Coder Social home page Coder Social logo

brettmillerb.github.io's Introduction

Brett Miller - Blog

https://millerb.co.uk

Theme

I opted for the Hydeout theme, nice and clean and fairly customisable once you get to grips with Jekyll.

Hydeout Theme by Andrew Fong.

Customisations

Sidebar Links

Added additional links to /_includes/sidebar-icon-links using the same format. There may have been an easier way to do this.

These needed corresponding .svg files in /_includes/svg which I got from Simple Icons

Config.yml

Variables in the Config.yml can be access via {{ site.variable }} so you can use the liquid tags throughout the other files.

e.g. {{ site.github.repo }} is used in the nav links to link to my github profile.

Layout/Design

Variables

Alot of the design elements are stored in /_sass/hydeout/_variables.scss and define colours of text and other elements.

Layout

By default the hydeout theme comes with a sticky sidebar setting so you can have the content of your sidebar at the bottom $sidebar-sticky: true !default; which is defined in the _variables.scss and used in the /_sass/hydeout/_layout.scss.

/* -----------------------------------------------------------
  Sticky sidebar

  Set $sidebar-stick variable to affix sidebar contents to the
  bottom of the sidebar in tablets and up.
----------------------------------------------------------- */

@if $sidebar-sticky {
  @media (min-width: $large-breakpoint) {
    body {
      align-items: flex-end;
    }
  }
}

I added another variable to the variables file $sidebar-center: true !default; and changed the css layout to align center

/* -----------------------------------------------------------
  Center sidebar

  Set $sidebar-center variable to center sidebar contents
  in tablets and up.
----------------------------------------------------------- */

@if $sidebar-center {
  @media (min-width: $large-breakpoint) {
    body {
      align-items: center;
    }
  }
}

This looked neater to me on desktop/laptop screens and didn't have much bearing on mobile layout.

Fonts

There is a section in /_sass/hydeout/_layout.scss which defines the font used for the Site Title.

Changing the .site-title font-family to montserrat, sans-serif

#sidebar {
  flex: 0 0 auto;
  padding: $section-spacing;

  .site-title {
    font-family: "Montserrat", sans-serif;
    font-weight: normal;
    font-size: $large-font-size;
    text-align: center;
    color: rgba(255,255,255,.75);
    margin-top: 0;
    margin-bottom: $heading-spacing;

    a {
      color: inherit;
      &:hover { color: $sidebar-title-color; }
    }

    .back-arrow { margin-right: 0.5rem; }
  }
}

You also have to change the setting in /_includes/font-includes.html

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat" />

Sidebar

Aligning the site-title is in the same place as the font settings /_sass/hydeout/_layout.scss then algining the rest of the content centrally had to be done for each element in the CSS

#sidebar {
    .site-title {
      font-size: 3.25rem;
      text-align: center;

      a { color: $sidebar-title-color; }
      .back-arrow { display: none; }
    }

    p.lead, header ~ * {
      display: block;
    }

    header ~ nav {
      display: flex;
    }
  }

brettmillerb.github.io's People

Contributors

brettmillerb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.