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

Update note-list.html #64

Open
wants to merge 10 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
2 changes: 1 addition & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ acronym {
}

.site.logo {
height: 42px;
height: 80px;
border-radius: 3px;
vertical-align: middle;
margin-right: 8px;
Expand Down
5 changes: 5 additions & 0 deletions assets/js/elrobotista_custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function new_window(){
link = document.getElementById('social_media').href
window.open(link);
}
console.log("hola soy new javascript")
15 changes: 15 additions & 0 deletions layouts/_default/authors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- define "main" -}}

{{- $justify := false -}}
{{- if eq .Params.justify true -}} {{- $justify = true -}} {{- end -}}
<section class="article header">
<h1 class="article title">{{- .Title | safeHTML -}}</h1>
</section>
<div class="article-container">
{{- range .Pages -}}
{{- partial "author-profile.html" . -}}
{{- end -}}
</div>
{{- partial "article-bottom-navigation.html" . -}}
{{- partial "article-comments.html" . -}}
{{- end -}}
45 changes: 45 additions & 0 deletions layouts/partials/author-profile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<div class="row center-xs center-md center-lg" style="margin-top: 10px;">
<div class="col" style="width: 150px; height: 150px; border-radius: 50%; overflow: hidden;">
{{- with .Params.profilepic -}}
<img class="profilepic" style="width: 100%; height: 100%;" src="{{- . | safeURL -}}"
alt>
{{ else }}
<img src="img/male.png" style="width: 100%; height: 100%;" alt="">
{{- end -}}
</div>
</div>
<section class="bio article header" >
<p>
{{- .Content -}}
</p>
<div class="row around-xs around-md " style="width: 50%; margin:auto; margin-top: 10px;">
{{- with .Params.github}}
<div class="col">
<a onclick="redirect_social_media({{ $.Param "github" }})" style="color: inherit; cursor: pointer;"><i class="fa fa-github" aria-hidden="true"></i></a>
</div>
{{- end -}}

{{- with .Params.email -}}
<div class="col">
<a href="mailto:{{ $.Param "email" }}" style="color: inherit;"> <i class="fa fa-envelope" aria-hidden="true"></i> </a>
</div>
{{- end -}}

{{- with .Params.twitter -}}
<div class="col">
<a onclick=" redirect_social_media( {{ $.Param "twitter" }}) " style="color: inherit;"> <i class="fa fa-twitter" aria-hidden="true"> </i> </a>
</div>
{{- end -}}

{{- with .Params.linkedin -}}
<div class="col">
<a onclick="redirect_social_media( {{ $.Param "linkedin" }})" style="color:inherit; cursor: pointer;" > <i class="fa fa-linkedin" aria-hidden="true"></i> </a>
</div>
{{- end -}}

{{- with .Params.stack_overflow -}}
<div class="col">
<a href="{{ $.Param "stack_overflow" }}" style="color:inherit; cursor: pointer;"><i class="fa fa-stack-overflow" aria-hidden="true"></i> </a>
</div>
{{- end -}}
</section>
4 changes: 3 additions & 1 deletion layouts/partials/head-extra.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!--
for user-side override
-->
-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flexboxgrid/6.3.1/flexboxgrid.css">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
7 changes: 6 additions & 1 deletion layouts/partials/js.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
for user-side override
-->
-->
<script>
function redirect_social_media(page){
window.open(page);
}
</script>
7 changes: 5 additions & 2 deletions layouts/partials/note-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
<ul class="note list">
{{- range $paginator.Pages -}}
<li class="item"><a class="note" href="{{- replace .RelPermalink "#" "%23" -}}">
<p class="note title">{{- .Title | safeHTML -}}</p>
<div class="image featured">
{{ with .Params.cover }} <img src="{{ . }}" style="width: 100%; height: 100%;">{{ end }}
</div>
<p class="note title">{{- .Title | safeHTML -}}</p>
{{- if .Date -}}
<p class="note date">{{- .Date.Format $dateFormat -}}</p>
{{- end -}}
Expand All @@ -30,4 +33,4 @@
</li>
{{- end -}}
</ul>
{{- end -}}
{{- end -}}