Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed defect "Avatar image broken when baseurl set to blank. #20" #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions Gemfile

This file was deleted.

79 changes: 0 additions & 79 deletions Gemfile.lock

This file was deleted.

120 changes: 59 additions & 61 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,63 @@
# Site
name: 'Mundana'
description: 'Mundana is a free Jekyll theme for awesome people like you, Medium like.'
logo: 'assets/images/logo.png'
favicon: 'assets/images/favicon.ico'
baseurl: '/mundana-theme-jekyll'
disqus: 'demowebsite'
email: '[email protected]'
mailchimp-list: 'https://wowthemes.us11.list-manage.com/subscribe/post?u=8aeb20a530e124561927d3bd8&id=8c3d2d214b'

include: ["_pages"]
permalink: /:title/

# Plugins
plugins:
- jekyll-feed
- jekyll-sitemap
- jekyll-paginate
- jekyll-seo-tag

authors:
sal:
name: Sal
site: https://www.wowthemes.net
avatar: /assets/images/avatar1.jpg
bio: "Hi, I am Sal, the author of Mundana, the theme you're currently previewing. I hope you like it!"
email: [email protected]
twitter: https://twitter.com/wowthemesnet

jane:
name: Jane
site: https://www.wowthemes.net
avatar: /assets/images/avatar2.jpg
bio: "Blogger, fashionista, love to explore new ideas and write on my morning coffee!"
email: [email protected]
twitter: https://twitter.com/wowthemesnet

# Defaults
---
title: Mundana Theme Jekyll
timezone: UTC
collections:
posts:
title: Posts
output: true
uploads:
title: Uploads
output: true
defaults:

# all posts
- scope:
path: "_posts"
values:
layout: post
author: sal
avatar: /assets/images/avatar1.jpg

# all pages
- scope:
path: "_pages"
values:
layout: page

# Syntax
- scope:
path: _posts
values:
layout: post
author: sal
avatar: "/assets/images/avatar1.jpg"
- scope:
path: _pages
values:
layout: page
name: Mundana
description: Mundana is a free Jekyll theme for awesome people like you, Medium like.
logo: assets/images/logo.png
favicon: assets/images/favicon.ico
baseurl: "/mundana-theme-jekyll"
disqus: demowebsite
email: [email protected]
mailchimp-list: https://wowthemes.us11.list-manage.com/subscribe/post?u=8aeb20a530e124561927d3bd8&id=8c3d2d214b
include:
- _pages
permalink: "/:title/"
plugins:
- jekyll-feed
- jekyll-sitemap
- jekyll-paginate
- jekyll-seo-tag
authors:
sal:
name: Sal
site: https://www.wowthemes.net
avatar: "/assets/images/avatar1.jpg"
bio: Hi, I am Sal, the author of Mundana, the theme you're currently previewing.
I hope you like it!
email: [email protected]
twitter: https://twitter.com/wowthemesnet
jane:
name: Jane
site: https://www.wowthemes.net
avatar: "/assets/images/avatar2.jpg"
bio: Blogger, fashionista, love to explore new ideas and write on my morning coffee!
email: [email protected]
twitter: https://twitter.com/wowthemesnet
markdown: kramdown
highlighter: rouge

# Paginate
paginate: 10



# Exclude metadata and development time dependencies (like Grunt plugins)
exclude: [README.markdown, package.json, grunt.js, Gruntfile.js, Gruntfile.coffee, node_modules]
exclude:
- README.markdown
- package.json
- grunt.js
- Gruntfile.js
- Gruntfile.coffee
- node_modules
1 change: 1 addition & 0 deletions _layouts/page-sidebar.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
---

<div class="container">
<h3 class="font-weight-bold spanborder"><span>{{page.title}}</span></h3>
<div class="row">
Expand Down
5 changes: 3 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
---

