hellug planet
Αυτό το commit περιλαμβάνεται σε:
commit
b959cab363
5 αρχεία άλλαξαν με 179 προσθήκες και 0 διαγραφές
2
.gitignore
εξωτερικό
Κανονικό αρχείο
2
.gitignore
εξωτερικό
Κανονικό αρχείο
|
@ -0,0 +1,2 @@
|
|||
output/*
|
||||
cache/*
|
18
planet.toml
Κανονικό αρχείο
18
planet.toml
Κανονικό αρχείο
|
@ -0,0 +1,18 @@
|
|||
name = "Πλανήτης HELLUG"
|
||||
url = "https://planet.hellug.gr/"
|
||||
owner = "Hellenic Linux User Group"
|
||||
email = "webmaster@hellug.gr"
|
||||
cache = "./cache"
|
||||
timeout = "20s"
|
||||
theme = "./theme"
|
||||
output = "./output"
|
||||
items = 40
|
||||
max_pages = 1
|
||||
|
||||
[[feed]]
|
||||
name = "πλανήτης ελληνικής κοινότητας ΕΛ/ΛΑΚ"
|
||||
feed = "https://planet.ellak.gr/atom.xml"
|
||||
|
||||
[[feed]]
|
||||
name = "HELLUG WebSite"
|
||||
feed = "https://www.hellug.gr/index.xml"
|
50
theme/index.html
Κανονικό αρχείο
50
theme/index.html
Κανονικό αρχείο
|
@ -0,0 +1,50 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="el">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{.Name}}</title>
|
||||
<meta name="generator" content="{{.Generator}}">
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css">
|
||||
<link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed">
|
||||
<link rel="outline" href="opml.xml" type="text/x-opml" title="OPML">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
<h1 class="title">{{.Name}}</h1>
|
||||
<abbr>
|
||||
Ο πλανήτης Hellug είναι ένα συγκεντρωτής νέων από πηγές RSS/Atom της ελληνικής κοινότητας ελεύθερου λογισμικού. Ο σκοπός δεν είναι η αντικατάσταση της προσπάθειας που γίνεται στο <a href="https://planet.ellak.gr">πλανήτη ΕΛ/ΛΑΚ</a>, αλλά η συμπερίληψη νέων και από άλλες πηγές, όπως από τις ιστοσελίδες του <a href="https://www.hellug.gr">Hellug</a> και από διάφορα ελληνικά forum και mailing lists.
|
||||
</abbr>
|
||||
</header>
|
||||
{{range .Items}}
|
||||
<article>
|
||||
<header>
|
||||
<h1><a href="{{.Link}}">{{.Title}}</a></h1>
|
||||
<div>{{if .Author}}από <span class="author">{{.Author}}</span> {{end}}στο <a class="site-link" href="{{.SiteLink}}">{{.FeedName}}</a></div>
|
||||
{{ if .Published -}}
|
||||
<div>Δημοσιεύτηκε στις <time datetime="{{.Published | isodate}}">{{.Published | date "2/1/2006 15:04:05"}}</time></div>
|
||||
{{- end }}
|
||||
</header>
|
||||
<div class="article-body">
|
||||
{{- if .Summary -}}
|
||||
{{.Summary | sanitize}}
|
||||
{{- else if .Content -}}
|
||||
{{.Content | excerpt 500 | sanitize}}
|
||||
{{- end -}}
|
||||
</div>
|
||||
</article>
|
||||
{{end}}
|
||||
<div id="pagination">
|
||||
<span>{{if .PrevPage}}<a href="{{.PrevPage}}">⟵ Προηγούμενη</a>{{end}}</span><span>{{if .NextPage}}<a href="{{.NextPage}}">Επόμενη ⟶</a>{{end}}</span>
|
||||
</div>
|
||||
<footer>
|
||||
<h1>Πηγές</h1>
|
||||
<ul>
|
||||
{{range .Feeds}}
|
||||
<li><a href="{{.FeedLink}}" class="feed" aria-hidden="true" title="Ροή"></a> <a href="{{.Link}}">{{.Title}}</a></li>
|
||||
{{end}}
|
||||
</ul>
|
||||
<address>Το περιεχόμενο του πλανήτη Hellug είναι αποκλειστικά πνευματική ιδιοκτησία των συγγραφέων/πηγών</address>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
105
theme/static/style.css
Κανονικό αρχείο
105
theme/static/style.css
Κανονικό αρχείο
|
@ -0,0 +1,105 @@
|
|||
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
color: #777;
|
||||
line-height: 1.6;
|
||||
margin: 0 auto;
|
||||
max-width: 800px;
|
||||
padding: 0 2rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body>header {
|
||||
margin: 0;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
padding: 2.5rem 2rem;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
body>header h1 {
|
||||
margin: 0.2rem 0;
|
||||
font-size: 3rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
article {
|
||||
margin: 2rem 0 4rem 0;
|
||||
}
|
||||
|
||||
article h1,
|
||||
footer h1,
|
||||
article h2,
|
||||
article h3 {
|
||||
font-weight: 300;
|
||||
color: #888;
|
||||
margin: 0.2rem 0 0 0;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
article h1 a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
article header div {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
article header .author,
|
||||
article header .site-link {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
pre {
|
||||
border: 1px solid #eee;
|
||||
padding: 0.5rem;
|
||||
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
blockquote em {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
#pagination {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#pagination span {
|
||||
display: inline-block;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
/* An SVG of the feed icon. This way, we can display it just by applying a class. */
|
||||
.feed {
|
||||
display: inline-block;
|
||||
background: center no-repeat url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI1NiAyNTYiPjxkZWZzPjxsaW5lYXJHcmFkaWVudCB4MT0iLjA4NSIgeTE9Ii4wODUiIHgyPSIuOTE1IiB5Mj0iLjkxNSIgaWQ9ImEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0UzNzAyRCIvPjxzdG9wIG9mZnNldD0iLjEwNyIgc3RvcC1jb2xvcj0iI0VBN0QzMSIvPjxzdG9wIG9mZnNldD0iLjM1IiBzdG9wLWNvbG9yPSIjRjY5NTM3Ii8+PHN0b3Agb2Zmc2V0PSIuNSIgc3RvcC1jb2xvcj0iI0ZCOUUzQSIvPjxzdG9wIG9mZnNldD0iLjcwMiIgc3RvcC1jb2xvcj0iI0VBN0MzMSIvPjxzdG9wIG9mZnNldD0iLjg4NyIgc3RvcC1jb2xvcj0iI0RFNjQyQiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0Q5NUIyOSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHdpZHRoPSIyNTYiIGhlaWdodD0iMjU2IiByeD0iNTUiIHJ5PSI1NSIgZmlsbD0iI0NDNUQxNSIvPjxyZWN0IHdpZHRoPSIyNDYiIGhlaWdodD0iMjQ2IiByeD0iNTAiIHJ5PSI1MCIgeD0iNSIgeT0iNSIgZmlsbD0iI0Y0OUM1MiIvPjxyZWN0IHdpZHRoPSIyMzYiIGhlaWdodD0iMjM2IiByeD0iNDciIHJ5PSI0NyIgeD0iMTAiIHk9IjEwIiBmaWxsPSJ1cmwoI2EpIi8+PGNpcmNsZSBjeD0iNjgiIGN5PSIxODkiIHI9IjI0IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTE2MCAyMTNoLTM0YTgyIDgyIDAgMDAtODItODJWOTdhMTE2IDExNiAwIDAxMTE2IDExNnoiIGZpbGw9IiNGRkYiLz48cGF0aCBkPSJNMTg0IDIxM0ExNDAgMTQwIDAgMDA0NCA3M1YzOGExNzUgMTc1IDAgMDExNzUgMTc1eiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPgo=);
|
||||
background-size: 1rem 1rem;
|
||||
line-height: 1;
|
||||
width: 1rem;
|
||||
white-space: nowrap;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.feed::before {
|
||||
content: "\00a0";
|
||||
}
|
||||
|
||||
address {
|
||||
font-size: 80%;
|
||||
margin-bottom: 2rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@media (min-width: 48rem) {
|
||||
body {
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
}
|
||||
}
|
4
theme/theme.toml
Κανονικό αρχείο
4
theme/theme.toml
Κανονικό αρχείο
|
@ -0,0 +1,4 @@
|
|||
name = "Hellug"
|
||||
|
||||
[[bom]]
|
||||
path = "static/style.css"
|
Φόρτωση…
Προσθήκη πίνακα
Προσθήκη υπερσυνδέσμου
Παράθεση σε νέο ζήτημα