diff --git a/_includes/head-custom-google-analytics.html b/_includes/head-custom-google-analytics.html new file mode 100644 index 00000000..0055fb32 --- /dev/null +++ b/_includes/head-custom-google-analytics.html @@ -0,0 +1,20 @@ + + {% if site.google_analytics %} + + {% endif %} diff --git a/_includes/head-custom.html b/_includes/head-custom.html new file mode 100644 index 00000000..6cecfbc7 --- /dev/null +++ b/_includes/head-custom.html @@ -0,0 +1,2 @@ + +{% include head-custom-google-analytics.html %} diff --git a/_includes/head.html b/_includes/head.html index afa3ac7e..8c70e401 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,11 +1,12 @@ + - {{ site.title }} + {% seo %} - + @@ -14,25 +15,6 @@ - - {% if site.google_analytics %} - - {% endif %} + {% include head-custom.html %} diff --git a/_includes/icons.html b/_includes/social.html similarity index 93% rename from _includes/icons.html rename to _includes/social.html index 7a9ad0f4..6fecd54e 100644 --- a/_includes/icons.html +++ b/_includes/social.html @@ -1,6 +1,6 @@ {% if site.social.email %}
  • - + @@ -64,9 +64,9 @@
  • {% endif %} -{% if site.social.github %} +{% if site.social.github or site.github_username %}
  • - + @@ -196,9 +196,9 @@
  • {% endif %} -{% if site.social.twitter %} +{% if site.social.twitter or site.twitter_username %}
  • - + diff --git a/_layouts/about.html b/_layouts/about.html index 49b96121..6373c16e 100644 --- a/_layouts/about.html +++ b/_layouts/about.html @@ -1,25 +1,24 @@ --- -layout: base +layout: default ---
    - {{ site.author.name }} + {{ site.author.name | default: site.author }}
    -
    {{ site.author.name }}
    -
    {{ site.author.desc }}
    +
    {{ site.author.name | default: site.author }}
    +
    {{ site.author.desc | default: site.description | default: site.github.project_tagline }}
    -
    +
    {{ content }} -
    -
    +
    diff --git a/_layouts/base.html b/_layouts/base.html deleted file mode 100644 index f57228a0..00000000 --- a/_layouts/base.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - {% include head.html %} - - -
    - -
    - {{ content }} -
    - -
    - - © {{ site.author.name }}. A.P theme by kssim. - -
    - - diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 00000000..1064a412 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,32 @@ + + + + {% include head.html %} + + + + + +
    + {{ content }} +
    + +
    + + © {{ site.author.name | default: site.author }}. A.P theme by kssim. + +
    + + diff --git a/_layouts/portfolio.html b/_layouts/portfolio.html index 711eff3a..2438a43c 100644 --- a/_layouts/portfolio.html +++ b/_layouts/portfolio.html @@ -1,5 +1,5 @@ --- -layout: base +layout: default ---
    diff --git a/_layouts/post.html b/_layouts/post.html index 22124f27..52b1970d 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,14 +1,14 @@ --- -layout: base +layout: default --- -
    +

    {{ page.title }}

    -
    +
    {{ content }} -
    +