{% assign author = site.authors[page.author] %}
<div class="container">
<div class="jumbotron jumbotron-fluid mb-3 pl-0 pt-0 pb-0 bg-white position-relative">
Expand All @@ -17,7 +18,7 @@
<h1 class="display-4 mb-4 article-headline">{{ page.title }}</h1>
<div class="d-flex align-items-center">
{% if author.avatar %}
<img class="rounded-circle" src="{{site.baseurl}}/{{author.avatar}}" alt="{{author.name}}" width="70"/>
<img class="rounded-circle" src="{{site.url}}{{site.baseurl}}/{{author.avatar}}" alt="{{author.name}}" width="70"/>
{% endif %}
<small class="ml-3"> {{ author.name }} <span><a target="_blank" href="{{ author.twitter }}" class="btn btn-outline-success btn-sm btn-round ml-1">Follow</a></span>
<span class="text-muted d-block mt-1">{{ page.date | date: '%b %d, %Y' }} · {% include meta-read-time.html %}</span>
Expand Down Expand Up @@ -110,7 +111,7 @@ <h5 class="font-weight-bold">Join Newsletter</h5>
<div class="row mt-5">
<div class="col-md-2 align-self-center">
{% if author.avatar %}
<img class="rounded-circle" src="{{site.baseurl}}/{{author.avatar}}" alt="{{author.name}}" width="90"/>
<img class="rounded-circle" src="{{site.url}}{{site.baseurl}}/{{author.avatar}}" alt="{{author.name}}" width="90"/>
{% endif %}
</div>
<div class="col-md-10">
Expand Down
5 changes: 3 additions & 2 deletions _pages/about.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: "About"
layout: page-sidebar
title: About
permalink: "/about.html"
layout: page-sidebar
image: "/assets/images/screenshot.jpg"
comments: true
---

Made with <i class="fa fa-heart text-danger"></i> by Sal [@wowthemesnet](https://www.wowthemes.net/category/free-themes-templates/).
5 changes: 3 additions & 2 deletions _pages/author-jane.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: "Jane"
layout: default
title: Jane
permalink: "/author-jane.html"
layout: default
---

<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
Expand Down
5 changes: 3 additions & 2 deletions _pages/author-sal.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: "Sal"
layout: default
title: Sal
permalink: "/author-sal.html"
layout: default
---

<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
Expand Down
4 changes: 2 additions & 2 deletions _pages/authors-list.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Authors"
layout: default
title: Authors
permalink: "/authors-list.html"
layout: default
---

<div class="container">
Expand Down
2 changes: 1 addition & 1 deletion _pages/buy-me-a-coffee.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Buy me a coffee"
title: Buy me a coffee
permalink: "/buy-me-a-coffee.html"
---

Expand Down
4 changes: 2 additions & 2 deletions _pages/categories.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Categories"
layout: default
title: Categories
permalink: "/categories.html"
layout: default
---

<div class="container">
Expand Down
2 changes: 1 addition & 1 deletion _pages/contact.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Contact"
title: Contact
permalink: "/contact.html"
---

Expand Down
2 changes: 1 addition & 1 deletion _pages/privacy-policy.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Privacy Policy"
title: Privacy Policy
permalink: "/privacy-policy.html"
---

Expand Down
4 changes: 2 additions & 2 deletions _pages/tags.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Tags"
layout: default
title: Tags
permalink: "/tags.html"
layout: default
---

<div class="container">
Expand Down
10 changes: 7 additions & 3 deletions _posts/2019-01-18-charm-old-cities.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
---
title: Could we reinvent the charm of old cities
date: 2019-01-18 00:00:00 Z
categories:
- Jekyll
- tutorial
tags:
- sticky
layout: post
title: "Could we reinvent the charm of old cities"
author: jane
categories: [ Jekyll, tutorial ]
image: assets/images/home.jpg
tags: [sticky]
---

Bucharest’s history alternated periods of development and decline from the early settlements in antiquity until its consolidation as the national capital of Romania late in the 19th century. First mentioned as the “Citadel of București” in 1459, it became the residence of the famous Wallachian prince Vlad III the Impaler.
Expand Down
7 changes: 5 additions & 2 deletions _posts/2019-01-18-customer-service.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
---
title: What is Jekyll
date: 2019-01-18 00:00:00 Z
categories:
- Jekyll
- tutorial
layout: post
title: "What is Jekyll"
author: jane
categories: [ Jekyll, tutorial ]
image: assets/images/11.jpg
---

Expand Down
11 changes: 8 additions & 3 deletions _posts/2019-01-19-markup-example.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
---
title: Markdown Example
date: 2019-01-19 00:00:00 Z
categories:
- Jekyll
- tutorial
tags:
- featured
layout: post
title: "Markdown Example"
author: jane
categories: [ Jekyll, tutorial ]
image: assets/images/6.jpg
tags: featured
---

You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. Something.

To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
Expand Down
Loading