-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig
executable file
·109 lines (80 loc) · 6.32 KB
/
config
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
# BROWSER
BROWSER="firefox" # Browser to open page
EMACS="emacs" # txt editor
TWITTER="@ugeekpodcast" # nick twitter
LANGUAGE="es_ES"
GOOGLE_ANALITYCS="UA-131560140-1"
# RSS
LOGO_FEED="https://ugeek.github.io/ugeek.png"
ICON="https://ugeek.github.io/icon/ugeek-256x256.png"
IMAGE="https://ugeek.github.io/icon/ugeek.png"
LANGUAGE_RSS="es"
# HEAD PAGE PREVIEW
HEAD=$(echo '<head>
<title>$TITLEPROGRAM</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<div id="logo"><a href="https://ugeek.github.io"><img src="../icon/ugeek.png" border="0" width="90" height="90" alt="uGeek"></a></div>
<link rel="stylesheet" type="text/css" href="../css/stylesheet.css" /><br><br><br><br><br><br><br><br><br>
')
# HEAD PAGE INDEX, LIST, TAG
HEAD_PAGE=$(echo '
<link href="'http://fonts.googleapis.com/css?family=Lato'" rel="'stylesheet'" type="'text/css'"/>
<div id="name"><a href="https://ugeek.github.io/"><tt>Blog del Podcast</tt></div></a>
<div id="icon">
<a href="http://feeds.feedburner.com/uGeek" title="rss" alt="rss"><img src="./icon/podcast.png" width="25" height="25" alt="podcast"></a>
<a href="http://feeds.feedburner.com/uGeekBlog" alt="rss"><img src="./icon/rss.png" width="25" height="25"></a>
<a href="https://github.com/ugeek"><img src="./icon/github.png" width="25" height="25" alt="GitHub"></a>
<a href="https://open.spotify.com/show/1pZRMO6ClMS2jCktwF3I8H" alt="rss"><img src="./icon/spotify.png" width="25" height="25"></a>
<a href="https://twitter.com/ugeekpodcast"><img src="./icon/twitter.png" width="25" height="25" alt="Twitter"></a>
<a href="https://t.me/uGeek"><img src="./icon/telegram.png" width="25" height="25" alt="Telegram"></a></div>
<div id="menu">
<a href="https://ugeek.github.io/blog/list.html"><tt>Artículos</tt></a>
<a href="https://ugeek.github.io/list.html"><tt>Podcasts</tt></a>
<a href="https://ugeek.github.io/tags.html"><tt>Tags</tt></a></div>')
# HEAD POST PAGE
HEAD_PAGE_POST=$(echo '
<link href="http://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css"/>
<div id="name"><a href="https://ugeek.github.io/"><tt>Blog del Podcast</tt></div></a>
<div id="icon">
<a href="http://feeds.feedburner.com/uGeek" title="rss" alt="rss"><img src="../icon/podcast.png" width="25" height="25" alt="podcast"></a>
<a href="http://feeds.feedburner.com/uGeekBlog" alt="rss"><img src="../icon/rss.png" width="25" height="25"></a>
<a href="https://github.com/ugeek"><img src="../icon/github.png" width="25" height="25" alt="GitHub"></a>
<a href="https://open.spotify.com/show/1pZRMO6ClMS2jCktwF3I8H" alt="rss"><img src="../icon/spotify.png" width="25" height="25"></a>
<a href="https://twitter.com/ugeekpodcast"><img src="../icon/twitter.png" width="25" height="25" alt="Twitter"></a>
<a href="https://t.me/uGeek"><img src="../icon/telegram.png" width="25" height="25" alt="Telegram"></a></div>
<div id="menu">
<a href="https://ugeek.github.io/blog/list.html"><tt>Artículos</tt></a>
<a href="https://ugeek.github.io/list.html"><tt>Podcasts</tt></a>
<a href="https://ugeek.github.io/tags.html"><tt>Tags</tt></a></div>')
# MAIN CONTENT. INDEX PAGE
INDEX=$(echo "Bienvenido al Blog del Podcast de *uGeek*. Aquí encontraras tutoriales y notas que voy tomando en el proceso de aprendizaje de todo aquello que os explico en el [[https://ugeek.github.io][Podcast]]. En la sección [[https://ugeek.github.io/tags.html][Tags]], encontraras todos los Artículos y Podcast, clasificados por temáticas.")
# MAIN CONTENT. INDEX PAGE
ULTIMO_TITULO_PODCAST=$(wget -q -O- "http://feeds.feedburner.com/ugeek" | grep '<title>' | head -3 | tail -1 | sed 's/<title>/ /g' | sed 's/<\/title>/ /g')
ULTIMO_PODCAST=$(wget -q -O- "http://feeds.feedburner.com/ugeek" | grep -o '<enclosure url="[^"]*' | grep -o '[^"]*$' | head -1)
# MAIN CONTENT NEXT. INDEX PAGE
INDEX_NEXT=$(echo "
* $ULTIMO_TITULO_PODCAST
#+HTML: <audio controls=''><source src="$ULTIMO_PODCAST" />Tu navegador no soporta reproductor de Podcast.</audio>")
#+html:<h4><center> </center></h4><br>
"$(cat /home/angel/blog/categories.org)"
")
# FOOTER WEB. ALL PAGES
PIE_WEB=$(echo '<p style="text-align: center;"><a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" rel="license"><img style="border-width: 0px; display: block; margin-left: auto; margin-right: auto;" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" alt="Licencia de Creative Commons" /></a><br />Este obra está bajo una <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" rel="license">licencia de Creative Commons Reconocimiento-NoComercial-CompartirIgual 4.0 Internacional</a>.</p><br><br><br>')
#################################################################################################################
#POST PUBLICATION PROGRAMMING
#################################################################################################################
# POST PROGRAM SCHEDULE
PROGRAMS_ORG="/home/angel/blog/program/program.org"
# DRAFT POST
DRAFT_ORG="/home/angel/blog/program/draft.org"
# BLOG FILE
BLOG_ORG="/home/angel/blog/blog.org"
# BLOG FOLDER
PATH_BLOG="/home/angel/blog/"
# ORG-BASH-BLOG
ORG_BASH_BLOG="/usr/bin/org-bash-blog"
# CONFIG FILES
PATH_SCRIPTS_PROGRAMS="$HOME/.config/org-bash-blog/"
# PUBLISH METHOD (Put the method of publication you use. Here is a post using git. If you don't want to post, don't put anything)
PUBLISH="git add $PATH_BLOG . ; git commit -m 'publish post' ; git push ; curl -X POST https://api.telegram.org/bot<TOKEN>/sendMessage\?chat_id\=<YOUR ID>\&text\='Publicado Nuevo Post'"