Skip to content

Commit

Permalink
Fix sns links
Browse files Browse the repository at this point in the history
  • Loading branch information
dongweiming committed Mar 9, 2019
1 parent 6516d83 commit 06a054d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 19 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@

[![Build Status](https://travis-ci.org/dongweiming/lyanna.svg?branch=master)](https://travis-ci.org/dongweiming/lyanna)

<p align="center">
My Blog Using Sanic
</p>
My Blog Using Sanic

<p align="center">
<a href="https://dongweiming.github.io/lyanna/">查看文档 📖</a>
</p>
[查看文档 📖](https://dongweiming.github.io/lyanna/)

## Overview

Expand All @@ -20,14 +16,16 @@
* 缓存: aiomcache
* KV数据库: aioredis

其他aio扩展: Sanic-Auth、Sanic-wtf、sanic-session、aiotask-context、asyncblink、sanic-sentry
其他aio扩展: Sanic-Auth、Sanic-wtf、sanic-session、aiotask-context、asyncblink、sanic-sentry、sanic-jwt

## Demo
<p align="center">
<img width="600" src="./screenshot/blog.png" >
</p>

[DEMO](https://blog.pycourses.com)
管理后台使用 ElementUI + Vue-CLI + Vue-Router + Vuex

<p align="center">
<img width="600" src="./screenshot/blog.png" >
<img width="600" src="./screenshot/admin.png" >
</p>

## Features
Expand All @@ -47,3 +45,8 @@
* 支持RSS/Sitemap
* 相关文章推荐(根据相似标签)
* 响应式设计

## Video

[My blog](https://youtu.be/rHYvrefjZwg)
[]()
2 changes: 1 addition & 1 deletion docs/front-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ yarn build

## 后台

使用 ElementUI+Vue-Router+Vuex+Webpack+ES6+Sass ,需要安装依赖:
使用 ElementUI+Vue-CLI+Vue-Router+Vuex+Webpack+ES6+Sass ,需要安装依赖:

```bash
cd admin # 在 admin 子目录下
Expand Down
Binary file added screenshot/admin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 11 additions & 8 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,17 @@
<!-- SNS Link -->
<ul class="list-inline">
% for sns in ('github', 'linkedin'):
<li>
<a target="_blank" href="${ getattr(profile, f'{sns}_url') }">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-${ sns } fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<% url = getattr(profile, f'{sns}_url') %>
% if url:
<li>
<a target="_blank" href="${ f'https://{url}' }">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-${ sns } fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
% endif
% endfor
</ul>
</div>
Expand Down

0 comments on commit 06a054d

Please sign in to comment.