-
Notifications
You must be signed in to change notification settings - Fork 1
/
template-article.cshtml
117 lines (111 loc) · 7.49 KB
/
template-article.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
@using Blog.Builder.Models.Templates;
<div class="container">
<div class="row mx-auto article-google-engine-top">
<div class="col pb-4">
<div class="card text-center bg-transparent border-0" style="height:33px">
<script async src="https://cse.google.com/cse.js?cx=c67a1214306f44e87" nonce="@Model.Nonce"></script>
<div class="gcse-searchbox-only"></div>
</div>
</div>
</div>
<div class="row mx-auto">
<div class="col-lg-8 mb-4 shadow bg-white rounded">
<div class="container article">
<div class="row border-end border-start border-bottom bg-light">
<div class="col" style="text-align: center">
<a class="btn align-middle" href="@Model.GithubCurrentPageUrl" role="button" style="text-decoration:none" target="_blank" rel="noopener">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
</svg>
Edit Page
</a>
<a class="btn align-middle" href="@Model.GithubRepoUrl/issues/[email protected]" role="button" style="text-decoration:none" target="_blank" rel="noopener">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor" viewBox="0 0 24 24">
<path fill-rule="evenodd" d="M2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0zM12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zm0 13a2 2 0 100-4 2 2 0 000 4z"></path>
</svg>
Create Issue
</a>
<a class="btn align-middle" href="https://github.com/georgekosmidis/blog.georgekosmidis.net/discussions/[email protected]&body=Article%20URL:%20@(Model.BlogUrl)@(Model.RelativeUrl)" role="button" style="text-decoration:none" target="_blank" rel="noopener">
<svg aria-hidden="true" height="22" viewBox="0 0 16 16" width="22">
<path fill-rule="evenodd" d="M1.5 2.75a.25.25 0 01.25-.25h8.5a.25.25 0 01.25.25v5.5a.25.25 0 01-.25.25h-3.5a.75.75 0 00-.53.22L3.5 11.44V9.25a.75.75 0 00-.75-.75h-1a.25.25 0 01-.25-.25v-5.5zM1.75 1A1.75 1.75 0 000 2.75v5.5C0 9.216.784 10 1.75 10H2v1.543a1.457 1.457 0 002.487 1.03L7.061 10h3.189A1.75 1.75 0 0012 8.25v-5.5A1.75 1.75 0 0010.25 1h-8.5zM14.5 4.75a.25.25 0 00-.25-.25h-.5a.75.75 0 110-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0114.25 12H14v1.543a1.457 1.457 0 01-2.487 1.03L9.22 12.28a.75.75 0 111.06-1.06l2.22 2.22v-2.19a.75.75 0 01.75-.75h1a.25.25 0 00.25-.25v-5.5z"></path>
</svg>
Discuss
</a>
<a class="btn ms-4" href="/" role="button" style="text-decoration:none">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" class="mb-1" fill="currentColor" class="bi bi-house-fill" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="m8 3.293 6 6V13.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5V9.293l6-6zm5-.793V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"></path>
<path fill-rule="evenodd" d="M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"></path>
</svg>
Go Home
</a>
</div>
</div>
<div class="row">
<div class="col mt-3">
<h1 class="text-center display-6">@Model.Title</h1>
</div>
</div>
<div class="row">
<div class="col pb-2">
<div class="text-black-50 text-center">
@{
var articleDate = Model.DateModifiedText == Model.DatePublishedText
? $"Published {Model.DatePublishedText}"
: $"Published {Model.DatePublishedText}, modified {Model.DateModifiedText}";
}
<small>by <a href="@Model.AuthorPersonalPage" rel="noopener">@Model.AuthorName</a> / @articleDate</small>
</div>
</div>
</div>
@if ( !string.IsNullOrWhiteSpace(@Model.RelativeImageUrl) ) {
<div class="row">
<div class="col text-center">
<img src="@Model.RelativeImageUrl" alt="@Model.Title"/>
</div>
</div>
}
<div class="row">
<div class="col pt-3 pb-6">
@Model.Body
</div>
</div>
<div class="row border-end border-start border-top bg-light mt-4">
<div class="col pt-2" style="text-align: center">
This page is <strong>open source</strong>. Noticed a typo? Or something unclear?<br />
<a class="btn align-middle" href="@Model.GithubCurrentPageUrl" role="button" style="text-decoration:none" target="_blank" rel="noopener">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
</svg>
Edit Page
</a>
<a class="btn align-middle" href="@Model.GithubRepoUrl/issues/[email protected]" role="button" style="text-decoration:none" target="_blank" rel="noopener">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor" viewBox="0 0 24 24">
<path fill-rule="evenodd" d="M2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0zM12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zm0 13a2 2 0 100-4 2 2 0 000 4z"></path>
</svg>
Create Issue
</a>
<a class="btn align-middle" href="https://github.com/georgekosmidis/blog.georgekosmidis.net/discussions/[email protected]&body=Article%20URL:%20@(Model.BlogUrl)@(Model.RelativeUrl)" role="button" style="text-decoration:none" target="_blank" rel="noopener">
<svg aria-hidden="true" height="22" viewBox="0 0 16 16" version="1.1" width="22" data-view-component="true" class="octicon octicon-comment-discussion UnderlineNav-octicon d-none d-sm-inline">
<path fill-rule="evenodd" d="M1.5 2.75a.25.25 0 01.25-.25h8.5a.25.25 0 01.25.25v5.5a.25.25 0 01-.25.25h-3.5a.75.75 0 00-.53.22L3.5 11.44V9.25a.75.75 0 00-.75-.75h-1a.25.25 0 01-.25-.25v-5.5zM1.75 1A1.75 1.75 0 000 2.75v5.5C0 9.216.784 10 1.75 10H2v1.543a1.457 1.457 0 002.487 1.03L7.061 10h3.189A1.75 1.75 0 0012 8.25v-5.5A1.75 1.75 0 0010.25 1h-8.5zM14.5 4.75a.25.25 0 00-.25-.25h-.5a.75.75 0 110-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0114.25 12H14v1.543a1.457 1.457 0 01-2.487 1.03L9.22 12.28a.75.75 0 111.06-1.06l2.22 2.22v-2.19a.75.75 0 01.75-.75h1a.25.25 0 00.25-.25v-5.5z"></path>
</svg>
Discuss
</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="container px-0 mx-0 right-column-container">
@foreach(var card in @Model.RightColumnCards){
<div class="col mb-4">
@card
</div>
}
</div>
</div>
</div>
<div class="col-lg-4">
</div>
</div>
</div>